Go to Post My first instinct was inflatable clowns and 5 of them beating on the robots at all times, but then I thought, thats probably not right. - Dan Richardson [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 11-02-2004, 12:24
thoughtful's Avatar
thoughtful thoughtful is offline
Registered User
FRC #1219 (Emery Iron Eagle)
Team Role: Alumni
 
Join Date: Nov 2003
Location: Toronto,Canada
Posts: 291
thoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to behold
IR PMW Help

Hello,

We are using 2 EDU RCs one has the edu_tracker.zip and the other one has Beacon.zip from Mr.Watson's site. Our sensors are working fine, but the beacons we can'i see any lights when they are plugged on either PMW 1 or 2. Yes, we are looking through a camera. But when we put them on Digital O/I 1 we see the lights, but they are solid. I have checked the diagram more than 10 times and our beacons are fine. The servos keep searching but ofcourse they wont find anything because the sensor is not working. We have checked the programs in the EDU RC's and redownlaoded them like 5 times.

Is anyone having a simmilar problem? Or is the camera not supposed to show any lights when connected to PMW 1 or 2 , because my understanding was that we see flickering lights or something to that aspect.

Thankyou in advance.
__________________
.:Bringling Brains to Life:.

03,04,05-Team 1219 Captain
2003 Rookie all Start @ GTR
2005 Galileo Semi-Finalist & Alliance captain
06-Team 1219 Mentor
2006 Radio Shack Innovation in control @ Waterloo
  #2   Spotlight this post!  
Unread 11-02-2004, 12:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IR PMW Help

That's a stumper!
The beacon should be on pwm1 or pwm2.
If you can see the LEDs glowing on Dig I/O 1 then your camera should be capable of seeing them at work on the pwms. They will look solid on the pwms as well, but only because your eye cannot see the 100Hz flashes.

I can only offer a few suggestions that you may have already tried.

- Make sure your pwm cable is attached to the three pins on the "BLK" side of the connection, not the fourth pin.
- Switch the functions of the EDU controllers you are using (beacon -> tracker).

- You can printf the receiver.c data to see if the IR sensors are receiving any hits, or put one of your IR sensors on a digital input and printf the value it's receiving just to check it.
- The IR sensor won't be able to detect the LED emissions when you're on dig I/O 1, or at least not for very long.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2004 at 12:49.
  #3   Spotlight this post!  
Unread 11-02-2004, 12:48
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 PMW Help

double check the code, and make sure that it's generating the pwms, and on the correct pins. (nobody's perfect...)
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #4   Spotlight this post!  
Unread 11-02-2004, 17:12
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: IR PMW Help

Quote:
Originally Posted by thoughtful
Hello,

We are using 2 EDU RCs one has the edu_tracker.zip and the other one has Beacon.zip from Mr.Watson's site. Our sensors are working fine, but the beacons we can'i see any lights when they are plugged on either PMW 1 or 2. Yes, we are looking through a camera. But when we put them on Digital O/I 1 we see the lights, but they are solid. I have checked the diagram more than 10 times and our beacons are fine. The servos keep searching but ofcourse they wont find anything because the sensor is not working. We have checked the programs in the EDU RC's and redownlaoded them like 5 times.

Is anyone having a simmilar problem? Or is the camera not supposed to show any lights when connected to PMW 1 or 2 , because my understanding was that we see flickering lights or something to that aspect.

Thankyou in advance.
As painful as it might be ( ), make sure you read the FAQ. Are you plugging in the sensors to the correct interrupt inputs (not digital inputs)? Did you wire the sensors correctly (see the FAQ). If you don't have a switch on digital I/O 7, make sure your beacon is plugged into PWM 2. Did you place the eye of newt under your pillow last night and then sleep with your feet on the pillow for at least 2*Pi hours (this is important)?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 11-02-2004, 17:23
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IR PMW Help

Quote:
Originally Posted by Kevin Watson
As painful as it might be ( ), make sure you read the FAQ. Are you plugging in the sensors to the correct interrupt inputs (not digital inputs)? Did you wire the sensors correctly (see the FAQ). If you don't have a switch on digital I/O 7, make sure your beacon is plugged into PWM 2. Did you place the eye of newt under your pillow last night and then sleep with your feet on the pillow for at least 2*Pi hours (this is important)?

-Kevin
Did you purchase extra Infra-red from Innovation FIRST in case you've run out?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 11-02-2004, 17:51
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 PMW Help

When you say "when we put them on Digital O/I 1 we see the lights, but they are solid," I take it you are referring to the IR emitters seen through a camera? The frequency they blink at is too fast to be detected by humans, and a camera's viewfinder refresh rate will make it even more unreconizable. The best way to make sure your beacon is pulsing is to put a visible wavelength LED in parallel with the IR leds (don't forget the appropriate resistor). Shake the beacon back and forth really quickly. If you observe a continuous blur, your IR emitters aren't being pulsed. You should observe a 'strobe effect' - rather than the visible-wavelength LED apearing as a blur, it should apear as a series of dots. If you don't see this, then you're either not sending the right pulse signal (check your wiring) or your wired your transistor up wrong (FIRST origionally released a mistake with the transistor wiring - make sure you didn't wire it according to that document).

