Gramps
Senior Member
In Ken Anderson's Book, Picaxe Project Handbook vol.1 pt.1, he describes a analog dial project.
We cannot get it to work. The program loads nicely. Very simple wiring breadboard but the servo does not respond to the pot.
#picaxe 08M2
#no_data
symbol pot1=b1
symbol adc=C.1
init:
dirsC=%00000101
PinsC=%00000000
servo C.2,75
main:
do
select case pot1
case<84:servopos C.2,75
case<112:servopos C.2,112
case<140:servopos C.2,140
case<168:servopos C.2,168
case<196:servopos C.2,196
case<224:servopos C.2,224
end select
loop
Any suggestions would be appreciated!
Gramps
We cannot get it to work. The program loads nicely. Very simple wiring breadboard but the servo does not respond to the pot.
#picaxe 08M2
#no_data
symbol pot1=b1
symbol adc=C.1
init:
dirsC=%00000101
PinsC=%00000000
servo C.2,75
main:
do
select case pot1
case<84:servopos C.2,75
case<112:servopos C.2,112
case<140:servopos C.2,140
case<168:servopos C.2,168
case<196:servopos C.2,196
case<224:servopos C.2,224
end select
loop
Any suggestions would be appreciated!
Gramps