Go to Post Coopertition™ can take many forms. - MrForbes [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 29-03-2014, 15:42
WRA's Avatar
WRA WRA is offline
Westwood Robotics Alliance, Coach
AKA: Jerold Baker
FTC #6965 (Westwood Robotics Alliance)
Team Role: Coach
 
Join Date: Jul 2013
Rookie Year: 2010
Location: Morgantown, WV
Posts: 5
WRA is an unknown quantity at this point
[FTC]: Need help programing HS-785HB (1260) Servo in RobotC

Hi everyone, we purchased a couple of the 1260° Quarter scale servos to take advantage of the increased torque with our rack and pinion. We are having a problem controlling the servo. We assumed it would be just like a regular servo what you set the angular value and it will travel to that position. We can't seem to find a way to stop the servo from rotating at any position. We looked around and cannot find any documentation on the servo. Has anyone ever program this? Are we missing some key element? Our code is a simple test program at this point. (we have tried this is a continuous rotation and a standard servo). We simply asked the servo to go to position X wait five seconds and go back to zero. The servo does a different thing every time. I am assuming the problem is not the servo is we have to of them doing the same thing.

Any advice would be greatly appreciated thank you
__________________
~Jerold Baker - Coach/Senior Mentor
Westwood Robotics Alliance - FTC Team 6965
2014 - SW PA Qualifier - Winning Alliance, Outstanding Rookie
2014 - WV Championship - Inspire Runner Up, Think Award

...and on to the North Super Regional

Because with Education, Opportunity & Attitude we can change the world!
Reply With Quote
  #2   Spotlight this post!  
Unread 30-03-2014, 03:33
Longrange97's Avatar
Longrange97 Longrange97 is offline
Keyboard Warrior
FRC #2907 (TRECC)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Auburn Washington
Posts: 9
Longrange97 is an unknown quantity at this point
Re: [FTC]: Need help programing HS-785HB (1260) Servo in RobotC

I was looking at the servo product page:
https://www.servocity.com/html/hs-78...l#.UzfFvvldV8E

(the standard KOP one is this one)
http://www.servocity.com/html/hs-311...l#.UzfF4PldV8E

and I noticed that it says it only rotates clockwise. I'm not sure if that means that it needs to be manually reset, or if that means that if you try to set it back to 0 it will keep going until it's encoder reads back 0. one thing you may try to do is (if you have one) use an arduino and just test the basic functionality of the servo on that. the arduino IDE comes with example servo programs that should work and give you more of an idea if your programming is wrong or it is just a very abnormal servo.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-03-2014, 15:20
Wingus&Dingus Wingus&Dingus is offline
Registered User
FTC #7440
 
Join Date: Dec 2013
Rookie Year: 2009
Location: New Zealand
Posts: 11
Wingus&Dingus is an unknown quantity at this point
Re: [FTC]: Need help programing HS-785HB (1260) Servo in RobotC

Just don't use zero (or perhaps < 5 to be safe). When they hit zero on the internal encoder the speed is reduced and it just keeps rotating forever. Once you've hit zero position it resets the encoder end point and starts counting up from there once you rotate the other way.
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


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

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