Hello,
(Total noob question, avoid my stupidity if any)
I am planning to make a smart doorbell which is connected to an already existing normal AC powered doorbell system (just a bell switch and a doorbell) , I want to connect the wire from the switch to both my bell as well as the GPIO of my raspberry pi , which component , like resistor or relay , should i connect the wires then connect it to the raspberry pi? Is my idea possible? All the other DIY projects specify having an individual button switch for the raspberry pi,if possible how to detect when a current passes through?
Thanks
-
- Posts: 11
- Joined: Tue Jul 04, 2017 5:13 pm
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
Standard "AC voltages can be dangerous, only work with them if you are qualified" warning.
A relay would likely be the most suitable. You'll need to find one that works with the voltages output by the doorbell circuit.
The relay's coil should be connected in parallel with the doorbell and you can use relay's switch terminals to act like any other switch on a GPIO pin.
There are other options but I'd say a relay is the best given the isolation between the two circuits and the simplicity of the circuit required.
A relay would likely be the most suitable. You'll need to find one that works with the voltages output by the doorbell circuit.
The relay's coil should be connected in parallel with the doorbell and you can use relay's switch terminals to act like any other switch on a GPIO pin.
There are other options but I'd say a relay is the best given the isolation between the two circuits and the simplicity of the circuit required.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter
Pi Interests: Home Automation, IOT, Python and Tkinter
-
- Posts: 11
- Joined: Tue Jul 04, 2017 5:13 pm
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
Thanks for the quick reply.scotty101 wrote: Standard "AC voltages can be dangerous, only work with them if you are qualified" warning.
A relay would likely be the most suitable. You'll need to find one that works with the voltages output by the doorbell circuit.
The relay's coil should be connected in parallel with the doorbell and you can use relay's switch terminals to act like any other switch on a GPIO pin.
There are other options but I'd say a relay is the best given the isolation between the two circuits and the simplicity of the circuit required.
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
I’m really surprised that the doorbell would be at mains voltage. Are you sure there is not a transformer dropping the voltage to 12v?
-
- Posts: 11
- Joined: Tue Jul 04, 2017 5:13 pm
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
Yeah , the doorbell works at main voltage and there is not any transformer or any other device dropping the voltage , am guessing there might be something like that internally in the bell.
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
kaushikkyle wrote: ↑Wed Sep 04, 2019 12:58 pmYeah , the doorbell works at main voltage and there is not any transformer or any other device dropping the voltage , am guessing there might be something like that internally in the bell.
Guessing when working with mains voltage is a sure way to get yourself or someone else killed or to start a fire.
if you don't have any electrical training seek help from a qualified professional.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported
The use of crystal balls & mind reading are not supported
-
- Posts: 11
- Joined: Tue Jul 04, 2017 5:13 pm
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
The doorbell was installed by an well experienced electrician , Am just gonna prep the code on the raspberry pi and surely will ask an electrician to connect it , I just guessed there might be some internal component in the bell which steps down the voltage. Anyways Thanks for the advice tho.pcmanbob wrote: ↑Wed Sep 04, 2019 1:35 pmkaushikkyle wrote: ↑Wed Sep 04, 2019 12:58 pmYeah , the doorbell works at main voltage and there is not any transformer or any other device dropping the voltage , am guessing there might be something like that internally in the bell.
Guessing when working with mains voltage is a sure way to get yourself or someone else killed or to start a fire.
if you don't have any electrical training seek help from a qualified professional.
- DougieLawson
- Posts: 42157
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
You can't have an outdoor bell push at more than 48V (SELV) there'd be too much risk of electrocuting the postie. My doorbell runs at 16V AC.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
-
- Posts: 11
- Joined: Tue Jul 04, 2017 5:13 pm
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
I can understand , but its pretty much common in the place where am living . I'll do something about it then, Thanks for the advice.DougieLawson wrote: ↑Wed Sep 04, 2019 2:16 pmYou can't have an outdoor bell push at more than 48V (SELV) there'd be too much risk of electrocuting the postie. My doorbell runs at 16V AC.
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
It's the same in North America as well, full AC voltage is just too dangerous to pass through a flimsy plastic doorbell button exposed to the elements. It's 16 VAC here too.DougieLawson wrote: ↑Wed Sep 04, 2019 2:16 pmYou can't have an outdoor bell push at more than 48V (SELV) there'd be too much risk of electrocuting the postie. My doorbell runs at 16V AC.
I'm not sure where the OP is, but they almost certainly have a transformer somewhere.
https://diyhousehelp.com/doorbell-wiring-diagrams
Pencoed-made Model 1B, Samsung memory
2B 1.1
3B
3B+
4B 2GB
2B 1.1
3B
3B+
4B 2GB
-
- Posts: 11
- Joined: Tue Jul 04, 2017 5:13 pm
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
I'm from India , I have verified with my dad(who is an electrical engineer ) and he had inspected all the electrical connections in my house when it was being built ,No such transformer or device has been installed.Fraoch wrote: ↑Wed Sep 04, 2019 3:04 pmIt's the same in North America as well, full AC voltage is just too dangerous to pass through a flimsy plastic doorbell button exposed to the elements. It's 16 VAC here too.DougieLawson wrote: ↑Wed Sep 04, 2019 2:16 pmYou can't have an outdoor bell push at more than 48V (SELV) there'd be too much risk of electrocuting the postie. My doorbell runs at 16V AC.
I'm not sure where the OP is, but they almost certainly have a transformer somewhere.
https://diyhousehelp.com/doorbell-wiring-diagrams

