[Tinyos-help] Quadrature encoder
Tom Apker
t.apker at gmail.com
Tue Jul 24 15:27:50 PDT 2007
Good day eveyone,
I've just started working on a quadrature encoder program for a mica2
mote, and I'm having some trouble figuring out how to access the individual
external pins. It looks like I should be using the Get interface to get the
value of (I think) Port A pins 4&5, which I will sample at a fairly high
rate using one of the timers.
Two questions:
(1) How do I wire the external pins so that I can sample them with a Get
(or similar) command? (example code would be helpful here)
(2) Is it possible to make this more general than just the mica2, or
even atm chips? I figure I won't be the last guy to do this, so I'd rather
do it right the first time.
Many thanks,
-tba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070724/d34c3271/attachment.html
More information about the Tinyos-help
mailing list