Skip to content

LED based GPS for bikes, written in Arduino framework for NodeMCU ESP32 (written in C++)

Notifications You must be signed in to change notification settings

libasoles/nodemcu-bike-gps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bike Device

directions

The purpose of this code is to guide a biker using a ring of leds in the handlebars of the bike.

So, you can see arrow indications after pairing with a cellphone app. And a speedometer. And potentially a chronometer if you wish to code that too.

Directions

directions

Speedometer

speedometer

Board, chip and framework

Code is written for a NodeMCU board, with a ESP32 with BLE chip. And the Adafruit LED Ring.

However, apart from the BLE library we use, the rest of the code should work on arduino too.

The framework we chose was Arduino, just because it has a great community. But apart from setup & loop main functions, we don´t actually make much use of it.

Preferred development environment is platformio, integrated to any IDE you would chose.

How to run

For Arduino IDE, open src/src.ino. And install FastLed library.

For other IDEs, like VSCode or CLion, you can run the main.cpp file. You'll have to install a couple of dependencies though, using platformio.

Screenshots

usage with cell phone

usage with cell phone

usage with cell phone

usage with cell phone

Class diagram

Approximated design (changed over time)

class diagram

Sequence diagrams

Boot

class diagram

Bluetooth Event

class diagram

About

LED based GPS for bikes, written in Arduino framework for NodeMCU ESP32 (written in C++)

Topics

Resources

Stars

Watchers

Forks