This prototype allows you to collect humidity and temperature data over time, save them to an SD card and send them live via Bluetooth.
In this project, I have been collecting temperature and humidity over night. All the info saved in the SD card were formatted in a way that they can be read as a CSV file. At the same time, the prototype was sending live data to a computer via Bluetooth, where the information was used for other purposes using Processing. The Processing software is still under review and I may or may not publish it at a later time.
The idea was to use this as a first step of a larger project where I monitor the temperature and humidity of a room and based on the values I would then program the Arduino to do something (eg. if the temperature goes above a certain lever, turn on or off a relay connected to an extraction fan or a servo motor that will open a window, etc.).
Due to the fact that the temperature and humidity were stable during the whole time, I may not continue with the second phase, however I kept the code as short as possible so that there is still room for other additions. You could also consider transferring some of the logic to the Processing program to free up some space on the Arduino and only use it for I/O. For instance, according to the info I was able to find, the SD card alone requires something like 40%+ of the total available memory. If you don't need to keep a written log on SD card and you are ok with just gathering all data from the computer through Bluetooth, this will free up space for the implementation of other services such as a servo motor, etc.
A few notes about the components:
1. In the schematics I have included a generic SD card module with the standard pinout, however, in the photo you will see I have actually used a micro SD card adapter converted into a micro SD module because I didn't have one available at that time. Feel free to use either a common SD card module or if you want to try and connect a micro SD card adapter just the way I did, check out these instructions on how to make one.
2. The RTC module I have been using is a DS1307. I wasn't able to find it within those available here in the Arduino Project Hub, however I have seen there are many similar ones available in the market (for example, this one).
3. The temperature and humidity sensor I have used is a DHT11 with 3 pins. Most of the ones in the market have 4 pins and the pinout is slightly different, but they are compatible and both can be used for this project with a little variation (I believe the 4th extra one is just another GND but you may want to check the pinout on Google to be sure before adding it to your project).
Comments