Go to Post [when asked where to learn about robot parts] ...some forum called Chief Delphi. I hear the people there are pretty knowledgeable about this robotics thing. - 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 16-01-2007, 08:47
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Camera servos too slow, help please

Hi,
I finally got all the stuff i needed to get the camera working, and i did, using the bells and whistles, downloaded to the RC.
but the servos move too slow, and if the light is moving too fast for it (i.e the robot is moving towards the target, therefore the tilt changes) and the camera no longer finds the light, and go back to searching mode.
How can i make the servos move faster?
Plus, we are having problem with the pan servo. it clockwise and counterclockwise at hight speed (it looks as if the gear is shaking back and forth)
Any thoughts on that 2?
Thanks,
Carmel
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)
  #2   Spotlight this post!  
Unread 16-01-2007, 09:18
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: Camera servos too slow, help please

Try loading the default (not default camera, just 2007 default) code and using the built-in one joystick drive to control the camera servos.

That's a good way to test if it's a hardware problem or a problem with your cam code.

If it's still slow, try two different servos and two different PWM outputs.

Basically what I'm saying is try to isolate and test every possible cause of the problem until you can for sure identify what the cause is, then re-post, and we'll go from there
__________________
What place are we at? ... TODAI!
  #3   Spotlight this post!  
Unread 16-01-2007, 09:20
steveg's Avatar
steveg steveg is offline
Livin' the Dream
AKA: Stephen Guerrera
no team
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Boston, MA
Posts: 70
steveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to behold
Send a message via AIM to steveg
Re: Camera servos too slow, help please

Quote:
Originally Posted by Lablabla View Post
Hi,
I finally got all the stuff i needed to get the camera working, and i did, using the bells and whistles, downloaded to the RC.
but the servos move too slow, and if the light is moving too fast for it (i.e the robot is moving towards the target, therefore the tilt changes) and the camera no longer finds the light, and go back to searching mode.
How can i make the servos move faster?
Plus, we are having problem with the pan servo. it clockwise and counterclockwise at hight speed (it looks as if the gear is shaking back and forth)
Any thoughts on that 2?
Thanks,
Carmel
-open up the tracking menu by putting 't' into the "To Port ->" window of the IFI loader's terminal window and hitting the enter key.

-you're then going to want to change the pan gain, the tilt gain, and the delay. the menu should walk you through that process.

-once you find values that work for you, you should set them as your defaults

-open up tracking.h the values you're going to want to change are:

SEARCH_DELAY_DEFAULT
PAN_GAIN_DEFAULT
TILT_GAIN_DEFAULT
  #4   Spotlight this post!  
Unread 16-01-2007, 09:23
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Camera servos too slow, help please

Quote:
Originally Posted by JohnC View Post
Try loading the default (not default camera, just 2007 default) code and using the built-in one joystick drive to control the camera servos.

That's a good way to test if it's a hardware problem or a problem with your cam code.

If it's still slow, try two different servos and two different PWM outputs.

Basically what I'm saying is try to isolate and test every possible cause of the problem until you can for sure identify what the cause is, then re-post, and we'll go from there
Agreed. The cameras should not be responding slowly, especially with pretty standard code (nothing wacky) and standard hardware (no custom circuits.)
The servos usually aren't bad unless if you fried them, so it probably is the code (just a guess.)

Another longshot. Are your servos the same brand/model as listed in the KOP? I remember reading somewhere that some of the parts *could* be different then listed in the KOP depending on availability in foreign countries. The the servos are different, maybe they respond differently?

More crazy ideas,
Jacob

Last edited by whytheheckme : 16-01-2007 at 09:24. Reason: Forgot the plural at the end of 'ideas'.
  #5   Spotlight this post!  
Unread 16-01-2007, 09:48
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: Camera servos too slow, help please

Try these:

- disconnect the servo linkage so the servo shaft is free and see if the unwanted motion continues. If it doesn't, the servo shaft was probably rotated too far when you pressed the round plastic servo arm onto the shaft, and your code is trying to drive it past the internal stops.
- try a different PWM cable
- try a different servo
- if your PWM cable is very long, it might be picking up electrical noise - use a clamp-on Ferrite core to solve this (similar to Digikey 445-2038-ND) http://www.tdk.co.jp/tefe02/e9a15_zcat.pdf. You might find something similar at Radio Shack.
  #6   Spotlight this post!  
Unread 16-01-2007, 10:17
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: Camera servos too slow, help please

Quote:
Originally Posted by mluckham View Post
- disconnect the servo linkage so the servo shaft is free and see if the unwanted motion continues. If it doesn't, the servo shaft was probably rotated too far when you pressed the round plastic servo arm onto the shaft, and your code is trying to drive it past the internal stops.
That reminds me of how I "tared" our camera servos. I plugged them into the RC before building the camera mount, then set the pan servo to PWM=124 and the tilt servo to PWM=144. (These are the default center values in Kevin's cam code.) I then removed them from power so they'd stay in that position and built the cam mount.

Since you already have the mount built, if you think setting resetting the servos to allow more useful angle might help, just remove the retainer screws on the servos and lift the "PT-HORN" off. Then you'll probably want to remove the whole PT-MNT piece also. Then run code to set the PWM values I said above, remove power, and add the PT-MNT at whatever angle you want and rotate the PT-TILT-BRK however you want. Press them back onto the servos and replace the retainer screws.

(I got the "PT-HORN" type names from the official Mount Assembly instructions)
__________________
What place are we at? ... TODAI!
  #7   Spotlight this post!  
Unread 16-01-2007, 13:16
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Re: Camera servos too slow, help please

Thank you all,
I will check it out tmw at school and let you know how it worked
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)
  #8   Spotlight this post!  
Unread 18-01-2007, 08:00
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Re: Camera servos too slow, help please

Well,
I've done that, and during the search mode it did infact moved faster.
but when it spotted the green light, its movement were so slow we could bearly move the target without the camera losing track of it
Any ideas?
Thanks,
Carmel
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)
  #9   Spotlight this post!  
Unread 18-01-2007, 12:04
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: Camera servos too slow, help please

Quote:
Originally Posted by Lablabla View Post
Well,
I've done that, and during the search mode it did infact moved faster.
but when it spotted the green light, its movement were so slow we could bearly move the target without the camera losing track of it
Any ideas?
Thanks,
Carmel
The servos can't generate a lot of torque, so make sure you built the pan/tilm mechanism per the instructions and didn't over-tighten the fasteners. You'll need to disconnect the servo from the linkage to see how freely it moves.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #10   Spotlight this post!  
Unread 19-01-2007, 11:59
Lablabla Lablabla is offline
Registered User
AKA: Carmel Barak
FRC #1957 (LighTeam)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 25
Lablabla is an unknown quantity at this point
Re: Camera servos too slow, help please

Hi,
I don't think so,
cause when we checked for momvment using the joystick, the servos moved great, and also in the searching mode they move great. only when it spots the light it slows down.
Carmel
__________________
LighTeam #1957
2006 GM/Technion Israel Regional Finalist (Robot: W.Bob)

Attending: Israel GM\Technion Regional (Robot: Laika)
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
Please help. I've had it with this camera Inverted Programming 6 14-01-2007 22:35
Premiere won't recognize camera - please help sanddrag IT / Communications 9 04-01-2007 20:17
please help me to plag in the camera CompMaster Programming 1 16-02-2006 11:24
Kitbot/cims/transmissions running too slow? Swampdude Technical Discussion 28 23-01-2005 11:17
How slow is too slow? Joe Ross Rules/Strategy 23 12-10-2004 20:23


All times are GMT -5. The time now is 20:53.

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