Pages: [1]   Go Down
Author Topic: CAN BUS??  (Read 504 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 208
Posts: 12940
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 208
Posts: 12940
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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/
Logged

Pages: [1]   Go Up
Jump to: