In this tutorial we are going to monitor the variation in the temperature and humidity in a day and storing the data in SD card. Basically, we are extending humidity sensor further and store data in a SD card in .txt and .csv format. It is very interesting feature of evive that we can store data in it. Here the setup is simple. We are extending the humidity sensor circuit and will insert SD card in evive SD card slot as shown in the figure.
RTC (Real Time Clock):
A real-time clock (RTC) is a computer clock (most often in the form of an integrated circuit) that keeps track of the current time. The term real-time clock is used to avoid confusion with ordinary hardware clocks which are only signals that govern digital electronics, and do not count time in human units.
evive has an inbuilt RTC IC, PCF8563. The IC gets power from the internal battery of evive, so it can continue to keep time while the external source of power is off or unavailable.
- 1 X evive
- 1 X KY-015 Humidity sensor
- 4 X male to male jumper wires
- 220-ohm resistor
- SD card
Setting up of the circuit:
- + (Middle) pin connection of the sensor attached to +5V
- GND connection of the sensor attached to GND (ground)
- S connection of the sensor attached to digital pin 2.
The circuit diagram for the weather monitoring is shown below.
The arduino code is shown below.
The data record and graph for the weather monitoring are shown below.