Go to Post Win, Lose or Tie, but do it in a way that FIRSTers will be talking about for years to come! - Bill Moore [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 09-14-2016, 02:40 PM
RacerX's Avatar
RacerX RacerX is offline
Registered User
FRC #0948 (NRG948)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2013
Location: Bellevue
Posts: 26
RacerX is on a distinguished road
Re: Encoder Question / Recomendation

Thank you for the suggestions thus far.

Again, learning so excuse any dumb questions.....

Would a potentiometer have the same programming as the encoder? Would it always know where say zero degrees is and where 90 degrees is, and everything in between? Or, would we have to set zero each time?

I thought I heard something about that with different types of sensors???
Reply With Quote
  #2   Spotlight this post!  
Unread 09-14-2016, 02:41 PM
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Encoder Question / Recomendation

Quote:
Originally Posted by RacerX View Post
Would a potentiometer have the same programming as the encoder? Would it always know where say zero degrees is and where 90 degrees is, and everything in between? Or, would we have to set zero each time?
You'll read the position of the potentiometer (pot) using the analog in. The output is 0-5 Volts (assuming you use the 5V source on the roborio). You'd have to calibrate it yourself for 0 degrees but after that it shouldn't change.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-14-2016, 02:51 PM
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,720
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Encoder Question / Recomendation

Quote:
Originally Posted by RacerX View Post
Would a potentiometer have the same programming as the encoder? Would it always know where say zero degrees is and where 90 degrees is, and everything in between? Or, would we have to set zero each time?
programming is different. A potentiometer is an analog device. As you rotate the shaft, the voltage of the output changes incrementally. WPILib actually has a rather nice class (AnalogPotentiometer) that can be used for this - when you create the instance, you can specify the range of the potentiometer (They're sold as 270 degree, 360 degree, 3600 degree, etc) and an offset for where you want 0 to be. That way when reading values you'll get them right in degrees, positive or negative.

Oh, and another benefit to potentiometers... being analog devices, they're really easy to verify functionality with a multimeter!
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote
  #4   Spotlight this post!  
Unread 09-20-2016, 11:15 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Encoder Question / Recomendation

Quote:
Originally Posted by Jon Stratis View Post
programming is different. A potentiometer is an analog device....
So is the US Digital MA3 that RacerX mentioned as the "encoder" that they're already using. If that is accurate, then it works exactly like a continuous-rotation potentiometer.
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 11:50 PM.

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