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...
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??