How to position a servo using degrees
HTML-код
- Опубликовано: 10 сен 2024
- How to position a servo using degrees.
Needs :
Board :
Arduino Uno : example link : www.amazon.com...
Servo : SG90 or other : link to SG90 : www.amazon.com...
Wires :
Example : www.amazon.com...
Arduino IDE :www.arduino.cc...
Code to position to 90°. PIN used : 8
#include Servo.h // add a less-than sign and a plus-than arround servo.h
Servo myServo;
void setup()
{
myServo.attach(8, 1000, 2000);
myServo.write(90);
}
void loop()
{
}
Thank you fella damn I was struggling a lot to find the 90 for solar tracker
nice! I'm watching some of your vids.
thank you so much this helped me. one question though if i were to put myServo.write(180 ); will it work