erco
Senior Member
I just built a 20M2 board and I'm getting some kind of conflict. Running three servos with servo command on B.3 B.4, B.5, and using an ADC on B.6. Servo on B.4 (only) shuts down when I use sertxd to display the ADC output. When I comment out the sertxd, servo on B.4 works fine. Anybody know what's going on?
Code:
#picaxe 20m2
#no_data
#terminal 4800
fvrsetup FVR4096 ; set FVR as 4.096 V
adcconfig %011 ; set FVR as ADC Vref+, 0V Vref-
pause 500 ' initialize on powerup
servo B.5,140 'ping servo center=140 70=full ccw 230=full cw
servo B.4,162 'left servo null=142 fwd=162 rev=122
servo B.3,125 'right servo null=145 fwd=125 rev=165 was 3
aa:readadc b.6,w1
sertxd(#w1,13,10)
goto aa