waterflow sensor code...
randyhorton
Posts: 1
Hi everyone,
I have recently purchased a couple waterflow sensors from this site: http://webcat.ryanherco.com/products/490/120/210/490120210.cfm
and am having problems integrating the sensor with the bs2.· It at first seemd straight forward.· There is a +5v, ground and signal hook up on the sensor.
I was using the count function to read the output frequency generated by the sensor but am getting null or 0 results.
Here is the code snippet
'
InPin PIN 0
FreqVar var word
main:
do
count InPin, 1000, FreqVar
debug ? FreqVar,cr
loop
'
Does anyone have any experience working with a waterflow sensor?· I believe it operates with a hall effect generator built into the sensor, so even a code sample on how to measure the hall effect would be extremely helpful
R
I have recently purchased a couple waterflow sensors from this site: http://webcat.ryanherco.com/products/490/120/210/490120210.cfm
and am having problems integrating the sensor with the bs2.· It at first seemd straight forward.· There is a +5v, ground and signal hook up on the sensor.
I was using the count function to read the output frequency generated by the sensor but am getting null or 0 results.
Here is the code snippet
'
InPin PIN 0
FreqVar var word
main:
do
count InPin, 1000, FreqVar
debug ? FreqVar,cr
loop
'
Does anyone have any experience working with a waterflow sensor?· I believe it operates with a hall effect generator built into the sensor, so even a code sample on how to measure the hall effect would be extremely helpful
R
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Just to add some specifics to Stephen's reply, as the note on the web page link you offered mentions:
"1 to 2.2 KOhm pull-up resistor required"
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