You are here

Can bus and Arduino

3 posts / 0 new
Last post
Snabelost
Offline
Last seen: 2 months 1 week ago
VESC Free
Joined: 2022-08-24 10:05
Posts: 22
Can bus and Arduino

Hello,

I am slowly continuing my inboard dual motor row boat project.

I have upgraded from Flipsky Vesc to two Trampa VESC 6 HP. Ringht now I am controlling the motors using two potentiometers just so i can test in water. It works quite good. There are some intermittent interference or voltage spikes on the 3.3 Volt so the motors spins up sometimes without moving the potentionmeters. However, i can live with that for the moment.

My question is regarding Can bus. To control two vescs independently from one Arduino Can bus is recommended. So what library is recommended for that?

I haven't found one library complete with examples or guides. Is there any guidelines out?

Anyone who have done this?

/Magnus

Snabelost
Offline
Last seen: 2 months 1 week ago
VESC Free
Joined: 2022-08-24 10:05
Posts: 22

A photo of my test rig.

20230610_190144777_iOS.jpg

Snabelost
Offline
Last seen: 2 months 1 week ago
VESC Free
Joined: 2022-08-24 10:05
Posts: 22

Another question:

Is it best to connect the Arduino to both VESC's using Can Bus or should i use UART to the first one and then use CAN between them?

/Magnus