View Single Post
  #15   Spotlight this post!  
Unread 19-03-2012, 09:37
Jimmy Cao Jimmy Cao is offline
Registered User
AKA: Jimmy Cao
no team
 
Join Date: Sep 2006
Rookie Year: 2004
Location: San Francisco, CA
Posts: 295
Jimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant future
Re: Reading an absolute encoder via PWM in C++

Quote:
Originally Posted by synthmusic View Post
Once again, thanks for the ideas! Given other priorities and troubleshooting, we called in an order for the analog version as noted here



And it works beautifully, variances below 1%. Would've liked the detail of the digital one, but working beats detail, at least for now!

Once we get through the competition this year, we'll do some exploratory work on this, because I'd really like to get to a working and stable solution for people to use as an AbsoluteEncoder or some such thing.
If you want to use the analog version of the MA3, here's a little wrapper for the sensor. It's a bit easier to use than just treating the MA3 as an AnalogInput. Sorry there's no documentation, but feel free to ask me if you have any questions about it.
Attached Files
File Type: h MA3Encoder.h (1.4 KB, 27 views)
File Type: cpp MA3Encoder.cpp (1.5 KB, 37 views)
__________________
Jimmy Cao

Team 469 2006-2010 Student/Alumni
Team 830 2011-2012 Mentor
Reply With Quote