2 Relay Module - Start Inverted

Moderator: leecollings

Post Reply
guantolento
Posts: 129
Joined: Saturday 01 October 2016 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: LastBeta
Location: Italy BG
Contact:

2 Relay Module - Start Inverted

Post by guantolento »

Godd evening to everyone.
I have the 2 relay channel as in photo.
WhatsApp Image 2017-02-16 at 21.06.05.jpeg
WhatsApp Image 2017-02-16 at 21.06.05.jpeg (93.42 KiB) Viewed 3935 times
I don't touch the jumper. I connect the GND to GND PI3, VCC to +5V PI3 and IN1 to a pin of PI3. I follow the wiki to export as output the pin bcm 17 in my case.
When the PI3 start, pin 17 is in V 0 (from gpio readall) and the relay is fisical On and in Domoticz the virtual switch is Off. If i connected a light, i need to use the Com-Nc on the relay (because the relay is in security mode). But in this situation if the Pi3 shutdown the light put On forever.
It's possible to export the pin 17 in V 1, the ralay is fisical Off and in Domoticz the virtual switch is Off ???
Master (pi3) - MB sensors + Dummy + Sysfs gpio + 1 NodOn MSP-3 + 1 Aeotec DSB28 Energy Meter + 3 Danfoss RS Room + 7 Danfoss Z Thermostat + 1 Swiid Inter + 9 FGS222
Slave01 (pi2) - MB sensors + Dummy + Weather Underground + 2 FGS223 + 1 FGWPE/F
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

Re: 2 Relay Module - Start Inverted

Post by Lebo2d9 »

Hi, I just read your post.

You need to invert your output of your RPI.

The relais is active low, this means that when your output is 0V your relais is active.

I used a ULN2003 to conevert my outputs. You can also check https://www.google.be/search?q=pnp+inve ... wvu5CezM:
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest