Hi all. I'm a new one who met with Arduino. And i've been searching for counting the frequency of my flowmeter for my master's research project.
The goal of mine is, to measure the flow in liter/sn. I know my flowmeter's Resolution Pulses (K-factor) is 65,000 pulses/L. It is generating a square wave digital output signal. So if i count the pulses against time (i.e. frequency) i will know the flowrate.
I got an Arduino Uno for that purpose and i tried Arduino Frequency Counter Library http://interface.khm.de/index.php/lab/experiments/arduino-frequency-counter-library/ and uploaded the code in the link. There is one output that comes from Flowmeter and i plug it in to D5 input of Arduino. But I could not get any result.
So here is my question to you: I did not get the preamplifier process in the link.Why do i need it? Do i need it to get results? And the other question is how can i see the result even if it worked fine. Does println command show the result in computer screen?
mertsatir:
how can i see the result even if it worked fine. Does println command show the result in computer screen?
The simplest way is to have the Arduino IDE open and the Arduino connected to the PC.
The results will be displayed in a window if you click on the 'Serial Monitor' button in the IDE toolbar.
(The Arduino can be connected to the PC via some interface circuitry and thereby have the data displayable within a terminal appl. There are also the "Wiring" and "Firmata" options.)
Thank you for that information. I did it right now, and the serial monitor pop out screen is seen. But still, i need the information for the amplifier process, do i need it for having results?
Well, he is doing something with a handheld freq meter. It's a lot different from your project.
It seems to me that you should simply count square wave transitions over a period of time and then "print" that result. You don't have to accumulate for a whole second, though you could; it may be more expedient to accumulate for 100 msec and extrapolate.
This will involve getting familiar with the bane of all "noobs": millis().