Go to Post There are few times I sleep so soundly as I do after an FRC build season and regional. - JamesCH95 [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 19-01-2006, 22:00
krigby krigby is offline
Registered User
FRC #1734
 
Join Date: Jan 2006
Location: Fort Walton Beach, Fl
Posts: 1
krigby is an unknown quantity at this point
CMUCam Servos not Responding on Robot

Well, We've read the code inside and out. We've read every thread, dealt with power issues, calibrated it in LabView, and have finally gotten it to recognize the target on the robot using the RC. However, we can't get the servos to move. We have loaded the no frills camera.hex file. In the terminal window it shows the processor commanding the servos but they won't move. We have them connected to the default PMW sources PMW1 and PMW2. Any ideas.

Kevin - Team 1734

Kevin Rigby
  #2   Spotlight this post!  
Unread 19-01-2006, 22:12
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Re: CMUCam Servos not Responding on Robot

Maybe you need to switch power mode to external servo power? Backup battery fully charged? Those are just some suggestions.
__________________
www.sabrerobotics.com
  #3   Spotlight this post!  
Unread 19-01-2006, 22:15
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: CMUCam Servos not Responding on Robot

Basic questions:

1. You've got both leds on the camera lit up?
2. You've tested the serial link between camera and bot?
3. If you manually turn the camera, does it report seeing the light?
4. Have you plugged in your backup battery to actually power the servos (unlikely to be the problem if the camera is powered, since both get their power from the same place)
  #4   Spotlight this post!  
Unread 19-01-2006, 22:27
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: CMUCam Servos not Responding on Robot

Quote:
Originally Posted by krigby
Well, We've read the code inside and out. We've read every thread, dealt with power issues, calibrated it in LabView, and have finally gotten it to recognize the target on the robot using the RC. However, we can't get the servos to move. We have loaded the no frills camera.hex file. In the terminal window it shows the processor commanding the servos but they won't move. We have them connected to the default PMW sources PMW1 and PMW2. Any ideas.

Kevin - Team 1734

Kevin Rigby
I have an idea, but it will take some explaining. I posted this information already once today in this thread, but so far no reply. If you did follow Kevin's instructions exactly, then you copied the camera, tracking, terminal and serial port .c and .h files into a copy of the default code. You also will have edited the appropriate files with the corresponding # include statements. So far so good. But, did you notice that in Kevin's code, he had commented out the user_routines.c/Default_Routine call. This would prevent mapping of the PWM 1 & 2 to their corresponding joystick inputs. Well... if you did follow Kevin's instructions, then you copied all these files into a clean copy of the default code which does not comment out the call to Default_Routine and the PWM mapping takes place after the cameras code and overwrites the values with 127. Now please do not mistake this as a bash on Kevin, far from it! Kevin is AWESOME . What I am saying is that a complete familiarity with how all these pieces of code fit together is crucial.
The alternative is to just load the camera.hex file Kevin included with his code and it should work. Then, just tweak the values in the terminal window.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #5   Spotlight this post!  
Unread 19-01-2006, 22:52
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,082
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: CMUCam Servos not Responding on Robot

One word: 7.2 volt backup battery. Ok, three words and a number

The camera itself actually uses power from the main battery via an analog input port. The servos get it from the PWM connector via the backup battery.
  #6   Spotlight this post!  
Unread 19-01-2006, 23:34
iBheat's Avatar
iBheat iBheat is offline
Registered User
FRC #0418 (Lasa Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Austin, TX
Posts: 24
iBheat is on a distinguished road
Re: CMUCam Servos not Responding on Robot

Quote:
Originally Posted by Abwehr
One word: 7.2 volt backup battery. Ok, three words and a number

The camera itself actually uses power from the main battery via an analog input port. The servos get it from the PWM connector via the backup battery.
I believe the camera is supposed to be hooked up to a PWM output on the RC.



Though I do believe people have powered the camera off of the +5V analog input because the backup battery does not last too long when the camera is connected to a PWM port since the PWM port is powered by the backup battery and the +5V analog input is powered by the main 12V battery.

Last edited by iBheat : 20-01-2006 at 00:30.
  #7   Spotlight this post!  
Unread 20-01-2006, 11:13
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: CMUCam Servos not Responding on Robot

Quote:
Originally Posted by krigby
Well, We've read the code inside and out. We've read every thread, dealt with power issues, calibrated it in LabView, and have finally gotten it to recognize the target on the robot using the RC. However, we can't get the servos to move. We have loaded the no frills camera.hex file. In the terminal window it shows the processor commanding the servos but they won't move.
You say you've dealt with power issues, but it still sounds like your backup battery is dead or not connected. (The camera is supposed to take its power from a PWM output on the RC, and the backup battery is where the PWMs get their power.)
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #8   Spotlight this post!  
Unread 20-01-2006, 23:19
Rocketboy's Avatar
Rocketboy Rocketboy is offline
Programmer at work, Pilot by heart
AKA: Daniel Schoessler
FRC #1317 (Digital Fusion)
Team Role: College Student
 
Join Date: Apr 2004
Rookie Year: 2003
Location: Westerville, Ohio
Posts: 67
Rocketboy will become famous soon enough
Send a message via ICQ to Rocketboy Send a message via AIM to Rocketboy
Re: CMUCam Servos not Responding on Robot

We've had the same problems as the original poster of this thread. I'm looking forward to trying out the solution Kevin handed to us. Seems almost too easy.
__________________
-- Unofficial Google Advocate --

I soloed my
"Skyhawk" before I even soloed my car!
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
CMUcam default code not responding Kyveck Programming 29 26-01-2006 16:25
2005 FRC Team Update 14 Jeffrafa General Forum 43 01-03-2005 15:52
Manual placement of tetras Petey Rules/Strategy 7 22-02-2005 18:04
Public apology from myself (Team 830) Don Wright Rules/Strategy 13 14-03-2004 22:02
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


All times are GMT -5. The time now is 01: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