Hi Guys
Still pretty new to Picaxe so please be gentle. Also, using a Mac which isn't ideal for a beginner.
I'm working on an animatronic project which uses the 08M2 via a project board to control a Hitec HS 81 servo. My project works via remote control and makes the servo move one way (very slowly) and then move the other way after a 5 second delay.
Everything works fine apart from a loud annoying buzzing coming from the servo on power up. I know it's not the load or linkage as the servo buzzes even when I remove the servo arm. I've got two of these servos, bought at different times and they both buzz so I don't think there's anything wrong with the servos. I've posted my programme below. Any help or guidance greatly appreciated.
Cheers!
Still pretty new to Picaxe so please be gentle. Also, using a Mac which isn't ideal for a beginner.
I'm working on an animatronic project which uses the 08M2 via a project board to control a Hitec HS 81 servo. My project works via remote control and makes the servo move one way (very slowly) and then move the other way after a 5 second delay.
Everything works fine apart from a loud annoying buzzing coming from the servo on power up. I know it's not the load or linkage as the servo buzzes even when I remove the servo arm. I've got two of these servos, bought at different times and they both buzz so I don't think there's anything wrong with the servos. I've posted my programme below. Any help or guidance greatly appreciated.
Cheers!
Code:
Output C.4
Input C.3
Symbol z = W8
init:
Servo C.4,75 ; initialise servo
Main:
Pause 10
If PinC.3 = 0 Then Goto Main
'// Move Servo QUIETLY over a period of 2 seconds or so //
For z = 75 to 225
ServoPos C.4, z
Pause 13
Next z
'// Wait 5 seconds
Pause 5000
'// Move Servo back the other way
For z = 225 to 75 Step -1
ServoPos C.4, z
Pause 13
Next z
'// Wait 5 Seconds
Pause 5000
Goto Main