Go to Post If only more people could have the same attitude toward FIRST as they do toward their fellow teams! - Jaine Perotti [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-02-2009, 07:35
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
servo question

Does anyone know of a link to a good tutorial on how to program the hitec HS-322hd servos that came in the 2009 KOP?

I have a side project that I would like to use these on and could not find any useful infomration on Hitec's web site...

thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2009, 07:58
miniman's Avatar
miniman miniman is offline
Registered User
FRC #0701
 
Join Date: Sep 2007
Rookie Year: 2007
Location: fairfield
Posts: 10
miniman is an unknown quantity at this point
Re: servo question

The 2009 WPI libary comes with a set of commands just for servos in labview and I believe there is a class for controlling servos in C/C++. We used the code for labview to control the servos on the robot with great success, for out "hooks of doom"
If you are looking for a way to control them with out the FRC code; the KOP servos take a signal voltage between 0 and 5 volts, the voltage represents the position of the servo, 0 being full in the first direction, 5 being full in the second direction. (Remember the jumper pin if using the digital sidecar. )
__________________
--The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' (I found it!) but 'That's funny ...' -Issac Asimov
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2009, 09:01
Dad1279 Dad1279 is offline
Registered User
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: NJ
Posts: 511
Dad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud of
Re: servo question

Quote:
Originally Posted by miniman View Post
The 2009 WPI libary comes with a set of commands just for servos in labview and I believe there is a class for controlling servos in C/C++. We used the code for labview to control the servos on the robot with great success, for out "hooks of doom"
If you are looking for a way to control them with out the FRC code; the KOP servos take a signal voltage between 0 and 5 volts, the voltage represents the position of the servo, 0 being full in the first direction, 5 being full in the second direction. (Remember the jumper pin if using the digital sidecar. )
They do not work with an analog input(0-5 volts). They expect a digital pulse. PWM = Pulse Width Modulation. I believe 1.5 ms is neutral

The jumper pin on the sidecar provides a constant operating voltage to power the servo.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2009, 14:06
MCahoon MCahoon is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Sequim, WA
Posts: 129
MCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud of
Re: servo question

Check http://www.hitecrcd.com/servos/show?name=HS-322HD

Click the "View our servo manual" item. Opens a PDF with pulse voltage and timing specs.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2009, 14:31
writchie writchie is offline
Engineering Mentor
AKA: Wally Ritchie
FRC #2152 (Team Daytona)
Team Role: Coach
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Daytona Beach, Florida
Posts: 148
writchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond repute
Re: servo question

RC servos are normally powered by nicad packs, nominally 7.2 Volts. Most don't work very well at 5V (unless they are 4.8V versions) which is why the sidecar powers them with a fixed 6V supply (the low point for a 6 cell pack).

The PWM signal is a 5Volt pulse. The pulse is nominally between 1.0 and 2.0 ms with 1.5ms representing the center position. The 1.0 and 2.0 ms pulse widths correspond to clockwise and counterclockwise travel limits.

The pulses are usually repeated at 30 - 100 hz. The off time is not critical as long as it is shorter than about 30ms.

If you intend to control your own servos or PWM devices you will get better results with an active buffer to drive the servo cable high and low through a series resistance . Look at the schematics for the sidecar to see how its done well.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-02-2009, 14:37
MCahoon MCahoon is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Sequim, WA
Posts: 129
MCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud of
Re: servo question

On re-reading your question: You are interested in a programming tutorial for the servos. What type controller aand what language?
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2009, 15:10
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
Re: servo question

Quote:
Originally Posted by MCahoon View Post
On re-reading your question: You are interested in a programming tutorial for the servos. What type controller aand what language?
Actually I am planning on using an Arduino to control the servos using it's C complier... I was just looking for information on the Hitec servos and didn't find anything useful on their web site...

Also, I was able to find some information on programming servos in general with the arduino on the arduino forum since posting this to Cheif Delphi...

thanks for the reply!
Reply With Quote
Reply


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
Servo Question pollyproof12 General Forum 11 11-11-2008 08:19
[FTC]: Servo Question roborat FIRST Tech Challenge 1 04-11-2008 18:29
HS-322D servo programming question JimHull Programming 12 10-02-2007 15:14
Question about CMUCAM servo output itsme Programming 9 13-01-2007 17:44
Servo behavior question / advanced servo/PIC programming question DanL Electrical 12 18-10-2005 18:33


All times are GMT -5. The time now is 17:15.

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