Hi,
I'm working on a application that uses a small (cheap) servo.
Basically the servo mimics the position of a pot meter. The servo uses a seperate power supply and the
picaxe cirquit uses 2 caps to stabilise the power supply. However I notice a difference in the stability of the servo when I leave out the setfreq m4 command.
without this command the servo is less stable, sometimes it moves a tiny bit like every second. but when I use the setfreq m4 command again it's all smooth and stable.
I thought the setfreq m4 was quite useless since this is the default speed of the Pic but it seems that there are other things happening to. Perhaps something with the servo timer? As I said I'm using a cheap servo so it may play a role also.
Anyway just wanted to share this in case other people see the same behaviour.
Picaxe = 08M2 (5vdc decoupled)
Servo = Basetech ES-05 FUT (6 vdc)
CODE:
setfreq m4 'Leaving this out causes unwanted movements on the servo.
output 2
servo 2 , 75
do
readadc 1, b0
if b0 < 75 then
b0 = 75
else if b0 > 225 then
b0 = 225
end if
servopos 2, b0
loop
I'm working on a application that uses a small (cheap) servo.
Basically the servo mimics the position of a pot meter. The servo uses a seperate power supply and the
picaxe cirquit uses 2 caps to stabilise the power supply. However I notice a difference in the stability of the servo when I leave out the setfreq m4 command.
without this command the servo is less stable, sometimes it moves a tiny bit like every second. but when I use the setfreq m4 command again it's all smooth and stable.
I thought the setfreq m4 was quite useless since this is the default speed of the Pic but it seems that there are other things happening to. Perhaps something with the servo timer? As I said I'm using a cheap servo so it may play a role also.
Anyway just wanted to share this in case other people see the same behaviour.
Picaxe = 08M2 (5vdc decoupled)
Servo = Basetech ES-05 FUT (6 vdc)
CODE:
setfreq m4 'Leaving this out causes unwanted movements on the servo.
output 2
servo 2 , 75
do
readadc 1, b0
if b0 < 75 then
b0 = 75
else if b0 > 225 then
b0 = 225
end if
servopos 2, b0
loop