Hey guys i was wondering if you could help me out with my calculations.
I'm currently working on a project were we use an ultrasonic sensor to measure distance and later will convert to speed. the output from this is equal to 9.8 mV per inch.
We are using a 10bit AD-converter and we have chose to only read the 8 MSB. and now comes my problem: how do i calculate the output from the ADC to the actual distance?
my reference voltage is 2.5V
I really hope you can help me because i'm stuck(Brain freeze).
Yes but i want to use the AD-converter result i.e. 37(decimal) at aprox 82 inches - to later on convert to speed. i guess my problem is that i don't understand the result from the conversion.
Yes but i want to use the AD-converter result i.e. 37(decimal) at aprox 82 inches - to later on convert to speed. i guess my problem is that i don't understand the result from the conversion.
Thank you but i think i understand the basict with the resulution and such. but its just my result that makes me doubt.
Can it be because i don't take account the two LSB? i mean when measuring at aprox 1/3 of its range it gave me 37 and i just don't understand why when i have a 10 bits AD-Converter i mean shouldn't it give me 1/3 of 1024?.