Project showcase

Weather Clock © LGPL

A weather clock with Arduino, RTC, DHT22 and BMP180.

  • 3,462 views
  • 4 comments
  • 15 respects

Components and supplies

About this project

In my workshop I wanted a clock that, in addition to the hours and the date, also displayed the ambient conditions. The work can be done easily with just Arduino, an RTC, a DHT22 and BMP180.

Protocol I2c

The DISPLAY, RTC and BMP180 communicate with Arduino through the I2C protocol and the library wire. All three elements must be connected in parallel to the respective SDA and SLC contacts that correspond to the Arduino pins A4 and A5.

To facilitate the work, and not to confuse the contacts I used the wires with the same colors. The RTC module is a "clock" that, by communicating with Arduino, counts the real time (hour, minute, second, day, month and year). The RTC is supplied by a buffer battery that, when the power is off, continues to calculate the passage of time. The BMP180 Module (Barometric Pressure / Temperature / Altitude Sensor) is a high-performance sensor that provides temperature, barometric pressure and altitude.

Libraries: RTC, DHT, LiquidCrystal_I2C, SFE_BMP180

Display and Photoresistance

The display is very bright. I want it such that when the room is dark, it decreases the brightness.

The I2C module for the display allows you to adjust the contrast and the jumper can turn off the backlight LED. But if we put a photoresistor (provided by the Arduino starter kit) in place of the jumper, with the increase of the light, its resistance decreases, and as a result increases the brightness of the display. Otherwise, while in low light conditions, the resistance is very high and the brightness decreases.

Buttons

The buttons are used to adjust the time, since the RTC has a margin of error of one minute per month. It should to be constructed a small Pull Down circuit for each button.

The Arduino pins involved in this feature are:

  • Pin 6 ๐Ÿ † menu
  • Pin 7 ๐Ÿ † +
  • Pin 8 ๐Ÿ † -

Alarm

My laboratory is located in the basement; and when I'm working, I do not know if someone comes to visit me, so I thought about adding an alarm with a PIR sensor, an LED and a BUZZER.

  • The PIR sensor needs to be powered at 5 volts supplied by Arduino and connected to pin 2.
  • The LED is connected to pin 13.
  • The buzzer to pin 9.

For the construction of the box, check this tutorial.

You have been warned!

When you want to visit meโ€ฆ warn me!

Schematics

Final results
Img 2031 sfocdj57gl
Eletric Scheme
Weater clock 3zmerocdiz
Fritzing Scheme
weather_clock_HS4A6SryCe.fzz
Fritzing Scheme Jpeg
Weather clock2 bb vo2qcgsevc

Code

Weather_Clock

Comments

Similar projects you might like

LED Cube

Project tutorial by Praditha Alwis

  • 163 views
  • 0 comments
  • 3 respects

Makers (Cubecon) #1 Infrared Transmit & Infrared Receive

Project in progress by Alpha

  • 70 views
  • 0 comments
  • 3 respects

DHT11 Temperature/Humidity Sensor

Project tutorial by Zach Haslam

  • 190 views
  • 0 comments
  • 4 respects

Windows PC Lock/Unlock Using RFID

Project tutorial by Prasanth K S

  • 6,279 views
  • 6 comments
  • 28 respects

DINternet IoT Controller

Project in progress by Craig Hissett

  • 212 views
  • 0 comments
  • 3 respects
Add projectSign up / Login