Ninja MacNinja
New Member
I am having trouble with my anemometer not providing values. It is a cheap Maplin product which I have seen lots of posts about, but none are solving my problem. The anemometer provides one click per 1.492mph over 1 second. The anemometer itself pulses from 4.08V to 0V, on a 4.5v source, which is twice per revolution. I have spent all day looking at and trying different codes from the forums, but with no luck. I am trying to get this to display on the AXE134Y but I am only getting a 0 value. I based my code on that of a previous forum post, which is below. Any help would be great.
main:
count C.1, 1000, b1
let b5=b1*1492/1000
serout B.3,N2400,(254,128)
serout B.3,N2400,(254,1)
serout B.3,N2400,(#b5," ","mp/h")
main:
count C.1, 1000, b1
let b5=b1*1492/1000
serout B.3,N2400,(254,128)
serout B.3,N2400,(254,1)
serout B.3,N2400,(#b5," ","mp/h")