You are here

How to communication with arduino on vesc via can

2 posts / 0 new
Last post
yuri12
Offline
Last seen: 2 weeks 4 days ago
VESC Free
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 4 weeks ago
VESC Free
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