Shop OBEX P1 Docs P2 Docs Learn Events
Bs2 speedometer??? — Parallax Forums

Bs2 speedometer???

TOMMYTOETOMMYTOE Posts: 1
edited 2011-02-14 15:24 in BASIC Stamp
I am new to the basic stamp and pbasic programming language.
I am trying to program a bs2 to count how many pulses it see's in 250ms, then depending how many pulses it see's, output on one of the pins to a 4511bcd? to display a number... ( the speed).
the counting would have to be continuous ( non stop ). is this possible? I may be going about this the wrong way, should i be counting pulses or the duration between pulses??? I have an 11" tire and a wheel tht has 8 magnets on it ( evenly spaced ) and an digital hall effect sensor. I would like to have a fast response or refresh rate ( 250ms ) if possible. at 250ms with an 11" wheel it just so happens that 1 pulse / 250ms is equal to 1 mph or 1.46 feet / second. I would like to display on a 2 seven segment displays, ( up to 99mph. ). I am just not sure what commands i should be using or if it's even possible, any help is appreciated.

Comments

Sign In or Register to comment.