Here we have a code that makes a blob shape, we wish it to stop after two rotations of the code loop and are not sure how to do this? Some people suggested to use servo detach? But we are not sure how to use that in our code or even if that is a good idea.
Here is the code so far
#include <Servo.h>
Servo servoLeft; // Define left servo
Servo servoRight; // Define right servo
void setup() {
servoLeft.attach(11); // Set left servo to digital pin 10
servoRight.attach(9); // Set right servo to digital pin 9
}
Here we have a code that makes a blob shape, we wish it to stop after two rotations of the code loop and are not sure how to do this? Some people suggested to use servo detach? But we are not sure how to use that in our code or even if that is a good idea.
How does it make a blob shape?
What servo's?
Please read your posting as if you were someone who has no idea about your project.
Are these standard servos or continuous-rotation?
Tom's suggestion of a picture of your project is a very good idea. It's very hard to imagine how the code creates a blob shape, without seeing the machine/robot. What is it exactly?