I'm using processing to send strings to Arduino, using functions like
else {
int u=90;
port.write(u+"z");
}
on the processing side and in the Arduino side I'm using calls like
case 'z':
z.write(v);
v = 0;
break;
case 'L':
z.write(0);
//v = 0;
break;
}
yet I can't get the servo to stop at all. How do I make it shut off?
If it was a regular servo I wouldn't even ask because that's easy but I write 0 or 90 or LOW and nothing, it just keeps spinning in one direction but when it meets one of the conditions in my statements it switches polarity/direction and that's good - I want that but I made this function to make it stop and it is not doing so, does anyone have any ideas ?
I am using a Parallax Continuous Rotation Servo.
port.write(u+"z");
$\endgroup$