View Single Post
  #5   Spotlight this post!  
Unread 25-04-2012, 20:06
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,570
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: Arduino and kop encoder

Quote:
Originally Posted by SeanPerez View Post
it may only count once, but i was getting around 8000 rpm.


with your new code, the faster it spins, the lower the rpm.
Are you looking at the first column?

If you are, disregard that. That's the "dt" value. Sorry, I didn't make it very legible. Look at the second set of numbers.

0.43 RPM: 2803.74 Pot: 82

means that 0.43 is the time between calculations, 2803.74 is the revolutions per minute, and 82 is the potentiometer value.