Quantcast
Channel: Seeedstudio Forum
Viewing all articles
Browse latest Browse all 6612

Can bus shield and Arduino Uno pins

$
0
0
Thank you for the suggestions Jacket and Cory. I have now tried (unsuccessfully) the following and tested them separately in subsequent order :
(1) Make connection between Pin 9 and CS. As in picture:

Image


(2) in library mcl_can_dfs.h I replaced #define SPICS 10 by #define SPICS 9

(3) I removed the connect between pin 10 (CAN shield) and pin 10 (Arduino), by bending pin 10, as in picture:


Image


(4) Connect Adafruit MP3 player (CS) to pin 10 of Arduino-Uno, directly, not via connector from CANshield anymore (as in picture above).


I hope you like the pictures, because I that's all I can do back for you right now. If you don't have more suggestions, I guess I have to work my way through the library code.
My starting point would be my failing Arduino statement: if(CAN.begin(CAN_100KBPS) ==CAN_OK) and I think that because of the following:

The Arduino-Serial-Monitor says at start up :
- Enter setting mode fall
- Can init fail ! (and I believe that because my sketch is not responding on CAN strings as it should)
- Adafruit VS1053 Library Test
- SD OK!
- Nu GingGong afspelen (and the start-up tune actually plays through the loudspeaker)
- Ready
and then the loop starts.
With my KvaserHS CAN bus monitor I see the CAN strings being sent, up with which the Arduino should respond by playing different MP3 songs, but it doesn't (I give one manual command per several seconds).

Your suggestions make sense. I hope you have more potential solutions.

paul.

Statistics : Posted by anton.i.belov • on Tue Apr 15, 2014 4:26 pm • Replies 10 • Views 591

Viewing all articles
Browse latest Browse all 6612

Trending Articles