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

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'