Servo won't turn while accepting commands from an Arduino - Raspberry Pi Forums


in first post, i'm asking advice -

i'm attempting turn servo arduino when gets orders serial contribution, situation, console. have officially done engines , works fine when attempt servo doesn't move means. (an example - http://www.powerjackmotion.com/product- ... tor-range/ ) far have written -

#include <softwareservo.h>

softwareservo myservo;
int movemotor;
void setup() {
serial.begin(9600);
myservo.attach (10);
myservo.write(90);
}
void loop() {
movemotor = serial.read();
if (movemotor = 111) {
(int pos = 90; pos >=0; pos--) {
myservo.write(pos);
delay(15);
}
}
else if (movemotor = 99) {
(int pos = 90; pos <= 180; pos++) {
myservo.write(pos);
delay(15);
}
}
}

i'm powering servo remotely 9-volt battery , have made point associate ground of arduino, however, can't see whatever else fouled up.
appreciated.
in advance!

isn't question arduino forum or motor manufacturer or whoever wrote code?


raspberrypi



Comments

Popular posts from this blog

Valutazione Template - Joomla! Forum - community, help and support

SD Datastring Convention

First use of Arduino Uno : avrdude error on Blink uploading