|
Re: Hall Effect Source
Quote:
|
Originally Posted by jgannon
I guess that he's wondering if there is default code for use with the Hall Effect sensor, like we have for gyros, and the camera, and such. AFAIK, there isn't. I'm not sure what the voltage levels are on the Hall Effect sensor, but you could possibly (I would verify this BEFORE hooking it up) use them with Kevin Watson's encoder code by putting them on digital I/O pins. Anyone know if this is possible, and if it is, is it the best way of implementing them?
|
Joey,
Yes. Just copy Kevin's encoder code and delete the part where you check the quadrature input for direction within the interrupt service routine.
It worked for me...
Mike
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|