Sending IR remote codes with the bs2
verkev
Posts: 2
I am wanting to send IR remote codes with my bs2. I have done several projects decoding various codes but seem to be having brain lock as far as sending codes. Is what I am trying to do is receive and decode a simple IR code (Sony code) and then have the bs2 send a macro of codes to my other equipment. An example would be for my bs2 to receive a code from my Sony remote and then send the IR codes to power on my receiver, amp, vcr, dvd, projector and set the inputs to my receiver and projector. I know they make remotes that will do this and I have one, but what happens is I have my audio equipment in two different racks and my projector is mounted back away from the receivers, so it is hard to get a remote that will hit them all. My thinking is to hook three IR emitters to the bs2, and position one by my projector and one by each audio rack.
I have been trying to use the pulsout and lookup command to do it but been having a hard time controlling timing between pulses. The other problem is I have one device that uses Phillips codes and it is a code that varies both the positive and negative pulse width. I guess I am looking for ideas.·
I have been trying to use the pulsout and lookup command to do it but been having a hard time controlling timing between pulses. The other problem is I have one device that uses Phillips codes and it is a code that varies both the positive and negative pulse width. I guess I am looking for ideas.·
Comments
·
duration = shortTime + (highTimes.bit3 * value)
PULSOUT Pin, duration
duration = shortLowTime + (lowTimes.bit3 * otherValue)
PULSOUT DummyPin, duration
This technique takes some tuning with an oscilloscope.· Each of the·commands that calculate the duration take time, and this needs to be figured into the duration that is sent to the DummyPin.
Another option would be to switch over to an SX chip and the SX Tech Tool Kit. The SX chip gives you a much higher degree of control over the signal timing.
Post Edited (Andy Lindsay (Parallax)) : 2/9/2006 3:04:46 AM GMT
Has anyboby seen any circuits or ir remote chips that have been tied to the bs2?