Imfrared help
logan996
Posts: 281
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
·
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
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
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"...... Smile, there went another one.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When the government is afraid of the people there is liberty, when the people are afraid of the government, there is tryanny"
· Thomas Jefferson
·
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
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When the government is afraid of the people there is liberty, when the people are afraid of the government, there is tryanny"
· Thomas Jefferson
·
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."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When the government is afraid of the people there is liberty, when the people are afraid of the government, there is tryanny"
· Thomas Jefferson
·
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."
-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[size=-1][/size]
Post Edited (Lucky) : 4/6/2010 5:35:57 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.