SolidWorksMagi
Senior Member
I copy/pasted the code from the page: http://www.picaxe.com/Circuit-Creator/Sensors/LDR-Light-Dependent-Resistor/
I'm using the circuit in the diagram with a 10KOhm resistor.
Using an 08M2 chip this works great!
main: readadc C.0, b1 ; read the value
debug ; show the value read
pause 1000 ; wait a short while
goto main ; repeat
Using a 28X2 chip this works great!
main: readadc A.0, b1 ; read the value
debug ; show the value read
pause 1000 ; wait a short while
goto main ; repeat
All I did was change the download cable from the AXE091 board to the PICAXE 28X2 module and connected the V+, Gnd and circuit to the A.0 pin and it fails!
I'm using the circuit in the diagram with a 10KOhm resistor.
Using an 08M2 chip this works great!
main: readadc C.0, b1 ; read the value
debug ; show the value read
pause 1000 ; wait a short while
goto main ; repeat
Using a 28X2 chip this works great!
main: readadc A.0, b1 ; read the value
debug ; show the value read
pause 1000 ; wait a short while
goto main ; repeat
All I did was change the download cable from the AXE091 board to the PICAXE 28X2 module and connected the V+, Gnd and circuit to the A.0 pin and it fails!