detecting analog doorbell

Moderator: leecollings

Post Reply
SweetPants

Re: detecting analog doorbell

Post by SweetPants »

Try using a (bridge) rectifier and capacitor to convert the AC->DC and use an opto coupler to connect it to your raspberry GPIO.
User avatar
l0gic
Posts: 107
Joined: Tuesday 08 October 2013 9:35
Target OS: Linux
Domoticz version: Latest
Contact:

Re: detecting analog doorbell

Post by l0gic »

SweetPants wrote: Sunday 27 January 2019 19:29 Try using a (bridge) rectifier and capacitor to convert the AC->DC and use an opto coupler to connect it to your raspberry GPIO.
I did similar, 8v(ish) ac fully rectified gave me around 12v dc. I used this to operate a relay connected to a MySensors board.
Opto would be just as good, I had a relay in my spares box but no opto's

Been solid as a rock for a few years now.
Non credus crepitus
User avatar
l0gic
Posts: 107
Joined: Tuesday 08 October 2013 9:35
Target OS: Linux
Domoticz version: Latest
Contact:

Re: detecting analog doorbell

Post by l0gic »

sander815 wrote: Sunday 27 January 2019 20:26 ok
but why doesn't the xiaomi door sensor(reed switch) pick up the magnetic field?
Just a guess but perhaps the AC changes (50Hz) is too fast for the reed to react.
I tried using a reed switch route originally but couldn't get it to work even if I laid it on the coil.
Hence I went for a bridge rectified relay.

Kevin
Non credus crepitus
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: detecting analog doorbell

Post by freijn »

Something like this

instead of GND you can use +5 I prefer using the internal pull up and then to GND
Attachments
Capture.JPG
Capture.JPG (57.59 KiB) Viewed 1136 times
SweetPants

Re: detecting analog doorbell

Post by SweetPants »

freijn wrote: Monday 28 January 2019 9:53 Something like this

instead of GND you can use +5 I prefer using the internal pull up and then to GND
Maybe add a capacitor over + and -. Now you get a 100Hz signal on your relay
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest