I have one voltage which vary logarithmical.
How change the code below to show voltage on LCD in logarithm.(not linearity)
Code:loop: ADCIN 0, adval ' Read channel 0 to adval (0-1023) adval = (adval */ 500)>>2 ' equates to: (adval * 500)/1024 LCDOut $fe,1,"DC Volts= " LCDOut DEC adval/100,".", DEC2 adval ' Display the decimal value Pause 500 ' Wait .5 second GoTo loop ' Do it forever
Bookmarks