Arduino Uno R4 WiFi LESSON 22: Control a Servo With Your Arduino

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • Pick your Sunfounder kit up so you get the same results I do:
    amzn.to/3SciApZ
    You can pick up the neat jumper wires I showed in the video here:
    amzn.to/3U2vyIe
    You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
    / paulmcwhorter
    In this video I show you how to control a servo using the arduino. We learn how to load libraries, and control the position of the servo. Enjoy!
    [Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]
    #arduinor4wifi
    #servo
    #tutorial
  • НаукаНаука

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

  • @pdaip9680
    @pdaip9680 16 дней назад

    Walmart lawn chair abject failure - in Lesson 22 the servo is using the only 5V pin on the R4 UNO. Now I need to add the potentiometer but as per Lesson 12 that needs a 5V pin as well. Not risking frying my R4 by experimenting, so will have to head for the next lesson to find the answer... great lessons by the way.

    • @tezza3733
      @tezza3733 2 дня назад

      Use the bus line on the breadboard, the uno r4 doesnt will power more than 5 sensors, the current comes from the USB port not the uno.

  • @osayiunuarhemhen1791
    @osayiunuarhemhen1791 23 дня назад +1

    Good day, I am Engineer. Your series on Arduino has made me a better Engineer. I would appreciate if you could start a series on ESP 32, because you have a unique way of teaching which is very very good.
    Thanks.
    Have a nice day.
    Cheers

    • @TheUnofficialMaker
      @TheUnofficialMaker 16 дней назад

      he won't because of too many variations, as he has stated.

  • @AshrayJK
    @AshrayJK 20 дней назад

    Can u please do arduino lessons on the elegoo 37 sensors kit V2.0 arduino, i wanna learn how to do them and i cant find good tutorials but then i knew who the best tech tutor is. love ur lessons btw

  • @mychrome-mt1hq
    @mychrome-mt1hq 24 дня назад +1

    GREAT lesson! Than You!

  • @scottwait3585
    @scottwait3585 24 дня назад +1

    Thank you Paul!

  • @LorisHW
    @LorisHW 13 дней назад

    Thanks for the lesson! HW done but I will not make a video since I can no longer link to it here.

    • @paulmcwhorter
      @paulmcwhorter  12 дней назад +1

      So sorry. Really frustrating to be tagged by a machine, and no way to explain. Anyway, thanks for watching and working on the lessons.

    • @LorisHW
      @LorisHW 12 дней назад +1

      @@paulmcwhorter Yes - quite frustrating but I get why YT is doing it. No creator wants folks to spam their work. Your community was using it for another purpose. Ultimately, you may want to find another way to share with your students. Discord is one suggestion I would have. For now, I will just post text-only comments. I may occasionally make a vid of something I do that is unique but it is not worth it for everyday HWs. I made those mainly to engage with this community.

  • @Ducerobot
    @Ducerobot 24 дня назад +1

    Cool video.

  • @charlotteswift
    @charlotteswift 21 день назад +1

    Hi Paul
    Here is my homework for lesson 22. It's only 44 seconds long so I hope you (& The Guys) will take the time to watch it even though I can't leave a link.

  • @robertschuldenfrei2402
    @robertschuldenfrei2402 18 дней назад

    I don't have time to post the video before the class on Thursday, but I am posting the code without the servo code. I will finish the circuit over the weekend and post it with the video. Notice that the equation of the line does not go through the (0,0) point but has a negative intercept. That is because the potentiometer subtends an angle of more than 180 degrees.
    // 23 potServo.txt
    int potPin= A2;
    int potVal;
    int br= 9600;
    int waitT= 100;
    int angle;
    void setup() {
    // put your setup code here, to run once:
    pinMode(13, OUTPUT);
    pinMode(potPin, INPUT);
    Serial.begin(br);
    }
    void loop() {
    // put your main code here, to run repeatedly:
    digitalWrite(13, LOW);
    potVal= analogRead(potPin);delay(waitT);
    angle= .254*potVal-56.134; // This is the line with a Y intercept
    Serial.print("potVal: ");
    Serial.print(potVal);
    Serial.print(" Angle: ");
    Serial.println(angle);
    delay(waitT);
    }

  • @user-tc3dp3ik6x
    @user-tc3dp3ik6x 24 дня назад +1

    Hey Paul!

  • @KevalPattani
    @KevalPattani 22 дня назад +1

    Hi, I have watched your past videos on auduino r3, I kinda just want to know that how to make your famous cold coffee.

    • @paulmcwhorter
      @paulmcwhorter  21 день назад

      I make two very strong shots of espresso, and while they are still hot, pour them over ice. The hot coffee melts some of the ice, dilluting the espresso to a wonderful rich strength. Try it.

  • @philluvschips3787
    @philluvschips3787 22 дня назад

    I have SG90 servo motors, they just spin continuously. Don't know if the Sunfounders are any different?

  • @RicardoHernandez-nd5pp
    @RicardoHernandez-nd5pp 14 дней назад

    Hello... I have a bunch of arduino stuff. I have to buy a new set of arduino's things to follow this course? But i have tinkercad just in case...

  • @sanketkharade7466
    @sanketkharade7466 24 дня назад +1

    Sir, can you start a new series for esp32?

    • @310765
      @310765 23 дня назад

      I hope I’m correct in saying, at a basic level you can do exactly what you can with Arduino R4 UNO it uses the same IDE and uses the same language.

  • @patrickfox-roberts7528
    @patrickfox-roberts7528 23 дня назад

    👍

  • @robertschuldenfrei2402
    @robertschuldenfrei2402 18 дней назад

    This problem has been solved. Read the reply below. HELP: Last night I was working with R4 and put power in the wrong place. Not only did the R4 stop working but four other Arduinos are failing to load programs after clean compilations. They show that port is grayed out. I think I have destroyed a library. How can I remove both the old Arduino IDE and the new one so that I get a clean set of libraries?

  • @KillerGuy
    @KillerGuy 24 дня назад +1

    Isn't it better to power the servo using an external power source?

    • @paulmcwhorter
      @paulmcwhorter  23 дня назад

      Indeed, but these small servos are OK to power from arduino.

    • @KillerGuy
      @KillerGuy 23 дня назад

      @@paulmcwhorter are you gonna make a tutorial on how to power multiple servos with an external power supply? I cant figure out how I would power the Arduino and the servos, cause they need different voltages

  • @jeff_wild
    @jeff_wild 23 дня назад +2

    Homework: ruclips.net/video/tfbkQb7VIBc/видео.html
    Thanks for all your work.

  • @robertschuldenfrei2402
    @robertschuldenfrei2402 17 дней назад

    I got the video done before the class, but it is done without sound. ruclips.net/video/hS9u-nxk0Y0/видео.html

  • @FreidonNasrat
    @FreidonNasrat 23 дня назад

    ruclips.net/video/X5BYdAINkmU/видео.html Homework lesson 22

  • @Tron_Starfighter
    @Tron_Starfighter 21 день назад

    Legend: ruclips.net/video/RYEPx4N3IO4/видео.html

  • @alistaircook1997
    @alistaircook1997 23 дня назад

    Excellent Lesson, here is my Lesson 22 homework :- ruclips.net/video/Bi_P37JKx1M/видео.html

  • @bigbogeyface
    @bigbogeyface 21 день назад +2

    Here's the most wonderful Charlotte's homework: ruclips.net/video/38sl6AKFVE4/видео.htmlsi=SoKUTuBgNpTkfaIy

  • @shineeyman
    @shineeyman 17 дней назад

    Homework ruclips.net/video/6T0uwCpzZL0/видео.html

  • @Adrian427
    @Adrian427 22 дня назад

    Homework all done. ruclips.net/video/H_IG1zMabgo/видео.html