Hey All,
Recently got my esp-01s connected to my gate-motor. This is working really well and allows me to open the gate remotely. I have the same sort of setup on my doorbell by the gate, which uses GPIO2 to detect that the doorbell was pressed. Using this i can easily send a notification to telegram (with camera image attached) and then decide what todo (Open, Phone them, speaker, …).
The issue i’m a bit noobish about is that on the gate motor there is a output pin that shows when the gate motor is working (status) that fluctuates between 2.2v (gate moving) to 4.8v (stopped in open position) and then once closed it goes to 0.
I want to know how do i connect this to PIN2 to indicate that something is happening, i dont need the voltage but want to say pin2 “activated” while its moving.
From reading, i can configure it as a sensor, but is i understand correctly attaching more than 3.3v could damage the pin. How would i go about this if at all possible?
Thanks
Derick