I wanna use moters

:wink: hi guys, I'm from China

I'm beginner lever so I have a lot questions.

firstly I wanna control DC moter speed lever so could you guys tell me how can I control it??

what's more, our server moter's voltage is 6v but as you guys know that the board's voltage's maxium is 5V
so what can I do?

repeatly speaking I beginner so please tell me detailly... :cry:

um...

modified

we use

int servoPin = 7; // R/C Servo connected to digital pin
int myAngle; // angle of the servo (roughly in degrees) 0-180
int pulseWidth; // function variable

void servoPulse(int servoPin, int myAngle) {
pulseWidth = (myAngle * 11) + 500; // converts angle to microseconds
digitalWrite(servoPin, HIGH); // set servo high
delayMicroseconds(pulseWidth); // wait a very small amount
digitalWrite(servoPin, LOW); // set servo low
delay(10); // refresh cycle of typical servos (20 ms)
}

void setup() {
pinMode(servoPin, OUTPUT); // set servoPin pin as output
}

void loop() {
for (myAngle=0; myAngle<=195; myAngle++) {
servoPulse(servoPin, myAngle);

}
delay(10);
}

our sever motor is hitec HS 805BB

I wonder why It is different from HS-311??

which part do I change??

Are you sure your servo only runs at 6 V? The standard servo can operate from around 4.8 V to 6 V...

That servo will operate on 5 volts but it could draw more current than the onboard regulator can provide, particularly as you are refreshing it twice as fast as normal.
Try changing
delay(10); // refresh cycle of typical servos (20 ms)
to
delay(20); // refresh cycle of typical servos (20 ms)

I have found that high torque servos like the one you are using need to be operated from a separate power supply. You can use 6 volts if you want the highest torque and speed but it should work on any decent power supply within the voltage range Ben posted. Don't forget to connect the grounds together.

Have fun!