Using IR to switch relay????

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Using IR to switch relay????

Postby khelms » Tue Mar 05, 2013 10:45 am

I want to be able to use a remote control to switch on a relay. I am not using any code, just basic knowledge of IR. The circuit turns an LED on when i push the button on the remote. i am using the output to the led to switch the relay. so when i push the remote button the relay goes off, The problem i have is that the IR signal is not steady and there for the relay makes noise but does not actually complete a connection. any ideas on how to make that signal steady so the relay with function properly? The Relay will be used as a switch for a code i made for an automatic skeet thrower release
khelms
 
Posts: 10
Joined: Fri Dec 21, 2012 9:19 am

Re: Using IR to switch relay????

Postby adafruit_support_rick » Wed Mar 06, 2013 10:53 am

IR remotes use a PCM-encoded signal over a 38KHz carrier. If you filter out the carrier, you're still going to get a pulse-train with varying widths of ~1.. 4ms.

Use a big- enough cap and you might smooth out the signal train itself, but IR remotes repeat the signals about 10/sec, with a gap of about 60ms between each signal.

I don't think I see any way to simply connect an IR detector to a relay and have it do what you seem to want to do.
User avatar
adafruit_support_rick
 
Posts: 3139
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Using IR to switch relay????

Postby khelms » Wed Mar 06, 2013 11:10 am

thank you. i am familiar with the workings of IR signal. I think ill try messing with caps. See if i can find one that will smooth that out put signal to something that will keep that relay on. thanks for the idea
khelms
 
Posts: 10
Joined: Fri Dec 21, 2012 9:19 am

Re: Using IR to switch relay????

Postby abqlewis » Wed Mar 06, 2013 1:13 pm

If you add a diode to your cap circuit, it may help the smoothing (like rectifying an AC input).
If you can't get the caps to work smoothly, you can use a 555 as a pulse stretcher. A little more circuitry, but there is no code attached!
abqlewis
 
Posts: 57
Joined: Fri Dec 11, 2009 1:19 am


Return to Arduino

Who is online

Users browsing this forum: daz1761, mibignistinly and 9 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]