PDA

View Full Version : Imfrared help



logan996
04-06-2010, 02:34 AM
I need help with the infrared for the BS2. I have a infrared LED and infrared 3 pin reciever, a homework board, and tons of resistors. I need help with the schematics too. What i wanted to do is point a tv remote at the reciever and press a button on the remote so that it sends a signal. then i want the BS2 to store that signal and when a button on the BS2 is pressed it will send that signal (and then to have new button programed in then justreset program)
I don't know the code for infrared but i need the code to look something like this:

VAR's:
Signal

Get_signal:

· getsignal
·· if Signal = 0
··· then repeat
···· else goto Main

getsignal:

·in1 = Signal

Main:

·wait untill·(in2= 1)···············' when the btn is pressed
· then freqout·Signal· ·········· ' then broadcast infrared signal varible
·· repeat

Need help ASAP! Thanks guys!







▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When the government is afraid of the people there is liberty, when the people are afraid of the government, there is tryanny"

· Thomas Jefferson
·

Franklin
04-06-2010, 02:54 AM
There is some help in the 'boebot with remote control' book along with (I believe) a nuts and volts article on reading the Sony remote.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen

Spiral_72
04-06-2010, 04:27 AM
Note, that the remote sends Ir modulated on some frequency.... 30kHz for example. I assume your three pin detector is tuned to the same frequency as your remote? If so, then all you should get out of the detector is data.

So, when you send the data back out, you probably need to modulate the data again...... With that said I dunno what your doing with the sent data either.


For my information, which Ir receiver are you using? I've been toying with Ir as well.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... crap, there went another one.

logan996
04-06-2010, 04:50 AM
umm i ha ve no idea what you said but i have an IR reciever that i got from parrallax, do you know the hookup schematic?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When the government is afraid of the people there is liberty, when the people are afraid of the government, there is tryanny"

· Thomas Jefferson
·

Zoot
04-06-2010, 05:13 AM
It's all right here in black and white:

www.parallax.com/Portals/0/Downloads/docs/prod/sic/WebIR-%20v1.1.pdf (http://www.parallax.com/Portals/0/Downloads/docs/prod/sic/WebIR-%20v1.1.pdf)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST

1uffakind.com/robots/povBitMapBuilder.php (http://1uffakind.com/robots/povBitMapBuilder.php)
1uffakind.com/robots/resistorLadder.php (http://1uffakind.com/robots/resistorLadder.php)

logan996
04-06-2010, 05:16 AM
thanks zoot!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When the government is afraid of the people there is liberty, when the people are afraid of the government, there is tryanny"

· Thomas Jefferson
·

erco
04-06-2010, 05:56 AM
Sounds like you want to build your own "learning" remote control. Any item, any brand. 'Zat about right?

Might be possible, depending on the particular timing and how many different commands you want to store. You'll probably need to use an external 555 timer to generate a 38 kHz carrier and just have the Stamp modulate that.

First you'll need to verify that your remote uses IR (some new ones are RF) and is transmitting on a 38-40 kHz carrier . Got a friend with an oscilloscope?

Next, you should familiarize yourself with the Sony protocol, which Parallax has documented very well. You can extrapolate from that to try to tackle non-Sony codes.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."

logan996
04-06-2010, 05:59 AM
ug, if its going to be that hard than i'll just forget it, i guess ill just work on my other project

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When the government is afraid of the people there is liberty, when the people are afraid of the government, there is tryanny"

· Thomas Jefferson
·

erco
04-06-2010, 12:39 PM
Wow, that was a record for a short-lived quest, logan996! I was about to point you to this thread http://forums.parallax.com/showthread.php?p=759751· where I showed how to send·one Sony code out using that ever-loving Stamp/555 combo I mentioned earlier.

Still a good idea, though. Maybe since you're not going to follow up on that, now I'll do it and get rich. Thanks a million!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."

Lucky
04-06-2010, 01:27 PM
If anybody's interested, I'm working on the same project for the propeller. It can store commands from 2 different remotes and and store up to 36 buttons. You can also reassign a different command to a button by just hitting the reset button and then the desired reprogrammed button. Right now I'm trying to make it as versatile as possible. My cable remote sends 34 high to low alternations while another remote sends just 12 high to low alternations. Both have different high and low times for pulses. Right now, my program works on both remotes and TVs. One thing I did to get more accurate readings of the pulse lengths is to have the user press the button twice in front of the ir receiver, where on the first press it records high pulse lengths and second press reads in low pulse lengths. I don't think it is necessary for the prop since it runs at 80MHz, but you might have to use this method for the BS because its so slow.

-I think they already have these types of remotes out on the market, I just wanted to make my own. I'm using some highpower IR 940nm LEDS to get my distance extended. Also, since the LEDS are modulated at 38khz, you can apply a much higher current than the LEDs rating since it is on for only microseconds at a time.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"The man who smiles when things go wrong has thought of someone to blame it on."


-Lucky

Post Edited (Lucky) : 4/6/2010 5:35:57 AM GMT

Spiral_72
04-06-2010, 10:21 PM
I wanted to do something similar with the TV and drive my wife nuts :) Every 5 minutes change from her "Gross Girl Shows" to the Discovery channel. HA!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... crap, there went another one.