Thanks for the link, i'll make my dad install a transformer.
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
Wow, well if you have the resources of an electrical engineer at your disposal, then by all means take advantage.kaushikkyle wrote: ↑Wed Sep 04, 2019 3:08 pmI'm from India , I have verified with my dad(who is an electrical engineer ) and he had inspected all the electrical connections in my house when it was being built ,No such transformer or device has been installed.Fraoch wrote: ↑Wed Sep 04, 2019 3:04 pmIt's the same in North America as well, full AC voltage is just too dangerous to pass through a flimsy plastic doorbell button exposed to the elements. It's 16 VAC here too.DougieLawson wrote: ↑Wed Sep 04, 2019 2:16 pm
You can't have an outdoor bell push at more than 48V (SELV) there'd be too much risk of electrocuting the postie. My doorbell runs at 16V AC.
I'm not sure where the OP is, but they almost certainly have a transformer somewhere.
https://diyhousehelp.com/doorbell-wiring-diagrams
Thanks for the link, i'll make my dad install a transformer.

You may not necessarily need a transformer as a relay can operate at full household AC voltage no problem, but those voltages are dangerous. This is not a "do it yourself" thing, you need equipment with the proper rating and someone qualified to work on it.
Pencoed-made Model 1B, Samsung memory
2B 1.1
3B
3B+
4B 2GB
2B 1.1
3B
3B+
4B 2GB
-
- Posts: 11
- Joined: Tue Jul 04, 2017 5:13 pm
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
Ohhh...okay.....Sure will do....ThanksFraoch wrote: ↑Wed Sep 04, 2019 3:19 pmWow, well if you have the resources of an electrical engineer at your disposal, then by all means take advantage.kaushikkyle wrote: ↑Wed Sep 04, 2019 3:08 pmI'm from India , I have verified with my dad(who is an electrical engineer ) and he had inspected all the electrical connections in my house when it was being built ,No such transformer or device has been installed.Fraoch wrote: ↑Wed Sep 04, 2019 3:04 pm
It's the same in North America as well, full AC voltage is just too dangerous to pass through a flimsy plastic doorbell button exposed to the elements. It's 16 VAC here too.
I'm not sure where the OP is, but they almost certainly have a transformer somewhere.
https://diyhousehelp.com/doorbell-wiring-diagrams
Thanks for the link, i'll make my dad install a transformer.![]()
You may not necessarily need a transformer as a relay can operate at full household AC voltage no problem, but those voltages are dangerous. This is not a "do it yourself" thing, you need equipment with the proper rating and someone qualified to work on it.
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
What sort of bell is being rung by the doorbell?? IF its a mechanical bell and hammer you may be able to wire a passive circuit using a magnet superglued to the bell hammer with a reed switch or similar to detect the magnets movement and ringing of the bell..
same result but no need ti get involved with mains voltage circuits,
same result but no need ti get involved with mains voltage circuits,
-
- Posts: 11
- Joined: Tue Jul 04, 2017 5:13 pm
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
No it is not a mechanical bell, its a electrical bell. as mentioned above i'll try with a relayPhatFil wrote: ↑Wed Sep 04, 2019 4:09 pmWhat sort of bell is being rung by the doorbell?? IF its a mechanical bell and hammer you may be able to wire a passive circuit using a magnet superglued to the bell hammer with a reed switch or similar to detect the magnets movement and ringing of the bell..
same result but no need ti get involved with mains voltage circuits,
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
95% of electricians* have no idea of how to interface a doorbell (AC, DC, low voltage or not) to a RaspberryPi. The 5% that do is because of hobby interest, not professional training.kaushikkyle wrote: ↑Wed Sep 04, 2019 2:12 pmThe doorbell was installed by an well experienced electrician , Am just gonna prep the code on the raspberry pi and surely will ask an electrician to connect it ,
* electrician in this context being the genre of tradesman who installs electrical wiring, fuseboxes, socket outlets etc. I'm not denigrating the skills and qualifications involved for that. Just that rather different ones are required.
Quis custodiet ipsos custodes?
Re: Connecting existing Doorbell (AC door bell with bell switch ) to raspberry pi 3 GPIO
I don't suppose you could post some details of this doorbell - make, model, etc. - and maybe pictures of what's inside it?
We can all guess what it should be like, but reality often surprises us.
We can all guess what it should be like, but reality often surprises us.