HELP - DATA LOGGING SHIELD

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
atagger
 
Posts: 34
Joined: Wed Dec 14, 2016 4:44 pm

HELP - DATA LOGGING SHIELD

Post by atagger »

Having some weird problems with the data logging shield.

I tried formatting the card fat 16 and also fat 32, set the chipset to pin 10. Also tried pins 4 and 8, no luck. The serial monitor outputs at times that it found "SD1" but can't open the partition, the rest of the time i get the:

"Initia
Initializing SD card...initialization failed. Things to check:
* is a card inserted?
* is your wiring correct?
* did you change the chipSelect pin to match your shield or module?
"

The clock on the board also is not working with the pcf8523 sketch either, but works with the softrtc sketch.
I was getting weird problems like the clock not updating, the year being transposed, and items like the hour being 3 digits long.

I'm running an arduino one stacked in this order > with a motor shield, data shield and lcd screen + keypad shield and stacking headers.

What could be the problem?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: HELP - DATA LOGGING SHIELD

Post by adafruit_support_mike »

It may be a connection problem. Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
atagger
 
Posts: 34
Joined: Wed Dec 14, 2016 4:44 pm

Re: HELP - DATA LOGGING SHIELD

Post by atagger »

Hi, thanks for the help. I attached photos with captions below. The clock works properly, with softRTC. I am also on OSX and have tried re-formatting the cards via a number of methods through the terminal, and have tried two cards. The computer confirmed both FAT16 and FAT32, neither work, and I can't write to the card. On occasion it detects the card as "SD1" and says "wiring is correct" but it can't access the partition.

If it's a connection, what would I look at? The stacking pins? This board came pre-assembled, I only soldered on the stackers.

Back side of data logging board:
http://www.andreastagger.com/aqua/ada/cpu1.JPG
3/4 view:
http://www.andreastagger.com/aqua/ada/cpu2.JPG
Data logging shield:
http://www.andreastagger.com/aqua/ada/cpu3.JPG
Top view:
http://www.andreastagger.com/aqua/ada/cpu4.JPG

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: HELP - DATA LOGGING SHIELD

Post by adafruit_support_mike »

Your soldering looks good.

Try disconnecting the other shields and just use the datalogger. Do you get the same problems with the SD card?

User avatar
MainaEdward
 
Posts: 1
Joined: Thu Dec 29, 2016 6:33 am

Re: HELP - DATA LOGGING SHIELD

Post by MainaEdward »

Hi am looking for a shield that can log windspeed with a display.kindly assist in choosing the right hardware for this project.

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: HELP - DATA LOGGING SHIELD

Post by Franklin97355 »


User avatar
atagger
 
Posts: 34
Joined: Wed Dec 14, 2016 4:44 pm

Re: HELP - DATA LOGGING SHIELD

Post by atagger »

adafruit_support_mike wrote:Your soldering looks good.

Try disconnecting the other shields and just use the datalogger. Do you get the same problems with the SD card?
I unplugged all the other shields and tried it again. Same problem with the cardinfo sketch not working, and the pcf8523 sketch registering the incorrect time. The time works correctly with SoftRTC, but not the pcf8523. Is is it possible the board is defective - seems weird that the SD doesn't work and the pcf8523 won't work ? This is the sketch I am running for the SD card portion:

Code: Select all

#include <SD.h>
#include <SPI.h>

const int chipSelect = 10;

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(9600);


  Serial.print("Initializing SD card...");
  pinMode(10, OUTPUT);
  //digitalWrite(13, HIGH); // davekw7x: If it's low, the Wiznet chip corrupts the SPI bus


  // see if the card is present and can be initialized:
  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or not present");
    // don't do anything more:
    return;
  }
  Serial.println("card initialized.");
}

void loop() {

}









User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: HELP - DATA LOGGING SHIELD

Post by adafruit_support_mike »

I noticed one thing related to the RTC: it looks like your Arduino doesn't have the additional SDA and SCL connections next to the USB jack. The RTC uses those, and there are jumpers on the back of the Shield near A4 and A5 that need to be closed for older Arduinos.

Try closing those jumpers with solder and see if the RTC starts talking.

User avatar
atagger
 
Posts: 34
Joined: Wed Dec 14, 2016 4:44 pm

Re: HELP - DATA LOGGING SHIELD

Post by atagger »

If I bridge that jumper do you think the SD card will work?

User avatar
atagger
 
Posts: 34
Joined: Wed Dec 14, 2016 4:44 pm

Re: HELP - DATA LOGGING SHIELD

Post by atagger »

Also, here's some photos of the arduino USB and the back of the data logging rev 2 shield. Which jumpers am I supposed to solder on the back?
Attachments
IMG_2841.JPG
IMG_2841.JPG (64.74 KiB) Viewed 1023 times
IMG_2842.JPG
IMG_2842.JPG (91.68 KiB) Viewed 1023 times

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: HELP - DATA LOGGING SHIELD

Post by adafruit_support_mike »

Top photo, lower right corner: they're labeled 'SDA' and 'SCL'.

User avatar
atagger
 
Posts: 34
Joined: Wed Dec 14, 2016 4:44 pm

Re: HELP - DATA LOGGING SHIELD

Post by atagger »

I ordered a new arduino (r3) for another project that has the scl and sda pins. I soldered a new 10 pin header on the 8-13 side of the data logger shield so the scl and sda are connected on the new arudino. I re-ran the sketches on the arudino r3 board and I am still having the exact same problems. The card fails to initialize and the pcf8523 rtc sketch still does not register the correct time.

User avatar
atagger
 
Posts: 34
Joined: Wed Dec 14, 2016 4:44 pm

Re: HELP - DATA LOGGING SHIELD

Post by atagger »

UPDATE:

I got it to work! I bridged the five jumpers on the back of the data logging card (SCL, SDA, MOSI, MISO and SCK) and rechecked all the solder joints on my headers. As soon as a I bridged those five jumpers the red light started blinking as soon as I put the card into the slot. Haven't tried it on the Arduino rev3, but assume it would work. THANKS!

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: HELP - DATA LOGGING SHIELD

Post by adafruit_support_mike »

Glad to hear it's working for you. Happy hacking!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”