Chat freely about anything...

User avatar
By claustro
#86013 Hi all . I am trying to make my doorbell smart. I am using an esp-01 connected to my homeassitant server for sending camera screenshot secondary to a doorbell ring.The problem si finding a way to activate the GPIO. My doorbell system is very old and I wasn't unable to find a circuit that activate the GPIO other then the speaker of the ringer.
Is there any possibility to use it for activate the gpo ( I was thinking about some sort of relè or octocoupler ).

Thank you
Andrea

IMG_20200310_123051 (Piccola).jpg

IMG_20200310_122547 (Piccola).jpg
User avatar
By eriksl
#86468 Yes I don't see why not. You will need to do some conditioning on the analog signal first, though. If it's from a microphone, you'll need to amplify it until it has logic levels (i.e. peak 3.3 V). Then I guess you'd need a schmitt trigger or even better, a timer (like 555) that get's triggered by the signal and delivers one and only one trigger signal to one of the ESP GPIO's. On the ESP you could set an GPIO input interrupt on that pin, or poll it. If you leave out the condition, the ESP will receive an endless amount of triggers and if you're using pin change interrupt, it will crash. Using a debouncer may work too, with an appropriate large debouncing timeout value.