View Single Post
  #7   Spotlight this post!  
Unread 30-01-2004, 09:22
Ferazel2001 Ferazel2001 is offline
Mac Junkie
AKA: Devon
None #0599 (Robodox)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: California, North Hills
Posts: 20
Ferazel2001 is on a distinguished road
Send a message via AIM to Ferazel2001 Send a message via MSN to Ferazel2001 Send a message via Yahoo to Ferazel2001
Re: IR Beacon/reciever not working... still...

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?