Data Logger Project using an Arduino

This is a data logger I made for my class. I couldn’t find any instructions that I could use to make the Arduino record the light brightness and the temperature. Then display the temperature and the light value on the LCD then Save it to the SD card
Arduino Data Logger Project
Requirements
Here are the requirements for the Datalogging shield project (project #1):

  • Collect data from at least 2 sensors
  • write the data at regular intervals to the SD card, collect it in a comma separated variable file (*.CSV) that can be imported into excel.
  • display the data to your LCD screen
  • have the background color of the screen change somehow. Either from the data being collected (green background for nominal values, red for warning), or through the use of a button.

Step 1: Parts

Here are what I used for parts. From my experience if your trying to follow instructions while learning and are using different parts it is much harder.

If you don’t want to buy the stackable header pins for the Datalogger shield you can use some way like how I modified the Datalogger shield in step 2 so that it could be placed in the bread board.

Datalogger shield
stackable header pins
LCD Display

Experimentation Kit for Arduino (Uno R3)
or
Arduino Uno
Photo cell
Analog Temperature sensor

Step 2: Modify the Data logger

If you have the stackable header pins on the data logger then skip this step. These are the pins that are needed for the SD card to work. you can solder wires to the board or follow my pictures.
3v, 5v, Gnd, A4, A5, 13, 12, 11, 10.

Step 3: Wiring Diagram

Here is the wiring diagram for my data logger. It is drawn as if you are using the stackable header pins. But the arduino pins that the data logger use are marked also.

Here is a table for where each lcd pin goes for my code to work.
the LCD pin corresponds to the Arduino pin below it. If it appears out of alignment copy it to notepad.

1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,14,15,16,17,18,  lcd
g,+5,pt, 7, g, 8             , 9, 4, 2, 6,+5, G     5,   arduino final change

Arduino Data Logger Project circuit

Step 4: Libaries

For the code in the next step to work you will need some libraries added to the Arduino folder. Go to the hyperlinks to get them. well there is just one library not installed already.

LiquidCrystal  – Already installed
SD  – Already installed
Wire – Already installed
RTClib – HERE

[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]Experimentation Kit for Arduino (Uno R3)
or
Arduino Uno
Photo cell
Analog Temperature sensor[/box]

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top