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()
    {
    }

Комментарии • 3

  • @nikhilwaddar17
    @nikhilwaddar17 3 года назад

    Thank you fella damn I was struggling a lot to find the 90 for solar tracker

  • @2bit661
    @2bit661 4 года назад

    nice! I'm watching some of your vids.

  • @camk1196
    @camk1196 4 года назад

    thank you so much this helped me. one question though if i were to put myServo.write(180 ); will it work