Refrigerator Monitoring System

0 27019 Medium

Does anyone in your household leave the refrigerator door open for too long, or simply forget to close it?

 

Refrigerator Monitoring System

Things used in this project

 

Hardware components

HARDWARE LIST
1 DFRobot I2C 16x2 Arduino LCD Display Module
1 Particle Argon
1 DHT11 Temperature & Humidity Sensor (4 pins)
1 Ultrasonic Sensor - HC-SR04 (Generic)
1 Photo resistor
1 Solderless Breadboard Full Size
1 Solderless Breadboard Half Size

Software apps and online services

 

Particle Build Web IDE

 

ThingSpeak API

Hand tools and fabrication machines

 

Wire Stripper & Cutter, 22-10 AWG / 0.64-2.6mm Capacity Single & Stranded Wires

Story

 

It all started with grandparents forgetting to close the refrigerator door more than a couple times when visiting their 3-month old granddaughter. Leaving the refrigerator door open for extended periods exposed breast milk to unsafe temperature levels and had to be discarded too many times. Because breast milk supply was limited, I knew something needed to be done. That's when I thought of developing a refrigerator monitoring device that would send an email or text message to let me know that the refrigerator door had been left open and needed to be closed.

 

The objective of our project was to design a device that would monitor the inside of a refrigerator by using a cluster of three sensors (Figure 1) and collecting temperature, photoresistor, and ultrasonic readings throughout the day, and alert the user via email if the door was left open. A temperature sensor was used to monitor the inside temperature of the refrigerator. Temperature readings were then used to compare it to a set threshold of 40 degrees Fahrenheit, which if it was surpassed, served as one of three indicators to make the decision that the door had been left open. The second sensor implemented was a photoresistor sensor, also known as a light dependent resistor. This sensor was used as the second indicator to make the decision that the refrigerator door had been left open by detecting if the light bulb inside the refrigerator was on (indicating that the door was left open) or off (indicating that the door was closed). A measured photoresistor value above the threshold value of 3200 indicated that the light bulb was off, and any value below 3200 indicated that the light was on. Lastly, the third sensor implemented in the refrigerator monitoring system was the ultrasonic sensor, which served to measure the distance between the sensor and the inside of the door. A threshold value of 20 cm was then used as an indicator to draw conclusions about the door being closed or open. Any value below 20 cm indicated that the door was closed and any value above 20 cm indicated that the door had been left open.

 

Figure 1. Refrigerator Monitoring System Sensors

 

Figure 1. Refrigerator Monitoring System Sensors

 

Figure 2 shows a typical event that is published every 5 minutes along with the measured temperature, the photoresistor, and the ultrasonic values.

 

Figure 2. Typical Published Events Along with Measurements for each Particle Argon

 

Figure 2. Typical Published Events Along with Measurements for each Particle Argon

 

The use of these three sensors altogether allowed us then to determine whether the refrigerator door had been left open or not. If was then concluded that the refrigerator door had been left open when the temperature reading was above 40 degrees Fahrenheit, the photoresistor reading was below 3200, and the ultrasonic reading was above 20 cm (Figures 3 and 4).

 

Figure 3 Typical sensor readings when the refrigerator door is left opened

 

Figure 3 Typical sensor readings when the refrigerator door is left opened

 

Figure 4. Typical message sent when all three sensors are triggered.

 

Figure 4. Typical message sent when all three sensors are triggered.

 

All three sensors measurements were then plotted in a different channel for each Particle Argon using ThingSpeak for visualization purposes. Neal's ThingSpeak channel link is provided below for viewing, and a sample screenshot is shown in Figure 5, which depicts a Temperature vs. Time, Photoresistor Resistance vs. Time, and Ultrasonic Distance vs. Time plots.

 

Figure 5. Live ThingSpeak Plots

 

Figure 5. Live ThingSpeak Plots

 

Neal's Channel: https://thingspeak.com/channels/2086340

 

Seth's Channel: https://thingspeak.com/channels/2106700

 

Rahul's Channel: https://thingspeak.com/channels/2106709

 

Once it was determined that the refrigerator door had been left open (the temperature reading was above 40 degrees Fahrenheit, the photoresistor reading was below 3200, and the ultrasonic reading was above 20 cm), an email was sent to the user that has refrigerator door was opened. This email was sent by integrating Webhooks and IFTTT, and it simply let the user know that the refrigerator door was left opened. As shown in Figure 6, Neal received an email to close his refrigerator door after his Argon identified the refrigerator door as being open.

 

Figure 6. Typical "Close the refrigerator door" email

 

Figure 6. Typical "Close the refrigerator door" email

 

Two-way communication between the 3 Particle Argons was implemented with IFTTT, and emails to peers were sent to remind the user to close the user's refrigerator door. To demonstrate the two-way communication, as shown in Figure 7, Neal received an email to remind Seth to close his refrigerator door after Seth's Argon determined that the refrigerator door was left opened, and as shown in Figure 8, Seth received an email to remind Neal to close his refrigerator door after Neal's Argon determined that the refrigerator door was left opened.

 

Figure 7. Typical email sent to a peer to remind the user to close the refrigerator door - Example 1

 

Figure 7. Typical email sent to a peer to remind the user to close the refrigerator door - Example 1

 

Figure 8. Typical email sent to a peer to remind the user to close the refrigerator door - Example 2

 

Figure 8. Typical email sent to a peer to remind the user to close the refrigerator door - Example 2

 

A link to a video describing the refrigerator monitoring sensor cluster is provided below.

The article was first published in hackster, April 20,  2023

cr: https://www.hackster.io/506007/refrigerator-monitoring-system-6f46ea

author: Neal Salas Zamudio, Seth Hunt, Rahul Guha

License
All Rights
Reserved
licensBg
0