![]() |
Should I use a Pot or an encoder, and how?
I'm having a problem, I'm trying to figure how I would count the revolutions of the driveshaft in autonomous so I can create a simple distance = (2 * revolutions * 3.14159) equation. However, with the refresh rate I don't think I could correctly count revolutions without errors.
|
Re: Should I use a Pot or an encoder, and how?
What you really should use is called a quadrature encoder and you can find some sample code for it on www.kevin.org/frc
Also, I think you need wheel radius in that equation. :) |
Re: Should I use a Pot or an encoder, and how?
Quote:
|
Re: Should I use a Pot or an encoder, and how?
You need to use encoders. Pots can only rotate a certian number of degrees before hitting their physical limits. If you search encoders on these forums you should find alot of good info.
|
Re: Should I use a Pot or an encoder, and how?
Quote:
|
| All times are GMT -5. The time now is 04:31. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi