I am using on 08m2 (bear with me as I am new to this) with a simple voltage divider circuit. One side is a 25K pot and the other side is a fixed 10K resistor. In between the two I have connected C.2.
My code is as follows:
main:
readadc C.2,b0
sertxd("Variable b0 = ",#b0,13,10)
pause 200
goto main
When I run this program with the terminal window up, I see the value of 117-119. I adjust the pot and the output remains the same. I check the voltage (+ at input c.2, - at ground) and the voltage varies with the pot adjustment between ~.6 and 3.6V (numbers may be slightly skewed). The 08m2 is powered with 3AA battery pack. The voltage divider circuit is powered from a separate 5V source, but I got the same results from using the Vcc from the 08M2.
All of the other pins on the 08m2 are floating. Will this affect the results?
Which source should I use for the voltage divider circuit (08m2 or seperate source)? Can I use either?
I have done a couple of simple circuits with the 08M2 using simple high,low and PWM commands to light up some leds on the outputs. All of these seemed to work as expected so I believe to 08M2 to be working correctly.
Any thoughts, comments and/or suggestions?
Thanks for any info,
Dave
My code is as follows:
main:
readadc C.2,b0
sertxd("Variable b0 = ",#b0,13,10)
pause 200
goto main
When I run this program with the terminal window up, I see the value of 117-119. I adjust the pot and the output remains the same. I check the voltage (+ at input c.2, - at ground) and the voltage varies with the pot adjustment between ~.6 and 3.6V (numbers may be slightly skewed). The 08m2 is powered with 3AA battery pack. The voltage divider circuit is powered from a separate 5V source, but I got the same results from using the Vcc from the 08M2.
All of the other pins on the 08m2 are floating. Will this affect the results?
Which source should I use for the voltage divider circuit (08m2 or seperate source)? Can I use either?
I have done a couple of simple circuits with the 08M2 using simple high,low and PWM commands to light up some leds on the outputs. All of these seemed to work as expected so I believe to 08M2 to be working correctly.
Any thoughts, comments and/or suggestions?
Thanks for any info,
Dave