Table of Content
https://github.com/bernice-lien/fridge-door
FDD system
FDD System Mounted on Fridge
This is device is purely for my convenience. I am one of the unfortunate ones who have left the fridge door open on multiple occasion, resulting in a lot of spoiled food 😞. My fridge does not come with it’s own door detector sensor, so I decided to see what I could do about it.
Here’s a short video documenting the process of this project.
<aside> 📌 This simple device detects when the fridge door has been open for a long time and notify owners after detection. The system is comprised of a MEGA 2560, Time of Flight (ToF) sensor from another project, and a passive buzzer. The ToF is mounted onto the fridge and every 2 seconds, the ToF captures a distance measurement.
If the fridge door is closed, then the gap between the main frame of the fridge and the door is about 1 cm. In the code, 12 mm or less was set to be the distances in which the fridge door is closed.
If the fridge door is opened (more then 12mm), the system will wait for 2 minutes. If the fridge does not close within the 2 minutes, the system will emit buzzer sounds to notify the owners.
</aside>
1.   VL53L1X Time of Flight (ToF) Sensor
2.   ATmega2560 Microcontroller