CAN bus mcp2515-spi communication

Status
Not open for further replies.

Sadhana Rajagopal

Newbie level 1
Joined
Dec 4, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
16
Hello,

I am using this PICAN board for my project **broken link removed**

I would like to write ultrasonic sensor values to the can bus which in turn communicates to the second node..

I have tested spi loopback using this code **broken link removed**

When i connect the can bus and run this spi test it prints 0.. which shows or i assume mcp2515 has to be implemented which takes the data from spi(but im not sure)..

mcp2515(from microchip) and mcp2551 are inbuilt within the PICAN board.. so, the idea of implementing mcp2515 code TRUE? in order to get data from spi and if so how to proceed ?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…