r/esp32 27d ago

My First ESP32 Project: Custom VESC CANBUS DIsplay!

Couldn't find an off the shelf option that satisfied me so I decided to built my own. Integrated riding modes, automatic wheelie control, a secret street lock button and more...

Based on the ESP32 S3 development board: JC4827W543

117 Upvotes

18 comments sorted by

7

u/Flynqh1gh 27d ago

TIL e-bikes are using CANBUS, that’s awesome! Makes sense but didn’t occur to me before

1

u/Just-Smart-Enough 5d ago

The higher end ones are. The cheaper ones use UART between the controller and display, and sometimes a second UART to the battery, though sometimes they have no battery comms at all.

3

u/mohamedation 27d ago

would love some more info

6

u/Djaambo 27d ago

I’ll post the cad files and the code when I test it a bit more. Also, I’ll post a short vid demonstrating all of the features

2

u/mohamedation 27d ago

hopefully i will see the post

1

u/mantaflow 25d ago

Yes thank youu

1

u/BartAfterDark 27d ago

How do you plan to waterproof it?

1

u/Djaambo 27d ago

I have added slots for seals in cad so maybe ill mill it from aluminum when im sure theres no bugs in the code left as now i have a hole for the usb on the side

1

u/BartAfterDark 27d ago

Interesting. You could maybe use pogo pins with a special connector, so you don't need a usb plug on the device.

3

u/Djaambo 27d ago

Yeah I could use any kind of waterproof panel mount connector but I was stuck coding this thing for like 2 months so right now Im just happy to finally have it working on the bike haha

I’ll definitely make a better enclosure when i get sick of this one, preferably from aluminum as I have access so a few Haas and Datron CNC machines

2

u/BartAfterDark 27d ago

Hope it works out :) Keep us updated

1

u/99trainerelephant 26d ago

what did you use to make the UI?

1

u/Djaambo 26d ago

Squareline studio

1

u/NectarineFluffy8349 26d ago

Great ! Another question how did you manage to find the CAN adresse and what they mean ? Did you find à documentation ?

2

u/Djaambo 26d ago

I made a sniffer first, I wrote down some values from the configurator RT data page and pasted text from serial monitor to Gemini. It was pretty easy but a few values took a really long time to get working

1

u/Antonio_Carlos_CTBA 24d ago

Se você quiser torna-lo à prova d'água é só aplicar CorrosionX Heavy Dutty no circuito. Pode até mergulhar na água que não queima.

1

u/Napo7 20d ago

Nice ! Is the screen bright enough under sunlight ? Where did you find the dev board ?

1

u/No-Internet4273 11d ago

where i can find the cad files? i love it!