1Sheeld Data Logger Shield Vs. SparkFun SD card Shield

Too many times in the past I wanted to save my sensors’ readings in a file for future analysis, and I didn’t find an easy way till the data logger shields came up. One of the most reliable shields in the market is the Sparkfun data logger shield, and today I will make a detailed comparison between it and our 1Sheeld data logger shield.

Arduino Data logger shield

Now let’s go in a step by step tutorials for each shield till we can log an LDR sensor readings in a .csv file.

1- SparkFun Data Logger Shield

Arduino Data logger shield
This Data logger shield gives you the ability to log any text data you want to an SD card in any text format you like.
The shield comes unsoldered so you should solder it after buying R3 stackable headers, it also comes without SD card so you should get one with an adaptor.
This SD card is communicating with the Arduino board through SPI protocol so there are 4 reserved pins in the shield for the SD card communication which are (8, 11, 12 and 13).

After getting the needed materials to run the shield now we are ready to go with our step by step tutorial.

Step 1: Adjust the shield

As I said before that the shield comes unsoldered so it’ the time to solder it and of course you will need a soldering iron and a solder.
Arduino Data logger shield
Voila! Here it is after soldering the headers.

Step 2: Mount the shield over the Arduino board

Arduino Data logger shield
In my case I’m using the Arduino UNO board so please while mounting the shield don’t push it hard to the Arduino board cause it will hit the USB interface and may break the board.

Step 3: Get an SD card

uSD card
Get an SD card like we mentioned above and format it in any FAT format, it’s a default for the SD cards to be formatted in FAT but you should reformat it cause if you don’t the SD card won’t work probably with the shield.
SD card FAT formating

Step 4: Get the libraries

The shield needs 2 main libraries to run which are:

  1. SPI: It’s the library used to configure the SPI port of the Arduino to communicate with the SD card module and it is also embedded in the Arduino IDE.
  2. SD: This library is used to configure the SD card module itself and also comes by default with the Arduino IDE.

Step 5: Write the code

This code actually is an example from the SD library, you can find it at File >> Examples >> SD >> Data logger
But I made some simple changes like the chip select which was on pin 4 and now I made it on pin 8 cause the chip select on the shield is configured on this pin.
The LDR is configured on pin A0 and am only taking that reading once the system powered on and start logging it in a .csv file named readings on the SD card.

 

Step 6: Build the hardware

 

Arduino Data logger shield The hardware consists of:

  • Arduino board
  • SparkFun Data logger shield
  • 9v battery
  • 10kohm resistance
  • 5 jumper wires
  • Breadboard

2- 1Sheeld Data Logger Shield

Arduino Data logger shieldAnd now it’s our Data logger shield time!

For anyone who does not know about 1Sheeld, it is a board that connects your smartphone’s sensors and peripherals to the Arduino, allowing your smartphone to control Arduino and Arduino to control anything on your phone.

The most important thing in 1Sheeld is that you can make a lot of amazing things with only 1 line of code!

So, here we are going to use the data logger shield of the 1Sheeld to log a sensor’s readings that collected for an hour and repeat the same operation every new hour begin.

You can get your 1Sheeld on Amazon.

You will find two versions of it the 1Sheeld for Android phones and the 1Sheeld+  for iOS and Android phones from 4.3 and above.

Now, let’s get started with the 1Sheeld!

Step 1: Adjust 1Sheeld

1Warning! If you have an Arduino that works on 3.3V then you must make your 1Sheeld to work on the 3.3V mode since it may damage your Arduino.

Step 2: Mount the 1Sheeld over the Arduino board

2

In this tutorial am using the Arduino UNO board in case you are using a different Arduino board just check this tutorial.

Step 3: Install 1Sheeld library

git-lib
Download the 1Sheeld library from here and after unzipping it, copy the folder to your libraries directory.

Or you can manage any libraries from Arduino’s IDE .. just click Sketch >> Include library >> Manage libraries >> type “The library name” >> then click install and you are good to go.

Step 4: Get the mobile app

1sheeld-app

Download the 1Sheeld mobile app from the website or you can visit Apple play store or Google play store to get the app.

Step 5: Write and upload your sketch

