wow thank you guys for all these info.
anyway i will experiment on the bradboard before i connect the Rpi
komarek wrote:hi folks
i've made a script that capture a picture from the raspi camera when the gpio 4 turns to HIGH and then send me a mail with that picture as an attachment and i would love to use it with the doorbell at the gate of my house.
i don't know how to connect the actual bell button with the gpio of the raspberry (by the way i m using a raspberry pi zero w for that)... so... i guess there are 2 ways:
mechanical or electrical.
1. i can put a second small button behind the main bell button to be pushed together with that. quite difficult to do but i can try.
2. i can work with the wire of the doorbell (i guess it's a 12v) to make the current switch my gpio... but how? i need a sensor that turn HIGH when a current flows.
Is your bell push on the gate, and the bell box in your house, You might be able to
Use a opto isolator to interface with the Pi ,Check the voltage across the sounder.
When the button is pressed , you might be able to use the positive side to switch
The transmitter side of the opto Isolator , The opto transistor to to interface
Withe the GPIO In/Put, This will give Isolation and no common connection
Might work Might not