Page 1 of 1

6xRelay module - relay connected on low (0) signal?

Posted: 31 May 2018, 00:42
by spachal
Hallo, maybe I'm doing something wrong, but when I wire my relay array (six relays with optocouplers) with nodeMCU - this schema: https://www.letscontrolit.com/wiki/inde ... 4relay.jpg, I can control it without problems by mqtt or http GPIO command (http://IP/control?cmd=GPIO,12,0 for example, first relay on GPIO12/D6), but relays are connected with GPIO state low (0) and disconnected with high (1).

Is it normal? I supposed that this will be in reversed order (low disconnected - led dark, high connected with led lighting).
Thx for info! :]

Re: 6xRelay module - relay connected on low (0) signal?

Posted: 31 May 2018, 06:36
by papperone
it depends how relays are connected, usually it's safer when using optocouplers to use reverse logic as you described 0=relay on, 1=relay off.

Re: 6xRelay module - relay connected on low (0) signal?

Posted: 31 May 2018, 10:30
by spachal
OK, thanks for info, if it's 'normal', then everything is OK :]