I mentioned a while back that I decided to use the axe031 servo driver for my project...
Im new to the one wire bus and the whole i2c commands.
The problem I am having is that the servos will not goto the centre even though the supplied code:
i2cslave $c2, i2cslow, i2cbyte
writei2c 63, (128)
writei2c 64, (128)
writei2c 65, (128)
stop
does not make the servos goto the centre. I understand that many servos vary and that this is a common error however the servos will not go to their left or right limits. To be honest im just really really confused and Ive tried a lot of things.
Ive tried increasing the position of the servo by 1 so that it inches its way from left to right however at a certain point a long way before its internal stops it stops and goes back to the other end.
here is the code im using...
symbol servo1 = 63 'base register servo 1
symbol servo1p = 85 'positive register servo 1
symbol servo1n = 105 'negative register servo 1
symbol offset = 50
symbol base = w1
main:
i2cslave $c2, i2cslow,i2cbyte
writei2c servo1,(base)
pause 1000
do
debug
base = base + 5
writei2c servo1,(base)
loop
and here is the data sheet...
http://www.robot-electronics.co.uk/htm/sd21tech.htm
thanks
Im new to the one wire bus and the whole i2c commands.
The problem I am having is that the servos will not goto the centre even though the supplied code:
i2cslave $c2, i2cslow, i2cbyte
writei2c 63, (128)
writei2c 64, (128)
writei2c 65, (128)
stop
does not make the servos goto the centre. I understand that many servos vary and that this is a common error however the servos will not go to their left or right limits. To be honest im just really really confused and Ive tried a lot of things.
Ive tried increasing the position of the servo by 1 so that it inches its way from left to right however at a certain point a long way before its internal stops it stops and goes back to the other end.
here is the code im using...
symbol servo1 = 63 'base register servo 1
symbol servo1p = 85 'positive register servo 1
symbol servo1n = 105 'negative register servo 1
symbol offset = 50
symbol base = w1
main:
i2cslave $c2, i2cslow,i2cbyte
writei2c servo1,(base)
pause 1000
do
debug
base = base + 5
writei2c servo1,(base)
loop
and here is the data sheet...
http://www.robot-electronics.co.uk/htm/sd21tech.htm
thanks