|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Quote:
-Kevin |
|
#32
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
also, it's best to have the official code only posted certain places, as updates (if necessary) would be painful with multiple locations.
|
|
#33
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Hi,
We began experimenting with the IR sensors. We're waiting on our mechanics to get the robot assembled so we can wire it and begin to tweak the code. The beacon works well...looks cool through a digital camera set to night vision. We are using an IR sensor to drive an LED. Tapping off signal between 33 ohm resistor and LED cathode and sending to oscilloscope. We are curious about the IR sensitivity. About 12 feet from beacon we realize how sensitive the IR sensors are in terms of orientation (azimuth and elevation). We placed a tube around the sensor to improve detection. Turning lighting off in room seems to improve signal detection...however, this may simply be allowing us to see the waveform a little better. Has anyone experimented with improving detection range? Other than optics of some sort, there is no way to amplify the signal inside the IR sensor since an ON/OFF signal is produced. Regards, ChuckB |
|
#34
|
|||
|
|||
|
Re: Official Beacon Tracking Code Posted
I'm currently studying the program, but i just can't get how the robot follows the signal, does the motors get activated based on the pwm that the program send to the servos that have the sensors ?
The way i get it, i think it would be like this If the sensor pwm is 100 the motors would be activated to make a left turn with the robot, is that corrent ?! Thanks for your help ![]() |
|
#35
|
|||
|
|||
|
Re: Official Beacon Tracking Code Posted
i found out what was wrong. before i was unable to download some of the code posted and a project i was building. if any of you have trouble downloading projects between 12,000 and 18,000 bytes, and you get an error.mcp file, or the frc doesnt leave the program state, it probably is because you are running a version of ifi loader before 1.06. apparently, the previous versions cant handle medium sized files. anyways, thanks for people's help!
becca |
|
#36
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
so we use beacon on EduRobot and Tracker Code on the FRC robot to see if it works???
|
|
#37
|
|||
|
|||
|
Re: Official Beacon Tracking Code Posted
Kevin,
On your website, you mention that there are two versions of receiver.c. Quote:
I was using a solderless breadboard to build and test the beacon and sensors before committing to a design. Using the EDU, I was going to marry the beacon driver and the receiver code into one program to get a better understanding of how this stuff works. (i.e. one program to both flash the beacons and detect it with a sensor) Unfortunately, my first attempt at that resulted in a flashing red program state LED on the EDU. I will work on it again tonight. Are there any considerations/conflicts when including receiver.c in the beacon code? |
|
#38
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Quote:
-Kevin |
|
#39
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
I have noticed that the diagram that FIRST has posted on the photo sensor is wrong if you go by the picture. If you follow were pin 1 goes it is correct but looking how the sensor ir positioned on diagram pin 1 and 3 are swapped. We caught this by looking at the datasheet from http://www.kevin.org/frc/TSOP34840.pdf
I hope this will help any other teams that might be having some small problems with the IR sensors. Matthew Ubergeeks |
|
#40
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Quote:
-Kevin Last edited by Kevin Watson : 28-01-2004 at 22:58. Reason: Icky grammer. |
|
#41
|
|||
|
|||
|
Re: Official Beacon Tracking Code Posted
I was wondering, once the Turn_To_Target state switches to the Drive_To_Target state, what is it supposed to do since Drive_To_Target is blank? Does that code have to be implemented by ourselves?
|
|
#42
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Code:
case DRIVE_TO_TARGET: case PASSED_TARGET: |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is your most prefered programming language? | Hailfire | Programming | 156 | 19-01-2005 21:42 |
| InfraRed autonomous code ... | mtrawls | Programming | 1 | 11-01-2004 00:25 |
| Autonomous code | PBoss | Programming | 7 | 14-01-2003 15:29 |
| Does your team use the Default code. | Jeff McCune | General Forum | 2 | 09-01-2003 14:46 |
| Patent source code? | Kyle Fenton | Chit-Chat | 3 | 20-10-2001 17:53 |