Also, there are two different version of receiver.c. I believe the one in edu_tracker.zip is different than the one in tracker.zip - open the file up and make sure your sensors are wired appropriately.

[Edit/Shameless Plug]
I wrote a whitepaper about debugging your IR setup - http://www.chiefdelphi.com/forums/pa...le&paperid=263
Check it out if you haven't.
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
  #7   Spotlight this post!  
Unread 11-02-2004, 19:08
thoughtful's Avatar
thoughtful thoughtful is offline
Registered User
FRC #1219 (Emery Iron Eagle)
Team Role: Alumni
 
Join Date: Nov 2003
Location: Toronto,Canada
Posts: 291
thoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to behold
Re: IR PMW Help

Thanx a lot all of you, we got it working after following some instructions here and messign around, and yes we are able to see the lights through a camera, its digital camera i dont know the refresh rate but it will be around 30/s which is not that high but still we see the lights , once again thnx all of you. As it truned out it was not the beacon but are EDU RC.
__________________
.:Bringling Brains to Life:.

03,04,05-Team 1219 Captain
2003 Rookie all Start @ GTR
2005 Galileo Semi-Finalist & Alliance captain
06-Team 1219 Mentor
2006 Radio Shack Innovation in control @ Waterloo
  #8   Spotlight this post!  
Unread 12-02-2004, 14:09
shsdragon shsdragon is offline
Registered User
#1345
Team Role: Programmer
 
Join Date: Jan 2004
Location: Florida
Posts: 8
shsdragon is on a distinguished road
Send a message via AIM to shsdragon Send a message via Yahoo to shsdragon
Re: IR PMW Help

my teams beacon works becasse we saw the leds light up through the digital camera and i loaded the tracker code and it works but when i lod navugate its says in the thing after you download it wating to drive. The thing that i am talking about is(it pops up after u downlaod a code and says alot of things
  #9   Spotlight this post!  
Unread 12-02-2004, 14:23
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IR PMW Help

Quote:
Originally Posted by shsdragon
my teams beacon works becasse we saw the leds light up through the digital camera and i loaded the tracker code and it works but when i lod navugate its says in the thing after you download it wating to drive. The thing that i am talking about is(it pops up after u downlaod a code and says alot of things
navigate was setup to run at the push of a button rather than during the autonomous mode for the kick-off demonstration. You can just push p1_sw_trig to get it to start.

You'll have to change a couple of things to use it for competition, however:

- Move the navigate() call from the bottom of user_routines_fast.c into the User_Autonomous() earlier in that same file.

- In navigate.c at the top of the file change:
Code:

int Navigator_State = WAIT_TO_DRIVE;
 
to 
 
int Navigator_State = DRIVE_TO_CENTER;

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #10   Spotlight this post!  
Unread 12-02-2004, 19:24
shsdragon shsdragon is offline
Registered User
#1345
Team Role: Programmer
 
Join Date: Jan 2004
Location: Florida
Posts: 8
shsdragon is on a distinguished road
Send a message via AIM to shsdragon Send a message via Yahoo to shsdragon
Re: IR PMW Help

i get one aprt of what your are telling me but i don't get this part
- Move the navigate() call from the bottom of user_routines_fast.c into the User_Autonomous() earlier in that same file.
  #11   Spotlight this post!  
Unread 12-02-2004, 22:00
shsdragon shsdragon is offline
Registered User
#1345
Team Role: Programmer
 
Join Date: Jan 2004
Location: Florida
Posts: 8
shsdragon is on a distinguished road
Send a message via AIM to shsdragon Send a message via Yahoo to shsdragon
Re: IR PMW Help

i kinda get it but can u break it down a little further and wich plugs do i plug the sensors into
  #12   Spotlight this post!  
Unread 13-02-2004, 10:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IR PMW Help

Quote:
Originally Posted by shsdragon
i kinda get it but can u break it down a little further and wich plugs do i plug the sensors into
What to attach where is detailed in the code. There are several versions of the code, so see the comments at the top of these files for how to hook up your version.

- receiver.c
- tracker.c

There is also a call for a beacon selector switch on digital input 7. You can test without the switch by putting the beacon on pwm02.

To use navigate in competition you'll also need to add in the Default_Routine() from the original default code into file user_routines.c, and you'll need to uncomment the line that calls it in Process_Data_From_Master_uP() in that same file. The routine was dropped out of the navigate project.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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


All times are GMT -5. The time now is 00:02.

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