IR remote for Sony DVD player
Cwiber92
Posts: 4
Hello I'm trying simulate my own IR remote control for a Sony DVD player using the bs2. I've been using the "IR Remote for the Boe-Bot" text: http://www.parallax.com/Portals/0/Downloads/docs/prod/sic/WebIR-%20v1.1.pdf
I'm using a 555 timer exactly as in fig. C-1 pg.191 - an oscillator. From the early experiments in the text I've figured out the 5 MSB code for a Sony DVD player is 11010. (TV is 00001) My attached program simply takes in one button code from the actual DVD remote and sends it out with the press of a button. I can't get it to work. I've tried using different carrier frequencies - 40kHz, 45kHz, 50kHz, etc. Strangely enough, when I change the 5 MSB code to 00001 @ 38kHz, everything works perfectly with my Sony TV. (using the TV remote) I've compared the binary-1/0, start, and in between pulses using PULSIN, but both the TV remote and DVD remote yield the same pulse lengths. I've tried boosting the current through my IR LED with a transistor. I have 2 Sony DVD players, neither work with my program. (also, the remotes won't work on the DVD player it's not intended for). Is there a way to measure the carrier frequency of the DVD remote? I've tried using COUNT on the IR module input, but that doesn't really work - the DVD remote does seem to have a higher frequency than the TV remote. So perhaps the only problem is the wrong carrier frequency? Or is the timing different/more sensitive when using a DVD player?
Any help would be greatly appreciated.
Thanks,
Charlie
I'm using a 555 timer exactly as in fig. C-1 pg.191 - an oscillator. From the early experiments in the text I've figured out the 5 MSB code for a Sony DVD player is 11010. (TV is 00001) My attached program simply takes in one button code from the actual DVD remote and sends it out with the press of a button. I can't get it to work. I've tried using different carrier frequencies - 40kHz, 45kHz, 50kHz, etc. Strangely enough, when I change the 5 MSB code to 00001 @ 38kHz, everything works perfectly with my Sony TV. (using the TV remote) I've compared the binary-1/0, start, and in between pulses using PULSIN, but both the TV remote and DVD remote yield the same pulse lengths. I've tried boosting the current through my IR LED with a transistor. I have 2 Sony DVD players, neither work with my program. (also, the remotes won't work on the DVD player it's not intended for). Is there a way to measure the carrier frequency of the DVD remote? I've tried using COUNT on the IR module input, but that doesn't really work - the DVD remote does seem to have a higher frequency than the TV remote. So perhaps the only problem is the wrong carrier frequency? Or is the timing different/more sensitive when using a DVD player?
Any help would be greatly appreciated.
Thanks,
Charlie
bs2
2K
Comments
You're using very specific pulsouts: 1250 and n*300+345. I assume you've used a scope to measure the original remote's output and you're matching that on your BS2?
Thanks
No scope, huh? Can you use someone else's? Do you have a frequency counter to set your carrier frequency?
Do you have 2 Stamps? If so, configure the second one to receive & decode the output signal from your first one to verify.
I wonder if that math in your PULSOUTs is slowing things down, if it's burning 0.5 ms as you say. Try writing a version of code with no math, just hard code the pulses as 300 or 600 uS and do the dummy pulseout trick as shown in my Sony TV program that sent code 20 (although I only tested it on a Basic Stamp reading the code, as I didn't have a Sony TV).
I'm sure you have seen the Sony code list at http://www.hifi-remote.com/sony ?
Make sure you have the proper device code for your DVD.
Thanks for your help erco
http://lirc.sourceforge.net/remotes/
This explains the fields in each specification...
http://winlirc.sourceforge.net/technicaldetails.html
Also you can get the "IR Kit" for the Propeller microcontroller (from Propeller object exchange) and that will read remote codes. That is a handy tool to compare your IR codes with a factory remote for example.