E.W.A.H (Easy Weather at Home)

by Jordan Schwager in Circuits > Arduino

197 Views, 1 Favorites, 0 Comments

E.W.A.H (Easy Weather at Home)

E.W.A.H

Hi my name is Jordan Schwager and I'm currently in the 12th grade as of January 28th 2022.

This is my second instructable and my goal for this final assignment was to have the Arduino be able to read and tell you the temp from an LCD screen and then I added 4 LED's that would light up depending on the temperature.

I called this project Easy Weather At Home or the E.W.A.H

Supplies

IMG_2639.JPG

All the supplies needed for this project are listed below and are in the Elegoo Arduino Uno kit ($50 on Amazon)

  • Arduino Uno
  • USB Cable
  • Breadboard
  • 16x2 LCD Screen (displays wanted words)
  • 10K Potentiometer (controls LCD Screen)
  • DHT11 Temperature Sensor (reads surrounding temperature)
  • 1x Blue LED
  • 1x Green LED
  • 1x Yellow LED
  • 1x Red LED
  • 5x 220 Ohm Resistors (prevents pieces from being overloaded)

How to Make

image_2022-01-28_222023.png

Step by Step instructions below on how to assemble the E.W.A.H

1.Get all supplies out ready to be installed

2.Install LCD Screen on breadboard and wire to Arduino

3.Hook up Potentiometer to LCD Screen

4.Install DHT11 and wire to Arduino

5.Install LED's with resistors

6.Put code into Arduino program

7.Upload code (pasted below)

P.S make sure to do a wiring diagram before hand :)

The Code

Code

Problems

Some of the problems I encountered while doing this project are listed below with solutions:

1.The first problem I encountered were just some simple wiring issues where my potentiometer and DHT11 wouldn't stay in my breadboard. The solution to this is just being cautious when hard wiring.

2.The second problem I encountered was that the temperature sensor on Tinkercad was different from the one in my Elegoo Arduino Uno kit. So when I went use the Arduino Program I would get an error that I didn't have the correct library. I solved this by looking up a zip file download of the library I needed(DHT11). (link in work cited)

3.The third problem I encountered was that the my temperature sensor would read a value way above what it should, to be more specific it was about 1000C higher than it should have been. This is just a simple solution of telling the value to subtract 1000C before displaying on the LCD Screen.

Future Expansion

Unfortunately my bus was canceled for a whole week during this project so I did not get the chance to expand as much as others did. So instead I would like to add what I would liked to add if I had the time.

1.A case that surrounds the E.W.A.H to protect it from extreme weather conditions

2.Add a photo resistor to see how bright it is and display it on the LCD screen

3.Get the DHT11 to also read the humidity and display it on the LCD screen

Work Cited

Adafruit. (n.d.). Adafruit/DHT-sensor-library: Arduino library for DHT11, DHT22, ETC temperature & humidity sensors. GitHub. Retrieved January 28, 2022, from https://github.com/adafruit/DHT-sensor-library 

mcwhorpj. (2020, February 25). Arduino tutorial 50: How to connect and use the DHT11 temperature and humidity sensor. YouTube. Retrieved January 28, 2022, from https://www.youtube.com/watch?v=-AvF2TsB2GI 

mcwhorpj. (2020, February 11). Arduino tutorial 48: Connecting and using an LCD display. YouTube. Retrieved January 28, 2022, from https://www.youtube.com/watch?v=4BaDaGTUgIY