The following tutorial will guide you through the process of building your own data logger for reading temperature and humidity and storing it to the SD card at any given interval. We will use one of the most common Arduino boards for this project: the Arduino Uno. This tutorial is aimed for beginners who are new to the Arduino platform. Note: If you re not familiar with how a breadboard works, check out a simple . 6. Our first step in setting up the hardware will tackle the data storage problem of existing dataloggers.
9 Visual formatting model World Wide Web Consortium
We will store our data in a microSD card of any capacity. For this, we will use a microSD shield for the Arduino Uno. The SD card shield saves data files in. Csv format and the data is in plain text. Due to this, the file size is extremely small, and using a microSD card even as small as 6 GB should be sufficient to store many years worth of data.
The microSD card shield from SparkFun comes with 9 headers (two 6 pin and two 8 pin headers). These must be soldered to the shield before it can be used. After soldering the headers, we can just mount the shield on top of the Arduino Uno. It is interesting to note that the pins on the SD card shield are the same pins on the Arduino Uno. The only pin that the shield actually uses is the digital pin 8.
Relative clauses English Grammar EF
If you re using the microSD card shield and the SD card library, Do not use this pin for anything else. 7. The DeadOn RTC DS8789 Breakout is an extremely accurate Real-Time Clock which helps us to keep track of time while recording data. It has a slot for a 67mm coin cell battery, which can provide power to the clock in the absence of external power. This RTC comes with its own library which needs to be installed in your computer (explained in Step 8).
The date and time have to be initialized once using a very small block of code, which will be explained in Step 9 of this tutorial. Alternatively, you can also use the slightly less accurate, but cheaper DS6857 RTC. There are seven pins in total on this RTC. Each pin has a unique label right next to it. These will help us when we connect the RTC in the circuit.
The pins marked SS, MOSI, MISO and CLK can be connected to any of the digital pins on the Arduino. Take note of the actual pin number on the arduino, as we will be using them in our code to set up the RTC. The pin marked SQW can either be connected to ground or can be ignored. (Note that connecting the ground and power pins incorrectly may reset the time on the RTC and you may need to set it up again. )8.
For measuring the temperature and relative humidity, we will use the DHT-77 (also called RHT58) sensor. This is a digital sensor that has great value for money.