Go to Post "This is the year that everyone on CD is going to learn to spell." "This is the year that everyone on CD will make a serious effort to write grammatically correct sentences." "This is the year that everyone on CD will think BEFORE they post." ... nah. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 25-02-2016, 12:39
slibert slibert is online now
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 349
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: ADXRS450 Gyro

Quote:
Originally Posted by viggy96 View Post
Unfortunately, we don't have any potentiometers or encoders. We're trying to work with what we have.
If you don't have a potentiometer or an encoder, here are a couple of other approaches that could work, though they're not as straightforward (they're not the simplest thing that could possibly work, though the IR sensor approach below is pretty simple):

- Use an Infrared Proximity Sensor to measure the distance from the base (e.g., the robot chassis) where the sensor is mounted to a point at the end of the arm opposite from the fulcrum. Then, measure the distance from the fulcrum to the point where you are measuring the distance. Using the Pythagorean theorem, use the known distance of one side, the measured distance of another side to derive the angle the arm is at. We used this approach on our shooter in the Aerial Assist Game. We added some retroreflective tape onto the shooter underside and pointed the IR sensor up at it, so we got a good reading that was accurate to 1cm. It worked except for one match in which a Frisbee went into the robot and covered the sensor.

- Use an accelerometer to measure the tilt angle of the arm. Keep in mind that accelerometers measure acceleration due to gravity (which is good in this case, because it will tell you the angle away from horizontal of the accelerometer), as well as acceleration due to linear motion (as when your robot is moving). Accelerometers typically have an error of +/- 1 or 2 degrees. I think this will be a little more complicated than the IR sensor approach described above, but it should be doable if you calibrate the accelerometer and mount it firmly to the arm you are measuring the angle of.
  #2   Spotlight this post!  
Unread 25-02-2016, 12:44
Sperkowsky's Avatar
Sperkowsky Sperkowsky is offline
Professional Multitasker
AKA: Samuel Perkowsky
FRC #2869 (Regal Eagles)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Bethpage, NY
Posts: 1,902
Sperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond repute
Re: ADXRS450 Gyro

Hey to all of the people recommending potentiometors I have a question. How do you mount these things. We bought a vex edr one and got it mounted to a 1/2 hex shaft with a 3d printed part and it broke immediately.
  #3   Spotlight this post!  
Unread 25-02-2016, 12:51
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 253
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: ADXRS450 Gyro

Quote:
Originally Posted by Sperkowsky View Post
Hey to all of the people recommending potentiometors I have a question. How do you mount these things. We bought a vex edr one and got it mounted to a 1/2 hex shaft with a 3d printed part and it broke immediately.
We turn down the end of the shaft to 1/4", then mount the pot to a plate, use two standoffs to offset it from the end of the shaft, and then use a 1/4"-1/4" flexible shaft coupler to connect the pot and the shaft. Note this requires good mechanical capture of the shaft and the ability to turn down the end. I've also seen teams use elastic tubing with zip ties as a cheaper flexible shaft coupler.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
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


All times are GMT -5. The time now is 12:38.

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