Quantcast
Channel: SparkFun Electronics Comments
Viewing all articles
Browse latest Browse all 44542

Customer #362523 on ROB-09347 - Servo - Large Full Rotation

$
0
0

I have no idea what I'm doing wrong, but my servo won't move with less than 12V at 300mA from a wall wart. I've tried all sorts of sketches, including this one, but no changes to the variables make the servo stop or slow down. What's going on???

I have the power connected to the power rail of my breadboard, ground from arduino to the ground on the power rail, and the servo connected to the power rail with the white pin in arduino pin 9.

include

Servo myservo;

void setup() { Serial.begin(9600);

myservo.attach(9);
}

void loop() {

Serial.println("1500     ");  

myservo.writeMicroseconds(1500); delay(5000);

  Serial.println("4500     ");  

myservo.writeMicroseconds(4500); delay(5000);

  Serial.println("7000     ");  

myservo.writeMicroseconds(7000); delay(5000); }


Viewing all articles
Browse latest Browse all 44542

Trending Articles