2 Relay Module - Start Inverted

guantolento
Posts: 157
Joined: Saturday 01 October 2016 14:48
Target OS: Raspberry Pi
Domoticz version: LastBeta
Location: Italy BG
Contact:

2 Relay Module - Start Inverted

Postby guantolento » Friday 17 February 2017 20:24

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 313 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: 112
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi
Domoticz version: L stab
Location: Belgium
Contact:

Re: 2 Relay Module - Start Inverted

Postby Lebo2d9 » Thursday 25 May 2017 0:25

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 [url]https://www.google.be/search?q=pnp+inverter&tbm=isch&imgil=o0dbN9wvu5CezM%253A%253BmxFLb40yxRqZVM%253Bhttps%25253A%25252F%25252Felectronics.stackexchange.com%25252Fquestions%25252F30238%25252Fhow-to-invert-a-digital-signal&source=iu&pf=m&fir=o0dbN9wvu5CezM%253A%252CmxFLb40yxRqZVM%252C_&usg=__kJUqqyRoDtOQ-Twa5x1v-8YsUaA%3D&biw=1366&bih=627&ved=0ahUKEwjo8eTGyInUAhWF1hQKHbnZC1MQyjcIOQ&ei=jwcmWajuDYWtU7mzr5gF#imgrc=o0dbN9wvu5CezM:
[/url]
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12.
Domoticz on RPI3(wifi) as slave with 8 channel relais board on GPIO for terraruim control (in start up)
More to come


Return to “Raspberry Pi GPIO ( WiringPi )”

Who is online

Users browsing this forum: No registered users and 3 guests