Help
Help
How i can create a component ccp? I've been watching the Multiservo2 and the requency counter but I can not do a tachometer.
- Attachments
-
- MultiServo2.fcf
- (8 KiB) Downloaded 451 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Help
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.
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.
Martin