aeary
Posts: 4
Joined: Wed Jun 06, 2012 10:42 pm

Re: Switching an appliance on and off

Sun Jun 17, 2012 7:25 pm

How would one go about using the basic GPIO as simply dry contacts to trigger passive relay? I.e. GPIO goes high and completes a circuit then triggering said relay. Would you be using the shared ground and the GPIO pin?

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4205
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Switching an appliance on and off

Sun Jun 17, 2012 9:36 pm

No. The GPIO outputs are not voltage free. They are a source or sink of a few milliamps at 3.3V

User avatar
patrikg
Posts: 168
Joined: Sun Mar 18, 2012 10:19 pm

Re: Switching an appliance on and off

Sun Jun 17, 2012 10:58 pm

Have you look at gembirds products ??

Via USB
http://www.gembird.nl/item.aspx?id=3234

Via LAN
http://www.gembird.nl/products.aspx?sg=239

I have seen linux ports of programs.

http://sispmctl.sourceforge.net/


Best regards
Patrik
Attachments
img.jpg
img.jpg (15.29 KiB) Viewed 2318 times

aeary
Posts: 4
Joined: Wed Jun 06, 2012 10:42 pm

Re: Switching an appliance on and off

Tue Jun 19, 2012 5:46 pm

Backstory, I am a computer/networking guy that is more than adept with a soldering iron but still fairly fuzzy on anything more complex than a basic circuit. I have seen suggestions of using an optical isolater (octocoupler) or a solid state relay to do what I am attempting to do...does anyone have any more specific information on setting this up in conjunction with the GPIO pins to simply complete circuits?

User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Switching an appliance on and off

Tue Jun 19, 2012 6:19 pm

aeary wrote:Backstory, I am a computer/networking guy that is more than adept with a soldering iron but still fairly fuzzy on anything more complex than a basic circuit. I have seen suggestions of using an optical isolater (octocoupler) or a solid state relay to do what I am attempting to do...does anyone have any more specific information on setting this up in conjunction with the GPIO pins to simply complete circuits?
My thoughts on this after a whole lot of research:

1) Since we want to control appliances with the GPIO it makes sense in this application to design it with a pull down resistor making sure the optocoupler doesn't getting floating voltages

2) Optocouplers aren't designed to directly control circuits, they're designed to control triacs (Which control the circuit).

3) For mains voltages SSRs are basically prepacked Optocouplers+triacs, so you're really just making a diy, cheaper relay

4) Here's some links to resources I've been reading to get a hand on the GPIO controlled circuit design. (The following lines are all links)

First one by our forum's very own Grumpy Mike

Sparkfun describes the differences between a pull up and a pull down resistors

An Ardunio tutorial, it uses 5V rather than 3v3 but the information it provides is priceless!

I was originally looking at the MOC3010m, but I think it requires too high a mA current to drive it, so I revised my optocoupler to the Vishay VOM160NT, it only needs 5mA to drive it, so I think it will work a lot better in the long run, especially if you want to control more than one thing at a time using nothing but the power/current provided by the gpio pins.
Dear forum: Play nice ;-)

thienson30
Posts: 26
Joined: Mon Jul 08, 2013 7:53 am

Re: Switching an appliance on and off

Tue Jan 21, 2014 12:35 am

Check out my youtube video at http://www.youtube.com/watch?v=5dmvT6vTV2w

Hardware (85volt to 260volt RF Relay Receiver) is available at http://www.ebay.com/itm/271337832780?ss ... 1555.l2649

User avatar
Richard-TX
Posts: 1545
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Switching an appliance on and off

Tue Jan 21, 2014 12:42 am

Why don't you use solid state relays?

- 3-32 volt triggerable
- Opto isolated
- up to 40 amps@240 volt capable.
- Not expensive.
- Silent

I use them for a variety of things; from controlling lamps, to controlling air compressor tank drains, to controlling two 1000 watt audio amplifiers.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

Adrian-Rosoga
Posts: 4
Joined: Sat Jan 11, 2014 1:12 pm

Re: Switching an appliance on and off

Thu Mar 16, 2017 10:08 pm

Richard-TX wrote:Why don't you use solid state relays?

- 3-32 volt triggerable
- Opto isolated
- up to 40 amps@240 volt capable.
- Not expensive.
- Silent

I use them for a variety of things; from controlling lamps, to controlling air compressor tank drains, to controlling two 1000 watt audio amplifiers.
Hi Richard,

Could you please post a link to one of those you are using?

boyoh
Posts: 1011
Joined: Fri Nov 23, 2012 3:30 pm

Re: Switching an appliance on and off

Thu Mar 16, 2017 11:02 pm

When using the Pi to control or switching mains appliances, this must be don.using buffer
Isolating stages between the Pi low voltage and the mains voltage, One important fact the
The earth protection wire MUST NOT BE SWITCHED, also the correct size fuse must
Be fitted for the appliance.

Advice Leave mains alone .
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

Return to “Automation, sensing and robotics”

Who is online

Users browsing this forum: No registered users and 20 guests