Wether Moniter and Recorder
by Arduino_is_me in Circuits > Arduino
1000 Views, 5 Favorites, 0 Comments
Wether Moniter and Recorder
Well, I made a thingy where when you turn it on, the weather sensor reads the temperature and humidity and displays them on the OLED display. You can also set the time on it, and it will record the weather and the time of the weather! Then, when you plug it into the computer and open the serial monitor in the IDE, it will display the past temperature. After that, you can type 'delete' and it will delete the logs. It also monitors humidity.
Supplies
- One JMD1.3A OLED display
- Three pushbuttons
- One DHT11 weather and humidity sensor
- One Arduino Nano
- A bunch of jumper wires
- A breadboard
Add the Brains
Now, take the Arduino Nano and carefully press the pins into the breadboard in a way that they will not short-circuit. Watch the video above if you do not know how.
Add the Buttons
Now, gently press the pushbuttons into the breadboard so the pins do not break. Place them right in the middle so no short-circuiting will happen.
Add the Oled Display
Now, take your JMD1.3A OLED display and put it on the breadboard just like the image above shows.
Wire It All
Now, take two male-to-male jumper wires and connect the Nano GND to the GND power rail on the breadboard; do the same for 5V. Next, wire the weather sensor: VCC to the 5V power rail, GND to the GND rail, and the data pin to Arduino pin D2. Now, wire the OLED display: GND to the GND rail, VCC to the 5V rail, SCL to Arduino pin A5, and SDA to Arduino pin A4. Finally, for the pushbuttons, wire one end of each to GND. Then, wire the remaining pin of the first pushbutton to Arduino pin D3, the second one to Arduino pin D4, and the third button to Arduino pin D5.
Programming
Now, download the code below and open it in the Arduino IDE. Next, plug your Nano into the computer using the programming cable, and click the upload button. Make sure you install the required libraries first, such as the DHT Sensor Library (by Adafruit) and the U8g2 library.
Downloads
Now Use It
Now you can set the time on it: press button one to set the hour, press button two to set the minute, and press the third button to start recording. It will then start recording the weather and the time of the weather reading into its EEPROM memory. It will record one hour of weather data total. You can also place the sensor wherever you want.
See Weather History
After an hour of recording, you should have 60 different data points. It will show the time, then the temperature, and then the humidity because it records once every minute for 60 minutes, which makes up an hour. When you want to start a new logging session, you can type 'delete' into the serial monitor and press Enter.
For this demonstration, I only recorded for 20 minutes. and if i spelled anything wrong, PLEASE DO NOT GET MAD AT ME! real quick, got any ideas on what i should make next? leave it in the comments if you want to.