This code briefly is using two shields from the 1Sheeld, the data logger shield and the Clock shield cause am using this code to
open a new file to log the readings in every hour in a file named LDR values and log the readings in a column named Brightness.

After writing the code, make sure to set 1Sheeld UART switch to the upload mode before you upload your code on Arduino.
3

After uploading the code, the 1Sheeld is not ready to work until you switch it back to the operating mode.

Operating mode is turned on when the UART switch is pushed towards 1Sheeld logo.

4


Step 6: Use the 1Sheeld application

Arduino Data logger shield - clock shield (RTC)

Open 1Sheeld application on your Android phone or iOS device.
The application will first scan over bluetooth for your 1Sheeld, it will take a few seconds and the phone will find it.
Once it appears on your screen as 1Sheeld #xxxx, you will be required to enter the pairing code (the default pairing code is 1234) and connect to 1Sheeld via Bluetooth.

Step 7: Access the shield

Arduino Data logger shield

Select the shields you would like to use in your Arduino sketch and press on the multiple shields icon at the top right of the app.

In this case, use data logger shield and the clock shield.

Our YouTube channel is full of tutorials and you can find the Data Logger Shield full tutorial right there also the 1Sheeld website has lots of amazing Arduino projects that can gives you great ideas.

Step 8: Setup the hardware

1sheeld Arduino Data logger shield

If you noticed you will find that it’s slightly the same hardware as we made for the Sparkfun shield except that we don’t need to get an SD card, I only add my smartphone to log the readings into it.

And now let’s summarize these comparison briefly in this table

P.O.C SparkFun Data logger shield 1Sheeld Data logger shield
Preassembled No Yes
Reserved Pins 4 2
 Creating all txt file Yes Just .csv files
 Observing data remotely No Yes
Price $15 $55
 Adding columns with names No Yes
 Showing the time of data logged No Yes
The file name could be long No (Just 8 characters) Yes

At the end of this comparison I hope that i had covered all the needed points and of course, if you have any comments it’s a pleasure to leave it here just under the blog :).

Check out my other comparisons:




Related Blogs

Arduino Robotics

Arduino Robotics Series, from a car to a robot arm

Arduino keeps standing out from the crowd of all-around development boards due too its ease of use and budget price. As a result, this has enabled almost anyone to get his own idea into life no matter how crazy or even useless to the whole world it was, except for its maker! Also, it has …

Arduino Robot Arm

How to build an Arduino Robot Arm placed on RC Car

Arduino robots are always funny and definitely more enjoyable when combined with robotic arm! And today, I will walk you through the making of a simple Arduino Robot Arm that’s made of cardboard and how you can attach it over your Arduino Bluetooth RC Car / Robot that you have made so far through this series. …

Arduino Line Following Robot

How to build an Arduino Line Following Robot using Cardboard

Arduino Line Following Robot is one of the easiest and most well-known projects that anyone can make to learn the basics of programming, electronics, and mechanics all in one project. It’s known that this project is common for most of the makers and tech students and today I am going to give it a revisit …

Arduino Obstacle Avoiding Robot

How to build an Arduino Obstacle Avoiding Robot using Cardboard

Back again with another Arduino Bluetooth RC Car tutorial but with an advanced feature that makes your car autonomous by adding ultrasonic sensors to the RC Car you have made before!. Yeah, I know that you may have seen other tutorials using ultrasonic to make the car/robot avoid obstacles ahead, but I am going to …

Arduino Bluetooth RC car

How to make an Arduino Bluetooth RC Car using Cardboard

  Cardboard crafts are one of the most popular and easy to make DIY stuff. Mixing this with the unmatchable enjoyment of RC Cars and the ease of using Arduino, I am going to show you how to make a Cardboard Arduino Bluetooth RC car that you can control via Bluetooth from your smartphone.  …

Arduino Security Camera

Arduino Security Camera System (Arduino Home Hacks #4)

Arduino Security Camera Have you ever wanted to check your home in real time? Afraid that maybe someone has stormed in, don’t remember if you shut the door or not or maybe wanna check if your Hyper-energetic dog has broken any of your dishes AGAIN!! 🙂 Then this is the perfect place for you cause today …