Arduino based accessory board for the balance app in BV's BLDC firmware.
- Directional LEDs for headlight/taillight with dimming.
- Buzzer for over speed, low voltage, and high speed half switch warnings.
- A teeny tiny small display thats so small you cant even see it with data you probbaly wont be able to read (it's smol).
- It uses CAN bus, so there are NO DOWNSIDES to adding it. JUST DO IT!
- Adruino Nano
- MCP2515 Can Bus Module Board
- 5v piezo active buzzer
- 2x LED Strips (WS2812 GRB is the default, but anything supported by FastLED should work)
- SSD1306 128x64 Display (4 pin, any color, the blue/yellow works nice too)
Be sure you short the can termination pins on the module if needed (if your can setup is just an esc and this, you need it)
For more info see https://github.com/autowp/arduino-mcp2515
if you use a fancy buzzer/speaker make sure it wont blow the nano
if you wire lots of LEDs make sure it wont blow the nano
Features are designed to be configured VIA the constants
- esc.cpp: Configure CAN bus IDs, you must match the ID set in the VESC Tool
- balance_beeper.cpp: Configure wiring and alerts
- balance_leds.cpp: Configure wiritng, LED Type, Brightnes, etc.
- balance_display.cpp: Nothing configureable yet
All the required libraries are included, just hit the upload button in Arduino IDE
If youre using a display, it is likely related to bus capacitence and wire.h hangs
In my case using minimal length wires, and a 2.2k pull up from scl to 3.3v solved my issues.