I'm trying to crack my head open in order to get the code out of it but it seems to not want to leave my head.
I have a Flowsensor that is pulsing on the Analog port, it doesn't pulse 0 and 1023, no it's somewhere inbetween, most of the time there is 100 steps between the LOW and HIGH, but each session this value is different. Instead of manually typing in the values I see in the serial port I would like to automate this.
AMPS-N:
can you attach data sheet for flow sensor. Can you share your complete code.
can you explain which parameter represent.
Today LOW=320and HIGH=420
Tomorrow LOW=610 and HIGH=750
The rest of the code is important to the problem I believe because all the calculations for my Flowmeter is done in the FlowCalculations function.
There is a lot of other code all the pins on the UNO are used, there is also some power going through my board(shield) that contains 5V,12V and 24V.
The 12V is used to power the UNO.
The LOW and HIGH are the analog values I read for a low and high pulse.
TomGeorge:
Hi, as asked can you supply the specs of the flow meter, it may be an open circuit collector, you will to provide about 10K between the output and 5V.
The output will be pulses.
Tom....
I will make an adapter that contains a 10K between the output and the 5V and try it.
Opening it and searching on the interwebz reveal it's this datasheet which just mentions Output Signal: Pulse
Upon visiting their Download section I find this connection sheet:
I need a 4k7 between 5V and Signal also a 100nF between signal and ground
Could I just add the 4k7 and leave the 100nF out or would that still not work?