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

Ғылым және технология

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

Пікірлер: 45

  • @pdaip9680
    @pdaip96803 күн бұрын

    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.

  • @charlotteswift
    @charlotteswift8 күн бұрын

    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.

  • @paulmcwhorter

    @paulmcwhorter

    8 күн бұрын

    LEGEND!

  • @AshrayJK
    @AshrayJK7 күн бұрын

    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-mt1hq11 күн бұрын

    GREAT lesson! Than You!

  • @scottwait8883
    @scottwait888311 күн бұрын

    Thank you Paul!

  • @osayiunuarhemhen1791
    @osayiunuarhemhen179110 күн бұрын

    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

    4 күн бұрын

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

  • @robertschuldenfrei2402
    @robertschuldenfrei24025 күн бұрын

    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); }

  • @LorisHW
    @LorisHW18 сағат бұрын

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

  • @paulmcwhorter

    @paulmcwhorter

    2 сағат бұрын

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

  • @Ducerobot
    @Ducerobot11 күн бұрын

    Cool video.

  • @RicardoHernandez-nd5pp
    @RicardoHernandez-nd5ppКүн бұрын

    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...

  • @robertschuldenfrei2402
    @robertschuldenfrei24025 күн бұрын

    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?

  • @philluvschips3787
    @philluvschips37879 күн бұрын

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

  • @user-tc3dp3ik6x
    @user-tc3dp3ik6x11 күн бұрын

    Hey Paul!

  • @patrickfox-roberts7528
    @patrickfox-roberts752810 күн бұрын

    👍

  • @KevalPattani
    @KevalPattani9 күн бұрын

    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

    9 күн бұрын

    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.

  • @sanketkharade7466
    @sanketkharade746611 күн бұрын

    Sir, can you start a new series for esp32?

  • @310765

    @310765

    10 күн бұрын

    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.

  • @KillerGuy
    @KillerGuy11 күн бұрын

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

  • @paulmcwhorter

    @paulmcwhorter

    11 күн бұрын

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

  • @KillerGuy

    @KillerGuy

    10 күн бұрын

    @@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

  • @robertschuldenfrei2402
    @robertschuldenfrei24024 күн бұрын

    I got the video done before the class, but it is done without sound. kzread.info/dash/bejne/modt14-nqM6WiZM.html

  • @jeff_wild
    @jeff_wild10 күн бұрын

    Homework: kzread.info/dash/bejne/ppqWzbObZ7mvcsY.html Thanks for all your work.

  • @paulmcwhorter

    @paulmcwhorter

    10 күн бұрын

    LEGEND!

  • @FreidonNasrat
    @FreidonNasrat10 күн бұрын

    kzread.info/dash/bejne/iml2u8Z6ebHRnbg.html Homework lesson 22

  • @alistaircook1997
    @alistaircook199710 күн бұрын

    Excellent Lesson, here is my Lesson 22 homework :- kzread.info/dash/bejne/dJ2TspVweq7eYbA.html

  • @paulmcwhorter

    @paulmcwhorter

    10 күн бұрын

    LEGEND!

  • @Tron_Starfighter
    @Tron_Starfighter8 күн бұрын

    Legend: kzread.info/dash/bejne/hI15stptfpavf5c.html

  • @paulmcwhorter

    @paulmcwhorter

    8 күн бұрын

    LEGEND!

  • @bigbogeyface
    @bigbogeyface8 күн бұрын

    Here's the most wonderful Charlotte's homework: kzread.info/dash/bejne/ZWynzph6e6m8dZc.htmlsi=SoKUTuBgNpTkfaIy

  • @shineeyman
    @shineeyman4 күн бұрын

    Homework kzread.info/dash/bejne/aIhk19l8oN3AfJM.html

  • @paulmcwhorter

    @paulmcwhorter

    4 күн бұрын

    LEGEND!

  • @Adrian427
    @Adrian4279 күн бұрын

    Homework all done. kzread.info/dash/bejne/epN9qZOzfcTIl9I.html

  • @paulmcwhorter

    @paulmcwhorter

    9 күн бұрын

    LEGEND!

Келесі