Fridge Door Detector Alarm by hertzgamma
Contest WinnerFeatured
Has it ever happened to you to go to the fridge and discover that its door is slightly opened ... and probably most your food went to the trash ... Ghhhrr that jammed door that needs an extra push to make it close properly .......

This instructables will show you how to make an alarm system that will beep a buzzer if you leave the fridge door opened for a long time to remind to you to close the door. All new fridges on the market have this option built in, but some may want to upgrade their old fridges.

This video shows the system in action:


  • The Fridge Door Detector Alarm is easy to make - uses only 8 components including the batteries!
  • Easy to set to your preferences for the time that the door is left opened - fully customizable!
  • Cheap - less than 5kg potatos.
  • Easy to install - installation means sticking a small box inside your fridge using sticky tape!
  • Easy to maintain - change batteries just every four-five months!
  • Encourages thinking and logic problem solving for the young electricians that will try to make it!
  • Finally - saves electricity costs if you forget the door opened for a long time.

Update History:
  • 1st Oct 2012 - Added several schematics in steps 4 and 5.
  • 4th Oct 2012 - Visually changed the code appearance in step 3.
  • 7th Oct 2012 - Instructions made more clear in step 3.
  • NEW: 8th Oct 2012 - Major changes in the ATtiny85 code: better power mode - enabled power save mode to reduce consumption. New code in step 3.
  • NEW: 9th Oct 2012 - Added description for how to set the circuit sensitivity up. See step 7.
 
Remove these adsRemove these ads by Signing Up

Step 1: The Idea

IMG_4924-001.JPG
What the Fridge Door Detector Alarm does is to detect whether there is some ambient light in the food compartment of your fridge or freezer. This happens when you open the door and the Fridge Door Detector Alarm system senses some light that may be coming from the bulb light in the fridge or from the door opening itself.

The Brain

I use an ATtiny85 microcontroller which is easy to program with an Arduino if you have one ;) Than you can write the code that will suit your needs perfectly - for example one may want to hear the buzzer 2- seconds after opening the door ... or maybe 45 or 2 minutes - you decide!

Using a microcontroler minimises the use of external elements which saves you time and cost!

The Components
  • ATtiny85 microcontroller
  • Arduino Uno
  • Prototyping board + wires
  • Buzzer
  • Switch
  • Plastic box
  • 180 kOhms resistor
  • 0-100 kOhms variable resistor
  • LDR - light dependent resistor
  • Batteries
  • Empty PCB to solder the schematic
  • Board holder for the ATtiny

The Tools
  • Soldering iron
  • Double sided sticky tape
  • Cable cutters and knife
arduinodude11 says: Apr 13, 2013. 7:16 PM
I also made a very crude version of this instructable.
http://www.instructables.com/id/Refrigerator-Alarm/
Credits to hertzgamma for enabling me to have this as my reference! :)
Congratulations!
Please also visit my site for Arduino beginners who wanted to learn more:
http://arduinodude11.tumblr.com/
moenia says: Feb 27, 2013. 9:11 AM
Hi, I'm really interested in doing this project. I have never programmed an Arduino or anything else for that matter. I've got basic soldering know-how, but that's it.

One question though. Which version of the ATtiny85 microcontroller do you use? At Atmel's webpage there's 12 different versions.

Alternatively, is it possible to use the ATmega328 mc that comes with the Arduino Uno when purchased from Arduino's store?

Thanks in advance.
xingzeta says: Dec 16, 2012. 6:19 AM
nice project
SlickSqueegie says: Dec 5, 2012. 5:41 PM
Congrats on the win. Great job!
hertzgamma (author) says: Dec 6, 2012. 5:36 AM
Thank you, condrats to you too!
patdoherty says: Dec 4, 2012. 3:08 PM
I would be happy to come in a lower place than you in the DIY audio contest. Great instructable, very well written, great pictures. good luck. we will see what happens tomorrow. (I did the Atari Punk Stick BTW.)
hertzgamma (author) says: Dec 4, 2012. 11:56 PM
Hey, I saw your entry and it is great too! They are actually all amazing entries I think! Even some that didn't end up in the finalists. I wouldn't want to be a judge there ... because it seems tough to make a decision.

Anyway :D, fingers crossed and good luck to you too ;)
poofrabbit says: Nov 29, 2012. 8:39 PM
Congratulations on being a finalist in the DIY Audio Contest!! Good luck to you!
hertzgamma (author) says: Nov 30, 2012. 12:30 AM
Thanks!
tedede says: Nov 27, 2012. 5:49 AM
After finding my beer warm, I'm motivated. Thanks!
Can you share the specs/part # of the LDR?
hertzgamma (author) says: Nov 30, 2012. 12:30 AM
I measured it with the multimeter and the LDR's resistance is 50MOhms or infinty sometimes when in darkness and goes to several Ohms when under sunlight.
nodoubtman says: Nov 4, 2012. 2:07 PM
Works great thank you! :)

