Shop OBEX P1 Docs P2 Docs Learn Events
waterflow sensor code... — Parallax Forums

waterflow sensor code...

randyhortonrandyhorton Posts: 1
edited 2007-06-29 17:21 in BASIC Stamp
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

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-06-29 17:10
    Do you have the resistor between +5 and the output?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-06-29 17:21
    Randy -

    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

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sign In or Register to comment.