Go to Post *Teams. The competitors, who wear brightly colored shirts, scream like crazy, and bring robots. Without them, there would be no competition. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2004, 20:17
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
Question IR Beacon/reciever not working... still...

We built the IR unit, Then wired the reciever, then fixed both of them, and uploaded the program on Kevin.org but the setup is STILL not working.

Has anyone else had problems?
Can someone upload a picture of the setup, Top/bottom of a working reciever/transmitter and what code you used?

Thanks,
Devon
  #2   Spotlight this post!  
Unread 29-01-2004, 20:46
SeanCassidy's Avatar
SeanCassidy SeanCassidy is offline
Antiregistered User
#0263 (Aftershock)
Team Role: Programmer
 
Join Date: Oct 2003
Location: Holtsville, NY
Posts: 37
SeanCassidy is an unknown quantity at this point
Re: IR Beacon/reciever not working... still...

Make sure (for testing) you use tracking.zip instead of navigate.zip. I heard it can create problems. So try the tracking one.
  #3   Spotlight this post!  
Unread 29-01-2004, 23:50
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Re: IR Beacon/reciever not working... still...

Yes, start with tracking.zip

If your setup is fine, tracking.zip should make your servos go from left to right constantly until they catch the light. If they aren't moving after you load tracking.zip, then...

1. Check your wiring.
1a. Make sure the proper pins of the receiver are connected to the proper pins of the pwm wire (check the usfirst.org pdf)
1b. Check to make sure each of the receivers are plugged in to the correct Digi-input. If memory serves me right, IR_1 -> int01, IR_2 -> int02 IR_3 -> int04 IR_4 -> int05 (where IR_1 is left on left servo) - note the skipping of int03
1c. Check to make sure the servos are plugged in to the correct PWM-out (check the code)
1d. Do you have the backup battery charged and hooked up? The servos don't run without it.

