Quote:
Originally Posted by EricH
Do you have any access at all to an oscilloscope?
If you do, you should be able to use that. If not, it may be worthwhile to get access to one--it's a handy little device when it comes to measuring sensor and circuit output, even handier than a multimeter for some circuits.
|
The HiTechnic IRSeeker is an I2C sensor.
In this case, a logic analyzer would be a better tool.
Quote:
Originally Posted by Jared341
|
Those are the NXC (Not eXactly C) documents.
http://botbench.com/blog/2011/09/10/...er-suite-v2-1/
These are the RobotC sensor drivers by Xander Soldaat.
The first directory has examples on how to read the sensors.
Here is a snippet from HTIRS2-test1.c that shows how to read the direction, and the strength:
Code:
// read the current modulated signal direction
_dirAC = HTIRS2readACDir(HTIRS2);
// read the AC sensor strengths, where acS1 - acS5 are the 5 internal IR sensors
if (!HTIRS2readAllACStrength(HTIRS2, acS1, acS2, acS3, acS4, acS5 ))
break; // I2C read error occurred
// You want to use the AC readings as the IR beacons that are on the field are modulated at 1200hz