pinMode() automatically sets digital pin to high

Another interesting possibility.

OTOH, I'd normally expect an optocoupler-based relay driver NOT to be subject to turning on with "floating inputs." It takes a somewhat substantial bit of current through the LED for an optocoupler to turn on.

1 Like

The Amazon pic looks pretty optocouplery:

It is indeed "active LOW", so you need to do what I said in post#13.

The worst relay board you can buy.
Opto couplers, but no opto isolation, because of a design fault.
The opto LEDs are permanently connected to the opto transistors (has no JD-VCC jumper).

There are also several versions of that board. With or without buck converter. If you hover over the first and second small image on the left of that web page, you will see.
So which one have you got. And how are you powering the board when it hasn't got a buck converter fitted. Does it have 5volt relays or 12volt relays fitted.
Leo..

1 Like

Current above led forward V.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.