Our fridge door sometimes doesn't close completely. To become aware of a not correctly closed door immediately (instead of after a night) I created this open-door-detector.
As a side effect you also get a beep-notification when making your choice while the door is open takes too long ;-)
The door open detection is done by a micro switch. It closes on opening the door and thereby provides power to the circuit which contains an Arduino based microcontroller (ATmega328) and a spare piezo speaker.
Note that instead of a complete Arduino board only the Atmega328P is used on a breadboard. See the clip by Julian Ilett on how to do this. (But I needed an extra 10 kOhm pullup on the reset pin 1 during data transfer.)
The file "ArduinoToneMelody.ino" contains the program:
See the circuit picture for used parts.
OpenSCAD files are included. (Including my own battery-box-design.)
ArduinoToneMelody.ino | 2.2KB | |
batterybox.scad | 2.8KB | |
batterybox3.stl | 476.7KB | |
box.stl | 117.0KB | |
fridge-open-door-detector.scad | 3.0KB | |
hook.stl | 3.7KB | |
lid.stl | 11.5KB |