My sketch is programmed to send a low/high signal to the SPX’s CTL connector.
The serial of the virtual switch function in blynk responds well… the message “switch high” and switch low "appears on activation. The output gpio of the esp is a digital pin (2) on a feather huzzah.
But the SPX stays always on low ( blue led activated)… i have to disconnect the wire between the 8266 gpio and the CTL on the spx to inteerupt the 12v output.
What have i forgotten ? should i use an analog output on the esp ? should i connect something to the SPX VCC ?
I have 3 MOSFET Power Switch SPX-19799 and 3 8266 , and the behavior is the same on all the 3. It means it’s not a defect of one of my power switchs.
What is functional ?
when i startup the esp + switch without the link on the digital pin ( pin 2 to CTL from switch) , everything boots.
when i connect the esp digital pin 2 to the CTL switch AFTER the boot, every thing stay stable AND the virtual blynk switch works perfectly. blue LED on esp and red LED on switch
What is NOT functional ?
when then i restart the esp (physical button on the esp) and the virtual blynk switch is ON with the link on the digital pin to the esp, the esp stays online in blynk…blue LED on esp and red LED on switch, the virtual switch does not work.
If i restart the esp (physical button on the esp) and the virtual blynk switch is OFF with the link on the digital pin to the esp, the esp stays online in blynk…blue LED on esp and red LED on switch are turning automatically on, the virtual switch does not work.
IF i resume, everything works if i wire the digital pin 2 to the CTL switch after boot…and if i don’t restart the wired esp…
Later today i’ll try to insert a 470ohm between the pins…
an other idea could be to give a delay to the digital pin before activating after boot…but i’m not able to code this in my sketch.