The relay ignores my sketch code and will continue blinking my LED 'load' with the USB cable disconnected. This may be difficult to believe but that is what happens.
I am using an ESP-WROOM-32 (30-pin) MCU.
For the sake of clarity here is a grab of the 2-channel SSR in question: My sketch is a bare-bones BLINK sketch that works well for testing relays.
Code: Select all
// initialize pin numbers:
const int grnLed = 5;
const int redLed = 19;
void setup() {
pinMode(grnLed, OUTPUT);
pinMode(redLed, OUTPUT);
}
void loop() {
digitalWrite(grnLed, HIGH);
digitalWrite(redLed, LOW);
delay(5000);
digitalWrite(grnLed, LOW);
digitalWrite(redLed, HIGH);
delay(5000);
}
While I can live with the non-SSR relay I would prefer to use the SSR version because of its longevity and and non-clicking behavior.
If anyone can point out my overlooked mistake with these 2-channel SSR's I would be very grateful.
Thank you.