2-Channel SSR Problem
Posted: Tue Apr 16, 2024 10:16 pm
I was hoping to save some room in my project enclosure by using a 2-channel SSR instead of using two 1-channel SSR's. However, no matter what I try, the 2-channel SSR's will just not work. I have tried two of these 2-channel SSR's and get identical behavior from both.
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.
If I switch out the 2-channel SSR and replace it with two 1-channel SSR's of the same make, the SSR's fire off the attached LED 'load' as expected. Here is the 1-channel SSR used:
If I switch out both SSR'S and replace them with a non-SSR 2-channel relay as shown next:
then the LED's are switched ON/OFF without any issue whatsoever.
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.
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.