Quote:
|
Originally Posted by cheezewiz
Hey,
So far we have been able to program and upload code for our test robot. But we are still a little confused dealing with the IR. First off we heard that the schematic for the IR emmiter circuit was wrong, so we followed the new schematic and it just overheated and diddnt do anything. Was the origional schematic really wrong, or did we just wire the new circuit wrong? Then asuming that the emitter circuit is working, and we have the infrared reciever hooked up to digital input 1, what variable should we be useing to get input from the censor (as in rc_dig01)? Also when the robot sees the censor what value should the variable show? From our testing we it looks as if when it sees IR the variable is set to 0 and when it doesnt see IR it shows some # in the 3000's. Any help here would be greatly appriciated.
Thank You
|
The values returned by the IR sensor are 0=sees IR, or 1=does not see IR.
Are you running the sensor from the EDU controller? If so pins 1 & 2 are setup as analog inputs. Use pin 6 instead which the default code sets up as a digital input. Make sure you get the IR sensor pins wired correctly. The center pin is the Blk or common.
[edit]
BTW you can also check to see if your beacon is emitting by pointing a digital video or still camera at it. Digital cameras can "see" the IR frequency used.
[/edit]