This type of project has probably been beaten like a dead horse to a pulp, but here it is (sorry, my forum search skills suck but my google search is great. Haven't quite figured out why yet...)
Project:
A "Smart" IoT Garage Door Opener that not only does standard garage door opener stuff, but uses Bluetooth to interact with the "Clickers and Key fobs", smartphone interaction, battery backup, and an optional solar panel connection (Yes, big project). It will be a part of a closed network connected to a development board (RaspPi, Beagle, Edison, C.H.I.P. or the new Pine A64 that will (hopefully) be coming out in spring if someone wants overkill) that runs automation software (Like OpenHAB) and act as a gateway to the net. Besides the standard sensors, it will also have a notification system to alert the homeowner (me) if the door is opened or closed or left open for an extended period of time and also blink (if opened) at the button panel. (deciding if this will be hardwired like normal or wireless with button cell power or both; hardwired inside the garage and wireless in the house.
Now that is out, only getting it to work by itself is a concern right now. The other bells and whistles should be easy to add later once it is up and running. (full project will be posted here when figured out with sources, schematics, and acknowledgments after the problems are sorted out for ease of building if someone doesn't what to understand the process of how this came together. I give credit where credit is due.)
What I know so far:
- The operator (brains) uses a 24VDC 1/2hp (or higher) 6A bidirectional motor. A worm gear is attached to the motor at a 78:1 gear ratio. That is attached to a small rod and gear that feeds the chain/belt.
- Power is fed from 120VAC (or 240VAC depending on country) to an inverter. This will convert to 9-12VDC 6-7A (whichever is better for this system) to power the arduino and pass through the amperage needed for motor. 24VDC relays are attached to the analog pins which are attached to the motor. A backup battery supply is attached and discharged when AC power is out and recharged when power comes back.
- The rest consists of the drive guide (or T-rail), sensors (beam?) (to tell the arduino to stop and reverse the door if a cat or a kid gets in the way), height adjustment (looks like two potentiometers), and 1 or 2 torsion springs (some sites say one, a few show two; one left wound and one right wound. My personal one only has one and it’s on the right) The rest, I'm assuming, comes with the door itself, so wouldn't be pertinent other than the weight of the door. (Roughly 150lbs. and 8.2 ft. or 68kg and 2.5m for engineers and everyone else in the world.)
Problems:
-
Obstacle detection: For the entry way, I've seen on here about using IR transmissions to a sensor using pulses. When it is not received after X ms time, it stops and opens. Is this method truly feasible and secure? Seems logical to me, but then there may be a situation this may not be and cause the system to fail in security. (Gotta stop those pesky burglars, but then this project might tell them how to bypass it anyways.) Also, if something is in the way, but the beam doesn't catch it (bicycle tire sit happened to me) it recognizes the resistance and reverses or stops the motor (reverses going down, stops going up like something falls or obstructs the tract, preventing it from opening.) Code probably will tell the direction and what to do, but there has to be something physical to tell it, "Hey! Something is here making the motor stall!" so the arduino can make the decision. I saw a sponge or spring letting the motor move and trigger a micro switch idea on the forum, but I started thinking that it wouldn't be feasible. Wouldn't the torque from the motor just starting trigger the switch? What makes it go back once it is running? I'm thinking helicopter: if the tail rotor is not working, the body is just going to spin because there is nothing stopping it from doing so. Same with a "floating" motor. a spring or sponge wouldn't stabilize it and if it does, what would make it give when it is blocked? Am I really overthinking this sit?
-
Height adjustment: I personally haven’t seen pictures or broke open my opener. (The wife would kill me and the kids would morn their poor father until she marries Daniel Radcliff and they get everything they want. Hey, marrying older chicks is in!) I figure it is controlled by two potentiometers, it seems logical, but it could be a different method. I think it would be nice to be able to set it up through a smartphone, but it would need a manual adjustment method for those old school people. (Or, at this time, those that don’t need a smartphone right now. A rare breed.) I was thinking of designing a system using one or more SICK DS40s and adding a target plate to point it/them at, but again, feasibility. Need to weigh cheaper, better, and securer for the best outcome.
-Finally, Security: I know nothing about this and with all these radio waves flying all over to the device (Bluetooth, smartphones, its own network, connection to a WAN network, etc.) there needs to be a way to prevent risk of property and life. Not just anyone can just walk-in, only authorized users.