Quote:
|
Originally Posted by Team981
FIRST made a mistake in the original detector diagram by reversing the 5 Volts and the Signal lines that was corrected in the afternoon of 1/29. Unfortunately for my team we blew up a detector before figuring to check Vishay's specs. Make sure that if you are looking at the detector from the front bulbed portion of it that it's wired from left to right as follows:
White/yellow | Black | Red
Also a simple code attached to the end of user_routines_fast.c in the portion that executes every loop on the EDU-bot RC can test whether your receiving or not. an example follows.
if (rc_dig_in01 != 1)
txdata.rc_pwm08 = 0;
else
txdata.rc_pwm08 = 127;
This causes a motor on PWM 8 to move when the detector finds an infrared signal. Rudimentary and crude it may be but it worked for our team. You can change this to suit your available PWM spaces and Digital inputs.
|
Er, someone probly said this somewhere else, but I still havent found it. What PWM port does the Beacon go in on the EDU RC?
Also, We the program for the competition RC set up so it printf's digitalIO's current value, (if it changes). Our value goes from 260± 40 to 400± 50. Do all of the digital inputs always do this?