logo elektroda
logo elektroda
X
logo elektroda

GPIO fail-safe in ESP with reed switch on long twisted pair cable (25-30m)

jajen 723 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20535286
    jajen
    Level 17  
    I have already stoned the gpio in esp 2x in 3 years. This concerns the gpio to which the reed switch is connected between ground and the gpio monitoring the opening of the gate. That it's a gate, the cable from esp to reed switch is like 25m-30m (twisted pair). I suppose sometimes some surge will be generated on it and this is the reason for the gpio getting stoned. Can anyone advise how to protect the gpio?
  • ADVERTISEMENT
  • #2 20535311
    xury
    Automation specialist
    As standard as anything. Opto-isolation.
  • ADVERTISEMENT
  • #3 20535347
    78db78
    Level 43  
    You do the separation on the relay.
  • #4 20535467
    Anonymous
    Level 1  
ADVERTISEMENT