cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vishav26
Observer
Observer
913 Views
Registered: ‎11-07-2017

Measuring Tachometer output on Zybo board

Hi,

I am using a 4 wire fan and my task is to measure the speed of the fan using the tachometer output of the fan. The tachometer output produces 2 cycles per revolution of the fan. Hence it is a square wave whose frequency varies with the speed of the fan. I have read some posts that it can be done by calling interrupt at the rising or falling edge and hence counting the number of pulses.

Does anyone have an idea how can implement this on Zybo board? Where should I input the tachometer output on the board? Which interrupts should I call for this operation? Any help would be appreciated.

Thanks & Regards

Vishav

0 Kudos
3 Replies
klumsde
Moderator
Moderator
881 Views
Registered: ‎04-18-2011

It may work better as a PL based design.
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
klumsde
Moderator
Moderator
880 Views
Registered: ‎04-18-2011

I don't know how fast the fan can be. Interrupts may be too show so a PL based design that measures the time between pulses could work better
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
vishav26
Observer
Observer
863 Views
Registered: ‎11-07-2017

Hi,

The fan is not too fast. So an interrupt based solution is also fine.

I find measurement between two pulses as a feasible solution but can you please give me any leads how I can implement it? Is there a function that detects the rising edge of a pulse?

 

Thanks

Vishav

0 Kudos