Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dead band: 2μs
- Working frequence: 1520μs / 330hz
- Operating Speed (4.8V): 0.18 sec/60°
- Operating Speed (6V): 0.16 sec/60°
- Stall Torque (4.8V): 17.25 kg/cm
- Stall Torque (6V): 20.32 kg/cm
- Dimensions: 40.5X20.2X38mm
- Weight: 62 g
- Connector Wire Length: JR 265 mm
- Bearing: 2BB
- #include <Servo.h>
- Servo myservo; // create servo object to control a servo
- // twelve servo objects can be created on most boards
- int pos = 0; // variable to store the servo position
- void setup() {
- myservo.attach(3); // attaches the servo on pin 9 to the servo object
- }
- void loop() {
- for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
- // in steps of 1 degree
- myservo.write(pos); // tell servo to go to position in variable 'pos'
- delay(15); // waits 15ms for the servo to reach the position
- }
- for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
- myservo.write(pos); // tell servo to go to position in variable 'pos'
- delay(15); // waits 15ms for the servo to reach the position
- }
- }
Add Comment
Please, Sign In to add comment