Thank you for helping me with this. I am not very good with long algebra problems. It must be my "ADD". I am a 63 year old experimenter and I experiment with just about everything; engineering, electronics, software and mathematics.
I am building a speedometer for large (1/8th) scale locomotives. I am using a Basic Stamp microprocessor which is capable of counting the teeth on one of the drive sprockets during a number of "periods". Each period is 400 us (microseconds).
The code function used is called COUNT. If I tell the system to COUNT 320 it gives me back the number of teeth that it COUNTs during 320 X 400 us. BTW, I have empirically done this and 320 is fairly close to correct. The result needs to be given in actual "full scale" MPH *10 enabling me to read tenths of a MPH (ie: 75 = 7.5 MPH). Remember I want to display actual MPH, not scale MPH.
Here is the other info needed:
The locomotive wheel is 15.71" in circumference and has a sprocket with 72 teeth so that for each 15.71" traveled, my gear tooth sensor gets 72 "ticks". In actuality, I have a 5" diameter wheel and a 2:1 gear box with a 36 tooth sprocket. There is a geartooth sensor on the sprocket that COUNTs teeth as they go by and gives them to my microprocessor.
Can you help me create a formula I can use for doing this? It would be greatly appreciated. I have rather complicated code running my Locomotives and having a accurate speedometer would be wonderful.
Thanks for helping me with my project.
Greg
Greg M.
06/19/15