Mad Professor
Senior Member
Good Day All.
I know this is a very basic question but I have been banging my head on the desk for awile now.
I just want to be able to view my ADC in volts 0-5v.
I am not sure what is the right way I doing what I want, can someone please show me the error of my ways.
Thanks for your time.
I know this is a very basic question but I have been banging my head on the desk for awile now.
I just want to be able to view my ADC in volts 0-5v.
Code:
#Picaxe 18x
symbol ADC1 = w1
symbol ADC2 = w2
symbol ADC1volts = w3
symbol ADC2volts = w4
main:
readadc10 1,ADC1
readadc10 2,ADC2
ADC1volts = ADC1 *0.0048828125
ADC2volts = ADC2 *0.0048828125
sertxd (ADC1volts,"v ",ADC2volts,"v ")
pause 1000
goto main
Thanks for your time.
Last edited: