Help

Forum for problems or queries regarding Flowcode Comms Components. Eg LIN, I2C, SPI, RS232, CAN, IrDA etc

Moderators: Benj, Mods

Post Reply
User avatar
jawier
Posts: 14
Joined: Thu Jul 16, 2009 7:45 am
Contact:

Help

Post 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.
Attachments
MultiServo2.fcf
(8 KiB) Downloaded 392 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Help

Post 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.
Martin

Post Reply