marC:)
hertzgamma (author) says: Nov 4, 2012. 2:54 PM
That's great! Could you please tell me what the problem that you described earlier was? Is it something to do with the sleep function?
nodoubtman says: Nov 4, 2012. 4:02 PM
i don`t know what happened

thank you!
marC:)

DO you have other arduino project?
hertzgamma (author) says: Nov 5, 2012. 10:27 AM
Yes, check this one out! It is my latest instructable!

http://www.instructables.com/id/Buzz-Wire-Alarm-Clock/


Regards,
Pavel
hertzgamma (author) says: Nov 4, 2012. 2:58 PM
Please vote for me in the DIY Audio and Hack It contests!

Thanks!
nodoubtman says: Nov 4, 2012. 1:49 PM
Hi there! I tried but AVRDude gave me this error : avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85


:(

can you help please?
thanks!
marC:)
mischka says: Oct 20, 2012. 1:03 PM
Good Idea! I thought it was also a good project for the timer chip NE555, so I made a fridge door alarm using a 555 and a 556. Ill post my Instructable as soon I've done the project. At the moment its just on a breadboard...
hertzgamma (author) says: Oct 21, 2012. 3:12 AM
Thanks, I want to see it!
mischka says: Oct 21, 2012. 2:31 PM
I made it today and it works well. As I said I used an NE555 and a 556 instead of the µC. Below is the circuit and the finished project. When I get the time, I'll also post an I'ble.
kühlschrankalarm schaltplan_Schaltplan.pngalarm.JPG
amandaghassaei says: Sep 13, 2012. 4:22 PM
great instructable, very well documented. How long do these batteries last?
hertzgamma (author) says: Sep 13, 2012. 11:51 PM
Thanks! Mu calculations showed that the consumption varies between 1 and 2mA, so if you put some better batteries of the sort of 2800mAh, it could last for three-four months.
amandaghassaei says: Sep 14, 2012. 1:43 AM
really? don't you think the ATtiny runs off more than that?
hertzgamma (author) says: Sep 17, 2012. 5:11 AM
Here is what the current measurement shows. It is in microamps.
IMG_5002.JPG
janw says: Sep 18, 2012. 10:40 AM
You could maybe make the device go into powerdown mode and wake it up when the door opens. An attiny85 uses only 0.1µA in powerdown mode. This would make your batteries last for a long long time.
hertzgamma (author) says: Oct 8, 2012. 11:02 AM
Janw,

I have some results that may be of interest to you. I managed to make the ATtiny sleep for a set period of time. While sleeping it uses only 6.8µA current which is some 222 times less power consumption than before.

The code is in step 3, and I will also add images and video later this week!
janw says: Oct 8, 2012. 12:37 PM
That is a great result indeed! 222 times less consumtion means that your batteries will last for a pretty long time.
hertzgamma (author) says: Sep 19, 2012. 2:58 PM
Well yes, this is a very good idea - I had no idea that there is such a mode! I will have to figure out how to make it as I am new to ATtiny, but this is definitely a must try!
nodoubtman says: Oct 1, 2012. 5:27 AM
Will it work with Attiny85v-10PU?

thank you!
marC:)
hertzgamma (author) says: Oct 1, 2012. 9:03 AM
Yes, it will work with this type of Attiny. It will operate at 10MHz clock speed and the tricky part will be to find the right plugin that will allow you to program the Attiny via the Arduino Uno.
nodoubtman says: Sep 30, 2012. 7:26 PM
I will try it, i will let you know how it does..

thanks!
marC:)
hertzgamma (author) says: Sep 30, 2012. 11:35 PM
I am keen to see that. Good luck!
nodoubtman says: Sep 30, 2012. 7:25 PM
Great job!!! Very useful! :)
Penolopy Bulnick says: Sep 19, 2012. 4:24 PM
That's a really good idea! I hate it when you think you've closed the fridge and it just pops open a little.
JamesRPatrick says: Sep 13, 2012. 7:08 PM
This is fantastic. Do you work with electronics for a living?
hertzgamma (author) says: Sep 13, 2012. 11:53 PM
I'm glad you like it! I do electronics just for fun and also study that.
JoshuaZimmerman says: Sep 13, 2012. 12:00 PM
Great project and use of the 85!
Leolite says: Sep 13, 2012. 8:50 AM
Nice Job! ATtiny 85 is really great for some micro project!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!