File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();
35
35
#define SERVOMAX 600 // This is the 'maximum' pulse length count (out of 4096)
36
36
#define USMIN 600 // This is the rounded 'minimum' microsecond length based on the minimum pulse of 150
37
37
#define USMAX 2400 // This is the rounded 'maximum' microsecond length based on the maximum pulse of 600
38
- #define SERVO_FREQ 60 // Analog servos run at ~60 Hz updates
38
+ #define SERVO_FREQ 50 // Analog servos run at ~50 Hz updates
39
39
40
40
// our servo # counter
41
41
uint8_t servonum = 0 ;
@@ -49,7 +49,7 @@ void setup() {
49
49
// that precise. You can 'calibrate' by tweaking this number till
50
50
// you get the frequency you're expecting!
51
51
pwm.setOscillatorFrequency (27000000 ); // The int.osc. is closer to 27MHz
52
- pwm.setPWMFreq (SERVO_FREQ); // Analog servos run at ~60 Hz updates
52
+ pwm.setPWMFreq (SERVO_FREQ); // Analog servos run at ~50 Hz updates
53
53
54
54
delay (10 );
55
55
}
@@ -99,4 +99,4 @@ void loop() {
99
99
100
100
servonum++;
101
101
if (servonum > 7 ) servonum = 0 ; // Testing the first 8 servo channels
102
- }
102
+ }
You can’t perform that action at this time.
0 commit comments