Re: using a lighted doorbell button in/output from uC
If you really want to use the existing lighted button your two relay solution will work.
Wire the coil pf one in series with the switch and doorbell. Pressing the button will cause the relay to close and the doorbell to ring. May need to add a resistor in parallel with the relay coil to prevent current through the light from triggering it. If you want to use a DC relay instead use the appropriate power supply and use a dual pole relay one set of contacts to ring the bell and another to provide notification to the controller.
Use a second relay with N.C. contacts in series with the push button and driven by the controller to turn off power to the button. Hopefully the off state will not be too long - or the person at the door will be unable to ring the bell a second time - or perhaps that is the idea.
Hopefully the off state will not be too long - or the person at the door will be unable to ring the bell a second time - or perhaps that is the idea.
The delay is intentional to prevent overuse.
The idea is an automated candy dispenser--since I cannot be home on halloween night.
I have the gable end of a small attic about 1-2' above my front door with a vent opening. The candy is on a "conveyor belt" built within an 8' long 3" PVC pipe that sticks out of the vent slightly. Total capacity is about 90 pieces of candy. It will dump 2 pieces at a time into a flexible hose / shoot which terminates at one of those pumpkin buckets at about "kid height" in front of my door...
Instructions are simple and will posted on the door "I'm not home tonight, if the doorbell light is on, please press the button to get a piece of candy. It will take 10 seconds for the machine to fill up and light to come back on. If the light is out longer than 10 seconds, that means I've run out of candy, sorry".