an idea could be also maybe a door with an LCN closer decorated for the holidays (Nov//Dec) great place to find images of door decorating or creativity with door closers is school buildings and sometimes they are involved with the tradition of having a door decorating contest.
I have heard of and seen that (not personally, but in photos) method of mounting, the method of installing them this way is not common in the united states but most commonly seen in western Europe and on gates in Australia.
that method although can be convenient to the installer and the end user to be able to adjust it without a ladder but it does put the closer at high risk of vandalism because its within easy reach to any child/mischief maker. young children have been known to investigate things (especially mechanical), a moving arm of a closer at that height can cause some PINCHED FINGERS.
I am the President of a coop building in the Brooklyn Heights section of New York City. Our lovely brownstone was built in 1846 and has an entry vestibule at the Parlor level with two sets of doors. The inner doorway has a set of antique arched double doors and we have not been able to find a door closer that will keep the heavy doors from slamming.
Our church recently installed an LCN closer with a special order parallel arm plate for an arched top door. The door will not open pass approx. 85 degrees. We were hoping we could resolve this issue with an extended closer arm. Any ideas on this. Thanks.
I purchased an Arduino about a month ago, and have basically just been toying around with it. I went to undergrad for bioengineering, but got next to zero experience programming. Nevertheless, I picked it up quickly(ish) enough in order to do a small project.
I share the garage with a couple of my roommates, and a consistent source of stress is when one of us leaves the garage door open after leaving the house. Thankfully, nothing has been stolen (yet) but I thought it might be nice to use the Arduino to automatically close the garage door if we leave it open for more than 5 minutes.
I've attached a brief circuit sketch (from -- neat tool if you don't have actual circuit schematic software). I've completed the circuit, but still need to install the "sensor", which will just connect 5V to the status_pin on the Arduino when the garage door is open.
The "open_door_led" will let me know if the door has been left open at all and the Arduino had to close it. I can then just reset the Arduino to reset that LED so I know the next time it's left open. If I were a more motivated individual, I would include an LCD display to show more information (or, better yet, email me when the door was left open) and also log the times when the door was opened, and whether it was closed manually or if the Arduino had to do it.
Regarding the circuit, the sensor switch is in the wrong place. When it closes, it will short the 5V supply to ground, not what we want. Plus the green LED will never illuminate, as it's connected to an input pin. As for the relay, without knowing the specs for the unit you have in mind, the circuit as shown will only put 5mA through the relay coil. Most relays require considerably more, in fact, most require more than the 20mA that an Arduino pin can safely supply. A small NPN junction transistor is usually a great way to drive a relay.
Regarding the code, it's fairly minimal, it looks like it will operate pretty much as you expect. Obviously, this is a project I'd test on the bench to ensure it works as expected before installing it on the garage door. I might add a couple things, one being an alarm. When the code decides it needs to close the door, I'd sound an audible alarm for maybe 30-60 sec first before activating the relay. I might also have an override switch to stop the controller from closing the door for those times when I wanted the door to stay open more than five minutes. Finally, when the controller decides to close the door, it's an open-loop situation, meaning that it activates the relay but then just assumes the door closes properly. Most garage doors have safety mechanisms that could make that a bad assumption. Mine has a light beam across the bottom that if interrupted, will prevent the door from closing. If too much force is required to close the door, i.e. something blocking it, or a spring breaks, etc., it will reverse, open the door, and stop. The upshot of all this is that the controller may not really be aware of the state of the door. I can make suggestions to address this if you're interested.
Oops, that was a drawing error showing the garage sensor shorting to ground. It shorts the 5V to the input pin, which is also connected to the LED so I get visual confirmation that the Arduino knows the door is open.
I did, however, make an error in putting the 1k resistor with the relay coil. I checked the spec sheet on the relay (a cheapo from RadioShack, model 05P10), and it seems I don't need the resistor at all (5V / coil resistant of 56 Ohms = 89.3 mA current, listed as nominal coil current). I had it connected without a resistor on the breadboard on my bench and it was working fine. I added the resistor thinking that I might be putting too much current through the coil. Is that 89.3 mA current too much for the Arduino to put out? Like I said, it was working for me, but if that will be stressing the Arduino too much, I can always use a different relay (I have one that requires only 15-20 mA, =110909482881&ssPageName=ADME:L:OC:US:3160, but I didn't want to waste 4 relays when I only need one).
I thought about adding a buzzer/alarm like you mentioned, but I didn't want to waste my only buzzer that came with my starter kit (I have a Mega on the way to replace my Uno once it's installed in the garage). I know what you mean about the garage door status. I considered adding a 2nd sensor to detect that the door closed, that way it doesn't assume it's closed if it's not completely opened. I was going to have it send me a message if it gets confused and the door is neither open nor closed, but I don't feel like running an Ethernet cable to the garage (and the WiFi shields are pricey!). I don't picture it being a problem often (if ever), and since the relay just drives the regular garage door operator contacts, it will still use the laser sights to prevent it from closing the door on something. I'll definitely consider adding that extra stuff in the future; right now I'd rather just get the thing installed and working.
My last thing to check is how much current is running through when I short the 2 pins for the garage door opener. My relay is rated for 1A at 120AC/24VDC, and I wouldn't think it's using more than that. Still, I'd rather check with the multimeter before I go and ruin my relay or start a fire!
Is that 89.3 mA current too much for the Arduino to put out? Like I said, it was working for me, but if that will be stressing the Arduino too much, I can always use a different relay (I have one that requires only 15-20 mA,
Yes, 90ma is too much to draw from a output pin. Either use a switching transistor with the existing relay or use the lower current relay. Output pin current should be limited to 20-30ma maximum current draw.
retrolefty:
Yes, 90ma is too much to draw from a output pin. Either use a switching transistor with the existing relay or use the lower current relay. Output pin current should be limited to 20-30ma maximum current draw.
Re-implement the timing to not use delays. You're better off detecting if it's been open for 5 minutes, than if it was open exactly 5 minutes apart. The way you have it now, two people arriving 5 minutes apart could trigger it to close prematurely.
Add a PIR on a input and have it read that input. If the input lets say goes high, have it reset your 5 minute timer back to start. That way if your in your garage or someone else is it will constantly reset it. I have the same exact thing made in my garage and it works great. The only difference is I used a dip switch and read it to determine the time frame to leave the door open. This way I can set it from 5 minutes to 1.5 hours.
Don't forget to add denounce to your disable switch. Otherwise it will false. I have code for that if you want it.
I used your code to make a closer of my own, I put an ethernet board on so that there would be a web server. I created a selector button and LEDs to cycle from 5 to 15(or in my case I changed it to 20), 60 minute and off delays, rather than a dip switch. I hope you don't mind me posting it to this thread.
I have this functionality operating within my Arduino Home Automation system at www.2wg.co.nz. I implemented the garage door functionality early in the project - it has been fully operational for some months.
The garage door functionality operates in an active or inactive mode. In the active mode it will close the garage door if it is left open for four minutes. In inactive mode if the garage door is left open it will send a push email to my iphone after four minutes then after 8, 16, 32, 64, 128 minutes etc. That way if I am working on my car out in front of the house for a couple of hours my iPhone does not get dozens of emails.
I also have a buzzer on my garage door that the arduino beeps when the door is opening and closing and for fifteen seconds before the automatic door close happens. It gives me time to move the car or myself if I am about to get hit by the door closing.
Also, if my system is in house alarm activation mode (I have PIRs to detect intruders) and the garage door is opened (e.g. with the wall switch) then my system sends an instant intruder push email to my iPhone.
Before I implemented the full functionality I did depart my house a couple of times leaving the garage door open. Since the functionality has been completed I have left it open once and on arriving at work noted the incoming push email - so I closed the garage remotely using system web site functionality only available after my password based login.
c80f0f1006