Microcontroller Projects: Fridge Temperature and Humidity Indicator Using Arduino

Circuit diagram of the transmitter unit (1)

We can measure temperature and humidity inside the fridge using a normal temperature-humidity indicator but relative humidity (RH) could be inaccurate in that case. The moment the fridge door is opened, RH will shoot up due to ingress or egress of moisture in the surroundings.

The small sniffer device, described in this article, picks up temperature and humidity from inside the fridge and transmits on an RF link to a nearby receiver unit. The receiver unit checks the received code, identifies the right sniffer device and displays live temperature and humidity. Author’s prototype is shown in Fig. 1.

Author’s Prototype

Author’s Prototype

Parts list 3

Circuit and working of Fridge Temperature and Humidity Indicator 

Circuit diagram of the transmitter unit is shown in Fig. 2. It is built around ATmega328P microcontroller (MCU) (IC1) with Arduino Uno bootloader, AM2302 digital temperature and humidity sensor connected as SENSOR1 to CON1, 433MHz transmitter (TX1), 5V zener ZD1, 3.3V zener ZD2 and a few other components.

Low power consumption of the transmitter is the essence for long operating hours of the gadget. For that, the conventional regulator is replaced by 5V and 3.3V zener diodes, with 330-ohm resistor R3 and 100-ohm resistor R4 in series to reduce current consumption.

Circuit diagram of the transmitter unit (1)

Circuit diagram of the transmitter unit

Circuit diagram of the receiver unit

Circuit diagram of the receiver unit

Circuit diagram of the receiver unit is shown in Fig. 3. It is built around another ATmega328P MCU (IC2) with Arduino Uno bootloader, voltage regulator 7805 (IC3), 16×2 LCD character module display (LCD1), 433MHz receiver (RX1) and a few other components. The receiver checks the code word sent by the transmitter unit and displays temperature and humidity on the LCD.

If the transmitter stalls or its power supply gets interrupted, there is no way for the receiver to know whether the incoming signal is valid. To circumvent this problem, a counter has been provided on the left side of the LCD display. If the counter does not move, or stops, it means that the incoming signal has stalled. Reset the system by pressing switch S2 momentarily to come back to normal operation.

Component layout

Component layout of the PCB shown in Fig. 4

Component layout of the PCB

Component layout of the PCB shown in Fig. 4

Software

The software includes Adafruit library for DHT sensors, virtual wire library for communicating with 433MHz RF sensors and liquid crystal library for the LCD display.

Download source code: click here

Construction and testing

An actual-size, single-side PCB of the transmitter unit is shown in Fig. 4 and its component layout in Fig. 5. An actual-size, single-side PCB of the receiver unit is shown in Fig. 6 and its component layout in Fig. 7.

Actual size PCB pattern of the receiver unit

Actual-size PCB pattern of the receiver unit

Component layout of the PCB

Component layout of the PCB shown in Fig. 6

 

Leave a Comment

Your email address will not be published. Required fields are marked *