I am working on a Canbus connected LED Controller.
After looking at the vesc code I want to leverage speed info, battery level, brake and IMU data to control addressable LED & 12V Front & Brake.
Project will be opensource and free to all.
Objectives:
- Canbus coms with passthrough
- compact
- ws2812B using wled code
- front and rear light control
- single button control (external)
- low cost
- JLBPCB assembly friendly
- firmware upgradable
Optional: - PPM\UART remote Macro (i.e. Brake 100% 3 times rapidly turns on\off lights)
- Mobile App
- Integrated Buck
GITHUB
Info Iinks:
WLED
https://triforce-docs.readthedocs.io/en/latest/canbus/canbus.html
Board will likely be STM based I will be limited to what LCSC.com carry in stock.
My prototype was esp32 based and not very assembly service friendly.
The upside is canbus on STM is a snap but I will need to port the wled code over.
I am in 2 minds.
Option one use the nRF52840
Advantages
LCSC stocked
Inexpensive
Can double as a can connected ble module.
Can be updated by over the air/swd port
Disadvantages
Nordic Dev environment is a skullf##k
Limited storage
Create board with a socket for esp32 module
Advantages
Native support for wled code and libraries
Circuit python support
Wifi web app easier to code.
Disadvantages
Canbus support is tricky but doable
Bulkier design.
Requires user to source seperate part.
Ordered a nrf Dev board with built in canbus transceivers to test the concept. I have also started on the esp32 PCB design. Not all (V)ESC have an IMU so I will add a header to add a built in IMU.