Arduino Uno R4 Wifi LESSON 3: Blink an LED With the Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2024
  • Pick your Sunfounder kit up so you get the same results I do:
    amzn.to/3SciApZ
    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 an external LED using the Arduino R4 WiFi board. I show how you use a breadboard to connect the circuit up. I explain the importance of using a current limiting resistor, and then show you the code I developed. The goal was to create a blinking SOS signal using a red LED.
    [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
    #LED
    #tutorial
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 92

  • @rokkocina7408
    @rokkocina7408 3 หลายเดือนก่อน +7

    hey, just wanted to let you know you are the best teacher I ever had. You deserve all the views and so much more and I cannot express enough how thankful I am for everything you have done. I will try my best everyday and hopefully someday I can repay you back for your hard work, inspiration, motivation, laughs and so much more you have done for me, the community and everyone else that watches your videos. Thank you for everything, you are the best!

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน

      Thank you for the kind and encouraging words!

  • @lukepenner7929
    @lukepenner7929 3 หลายเดือนก่อน +2

    Such an amazing teacher, the love and the passion is quite evident

  • @davidbgood2801
    @davidbgood2801 2 หลายเดือนก่อน +1

    I have my Sunfounder kit and am following each lesson I really enjoy your way of teaching and I have learned so much I have followed all your older lessons on the Arduino and can now, do the home work, I used to fold a lot of lawn chairs but now I am legend lol.

  • @N4DDM
    @N4DDM 23 วันที่ผ่านมา

    The code for this was easy and straightforward... Just use PinMode to declare the use of pins 10-13. Then digitalWright for each to go HIGH, then delay, and go LOW...
    I chose pins 10-13 so it would be easy for me to think of pin 10 as the Least Significant Bit (LSB) and Pin 13 as the Most Significant Bit (MSB)...
    The 4 LEDs could be read to get the status of a 16-bit word sent to one of the 16 relay boards... If I was to draw a schematic and layout a PCB I'd make them D3, D2, D1, and D0...
    This so much fun...

  • @xondemingo
    @xondemingo 3 หลายเดือนก่อน +1

    back to the lessons! you're a legend, professor

  • @brucemilyko8549
    @brucemilyko8549 3 หลายเดือนก่อน +4

    I am legand. I finally got my Sunfounder Explorer kit today

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน

      Excellent!

    • @Clendy321
      @Clendy321 3 หลายเดือนก่อน

      bro i got it same day as you

    • @Volker-Dirr
      @Volker-Dirr 3 หลายเดือนก่อน +1

      You forgot the double chest bump. :-)

  • @frickinbill
    @frickinbill 3 หลายเดือนก่อน

    Great lesson 😁
    Sunfounder kit ordered & will be here next Tuesday.

  • @leonkandhai9404
    @leonkandhai9404 3 หลายเดือนก่อน

    Thanks again for this great content, I noticed in these new lessons you are not stressing the importance of comments in our code like you have done previously. Once again thanks.

  • @edcox7666
    @edcox7666 3 หลายเดือนก่อน +1

    Once again Great Lesson

  • @Europayacht
    @Europayacht 3 หลายเดือนก่อน +2

    Good explained- all is running well!

  • @scottwait8883
    @scottwait8883 3 หลายเดือนก่อน

    Thank you Paul!

  • @genepierson1728
    @genepierson1728 3 หลายเดือนก่อน

    Thanks for your all your lessons. I had a thought for one...would you be willing to do a more advanced series inlcuding coding something like the game tic tac toe?

  • @msg1956
    @msg1956 หลายเดือนก่อน

    I am eagerly waiting for your tutorial which shows how to connect the R4 via Bluetooth to the Laptop and then send the sketch via Bluetooth to R4 ( assume R4 powered just by a simple power adapter/ mobile charger) and then make it blink.

  • @310765
    @310765 3 หลายเดือนก่อน

    Paul, you are legend! 🤩

  • @larrycahoon8465
    @larrycahoon8465 3 หลายเดือนก่อน +1

    I like your stuff but as an old ham radio operator I have to tell you your code sends VTTS. Your first dah is part of the first letter due to the spacing. Extra space between the two dahs makes them each a T.

  • @peterdegraff8032
    @peterdegraff8032 3 หลายเดือนก่อน

    i finished the lesson with success

  • @oracid
    @oracid 3 หลายเดือนก่อน

    Thank you for your videos. Unfortunately, the link to the kit does not work in France. Too bad.

  • @Adrian427
    @Adrian427 3 หลายเดือนก่อน +2

    Another project completed. Thanks once again Paul for your help in learning about the Arduino R4 Wifi.
    Link to Video: th-cam.com/video/ME4sJa0fj2E/w-d-xo.html

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน +1

      Excellent video, and a really neat, clean build. Well done.

  • @Volker-Dirr
    @Volker-Dirr 3 หลายเดือนก่อน +1

    Showing how to solve bugs is perfect. Sadly many teachers don't do it. But you should show beginners better how to structure the code better. (I mean the missing tab/space in line 3. You tried to fix it one time in the loop source, but there are still a few left. I know, it sounds overdone for a beginner, but if a beginner doesn't learn it from the beginning, then his code will pretty fast very ugly and it will difficult to read and find bugs. For example if you see your video at time stamp 11:14. The missing ; in line 10. A few of my students paste it before the } in line 10 instead of at the end of line 8, because that is written in the error. And they done it, even I explained it more detailed than you. I bet some of your students might make the same mistake. We (teachers) must care about that. So we need to explain much more detailed and/or better check the source of the students.

  • @Fubar12341
    @Fubar12341 3 หลายเดือนก่อน

    Thanks for another lesson Paul , I managed the homework with SOS fine, Still trying to perfect making videos with links back to the lesson. Paul Arduino IDE is asking me to upgrade to 2.3.0 I will resist till you say upgrade.
    See you next week.

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน +1

      I am going to stay on the existing IDE until I see a compelling reason to upgrade.

  • @J-WafflezZ
    @J-WafflezZ 18 วันที่ผ่านมา

    Question, is it 8ma per arduino or 8ma per pin? If per arduino, is there an integrated function within the arduino that live reads the total amperage its sensing or is a multimeter needed for this?

  • @robertbock5898
    @robertbock5898 3 หลายเดือนก่อน

    Great video. I used a for loop to count the number of flashes for each letter. for(int i=0; I

  • @drew-david
    @drew-david 2 หลายเดือนก่อน

    I most certainly did not fold up like a Walmart lawn chair; I AM LEGEND! *chest pump* ; *chest pump*

  • @ex1stenz
    @ex1stenz หลายเดือนก่อน

    kit not available in eu\italy :(

  • @waynefitkin1104
    @waynefitkin1104 3 หลายเดือนก่อน

    Hi Paul,
    Have you tested the RTC on the R4? I have 2 of them.
    It is so inaccurate that it is unusable. one is gaining 10 minutes in 4 hours and the other gained 6 minutes in 3 hours.
    How can Arduino release this Uno R4 with such a flaw? a DS3231 keeps very accurate time like 1 Minute over an entire year.

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน

      Have not played with RTC. Sounds like a bug.

  • @johnbarrios4531
    @johnbarrios4531 3 หลายเดือนก่อน

    Waiting for mybandrino

  • @glennvonk
    @glennvonk 3 หลายเดือนก่อน

    Yup....Legend

  • @charlotteswift
    @charlotteswift 3 หลายเดือนก่อน +1

    Here is my video: th-cam.com/video/my-gTQwPixs/w-d-xo.html Unfortunately the second program only works on an Arduino R3 and not an R4. Work in progress!!

  • @martindasilva4358
    @martindasilva4358 3 หลายเดือนก่อน

    Why would we need to use 4 digital pins ? (unless we want to control them independently ;-) ) ? One pin can do the trick as well. Great content and nice teaching approach, helps me explaining tech to my kids :-))

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน +1

      I want you to go back and think about lesson 2. How much current can an arduino pin provide? When we chose a current limiting resistor we designed it to draw how much current? If we connected 4 LED to one pin, how much current would we draw? Poof! Dont fry your arduino!

    • @martindasilva4358
      @martindasilva4358 3 หลายเดือนก่อน

      Isn’t the risk of frying the Arduino only matérialised if the resistors are in parallel ?if there’s only one resistor right after the 5 v pin , before setting up the led in parallel wouldn’t the current be limited ?

    • @keyboardlearning7552
      @keyboardlearning7552 3 หลายเดือนก่อน

      But the LEDs won't be as bright. The 1k resistor will be limiting the current from the pin to 8mA, but the LEDs will be sharing that 8mA, so they will be passing about 2mA each. (There is some tolerance in components, so they are unlikely to the 8mA share perfectly.)

    • @DrDave327
      @DrDave327 3 หลายเดือนก่อน

      @@martindasilva4358 Paul is trying to keep it simple and straightforward to teach basic concepts. Yes, there are variations to circuit design that may be successful with a particular strategy in mind, but those details are not in the scope of teaching the basics.

    • @martindasilva4358
      @martindasilva4358 3 หลายเดือนก่อน

      absolutely true. @@DrDave327

  • @ronwilliams7611
    @ronwilliams7611 3 หลายเดือนก่อน

    I am legend!

  • @jslyto
    @jslyto 3 หลายเดือนก่อน

    Debugging is half the fun as long as it's not half the time it took you to program it

  • @pralaymajumdar1206
    @pralaymajumdar1206 3 หลายเดือนก่อน

    How many lessons can we expect in this new tutorial series?

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน +9

      Lots and lots. I already have the first 32 done, and release one lesson a week on Thursdays. Expect more than a year of lessons.

    • @robertschuldenfrei2402
      @robertschuldenfrei2402 3 หลายเดือนก่อน +2

      That is fabulous news. On Tuesday I will be 81 years old, so that may be a lifetime of lessons :). Keep up the good work@@paulmcwhorter

    • @pralaymajumdar1206
      @pralaymajumdar1206 3 หลายเดือนก่อน

      @@paulmcwhorter Great news sir... 🙏

  • @Tron_Starfighter
    @Tron_Starfighter หลายเดือนก่อน

    Completed - th-cam.com/video/9P4dbSBYk-Y/w-d-xo.htmlsi=SHiQpuHUQhxpTBEy

  • @drthik1
    @drthik1 3 หลายเดือนก่อน +1

    Was able to get it to work but I'm going to need another breadboard the slots in this one are too loose. Parts just drop into them without a tight connection
    th-cam.com/video/PadTOT-Rofk/w-d-xo.htmlsi=lR5cJ14n7kL9SfOe

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน +1

      LEGEND! Nice neat build, well done.

  • @johnsullivan3237
    @johnsullivan3237 3 หลายเดือนก่อน

    I am legend

  • @richardsstark9825
    @richardsstark9825 3 หลายเดือนก่อน +1

    My solution. th-cam.com/users/shorts7sQmzckePI8?si=L_qiq_Ed_27Z-wtt, I figured while awaiting more complicated circuits, i would play around with the coding. I didn't know HIGH/LOW could be handled as a boolean variable or the pin number as an integer.

  • @rufustoad1
    @rufustoad1 3 หลายเดือนก่อน

    I am a legand but I cheated a little as I did this 4yrs ago in your other class:) Why does digitalwrite or others turn red if its not spelled correctly??

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน

      Yes, that bothers me too. Really I hate IDE 2.X

  • @user-ur3mx9ov1z
    @user-ur3mx9ov1z หลายเดือนก่อน

    i am legend. double chest pump

  • @robertschuldenfrei2402
    @robertschuldenfrei2402 3 หลายเดือนก่อน

    I was successful in posting comments to the 4 year old Arduino thread and the new supplemental R4 thread posted last night. Will this comment stick? If it does, what changed?

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน

      Robert, your comments are getting posted. As I have said several times before, if you post a link with no other text, or post a link to an external, non-youtube site, or if you are running an ad blocker, your comments will be blocked by the system.

  • @daveslack2755
    @daveslack2755 3 หลายเดือนก่อน

    Homework for this lesson - th-cam.com/video/ilPnUfnKrq8/w-d-xo.html

  • @drdentin3215
    @drdentin3215 3 หลายเดือนก่อน

    Late HW 2 and 3 Paul's LiveStream Built In display as a bonus. th-cam.com/video/7vrJ9IYaKRU/w-d-xo.html

  • @drew-david
    @drew-david 2 หลายเดือนก่อน

    Homework #3 fresh off the griddle and it is piping hot! th-cam.com/video/2DZboIXjIKE/w-d-xo.htmlsi=s8wBsjhl4OMM3VSS

  • @freddyveza
    @freddyveza 3 หลายเดือนก่อน +1

    And my homework for this lesson th-cam.com/video/DRwmwQ1gKZg/w-d-xo.html

  • @alistaircook1997
    @alistaircook1997 3 หลายเดือนก่อน +1

    Great lesson as usual, here is my lesson 3 homework :- th-cam.com/video/rMOXRHSLhMw/w-d-xo.html

  • @keyboardlearning7552
    @keyboardlearning7552 3 หลายเดือนก่อน

    I am Legend !!! Double Chest Thump!!! My homework video is here: th-cam.com/video/ZY2t_dqyTe4/w-d-xo.html

  • @robertschuldenfrei2402
    @robertschuldenfrei2402 3 หลายเดือนก่อน

    I was successful, but the video never appeared.

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน

      Not sure, sounds like a problem with youtube. If you are running an ad blocker on your browser, I have heard that can impact ability to post comments.

  • @LorisHW
    @LorisHW 3 หลายเดือนก่อน +1

    Got my HW done just before the Super Bowl Party will start! th-cam.com/video/dBCTf8My2-w/w-d-xo.html