Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
bananasiong said:
Pommie said:Connect two 1K resistors in series. Connect one end to 0V. Connect the other end to your 10V signal. Connect the middle to your ADC input.
Supply your circuit from 5.5V and with a resistive divider (or zener) generate 5.12V to use as Vref.
With the above configuration,
10V in will give 1000 on the ADC.
5V in will give 500 on the ADC.
Use the routine to convert the binary into individual numbers.
Take these individual numbers and add 0x30 to each one.
Print the first two on your LCD.
Print a "." on your LCD.
Print the last two digits.
Done.
A better way would be to divide your input signal by 4 and generate 2.56V for the Vref.
HTH
Mike.