You are here

How to communication with arduino on vesc via can

3 posts / 0 new
Last post
yuri12
Offline
Last seen: 2 years 4 months ago
Joined: 2022-01-19 09:44
Posts: 7
How to communication with arduino on vesc via can

Hello.

I wan to check the VESC CAN message with Arduino. When I connected Arduino uno and mcp2515 to the VESC CAN pin, I couldn't get any message. How can I read the message?

And after this is solved, I want to control VESC via CAN communication. Is there anything else I need to modify other than code modification?

Please help me!!!

olivierabristol
Offline
Last seen: 1 month 1 week ago
Joined: 2019-01-12 14:21
Posts: 3

https://dongilc.gitbook.io/openrobot-inc/tutorials/control-with-can 

https://electric-skateboard.builders/t/vesc-can-message-structure/98092/7

 

hello yuri, you will find all you need on this two links. Btw, pay attention to the MCP2515 you are using, mine has a 8Mhz oscillator so I had to double the working frequency to make it works. For example if you set 500 kHz on vesc and you have a 8 Mhz MCP2515, you shall  set the MCP 2515 @ 1000 kHz

 

Olivier

Craig_Gault
Offline
Last seen: 8 months 3 weeks ago
VESC Free
Joined: 2021-06-17 17:47
Posts: 3

You can use the MCP2515 module and this library to communicate with the vesc over CAN bus.

https://github.com/craigg96/vesc_can_bus_arduino

CGault