LibreSolar / bms-c1

16s / 100A Battery Management System
https://libre.solar/bms-c1/manual/
Other
120 stars 38 forks source link

ESP32 CAN bus #30

Closed B-hafedh closed 1 year ago

B-hafedh commented 2 years ago

The ESP32 offers a CAN 2.0B interface(up to 1Mbit/s), and you use the STM32G0B1 CAN(FD) interface (up to 15Mbit/s). So, my question is: can i use the ESP32 CAN to command an E-scooter Motor Control Board for example, or a 1Mbit/s speed is not enough ?

martinjaeger commented 2 years ago

It depends on the E-scooter motor controller. Most probably classical CAN with around 500 kbit/s will be fine.

martinjaeger commented 2 years ago

That being said: CAN is only the lower-level protocol. In order to "talk" to the E-scooter motor controller, you will have to implement its protocol. They are usually proprietary and often not published, so you may have to reverse-engineer it...