For some unknown reason yesterday, both of my boards started going crazy and the relays on pin’s 17 started going nuts - to the point that ANY action on the board caused the relay to click - doing some research, looks like I had used Pins 16 and 17 without disabling the UART logging…MCU 1 - 0 ME.
I managed to re-write the firmware using the local USB connection - however ever since I have done that, every time I run esphome filename.yaml run - the upload takes about 1 second flat, says its successful, and then the board reboots into the existing config.
Has anyone seen this before? If it helps, these are the pins which I have relays connected to:
04,05,12,13,14,18,19,21,22,25,26,23,32,33
It was all working fine until yesterday when randomly they went nuts.
I’ve been doing some more investigation work with this, and interestingly, I’ve noticed that when I remove the 5V supply from the pin, and leave the GND connected, all of the relays turn on - when I remove the GND pin, all the relays turn off again - so not sure if there is a cabling fault - just going through now, wondering if one of the other pins is playing up.
Hi All, just a quick update on this, I managed to track this down to an issue with a relay being connected to GPIO12, which was being pulled low on boot, and causing the ESP to behave as it did - I’ve moved the offending relay from GPIO12 to 16 and all is working fine now.