Page 1 of 1

Help

Posted: Thu Jul 16, 2009 9:55 am
by jawier
How i can create a component ccp? I've been watching the Multiservo2 and the requency counter but I can not do a tachometer.

Re: Help

Posted: Thu Jul 16, 2009 3:21 pm
by medelec35
Not sure if this helps. I successfully created a tachometer for two separate motors by:

1) using port B interrupts with weak pull-ups to monitor the taco outputs and count one on every port change detected..

2) Use Timer0 to interrupt every second. When 1 second has elapsed. RPM (assuming one single magnet trigging hall effect device) = count * 60.
Count is reset as soon as RPM is calculated.