I want to use a hall effect motor encoder to determine the number of 
revolutions of a wheel. Using the BB-KEYS I am able to set 
up /dev/inputs/event1 that captures the event and records the number of 
interrupts in /proc/interrupts. I believe setting 
/sys/class/gpio/gpioxx/edge will do pretty much the same. I haven't been 
able to figure out how to count them in a C/C++ code. Is it bes to set up 
an interrupt and count or try to read the /proc/interrupt file? Polling is 
not an option because there are two wheel that need to be counted. I would 
prefer to have and ISR that counts each time it is triggered, but I have 
not been able to figure out how to set it up. Any help would be greatly 
appreciated since I have spent the last few days trying to research this 
without much luck. 

Thanks,
Dorian 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to