Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

C program for water velocity measurements

Status
Not open for further replies.

dioross

Newbie level 2
Joined
Jan 8, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
hi to all!

i am working on a velocity meter that measures average velocity in an open channel waterflow and i am planning to implement it using PIC microcontroller.. i dont have an idea about the algorithm that can accurately obtain the measurement..i have a rotary incoder that outputs pulses..and i need to interpret those pulses to have the measurement..help me pls!!..

:) best regards
 

Try to think about the problem mathematically:

average velocity = change in distance / change in time ------ (Vav = dD/dt)

read the datasheet for the rotary encoder to find out number of pulses per revolution

use the number of revs per min to calculate the distance travelled and plug everything into the top equation

There - you will have an algorithm -Good luck
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top