Peter Cuellar
Published

DrawBot and Arduino Shield

Hacked servos rotate continuously to create abstract art

Showcase (no instructions)749
DrawBot and Arduino Shield

Story

Read more

Code

Continous Rotation

C/C++
The code makes servos rotate continously
int servoPinL = 9;

int servoPinR = 10;

void setup() {

  pinMode(servoPinL, OUTPUT);

  pinMode(servoPinR, OUTPUT);
}
void loop() {
  digitalWrite(servoPinL, HIGH);

  digitalWrite(servoPinR, HIGH);
  delayMicroseconds(1500);
  digitalWrite(servoPinL, LOW);
  digitalWrite(servoPinR, LOW);
  delay(175);
}

Credits

Peter Cuellar

Peter Cuellar

10 projects • 2 followers
Designer, Engineer, Environmentalist

Comments