razvvan
Posts: 2
Joined: Tue Mar 05, 2013 9:02 pm

using an optocoupler to trigger a remote

Wed Apr 17, 2013 8:51 pm

I'm trying to build a simple mechanism but I have 0 electronics skills so here I go:

I'm trying to use GPIO17 to trigger a remote control button.
I connected it as in the following schema(s/led/remote control):

Image

The optocoupler is a 4N25. and I have power on the right side, so I only need it to act as an on/off switch.

Seems to work but I should probably add some resistors in there... can anyone advise?

User avatar
joan
Posts: 14763
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: using an optocoupler to trigger a remote

Wed Apr 17, 2013 9:30 pm

I don't know. Shouldn't the anode be connected to gpio17?

techpaul
Posts: 1512
Joined: Sat Jul 14, 2012 6:40 pm
Location: Reading, UK
Contact: Website

Re: using an optocoupler to trigger a remote

Wed Apr 17, 2013 9:42 pm

Your opto-coupler looks back to front pin 6 is GND and is the other side of the opto-coupler LED attached to pin 11 or pin 12?

So if this is working your actual wiring does not match your circuit diagram.

Yes you should have resistors on BOTH sides

I cannot tell what value is need on output side as we do not know what voltage the battery is.
Just another techie on the net - For GPIO boards see http:///www.facebook.com/pcservicesreading
or http://www.pcserviceselectronics.co.uk/pi/

danneman
Posts: 19
Joined: Thu Jun 21, 2012 9:57 am

Re: using an optocoupler to trigger a remote

Thu Apr 18, 2013 4:51 am

Hi.

You really need some current limiting resistors on both sides.

You can find a typical optocoupler connection in the schematics of exboard at: http://www.expansionboard.org/wp-conten ... 130401.pdf on page 8.

/Daniel

Return to “Automation, sensing and robotics”