Hi Everyone,
I am writing a code that takes an analog input (values ranges from 0.5V to 3V ) and displays the result on the LCD
I wrote the code but still needs to scale it to volt.
what i got till now is when the analog input is for example 5V ==>the LCD shows 1022 (decimal)
I guess after reading "Gramo's webpage" I can use this :
Result1 = Result1 * 5 / 1023 ' Scale it to volts
in my case is this right or i must multiply it by 5000?
( I am still a newbie in the ADC world :S )
(I am using PIC simulator IDE compiler)
Thanks in advance
I am writing a code that takes an analog input (values ranges from 0.5V to 3V ) and displays the result on the LCD
I wrote the code but still needs to scale it to volt.
what i got till now is when the analog input is for example 5V ==>the LCD shows 1022 (decimal)
I guess after reading "Gramo's webpage" I can use this :
Result1 = Result1 * 5 / 1023 ' Scale it to volts
in my case is this right or i must multiply it by 5000?
( I am still a newbie in the ADC world :S )
(I am using PIC simulator IDE compiler)
Thanks in advance
Last edited: