In my apartment, I have a door bell that has a red and white wire, they are 12 V AC, and when I connect them together, the door will open.
My idea is to connect these two wires to the Raspberry Pi (maybe to the GPIO?), and use Wi-Fi to signal the Raspberry Pi to connect two wires to open the door.
So physically, where should I wire to the Raspberry Pi? If it's on GPIO, which pin?
UPDATE::: I purchased a LM2577 step down transformer to convert my 5v AC to 3.3v DC, and I have a 1k resistor
Question: do I still need relay in between? Question2: When someone pushs the door bell, the voltage will increase from 0.1 to 5v, so I should be able to use
GPIO.add_event_detect(channel, GPIO.RISING, callback=my_callback)
to detect the event right?