Arduino and CAN bus module not in operation

Guys,
Please find attached photo.
Im working with Arduino UNO + CANshield V3(MCP2515).... all was going very well... From today...ON MCP2515 module only power LED is on Rx Tx lEDs are not blinking....
program as below...
Entering configuration mode failure... Error Initializing Mode Failure... Shown in Serial Monitor...
Please help to trobleshoot issue......

#include <mcp_can.h>
#include <SPI.h>
//#define CAN_500KBPS 16
#define MCP_16MHz_1000KBPS 18

MCP_CAN CAN0(10); // Set CS to pin 10

void setup()
{

Serial.begin(115200);

// Initialize MCP2515 running at 16MHz with a baudrate of 500kb/s and the masks and filters disabled.
if(CAN0.begin(MCP_ANY, CAN_1000KBPS, MCP_16MHZ) == CAN_OK) Serial.println("MCP2515 Initialized Successfully!");
else Serial.println("Error Initializing MCP2515...");

CAN0.setMode(MCP_NORMAL); // Change to normal mode to allow messages to be transmitted

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.

Hi, @krushna137

To add code please click this link;

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

Please post the full code, voltage reading on the CAN H/L lines, confirm the neutrals of both power systems are tied together, and post any oscilloscope or logic tester results to make sure the pattern isn't malformed.

Is Arduino CANShield Can not initialised/ cofigure with arduino?

Voltage difference between 2 lines are 0V... about program, It is compiled and uploaded to board... system was ran smooth.. but mentioned error is occued after 1 month later....

Hi,
Can you please post link to specs/data of the CanBus Shield?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

It is CANShieldV3... MCP2515 IC mounted on it

There are many manufacturers of that description, a link to the one you have would be good.

Are you using the CanBus Shield Library that was written for it?
Have you tried one of the examples for that shield, or compared your code to theirs?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

Dear, It was on working mode.... already I configured its library and its was in continuously working condition upto sunday.... Right now it is not working.. tx rx stop... intialising error occured

Hi,
Are you using a UNO?
If so is it one with the metal canned USB socket?
If so, is the metal can of the socket shorting out on the underside of the Can Shield?

Tom.. :smiley: :+1: :coffee: :australia:

Ohhh God... It means my hardware is damaged.....! Visually no any hardware damage found...
Which one is better arduino for it...?

Hi,
It may not, just make sure there is no contact, if there is put a couple of layers of tape overt the USB socket can.

Tom... :smiley: :+1: :coffee: :australia:

Okay... I will try....Thank you for help...!!!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.