Servo Motor
Hi i have a servo motor with a picaxe 28X (serial mode) and i am using it to rotate a carousel that will dispense items at the correct time. To do this I am using a AEX033 LCD with clock upgrade to provide the timer pulse
(https://www.techsupplies.co.uk/epages/Store.sf/sec2ae0184280/?ObjectPath=/Shops/Store.TechSupplies/Products/AXE033)
I have got it working going forward but cant get the motor to turn back i.e.
Hi i have a servo motor with a picaxe 28X (serial mode) and i am using it to rotate a carousel that will dispense items at the correct time. To do this I am using a AEX033 LCD with clock upgrade to provide the timer pulse
(https://www.techsupplies.co.uk/epages/Store.sf/sec2ae0184280/?ObjectPath=/Shops/Store.TechSupplies/Products/AXE033)
I have got it working going forward but cant get the motor to turn back i.e.
Code:
pause 500
serout 7,N2400, (253,9,"00:00:15 ")
pause 1000
for b0 = 40 to 240 step 48
servo 1,b0
pause 500
serout 7,N2400, (253,1,"Harry Gill ")
pause 1000
main:
serout 7,N2400, (1)
pause 490
serout 7,N2400, (0)
pause 10
if pin0 = 1 then move
goto main
move:
high 0
pause 1000
low 0
pause 5000
goto main
start:
if b0 = 240 then restart
next b0
pause 5000
goto main
restart:
servo 0,40
pause 5000
goto main
[code]
it wont follow the return code and the servo is not moving the correct amount (seems under powered)
this is my first post so if i missed anything please ask
thanks in advance for your help :)