I am trying to set up a CAN-bus with its two nodes on the same Arduino. By Using an Arduino DUE without any transceivers. As my first experiment, I want to send a message from one CAN unit to the other. But so far I have not been successful to see any signal on the bus. (I am using an Oscilloscope)
Here is the detail of my effort:
I have used this(1) library, and I want to run the CAN_EchoTest example(2). As for the physical layer, I have created a circuit, according to a Method that is suggested here(3), here(4), and here(5). I set the transmission rate to 5Kbps, (lowest possible value provided by the library), to make sure that noise and propagation effects are minimal.
I implemented this mentioned Method to the Arduino board, using the Board's Schematics(6). In other words, I assumed that:
CANTX1 in the schematics, refers to PIN with the label '53' on the board.
CANRX1 in the schematics, refers to PIN with the label 'DAC0' on the board.
CANRX0 in the schematics, refers to PIN with the label 'CANRX' on the board.
CANTX0 in the schematics, refers to PIN with the label 'CANTX' on the board.
And I assumed the library that I am using configures the mutual PINS (DAC0 and 53), in a way that CAN controllers will be using them exclusively. I am not sure about the pair of diodes that I used: Vishay SS34A.
what is missing/wrong? Please be patient regarding any rookie mistakes. I can Provide further information if requested.
Thank you in advance
(1) github.com/collin80/due_can
(2) github.com/collin80/due_can/tree/master/examples/CAN_EchoTest
(3) www.mikrocontroller.net/attachment/28831/siemens_AP2921.pdf
(5) www.keil.com/download/files/canprimer_v2.pdf
(6) www.arduino.cc/en/uploads/Main/arduino-Due-schematic.pdf