![]() |
Re: New Infrared Remote Control Software
Beware of Differing Pinouts on Vishay IR Sensors.
There are different versions of the Vishay sensors in Identical packages. The TSOP48xx family is one that works as documented with Gnd on Pin 2. However, the TSOP322 family, which is arguably better because of its 2.7 - 5.5V power supply range, has ground on pin 3 and power on pin two. This is reversed from TSPO48xx family. IF YOU USE A TSOP322XX FAMILY SENSOR AND FOLLOW KEVIN'S DIAGRAM YOU WILL INSTANTLY FRY THE SENSOR. Good practice is to always make sure you have a datasheet for the actual device you are using and double check the connections. |
Re: New Infrared Remote Control Software
Quote:
remain well within spec with 3 additional identical devices plus the current sourced from the Robot Controller. So you should be able to have a total of 4 sensors on one input. (You could probably have several more but then you will be outside the 250mV max output low voltage specification. Beware, however, that you be subject to interference from any sensor which may prevent your desired signal from getting through. An interfering signal on the same carrier frequency being received from any of the sensors will interface will all sensors. A more robust approach would be to use separate interrupts for multiple sensors f you have the available interrupts (from 3 to 6). This way, an interfering signal being received from one sensor will not mess up the signal being received at the other sensor. You will need to modify the code to share a timer. |
Re: New Infrared Remote Control Software
Quote:
|
Re: New Infrared Remote Control Software
Would it be possible to use the sensor off of the IR board instead of buying a new sensor? Thanks.
|
Re: New Infrared Remote Control Software
Quote:
-Kevin |
Re: New Infrared Remote Control Software
Quote:
|
Re: New Infrared Remote Control Software
I tried to make a quick fix to increase the coverage of our IR sensors by quickly adding a second interrupt and third interrupt. I knew the way I did it wasn't right, but it mostly worked enough. I was wondering what I would have to do to properly add more interrupts to the the IR code. I don't like wiring multiple sensors in parallel, because it looks like if the sensors receive signals at different times, their output pulses will interfere.
Here is what I did: Code:
#ifdef ENABLE_INT_3 |
Re: New Infrared Remote Control Software
Quote:
sensors will generate edges and if 2 or more are active at the same time the pulse width measurement will be messed up. One solution is to dedicate timer1 as a free running timer (which is what we do). We use it to count 100ns clocks. It overflows every 6.5536 ms. The interrupt for the timer increments a global "tick" which can be used for less precise timing tasks and to tell whether overflow has occurred, i.e. more than 6.5ms has passed. For short interval time measurements (like the IR pulse widths) you can store the values from the timer (and the tick) and compute the time interval that has passed. You need to be sure to use 16 bit read/write mode on the timer (RD16 control bitof T1CON) and read TMR1L first followed by TMR1H. The read of TMR1L latches the upper bits of the actual counter into a temporary buffer so that overflow is not a concern. You should also disable interrupts globally while reading the two timer bytes to eliminate a race conditions. You might want to include your reading of the current global "tick" value within the same critical section. Hope this helps! |
Re: New Infrared Remote Control Software
We are using this software with the IR sensor in the kit. Since we had already made a nice enclosure for the IR board, we just cut the traces to the IR sensor and soldered a PWM cable per Kevin's diagram.
Once we found a remote that had the right protocol, we had no problems. |
Re: New Infrared Remote Control Software
Our team is currently using the IR code, but have a problem with interference when two Sony remotes are on the field. Is there anyway to set it to only respond to a specific remote control?
|
Re: New Infrared Remote Control Software
Quote:
One thing that I noticed when playing with my Universal remote, most of the Sony devices ==> (Address), use the same Commands when the same button is pressed. So if you are just looking at Command, you may have issues. Here is something that might also help. When you configure the remote to control a Sony Audio amplifier, it uses really odd "Command" values. ie: 63, 57, 67 for buttons like 1, 2 and 3. Also 3-9 use the same command. (This is the odd behavior I mentioned in a different thread, and we took advantage of this year. We never once had interference.) |
Re: New Infrared Remote Control Software
at?
|
| All times are GMT -5. The time now is 08:02. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi