dsgashi
Posts: 12
Joined: Fri Oct 24, 2014 7:02 pm

What in between Pi and relay board?

Sun Jan 04, 2015 9:17 pm

Hello Pi users.
I have two 5v 8 channel relay boards that are active low. They are working fine Pi B+ version connected direcly to the GPIO 0-7, 21-28 and 3.3v. Both relays are being powered by a saperate 5v power supply (connected to Ground and JDVCC).

Pi gets hotter when relay are connected (few degrees) so would some IC curcuit like Darlington Arrays (ULN2804A) release the power load?

I would like to relase the power load as much as possible. Perhaps best way would be NPN transistor but that needs in addition two more resistor and the circuit looks uglier ;)

So, question is, what IC circuit would be the best to release the load on the Pi to simply pwer a relay board?

User avatar
Burngate
Posts: 6302
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: What in between Pi and relay board?

Mon Jan 05, 2015 12:27 pm

Since not all 8 channel relay boards are equal, it's difficult to give definitive advice.
However, it sounds like your particular ones are perhaps not buffered - the relay coils are connected directly to the inputs.
If so, be aware that the Pi's GPIOs aren't designed to withstand the 5v that would be applied through the relay coils. Also they can't safely supply the current the relays require.

A ULN2804A wouldn't work because it requires 6v to drive it, but a ULN2803A would work well.

User avatar
iinnovations
Posts: 621
Joined: Thu Jun 06, 2013 5:17 pm

Re: What in between Pi and relay board?

Mon Jan 05, 2015 3:25 pm

That package is convenient, but nFETs on low side would work fine, with 5V on high side. Use appropriate pull-up/downs. Not sure what you mean by active low if these are controlled directly. Apply voltage, relay contact closes.
CuPID Controls :: Open Source browser-based sensor and device control
interfaceinnovations.org/cupidcontrols.html
cupidcontrols.com

gordon77
Posts: 5036
Joined: Sun Aug 05, 2012 3:12 pm

Re: What in between Pi and relay board?

Mon Jan 05, 2015 3:28 pm

Do you have a link to show us the board ?

Some models have opto inputs so shouldn't take much current.

dsgashi
Posts: 12
Joined: Fri Oct 24, 2014 7:02 pm

Re: What in between Pi and relay board?

Mon Jan 05, 2015 8:41 pm

Hello Pi users. Thanks for the replay.

The board I bought is this one http://www.ebay.com/itm/111283816540?_t ... EBIDX%3AIT

Two similar boards are connected to the Pi and on the 3.3v pin for 12 hours. I made Pi outputs low to enable all 16 channel.

Disconnecting the board with all channels still active low, the Pi is not that hot.

User avatar
Burngate
Posts: 6302
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: What in between Pi and relay board?

Tue Jan 06, 2015 11:47 am

The inputs to that board are through opto-isolators driving transistors, so the relay coil current won't be an issue for the Pi.
The only thought I have is that the E-bay listing doesn't specify the drive current or voltage for the optos.
When the input is driven low, what current does it take? And when it isn't driven low, what voltage does it put on the GPIO?
I don't think it should be a problem, but I don't know.

If the Pi gets hotter with the board attached it means more current is flowing. There is a limit beyond which the Pi will be damaged. Without full specs, only by measuring that current can you find out if it's safe.

dsgashi
Posts: 12
Joined: Fri Oct 24, 2014 7:02 pm

Re: What in between Pi and relay board?

Tue Jan 06, 2015 12:09 pm

I connected my multimeter on the 3,3v and the relay VCC input. While all 8 channals were active low (meaning relaysactive), the multimeater was showing 3,7 mA (for the entire board of 8 channels)

The other 8 channel relay will probably consume the same amount. So about 7.5mA both.

The opto-isolator probably does not consume that much power but these relay boards have in LED to show the state and the LED part is connected parallel with opto-isolator. I have noticed that when JDVCC is disconnected, relays will not activate but LEDs remain on. These relay boards could have LEDs powered by the JDVCC.

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: What in between Pi and relay board?

Tue Jan 06, 2015 11:28 pm

if you want to offload the switching from the pi you could use a MCP23017 I/O expander to use the I2C bus to give the signals. The MCP23017 can be powered externally from the pi.
Doug.
Building Management Systems Engineer.

dsgashi
Posts: 12
Joined: Fri Oct 24, 2014 7:02 pm

Re: What in between Pi and relay board?

Wed Jan 07, 2015 7:32 am

Thanks BMS Doug

I was planning to use expanders for the inputs and PI's GPIOs for outputs. The calculated current from the Pi to relay board is not that much but still, heating PI board a bit more. I want to use PI for home automation so I want a reliable solution avoiding anything that could lead to a failure. I don't want all the lights to go off while kids are alone or something.

br dsgashi

mike_p
Posts: 30
Joined: Fri Aug 01, 2014 2:35 pm
Location: Surrey, UK

Re: What in between Pi and relay board?

Wed Jan 07, 2015 8:13 am

Have a look at this Texas instruments page: it lets helps you easily select components based on performance requirements.
http://www.ti.com/lsds/ti/interface/per ... ducts.page

Return to “General discussion”