|
Re: IR Beacon/reciever not working... still...
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.
__________________
"What lies behind us and what lies before us are tiny matters to what lies within us" - Ralph Waldo Emerson
------------------------------------------------------------------------------------------------------
I love deadlines, I especially like the sound they make as they go rushing past our team.
-------------------------------------------------------------------------------------
My project wasn't late, it was a year early
------------------------------------------------------
If I'm not injured by the end of a robotics meeting I haven't done enough work. -- Me
|