Arduino Uno R4 WiFi LESSON 6: Create a Binary Counter With Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

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

  • @klausjurgen2696
    @klausjurgen2696 9 หลายเดือนก่อน +2

    you dont even speak slow but for some reason I can watch you on 1.75 speed and still I can follow your lessons. You are the GOATeacher

  • @edcox7666
    @edcox7666 10 หลายเดือนก่อน +2

    Gotta-er done. Took it out to 6 LEDs. Really enjoy your lessons. Looking forward to the next lesson. Thank ya sir

  • @wilmercb
    @wilmercb 10 หลายเดือนก่อน +2

    Hello Paul. Just wanted to let you know, you can use the short cut Cmd+T (Mac) or Ctrl+T (Windows) in Arduino IDE to auto format the code indentation/structure. Great lessons!

  • @DrDave327
    @DrDave327 10 หลายเดือนก่อน +1

    Great content, Paul! I missed the homework assignment. Other business got in the way. I am looking forward to the future learning with this board!

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

    I used his solution initially. Being kind of new to all this. After a cramp in the typing fingers I figured there had to be a better way. And there is.
    void setup() {
    // Set up pins as outputs
    pinMode(10, OUTPUT);
    pinMode(11, OUTPUT);
    pinMode(12, OUTPUT);
    pinMode(13, OUTPUT);
    }
    void loop() {
    // Count from 1 to 15
    for (int count = 1; count

  • @noenthalpy
    @noenthalpy 8 หลายเดือนก่อน +1

    Why do you use bare min. instead of new sketch?

  • @drdentin3215
    @drdentin3215 10 หลายเดือนก่อน +2

    Since we started this course going back and forth from Arduino to Pico has anyone else had a reoccurring dream that you are being chased by a roving band of vicious semi colons?

    • @vaughntaylor2855
      @vaughntaylor2855 10 หลายเดือนก่อน +2

      Yes sir, those semi colons are absolutely ruthless!! lol

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

      @drdentin3215
      and the capital T of true is beating me over the head!

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

    Thanks!

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

      Thanks, I really appreciate the support!

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

    Enjoy your videos! I just started doing your arduino tutorials and was wondering what the basic tools other than the elego starter kit i need. I just ordered a multimeter but would like to know what other essentials i need.

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

    When I coded this homework project I had the uno to the left of breadboard. So I wired pin 2 to the LED that would be 0-1. Pin 3 0-2.
    You had yours sitting above the breadboard and wired opposite of mine.
    Is that just a preference or should I adjust now to save severe issues later.
    Also one thing I did to help with the high and low of each number was to note each with // and the number for that code
    Also I am legend double fist bump

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

    I'm a Legend! double chest bump! I used only one resistor connected to a common GND (I know it is not correct, but I have at this time only one 1K ohm resistor)

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

    Made it to 31, lots of lawn chair breaks along the way, but I got there. Thanks for the great content. (I am non-facebook) ken

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

    Hey Paul. Life got busy but I’m back in the game now. Hmm, why not go out to 8 LED’s? Is that a byte? If I’m not mistaken 16 bits is a word and 32 is a double word. I seem to remember from my PLC programming days. There’s gotta be a way to put that into a for loop instead of all that copy and paste which causes errors.

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

      Welcome Back. A bit is always a bit, but how many bits in a byte or how many bits in a word depends on the platform. In the early days, an 8 bit machine, meant 8 bits in a byte.

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

    Having watched your previous tutorials on the uno r3 I recently got a R4 so I thought I would go back to the beginning again and see if I could work it out now with a bit more knowledge that you have given me.
    I used if statements to make it more compact, here’s my code…
    int num=0;
    int pin[6]={13,12,11,10,9,8};
    int position[6]={32,16,8,4,2,1};
    void setup()
    {
    Serial.begin(9600);
    pinMode(13, OUTPUT);
    pinMode(12, OUTPUT);
    pinMode(11, OUTPUT);
    pinMode(10, OUTPUT);
    pinMode(9, OUTPUT);
    pinMode(8, OUTPUT);
    }
    void loop()
    {
    for(int i = 0;i

  • @Johann75
    @Johann75 11 หลายเดือนก่อน +2

    Your lessons are such a grate start for beginners. God bless you.

    • @paulmcwhorter
      @paulmcwhorter  11 หลายเดือนก่อน +6

      And God bless you as well! Yes, these lessons will start for absolute beginners, but I plan to take this class much further than I did with the earlier arduino lessons. If you have arduino experience, be patient with this class as we will start with the basics, but I promise we will take the glass to great depth.

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

    Used two nested for loops

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

    Really enjoying. ans Sunfounder excellent kit. thanks for recommendation

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

    Amazon says the kit is out of stock and they don't know when or if it will be back. Is there another source. I hate to miss any of your wonderful tutorials.

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

    As usual this was another great lesson!

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

    Suggest you introduce the concept of for loops a bit earlier to avoid all the copy/paste stuff, but otherwise another good lesson.

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

      Yet how would one truly appreciate the for loop if they had not experienced the drudgery of doing it the brute force way?

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

    Thank you for this content.

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

    Hello Paul can you make series on PCB designing , it will be great ..

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

    Thank you Paul!

  • @larryb6759
    @larryb6759 10 หลายเดือนก่อน +1

    I am Legend! Double Chest Bump….LOL

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

    I went a little more advanced (I wrote this on my phone since the video is on my TV, so i might have a typo or two):
    int x=0; //put before setup
    void loop() {
    byte num = x;
    for (byte i=0; i>4; i++) {
    byte state = bitRead(num,i);
    digitalWrite(10+i,state)//pins are 13,12,11,10
    }
    x=++x;
    if (x>16){
    x=0;
    }
    delay(1000);
    }

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

    where are your first lessons

  • @Smurdy1
    @Smurdy1 6 หลายเดือนก่อน +1

    I expanded this further by making an 8-bit one that counts to 255, and optimized the code to about 50 lines!
    Here's the video: th-cam.com/video/LuLpboaUAps/w-d-xo.html

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

    I am Legend! Double Chest Bump 😍😍

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

    Okay next time I’m going to make for a long videos

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

    Here is my solution for Arduino R4 wifi lesson 6 homework, binary counter up to 31 :- th-cam.com/video/gJbcRk4jLYU/w-d-xo.html

  • @Bob-zg2zf
    @Bob-zg2zf 9 หลายเดือนก่อน

    you look healthy

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

    I am uber legend!!!

  • @charlotteswift
    @charlotteswift 10 หลายเดือนก่อน +2

    Here is my video for this lesson. I'm showing 2 solutions. One uses up to 14 LEDs and the other uses a 10 LED Bar. th-cam.com/video/JhY3QRR1ObM/w-d-xo.html

  • @philluvschips3787
    @philluvschips3787 10 หลายเดือนก่อน +1

    th-cam.com/video/LwD-Bkz3kLU/w-d-xo.html
    Another way (jazzed up with a LED counter )

  • @ryderjds
    @ryderjds 10 หลายเดือนก่อน +1

    Homework complete - with explanation - th-cam.com/video/6ohYiuj4wrY/w-d-xo.html

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

    I am legend! **

  • @Bob-zg2zf
    @Bob-zg2zf 9 หลายเดือนก่อน

    "we all fold up every once in a while" 😅

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

    I am legend!

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

    Here's my homework. th-cam.com/video/s_OWrUBq890/w-d-xo.html This isn't my first Paul McWhorter Ardiono course course, and I decided to use some of my past experience. You'll see from the code that having initialised the variables, I used a For loop to count in base 10 to 31. I then decoded the count, into binary, using one variable for each binary digit. Mindful of how fast the Arduino runs, I then turned off all of the LEDs, before turning back on, each LED that the Binary required. You really can't see the LEDs turning off. I feel than my code is shorter. What do you think?

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

    Homework #6 : th-cam.com/video/-uMVnZKV6uM/w-d-xo.htmlsi=hhKOcF4Amf4Zq_v8

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

    th-cam.com/users/shortsVguGJntoqAo binary counter counts to 31 decimal

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

      Nice work. Hey, please post your homeworks as normal youtube videos, not shorts. Shorts can not be paused and harder to see. Thanks!

  • @alfredvink
    @alfredvink 11 วันที่ผ่านมา

    I am…..a beginner. ;-)
    Sorry about the green LED.. run out of red….
    th-cam.com/users/shortsR9FvU5a67kQ?si=YDKQ9B-ev3Kc8rlY

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

    I am legend

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

    Here is my solution to the lesson 5 homework. Note I used some more advanced programing, that Paul has not taught yet, in my solution.
    th-cam.com/video/MAP3lo5M5JA/w-d-xo.html

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

      LEGEND!

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

      My solution also covers this week's homework too ( and then some)

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

      @brucemilyko8549 When I looked at your code, something didn't seem right. As I said in a comment (which has subsequently disappeared) on your video, I've debugged your program using Serial.print and unfortunately it goes out of bounds on the LED pin numbers array and it is actually trying to do a digitalWrite on an 11th pin number. When I ran it, the pin number was something like 24368 which was just the random rubbish after the end of the array. I thought you might like to know.

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

    I am legend, but cannot prove it...

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

      Well it looks like can comment now! This is my lesson 5 homework, made two counters, the one with 4 bits made on previous lesson and R4 led matrix, using rows to get 8 bits for the other counter th-cam.com/video/fex9cpQbtXQ/w-d-xo.html

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

      LEGEND!

  • @-msk1ster209
    @-msk1ster209 9 หลายเดือนก่อน

    I I'm legend

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

    I am legend🦵💪

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

    Mr. Paul, I hope this message find you well and in good spirit, I am working on this personal project and need some guidance; It is possible to contact you by email? Highly appreciate your response !

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

    Another great lesson and homework done. I just love the fact that you give us homework. Just a great way to learn and reinforce what we are learning.
    th-cam.com/video/VyEA81l8rww/w-d-xo.html

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

      Excellent, but one minor point. Your LED are counting left to right, instead of right to left. least significant bit should be on the right. You could take it apart redo it and recode it, or you could just rotate the project 180 degrees. Thanks,

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

    This is the second try at getting my homework to "stick:" th-cam.com/video/xaeJZBbaksY/w-d-xo.html