Bosse_B
Posts: 981
Joined: Thu Jan 30, 2014 9:53 am

Plug-on relay driver anywhere?

Wed Oct 07, 2015 12:05 am

I would like to connect a couple of relays to the Pi2 (GPIO connect) but to do so requires a driver circuit.
So I wonder if there is such a thing ready-made so I don't have to make a board all by myself for this project. I have tried finding something at Adafruit but I couldn't. Possibly by lack of search experience...

A simple board with some interface circuitry and an output buffer sufficient to pull an external relay is what I need.
Any ideas?
Bo Berglund
Sweden

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

Re: Plug-on relay driver anywhere?

Wed Oct 07, 2015 12:27 am

Bosse_B wrote:I would like to connect a couple of relays to the Pi2 (GPIO connect) but to do so requires a driver circuit.
So I wonder if there is such a thing ready-made so I don't have to make a board all by myself for this project. I have tried finding something at Adafruit but I couldn't. Possibly by lack of search experience...

A simple board with some interface circuitry and an output buffer sufficient to pull an external relay is what I need.
Any ideas?
There are a wide variety of 5v relay boards available, these could be used to operate a larger, external, relay.

Look for one with opto-isolated inputs, be aware that there can be issues with the setup.
Doug.
Building Management Systems Engineer.

Bosse_B
Posts: 981
Joined: Thu Jan 30, 2014 9:53 am

Re: Plug-on relay driver anywhere?

Wed Oct 07, 2015 6:19 am

Is it possible to access the GPIO using Free Pascal?
What I find using Google always seem to refer to the original Pi with a different connector and also require root....
Bo Berglund
Sweden

Bosse_B
Posts: 981
Joined: Thu Jan 30, 2014 9:53 am

Re: Plug-on relay driver anywhere?

Sat Oct 10, 2015 10:17 pm

I found that I can toggle GPIO pins from my Free Pascal program (see this thread).
But I could not find any simple ready-made plug-on accessory that implements a relay output.
So I will build a board myself with the needed components.
Done.
Bo Berglund
Sweden

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Plug-on relay driver anywhere?

Sun Oct 11, 2015 1:10 am

There's this one:
http://www.dx.com/p/2-channel-relay-mod ... hm1Y-qsLqA

It might work. Looks like it just uses a transistor buffer.

There's this one:
http://www.dx.com/p/diy-5v-2-ch-relay-m ... hm2M-qsLqA

I have one similar. It uses a poorly designed optoisolator interface. I shorted out the indicator LEDs and it works fine.

There are many modules like this from China on eBay, Amazon, aliexpress and so on. Much easier than building your own.

Bosse_B
Posts: 981
Joined: Thu Jan 30, 2014 9:53 am

Re: Plug-on relay driver anywhere?

Mon Oct 12, 2015 9:43 pm

I bought a 4-relay board designed for Arduino. Does not matter because it operates on 5VDC and GPIO control bits via an opto coupler in each channel.
Works just fine.
Bo Berglund
Sweden

Return to “Automation, sensing and robotics”