Switching an appliance on and off


30 posts   Page 2 of 2   1, 2
by aeary » 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?
Posts: 4
Joined: Wed Jun 06, 2012 10:42 pm
by rurwin » 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
Moderator
Posts: 2525
Joined: Mon Jan 09, 2012 3:16 pm
by patrikg » 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 704 times
User avatar
Posts: 43
Joined: Sun Mar 18, 2012 10:19 pm
by aeary » 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?
Posts: 4
Joined: Wed Jun 06, 2012 10:42 pm
by abishur » 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 ;-)
User avatar
Moderator
Posts: 3837
Joined: Thu Jul 28, 2011 4:10 am
Location: USA