Arduino Forum

Using Arduino => Networking, Protocols, and Devices => Topic started by: Kris9999 on Jun 09, 2019, 06:33 pm

Title: UNO with MCP2515 <--> DUE with SN65HVD230 connecting via CAN BUS
Post by: Kris9999 on Jun 09, 2019, 06:33 pm
Hi, I have been trying to get my UNO and DUE to talk to each other over CAN bus, by using the setup in the description.

So far I have used the CAN-BUS shield library example named; "send" to send messages from the UNO to the DUE. For the due I have used a DUE_CAN example named; "CAN_Autobaud" to check if communication is ok.

The result I end up with is: the due is able to read the message that the UNO transmits for about 1,5 seconds, and the reported baudrate according to the DUE autobaud code is alway half of what the UNO CAN baudrate is set to; ex: UNO CAN baudrate=500K , DUE CAN baudrate=250K.

I have not been able to read messages the other way around,and I am very curious as to why I am getting these results.

I am quite new to CAN communication, so any tips on what I could read to gain a better understanding would also be appreciated.
Title: Re: UNO with MCP2515 <--> DUE with SN65HVD230 connecting via CAN BUS
Post by: ard_newbie on Jun 10, 2019, 06:40 am
I guess you have a 3.3V transceiver on the DUE side ? What library are you using with the DUE ?

http://www.keil.com/download/files/canprimer_v2.pdf (http://www.keil.com/download/files/canprimer_v2.pdf)

http://media3.ev-tv.me/CANDueUserManual.pdf (http://media3.ev-tv.me/CANDueUserManual.pdf)


https://copperhilltech.com/can-bus-mini-breakout-board/ (https://copperhilltech.com/can-bus-mini-breakout-board/)