Bs2 speedometer???
TOMMYTOE
Posts: 1
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.
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
'
Heres the link to StampWorks
http://www.parallax.com/Portals/0/Downloads/docs/books/sw/Web-SW-v2.1.pdf
'
Use your hall sensor in place of the 555 on pin 15.
'
You may need a pull-up resister to make the hall sensor work.CHECK!!!! the doc.'s on your senor before you hook it up to the Stamp.
'
Never exceed 5volts or 20ma on the I/O pins.