Let's Make Robots!

DustinTesla88's blog

arduino code

im working on the ankle servos, so im just using the example sweep, an i have them zeroed at 90 deg. I can get it from 90 to 180 an back but i cant get it to go 90 - 0.   

 

 

 

#include <Servo.h> 

 

Servo myservo;  // create servo object to control a servo 

 

 

int pos = 90;   

 

void setup() 

  myservo.attach(9);  

 

 

void loop()