Go Down

Topic: CAN BUS?? (Read 611 times) previous topic - next topic

Hello all!

I am trying to send a simple message across a CAN BUS and have a question. Do I need a CAN Interface? I have a simple message the identifies the controller I want to listen then tells it what to do. Can I not simply connect the TX and RX of the Arduino to the Can HI and CAN LO and send the data byte?

Coding Badly

Hello,

Do I need a CAN Interface?


Yes.

Quote
Can I not simply connect the TX and RX of the Arduino to the Can HI and CAN LO and send the data byte?


No.

Ok now. I have a mcp2515 to work with. The message I need to send is pretty simple. I need to send ($21,$C0) do I just simply us the SPI interface and say hey Arduino when I push the buttons tell mcp2515 to send $21,$C0 ?

Coding Badly


You are far better off to find and use a library.  This would be a good place to start...
http://arduino.cc/blog/2010/12/16/can-shield-and-a-mcp2515-library/

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy