My children (ages 4-11) are terrible at closing doors/gates, turning off lights, etc. Astonishingly bad. When they leave gates open in our horse pasture several times a year, it allows our 3 horses to roam the neighborhood irritating my neighbors, and causing numerous issues. For years, no amount of discipline, reminders or instruction as been able to stop the slow trickle of incidents of near-disaster caused by them leaving important doors and gates open.
My next step is to build "howlers" for the important gates. Essentially a switch that is closed when the safety chain on the gate is removed from it's correct position. Once the switch closes, there will be a 2 minute timer that will monitor the switch, and if it isn't back to the safety-chain-is-attached position by then, a really loud alarm will "howl". (Ideally to remind them to shut it, worst case to attract an adult to fix the issue. ) Added benefit is it (hopefully) will be scary enough to the horses that they won't approach it to sneak out the open gate. I've got no problem with the circuit part.
What I am struggling with is the best switch style to use. For those unfamilaiar, safety chains are the farm gate equivalent of door chains on a hotel door. They provide redundant latching for the rare, but real situations where the normal latch fails. Normally loose, but have to be able to resist powerful yanks without breaking.
Ideally, I don't want a 3rd step to be required when using the gates (Step 1 = normal lock, step 2 = safety chain), so I would prefer some way to monitor if the chain is engaged as normal without altering the existing chain anchor points. The anchor points and the chain are all metal, but I believe that both they are also grounded. I'm unsure if there is any useful way to use that (using the chain as a "wire" and testing if they are connected or not) as part of the switch due to the lack of isolation.
Watching the chain anchor side for the chain end is another option, but is also fraught with uncertainty: The chain end-hook fits loosely, so getting it to reliably trip a microswitch or to line up nicely for a photo-interuptor would be dicey. (Have to assume that wind, etc. will regularly jostle the end-hook around inside the anchor and it won't be stationary.) A magnetic switch might work, but the only ones I have used required the magnet to be adjacent to the sensor to trip. I don't know if any work well with tolerance of > 1" between the magnet and sensor.
Suggestions? What might be the best way to monitor if the chain end-hook is inside the chain anchor? What will perform best with the loose-tolerances or rattling, wind-blown farm gates?
False positive need to be limited. If these things start succesfully catch 57 of the next 2 times my kids leave a gate open, they'll be too annoying to use. (By design, momentary false positives don't matter. Only false positive lasting long enough for the alarm to sound.)
(FYI, this needs to be done on the safety chain, not on alternate things like the main lock or using hinge deflection. I don't care if the main lock fails if the safety chain is on, and I most certainly DO care if the gate is closed but not locked, since a horse can open it and be gone long before the alarm would sound.)
My next step is to build "howlers" for the important gates. Essentially a switch that is closed when the safety chain on the gate is removed from it's correct position. Once the switch closes, there will be a 2 minute timer that will monitor the switch, and if it isn't back to the safety-chain-is-attached position by then, a really loud alarm will "howl". (Ideally to remind them to shut it, worst case to attract an adult to fix the issue. ) Added benefit is it (hopefully) will be scary enough to the horses that they won't approach it to sneak out the open gate. I've got no problem with the circuit part.
What I am struggling with is the best switch style to use. For those unfamilaiar, safety chains are the farm gate equivalent of door chains on a hotel door. They provide redundant latching for the rare, but real situations where the normal latch fails. Normally loose, but have to be able to resist powerful yanks without breaking.
Ideally, I don't want a 3rd step to be required when using the gates (Step 1 = normal lock, step 2 = safety chain), so I would prefer some way to monitor if the chain is engaged as normal without altering the existing chain anchor points. The anchor points and the chain are all metal, but I believe that both they are also grounded. I'm unsure if there is any useful way to use that (using the chain as a "wire" and testing if they are connected or not) as part of the switch due to the lack of isolation.
Watching the chain anchor side for the chain end is another option, but is also fraught with uncertainty: The chain end-hook fits loosely, so getting it to reliably trip a microswitch or to line up nicely for a photo-interuptor would be dicey. (Have to assume that wind, etc. will regularly jostle the end-hook around inside the anchor and it won't be stationary.) A magnetic switch might work, but the only ones I have used required the magnet to be adjacent to the sensor to trip. I don't know if any work well with tolerance of > 1" between the magnet and sensor.
Suggestions? What might be the best way to monitor if the chain end-hook is inside the chain anchor? What will perform best with the loose-tolerances or rattling, wind-blown farm gates?
False positive need to be limited. If these things start succesfully catch 57 of the next 2 times my kids leave a gate open, they'll be too annoying to use. (By design, momentary false positives don't matter. Only false positive lasting long enough for the alarm to sound.)
(FYI, this needs to be done on the safety chain, not on alternate things like the main lock or using hinge deflection. I don't care if the main lock fails if the safety chain is on, and I most certainly DO care if the gate is closed but not locked, since a horse can open it and be gone long before the alarm would sound.)