Go to Post So does this mean we can use the FP as bumpers? :D - Peter Matteson [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

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 09-10-2013, 01:31
EricH's Avatar
Happy Birthday! EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,783
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Suggestions on a good way to get angle?

Quote:
Originally Posted by mkaa00x View Post
Yeah, I understand how a PID works... WAIT THE SERVO HAS UNLIMITED AMOUNT OF ROTATIONS??? So technically, if we were to have a servo that would feed data to an input by making sure that we don't power up the servo in anyway... we can use (in Java) the .getAngle (or whatever it was) method for measuring an angle, correct? Like I know it may not have enough power but it can work side by side with a cim. Right?

*EDIT*

Oh and I haven't found any servo that does that, can you like send me a link too, if possible of one that has continuous rotations? If not I can try asking one of the builders on our team
One step at a time:

1) Servos have unlimited rotations IFF they are Continuous Rotation (CR) servos. Example: http://hitecrcd.com/products/servos/...-servo/product. Other servos on the same site may or may not be CR, and may or may not be modifiable to be CR.

2) Servo feeding data to an input, ugh! Servos are designed to be used as motion sources, not data sources. You could use it... but for one thing.

3) Guess what the servo's sensor actually is? IIRC, it's a small encoder.

4) A CIM would exert an awful lot of force on that servo. The linked servo is only rated at 52 RPM, 46.8 oz-in rated torque. To put this in perspective, that's 1% of the CIM free speed and 13% of the CIM stall torque. Servo might not survive more than a little time unless the motor was removed. At which point, you have a small encoder.

So, let's go through how to read an encoder for angle:
1) Determine how many counts it takes to go through one 360-degree turn. Divide by 360 to get counts per degree (or divide by 2*pi for counts per radian, which the computer might like better).
2) Get the count from the encoder as to how far it's traveled (and in which direction) from the last stop point.
3) You now have a number of counts, and a number of counts per angle. With a little math, you can eliminate the number of counts and come up with an angle.

Speaking as an ME, I wouldn't want to use a servo when a sturdier encoder was available, and most likely cheaper.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
 


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 13:40.

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