Add the following snippet to your HTML:<iframe frameborder='0' height='385' scrolling='no' src='https://www.hackster.io/2-bros-team/controll-servo-with-joysticks-a5a2fd/embed' width='350'></iframe>
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); }
Please log in or sign up to comment.
Comments
Please log in or sign up to comment.