In my workshop I wanted a watch that in addition to the hours and the date I also wanted to know the ambient conditions.
The work can be done easily with Arduino, only serves an RTC, a DHT22 and BMP180
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 Arduino that correspond to the 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 (Hours, Minutes, Seconds, 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.
Display and Photoresistance
The Display is very bright, I want that when the room is dark, he 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 in place the jumper a photoresistor (that provided by the Arduino starter kit) with the increase of the light, its resistance decreases, as a result, increases the brightness of the display, while, in low light conditions, the resistance is very high and the brightness decreases.
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 pin interested in this feature are:
- Pin 6 = menu
- Pin 7 = +
- Pin 8 = -
My laboratory is located in the basement, and when I'm working I do not feel if someone comes to visit me, so I thought about adding an alarm with a PIR sensor, a 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, go to instructables
You have been warned !
When you want to visit me…
Warn me !!!