Add the following snippet to your HTML:
Boring with basic servo?This project let you controll the servo manually with joysticks.
Read up about this project on
Boring With basic servo?This project let you controll servo easily with joysticks!!!
#include <Servo.h> const int Y_pin = A0; // analog pin connected to Y output Servo myservo; int val; void setup() { myservo.attach(9); } void loop() { val = analogRead(Y_pin); val = map(val, 0, 1023, 0, 180); myservo.write(val); delay(15); }
Comments