2. Troubleshoot the receivers
2a. Turn the beacon off. Do the servos move then? If no, the problem is with your wiring. If yes, the problem lies with the setup of the receivers
2b. Check for reflections
2c. Bring your beacon down to 2 or 1 emitter LED
2d. Ambient light (see Kevin's faq)
2e. Receivers 'shotgunned' enough?

That should be enough to get you started. The purpose of the tracking code is to get your setup working - if the tracking code doesn't work, go back and refine your physical setup. When you get that to work, go to navigate.zip. I personally found that testing the nav code on blocks was a waste of time... you need to have the robot moving on the ground to have the code work.
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies

Last edited by DanL : 29-01-2004 at 23:53.
  #4   Spotlight this post!  
Unread 30-01-2004, 01:15
Team981's Avatar
Team981 Team981 is offline
6 weeks, no sleep
AKA: Ryan K.
#0981 (Team X-Wave)
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 2002
Location: Frazier Park
Posts: 2
Team981 is an unknown quantity at this point
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
  #5   Spotlight this post!  
Unread 30-01-2004, 05:41
capenga's Avatar
capenga capenga is offline
Penga boy
AKA: Giovane
#1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Pio XII High School - Brazil
Posts: 33
capenga is an unknown quantity at this point
Send a message via ICQ to capenga Send a message via MSN to capenga
Question Question...

How can i see the distance between the receiver and the transmitter??
I've read all the programs, but I didn't understand how can I do it. If someone knows, please help.

Thanks!
  #6   Spotlight this post!  
Unread 30-01-2004, 08:38
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: IR Beacon/reciever not working... still...

the sensors don't directly measure distance - if you want to find that, you'll have to use something called parallax - that is, using the two angles of the sensor servos, plus the known distance in between them, to calculate the missing sides of a triangle, and thus know the distance.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #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?
  #8   Spotlight this post!  
Unread 30-01-2004, 12:21
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: IR Beacon/reciever not working... still...

i believe beacon type 1 is on pwm1, and beacon type 2 is on pwm 2, but I may be incorrect.

as for printf, make sure you're casting the value to (int) before you pass it to printf - otherwise you'll get a printed value that's 256 times the true value of the unsigned char variable.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #9   Spotlight this post!  
Unread 30-01-2004, 12:34
Team981's Avatar
Team981 Team981 is offline
6 weeks, no sleep
AKA: Ryan K.
#0981 (Team X-Wave)
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 2002
Location: Frazier Park
Posts: 2
Team981 is an unknown quantity at this point
Re: IR Beacon/reciever not working... still...

If using the EDU rc the program contained in beacon.zip (attached) you should connect the beacon to PWM 1 or 2. Each provides a different frequency for homing onto.
Now regarding the issue with your printing values I'm not sure whats going on there as I'm new to C so somebody else will need to answer that one, Sorry.
Attached Files
File Type: zip beacon.zip (46.9 KB, 41 views)
__________________
"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
  #10   Spotlight this post!  
Unread 30-01-2004, 23:34
Damian Manda's Avatar
Damian Manda Damian Manda is offline
The Damian
no team
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Fort Collins, CO
Posts: 154
Damian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud of
Send a message via AIM to Damian Manda
Re: IR Beacon/reciever not working... still...

Yes, we have been having problems too.

We have set up our system with the proper code running on both the EDU and Full-Size RC, the beacons wired correctly and the detectors hooked to the correct pins. We know that the beacon is emitting infrared, since we can detect it with a learning remote. When the bacon is off, the remote says "No Infrared Detected." We need to figure out if the beacons are somehow emitting the wrong waveforms/frequencies, or if our detectors are just faulty (we have tried more than one). We have hooked the sensors to various inputs, and even wired it to an LED, to no avail. Is there any way to do this without an oscilloscope or other expensive instrument that we do not have? We have everyone that knows anything about the code and infrared stumped, even the engineers. Any hints on other things to test or try?

--Damian Manda
  #11   Spotlight this post!  
Unread 30-01-2004, 23:45
tml240's Avatar
tml240 tml240 is offline
bahh
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Ann Arbor, MI
Posts: 63
tml240 is on a distinguished road
Re: IR Beacon/reciever not working... still...

we have problems with Receiver only.....we tried to increase the voltage....increase power...we left the code tho... anyone actually tried the electrical side to this problem?
__________________

OHL 2004- ultimate NHL 2004 MOD
  #12   Spotlight this post!  
Unread 31-01-2004, 12: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...

Oops, Did I say port? I ment what PINS do the PWM cables connect too, cause PWM's on the new EDU RC are no longer 3 pins, now they are four. how are we supposed to connect them? are they the 3 pins farthest away from the center?
  #13   Spotlight this post!  
Unread 31-01-2004, 13:08
Matthew_H's Avatar
Matthew_H Matthew_H is offline
Ubergeek
#1028 (Ubergeeks)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Huntsville,AL
Posts: 105
Matthew_H will become famous soon enough
Send a message via AIM to Matthew_H Send a message via MSN to Matthew_H
Re: IR Beacon/reciever not working... still...

Quote:
Originally Posted by Ferazel2001
Oops, Did I say port? I ment what PINS do the PWM cables connect too, cause PWM's on the new EDU RC are no longer 3 pins, now they are four. how are we supposed to connect them? are they the 3 pins farthest away from the center?
You will notice on the pwms there is pin that will tell you where to put the black side of the cable.
__________________
Matthew

  #14   Spotlight this post!  
Unread 31-01-2004, 14:07
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 Matthew_H
You will notice on the pwms there is pin that will tell you where to put the black side of the cable.
well, thats what we thought. thanks for confirming.
  #15   Spotlight this post!  
Unread 31-01-2004, 22:24
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: IR Beacon/reciever not working... still...

Quote:
Originally Posted by Damian Manda
Yes, we have been having problems too.

We have set up our system with the proper code running on both the EDU and Full-Size RC, the beacons wired correctly and the detectors hooked to the correct pins. We know that the beacon is emitting infrared, since we can detect it with a learning remote. When the bacon is off, the remote says "No Infrared Detected." We need to figure out if the beacons are somehow emitting the wrong waveforms/frequencies, or if our detectors are just faulty (we have tried more than one). We have hooked the sensors to various inputs, and even wired it to an LED, to no avail. Is there any way to do this without an oscilloscope or other expensive instrument that we do not have? We have everyone that knows anything about the code and infrared stumped, even the engineers. Any hints on other things to test or try?

--Damian Manda
We were fortunate to have not only one but two o-scopes lying around to see the waveforms for both the beacon and detectors. They both are exactly right. Type-1 Beacon causes the detector to go low for 1 ms, Type-2 for 2 ms.

We tryed with the tracking code and traced the problem all the way back to the digital inputs. Tonight I'm going to have a looksey to figure out what may cause the digital inputs to not work. (Note: if you hook up the detector this should keep the signal set to high as long as it doesn't see the beacon).

EDIT: Hmmm.... Maybe I'm wrong and that's why we are having trouble. Looking at the schematics and everything and maybe the input is 1 when the signal goes low. Test for tommorow I suppose.

Last edited by Ryan Cumings : 31-01-2004 at 23:13.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INT2 and INT3 interrupts not working Mercutio Programming 4 01-02-2004 13:27
I'm working :) Jack FIRST Scouting Network 2 03-01-2004 01:26
Whose working this summer? Frank(Aflak) Chit-Chat 20 28-05-2003 11:35
Are ramp blocker bots working? Jim S Regional Competitions 42 22-03-2003 20:55
Anyone working on game/mod and looking for a 3d modeller? Devil's Kid 3D Animation and Competition 5 21-04-2002 15:08


All times are GMT -5. The time now is 13:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi