Pages: [1]   Go Down
Author Topic: Adafruit Data Logging Shield with DUE ... everything's OK!!!  (Read 2680 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Well ... from analog to digital step has been short :) Happy Arduino everybody!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, first of all greetings to all ... I'm new of the forum.
Well I decided to write this post after I spent lot of time searching on the net to make adafruit data logging shield function on DUE.
This is a little sum of found info ... I hope that could help someone else find a rapid solution.
Ok, let's start!

1. Connect the shield to DUE
2. First result ... RTC works perfectly, just use Adafruit library ... https://github.com/adafruit/RTClib/archive/master.zip
3. Don't spent much time trying to make SD functioning ... there is no way you can be successful 'cause DUE uses a dedicated SPI connector hided by shield
4. Now all you need is a bit of soldering work, just to connect right pin from SPI connector to digital pin on DUE
5. from MOSI pin on SPI  -->  to 11 on DUE (well ... 11 pin replicated on the shield)
6. from MISO pin on SPI  -->  to 12 on DUE
7. from SCK pin on SPI  -->  to 13 DUE
8. well done you ended your work! smiley
9. DON'T USE SD ADAFRUIT LIBRARY ... THAT PROVIDED BY LAST IDE WORK FINE !!!
10. try functionality of connection by loading Card Info example from SD folder on File menu of Arduino IDE
10. be sure to set right value on chipSelect const as follow ... const int chipSelect = 10;
11. upload and open serial monitor at right baud rate

See images for details

Happy Arduino everybody!

Tesone
 

 


* IMG_20131127_214456.jpg (2439.71 KB, 3264x2448 - viewed 345 times.)

* spi_connector.jpg (29.01 KB, 312x380 - viewed 133 times.)

* screenshot.jpg (109.38 KB, 1152x648 - viewed 136 times.)
« Last Edit: November 29, 2013, 11:09:51 am by tesone » Logged

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

Hello, I tried to install the shield with Arduino Due but i still have problems...
I found the following in the http://learn.adafruit.com/adafruit-shield-compatibility/data-logging-shield-assembled
Are you sure about SPI and not ICSP ???
Thank you very much


Arduino Due
The RTC is compatible (when using latest library). Accessing the SD card is possible with the addition of some jumper wires, but difficult due to the fact that the shield obscures the ICSP header where these wires must be connected.

    Add jumper wire from pin 11 on shield to ICSP pin 4.
    Add jumper wire from pin 12 to ICSP pin 1.
    Add jumper wire from pin 13 to ICSP pin 3.

Use the standard SD library (not the Adafruit fork). Do NOT #define SOFTWARE_SPI or MEGA_SOFT_SPI in the library.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
Well ... from analog to digital step has been short :) Happy Arduino everybody!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I had same problem at the beginning.
I've searched a lot on the net and at the end I realised SPI was the right connector.
Many of the resources available on the web refer to Arduino UNO ... not right for our purpose.
I found an interesting page here

http://21stdigitalhome.blogspot.it/2013/02/arduino-due-hardware-spi.html

where it's explained in details SPI connection between host (DUE) and slave.
I tried on my board and everything's gone right.
I was a bit worried about which connector to use, but at the end I tried SPI succesfully.
If you want I can post other images of my DUE with connections. I used female strips to reach Adafruit board, soldering male side of the strips to the board and than straight to right pins.
Referring to Adafruit tutorial I soldered pin 11 for MOSI, 12 for MISO and 13 for SCK, searching right pin on SPI connector as indicated on the link above.

I don't know if ICSP could bring to same result, but SPI has been right in my case.

Regards

Tesone
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
Well ... from analog to digital step has been short :) Happy Arduino everybody!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Reading better Arduino DUE specs I found this

SPI: SPI header (ICSP header on other Arduino boards)
These pins support SPI communication using the SPI library. The SPI pins are broken out on the central 6-pin header, which is physically compatible with the Uno, Leonardo and Mega2560. .........

DUE SPI header has same (not only) functionality as ICSP on other Arduino board!

Tesone
Logged

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

Thanks for sharing the info. I followed your instruction. It is still not working for me and would appreciate your help. I have Arduino IDE 1.5.5 running the sample CardInfo code. Other than the 3 pins on the SPI connector that have to be connected to the pin 11, 12, 13 as indicated and shown in the picture. What about the pins of the shields that are mounted on the Arduino Due boards? Should they all be connected even for the pins 10 to 13? Anything else I could be missing that prevents it from functioning?

Thanks so much.
Logged

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

Hello tesone,
There is something wrong with the shield we had. I ordered a new one and your instructions work perfectly well. Thanks again!

George
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
Well ... from analog to digital step has been short :) Happy Arduino everybody!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Geroge, sorry I reply only now.
I'm happy you solved the problem.
I searched a long on internet and made many tries and finally all has gone right for me.
Good Arduino! smiley

Tesone
Logged

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

Hello,

Sorry for this question that might be stupid as I am just a beginner but Arduino Due pins 12 and 13 anre DAC0 and DAC1 ones.
So, it means that these DAC features won't be available any more with this SD Card shield ?

Thierry
Logged

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

Oups, OK, my mistake  smiley-roll-sweat

I just pung the shield to the wrong Arduino's connectors..........stop laughing !

Not that I got that and soldered the 3 wires and edited the lib file, it is working alright.

Cheers,
Thierry
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

When I connect pin 13 to pin to pin 2 of the SPI (red wire in the photo) the "L" LED on the board goes LOW. And the data logger shield is not functioning. Is the LED supposed to go low? I'm using Arduino IDE 1.5.6 and a DUE.

« Last Edit: May 14, 2014, 12:47:41 pm by zenseidk » Logged

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

This modifcation might be a bit dangerous to your Due.   Basically what you do is connect SPI signals to other IO pins of the same micro directly.   It is probably ok as long as the IO pins remain in high impedance state, but if you accidentally set them to high or low levels you may encounter problems.    It is something you should not do in hardware.

I would recommend that if you really want to use the Adafruit Datalogger shield on a Due, then you should at least cut pin 11, 12 & 13 of the shield.   Or at least run the MOSI, MISO and SCL through a 1K resister.
Logged

Pages: [1]   Go Up
Jump to: