Arduino Tutorial 3: Understanding How Breadboards Work

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

ความคิดเห็น • 1.2K

  • @jamesricks5075
    @jamesricks5075 4 ปีที่แล้ว +496

    Hi Paul, I'm an 86 year old student of yours and I just want to say thanks.
    I retired from Texas Instruments in 1991 after a 33 year career. My early years was vacuum tubes and analog based. We built transistors but had no idea how to use one. I love your work.

    • @jameswiles7553
      @jameswiles7553 3 ปีที่แล้ว +4

      Why doesn’t the light flash consistently itt kinda random

    • @chaoscal7399
      @chaoscal7399 3 ปีที่แล้ว +2

      @@jameswiles7553 i believe there is a delay between the arduono switching between high low (as its doing it so fast) and the time it takes current actually getting sent through the circuit which creates this offset

    • @ancala4140
      @ancala4140 3 ปีที่แล้ว +3

      @@chaoscal7399 how about our sight capability, i remember read an article long ago that state the eye perceive things as 'flickering' if it below 50Hz

    • @swayamsiddhadas5847
      @swayamsiddhadas5847 3 ปีที่แล้ว

      @@jameswiles7553 sir here we use the delay function so that we can see how it's deal with the how and low voltage flow there for it doesn't blink constantly . Sir i want my future career in @texasinstrument . Can u suggest me about anything... How to apply and how to get a job please.

    • @shubhampatil899
      @shubhampatil899 2 ปีที่แล้ว +5

      Its pretty inspirational that you doing things at this age sir

  • @nihadazad
    @nihadazad 3 ปีที่แล้ว +246

    this channel is a better physics channel than any other on youtube this guy is such an amazing teacher

    • @baxter6504
      @baxter6504 3 ปีที่แล้ว +8

      I agree 100% 👍

    • @beniciopina9438
      @beniciopina9438 3 ปีที่แล้ว +5

      for real. yes!

    • @tomallen2351
      @tomallen2351 3 ปีที่แล้ว +3

      Thank you for your patience. Thank you, too for being on the beginner level.
      I'm 74 yrs old and you give me the encouragement to stay mentally active, plus learn new things.
      Looking forward to Lesson 4.

    • @shaheer_ghazi
      @shaheer_ghazi 3 ปีที่แล้ว

      Agreed Maa Shaa Allah

  • @muhammadrafiqulislamkhan6994
    @muhammadrafiqulislamkhan6994 ปีที่แล้ว +7

    Such a great Arduino teacher. We are lucky to have paul. This is third time to watch him. And now I can write this code as our teacher tells us:
    Void setup {
    pinMode(13, OUTPUT);
    }
    Void loop {
    digitalWrite(13,High);
    delay(500);
    digitalWrite(13,Low);
    delay(500);
    }
    First, we connect a wire with arduino board pin 13
    Second, we should set a current limiting 330 ohm resistor on bread board
    Third, connect LED long with +ve volt which comes from arduino board through current limiting resistor
    Fourth, a gnd connection is connected with arduino gnd pin and we need to connect gnd with LED short leg.
    Finally, my question, why we do not write code about GND as we write pin 13?
    Again, I would say God bless our great Arduino Teacher Paul. Thank you so much.

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว +3

      Because ground is just an electrical connection, like just the place where the ground lead comes from the power supply. It is not programmable, so is not mentioned in the code.

    • @samueltheprogrammer6145
      @samueltheprogrammer6145 ปีที่แล้ว

      GND does not have a switch or anything to control it with, so we do not need to say anything about GND in the code. keep up the good work.
      Samuel :)

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

    im 48. been installing tile for the past 30 years. i forced myself to retire and find something new and exciting. i enrolled in the local community college and landed myself a spot in Industrial Automation. its fast and sometimes theres not a lot of time to explain things to someone like myself who has no idea what theyre doing. Mr, McWhorter makes it easy to understand and explains everything clearly. Ep. 3 and counting.

  • @albertshilton2346
    @albertshilton2346 4 ปีที่แล้ว +98

    Ok Paul, I am 75 and learned basic electronics in high school in 1959. I became a HAM in 2002 an have done nothing related to electronics until now. Vacuum tube theory was great, but I’m excited about getting into today’s world with your help. Your a terrific teacher. Thank you.

  • @Ronavargas
    @Ronavargas 4 ปีที่แล้ว +127

    Going through these tutorials at 63 feels like being a teenager! Thanks for introducing me into an unknown and fantastic world. Now I feel that I need another life to learn about arduino and its whole set of applications...

    • @crowant3717
      @crowant3717 4 ปีที่แล้ว +8

      the future is now old man... lets enjoy it together (sorry for calling you old)

    • @navibean1635
      @navibean1635 2 ปีที่แล้ว +4

      Ronald: People only become 'old' when they decide to stop learning. If you are learning, then you stay young. Enjoy!

    • @Joseph-cn3vr
      @Joseph-cn3vr 2 ปีที่แล้ว

      @@navibean1635, You're absolutely right 100%. Keep Learning is the secret of staying young and useful all the days of our lives

    • @marks3400
      @marks3400 2 ปีที่แล้ว

      Like you I come late to the party 🎉

  • @ggj666
    @ggj666 4 ปีที่แล้ว +190

    Oh my, 50 years old and i have been given homework, suddenly I am 14 again, cold sweat and panic.
    Thank you for the lessons

    • @MirceaCK
      @MirceaCK 4 ปีที่แล้ว +5

      I´m 54 and I´ve done the homework :)

    • @pumpkingolem9122
      @pumpkingolem9122 4 ปีที่แล้ว +6

      im litrilay 14

    • @edenshaffer1302
      @edenshaffer1302 4 ปีที่แล้ว +2

      @@pumpkingolem9122 same

    • @anomadicmouse
      @anomadicmouse 4 ปีที่แล้ว +2

      55 and giddy as a school boy learning this stuff!

    • @nikkip3385
      @nikkip3385 4 ปีที่แล้ว +1

      I'm 52 and just starting on this.
      Man I wish this chap had been my physics teacher. I might have done something useful with all those years since! 😂

  • @joehappin
    @joehappin 3 ปีที่แล้ว +8

    I had been using arduino for a while but a week ago I received the kit and starting viewing and listening the lessons.
    Many thanks and congratulations to the teacher both for the way he explain difficult things in a very simplistic way.
    After lesson 3, I tried to use the (for loop) to do the homework. Below I am sharing the code I used.
    void setup()
    {
    // put your setup code here, to run once:
    pinMode(12,OUTPUT);
    pinMode(8,OUTPUT);
    pinMode(4,OUTPUT);
    }
    void loop()
    {
    // put your main code here, to run repeatedly:
    // blink red led 5 times:
    for (int r = 0; r < 5; r ++)
    {
    digitalWrite(12,HIGH);
    delay(300);
    digitalWrite(12,LOW);
    delay(300);
    }
    delay(1000);
    // blink green led 10 times:
    for (int g = 0; g < 10; g ++)
    {
    digitalWrite(8,HIGH);
    delay(300);
    digitalWrite(8,LOW);
    delay(300);
    }
    delay(1000);
    //blink blue led 15 times:
    for (int b = 0; b < 15; b ++)
    {
    digitalWrite(4,HIGH);
    delay(300);
    digitalWrite(4,LOW);
    delay(300);
    }
    delay(3000);
    }

    • @joehappin
      @joehappin 3 ปีที่แล้ว +1

      I wanted to congratulate you too, PAUL for the nice video settup you have.

    • @MrkTan
      @MrkTan 3 ปีที่แล้ว

      I knew there was a more efficient way of writing the code

  • @linnarpewbes6594
    @linnarpewbes6594 5 ปีที่แล้ว +827

    I just realized i'm watching the Bob Ross of arduinos.

    • @joeb.fromsydneyaustralia5313
      @joeb.fromsydneyaustralia5313 4 ปีที่แล้ว +9

      Oh wow! Spot on.... Love 'em both!!!! So easy to watch!!

    • @LanceMcGrew
      @LanceMcGrew 4 ปีที่แล้ว +2

      I was thinking Mr. Rogers

    • @jobsanjose1188
      @jobsanjose1188 4 ปีที่แล้ว +6

      not the bob ross arduinos but electronics

    • @krystelcompton840
      @krystelcompton840 4 ปีที่แล้ว +2

      I was leaning more towards Mr. Wizard. lol

    • @Yoqamar
      @Yoqamar 4 ปีที่แล้ว +3

      That’s exactly what i was thinking 😂🤍

  • @eduardocastellanoscampos293
    @eduardocastellanoscampos293 3 ปีที่แล้ว +2

    Hi Paul, I am 79 and I just discover your Arduino tutorials, they are fantastic and very easy to understand; I have no previous knoledge of electronics and I find that your explanatios are quite clear and lets me learn, thanks very much for your shared knoledge.

  • @NightmareFoundry
    @NightmareFoundry 2 ปีที่แล้ว +26

    I've had my Arduino kit sitting in my living room for a year and I was really too intimidated to sit down and learn it... you've made this both fun AND easy to learn.... This is so cool, THANK YOU PAUL!

  • @clearsky4049
    @clearsky4049 2 ปีที่แล้ว +11

    Thanks to your tutorials I've just built my first LED circuit and I didn't burn my house down!

    • @paulmcwhorter
      @paulmcwhorter  2 ปีที่แล้ว +2

      Nice work!

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

      YES he has helped me soo mutch over the years..

  • @PigNe0
    @PigNe0 4 ปีที่แล้ว +208

    "Wouldn't it be funny if I sliced an artery on youtube and started bleeding profusely?" DOESN'T EVEN CHANGE TONES
    madlad.

    • @austinratke5849
      @austinratke5849 3 ปีที่แล้ว +1

      would definitely drop a like

    • @MrDarrenp40
      @MrDarrenp40 3 ปีที่แล้ว +2

      Is all this some sort of 'prequel' to The Texas Chainsaw Massacre - lol?

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

      So bold, laughed so hard in that moment 🤣

    • @pinec0ne
      @pinec0ne 10 วันที่ผ่านมา

      he's pretty goated for that one ngl

  • @alexschulz373
    @alexschulz373 4 ปีที่แล้ว +6

    Great stuff, I have been a professional programmer for over 40 years, but this is downright fun. Have to brush up my C though, haven't used it in a while.
    Homework is fun. I used a more advanced and flexible approach by creating a function to put a passed pin number high for a passed duration and low for a passed duration. The second function calls the first a passed number of times using a for loop, I then declared the pin numbers as constants RED, BLUE and GREEN. This made setting pinMode easy and passing the pin numbers clearer.
    You, sir, are a fabulous teacher. Thank you for all your time in this.

  • @ZTFsenpai
    @ZTFsenpai 4 ปีที่แล้ว +424

    i love how he randomly talks about slicing an artery XD

    • @toptinty6186
      @toptinty6186 4 ปีที่แล้ว +1

      Me to XD

    • @favesongslist
      @favesongslist 4 ปีที่แล้ว +3

      Not so funny, I had mine cut for a heart operation :(

    • @peaches4240
      @peaches4240 4 ปีที่แล้ว +12

      dark humor at its best lmao

    • @BokBokerS
      @BokBokerS 3 ปีที่แล้ว

      same here xD

    • @Karl-me4mh
      @Karl-me4mh 3 ปีที่แล้ว +1

      Yah, I love that kind of humor aswell.

  • @zahraasakrani5114
    @zahraasakrani5114 3 ปีที่แล้ว +13

    I love your videos! I'm 15 and for some reason, as of late I've become interested in this kind of thing. I tried looking for beginners videos and tutorials and your videos are the only ones that seem to truly be for people who are just starting out. You explain everything very well and I have not been confused once, thanks so much for making these!

  • @willemvanrensburg3644
    @willemvanrensburg3644 4 ปีที่แล้ว +12

    Hi Paul, this is super helpful. I am a teacher myself and I want to tell you, you are an exceptional teacher. You're moving nice and slowly so It's real easy to follow but you're keeping it light and entertaining and you don't let anything drag, so your students can actually learn and remember an amazing amount of knowledge.

  • @pfv3462
    @pfv3462 29 วันที่ผ่านมา

    I think you repeat the same thing regularly, I think you are an excellent teacher!
    I am now 61 and a truck mechanic, after that I was a Sharepoint admin at my work and build computers myself but want to make consoles for my flight sim myself.
    And although I think it is going slowly and I think I am back in school ;-)
    One thing is for sure you build up slowly, and make sure that all students are involved.
    I hope your lessons go very far!

  • @assembledremnant
    @assembledremnant ปีที่แล้ว +4

    I’ve been using your tutorials and have bought my Elegoo kit, for the past 2 days I have been truly absorbing the knowledge from your videos as I absolutely love them, I plan on using my knowledge with Arduino to get into Animatronics and Pneumatics! Without your tutorials I would be lost. Thank you so much, Paul and God bless you!!

  • @estebanpoltorak1504
    @estebanpoltorak1504 ปีที่แล้ว +3

    Congratulations Mr Professor, I am just a little younger than James, only 72 and I enjoy your lessons very much. This channel along with people like you makes me feel more optimistic towards the future for the young generations.

  • @andresousa5302
    @andresousa5302 5 ปีที่แล้ว +98

    You are an absolute genius in teaching. Thank you a lot for everything

  • @vernonfernandes3312
    @vernonfernandes3312 ปีที่แล้ว +1

    Hi Paul. I'm 57. Wish TH-cam and teachers like you were around when I was in school. Would have mastered electronics then.
    But as they say "It's never too late", I have started my journey with teachers like you as my guide and mentor. Keep up the good work.

  • @derpatel9760
    @derpatel9760 ปีที่แล้ว +4

    With you and google combined, learning Arduino has never been a simpler process! Thanks Mr. McWhorter!

  • @ishsiriram8286
    @ishsiriram8286 4 ปีที่แล้ว +1

    Ish from South Africa - I am 49 years old ...never thought I could get so excited to see an led go on off on off on off. Waiting for my parts to arrive.

  • @lifetech1989
    @lifetech1989 5 ปีที่แล้ว +32

    You never get old, always fresh. My first youtube arduino tutor. Thank you!!

  • @msirb9859
    @msirb9859 2 ปีที่แล้ว +2

    Hi Paul! I'd just like to say that you're a wonderful teacher!
    There are many tutorials on TH-cam for the Arduino, but yours actually teach how it works, rather than just how to make it work. Thank you for the great content!

  • @ericsmith7988
    @ericsmith7988 4 ปีที่แล้ว +3

    Just found your online classroom. Thank you. I bought my kit a few weeks ago and the lessons they gave with the kit are very confusing to me. Your videos are helping me understand programming for the first time in my 49 yrs on this earth. I will be watching all of your lessons and I am doing my homework. Thank you.

  • @dipakpoudel6036
    @dipakpoudel6036 ปีที่แล้ว +1

    I am an electrical engineering of final year. I have heard my friend talking about aurdions making automated devices using aurdion but I was in vain actually how these magic things happen. But after watching ur videos ur teaching style with basic concepts not even leaving a single thing, I came to know the actual things how does it works . Ur video is so much helpful for normal student like us.

  • @carolinecaroline2264
    @carolinecaroline2264 3 ปีที่แล้ว +11

    I just completed my first Arduino project, and I am very excited to learn more :) I have my 3 little LEDs dancing and I am excited about the possibilities.

  • @langer727
    @langer727 4 ปีที่แล้ว +2

    Thank you so much, Paul! I did the homework. I almost forgot a semicolon and the last LED only blinks 14 times, but I am happy! 42 years old STEAM teacher from Colombia, living in Azerbaijan and learning here with your tutorials.

  • @josiest-amour5298
    @josiest-amour5298 3 ปีที่แล้ว +3

    I know it's nothing for pretty much every one, but I simply cannot believe I've been able to do this! Now I'm bummed because I do not have enough dupont cable in my own kit to do my "homework" so I'll have back back next week! Thank you, this is so much fun and so well explained

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +1

      It is a big deal to attempt something difficult and succeed. Really fells great to be successful at something hard. Congratulations.

  • @markus72wi
    @markus72wi 3 ปีที่แล้ว

    Dear Paul,
    I'm a 49 year old professional softwaredeveloper and wan't to learn something about microcontrollers. Now I found your channel and learn so much more . Thank you for your excellent work and the absolutly worthfull sharing of knowledge.
    Greetings from Germany
    Markus

  • @paulusbouma9192
    @paulusbouma9192 5 ปีที่แล้ว +11

    I appreciated the thorough explanation of the breadboard as it is a new device to me. I smiled when you assigned homework because it must be 50 years since I last did any!
    As to said homework, I was able to quickly write the code…copy and paste is my new best friend, but I’m guessing there’s a better way. Hooking up the circuit was also straightforward except for the ground connections. Not enough of them on the Arduino; then your breadboard lesson pinged in my brain and I used the ground row on the breadboard. Been staring at 5 red, 10 green and 15 blue for a while now. Maybe I’ll change it up! Thanks!

    • @paulmcwhorter
      @paulmcwhorter  5 ปีที่แล้ว +6

      Well done! Wondered if anyone would really do the homework. A+

    • @rawcool
      @rawcool 2 ปีที่แล้ว +1

      You could just run one Grd to the negative row along the edge and run all the Grd s you need to it

    • @ronaldsethoga667
      @ronaldsethoga667 2 ปีที่แล้ว +1

      @@paulmcwhorter Sir would you be showing us how you would have done it?

  • @odogwunwoke7319
    @odogwunwoke7319 ปีที่แล้ว

    hey, Mr paul, I am a Software Engineering student in Nigeria, been using your tutorial and I must say this is by far the best one.

  • @gordrum
    @gordrum 3 ปีที่แล้ว +18

    I love this dude. I was hopeless learning the Arduino on my own - Paul gives me the confidence to dive in with a real understanding 👍

  • @jamieyz
    @jamieyz 4 ปีที่แล้ว +1

    I have done several Arduino projects over the last year. They all work but I didn't have a good foundation and was easily overwhelmed. I am starting from scratch with these lessons. I like the good explanations and slow pace.

  • @electronicsinstructor4267
    @electronicsinstructor4267 4 ปีที่แล้ว +4

    Paul, thank you for making this great tutorial. I showed it in our Electronics class at our local Community College. We use the Arduino kit from Elegoo too so this is perfect ! You are a fantastic teacher.

  • @arthurmallett8
    @arthurmallett8 3 ปีที่แล้ว

    Hi Paul, I'm 67 and always wanted to understand how to code, iv'e found your lessons easy to understand as i actually find it hard to take things in, but tonight ive actually managed to do the homework you set and got all the led's to flash in the correct order. Thank you for the way you make it look easy, looking forward to the next lesson.

  • @Bavubuka
    @Bavubuka 3 ปีที่แล้ว +67

    The fact that there's even one thumbs down, let alone 68, proves there really is evil in this world. This guy is pure gold.

    • @thapelo_mapeshoane
      @thapelo_mapeshoane ปีที่แล้ว

      They have increased😁❤‍🔥

    • @HaseebAdnan0
      @HaseebAdnan0 ปีที่แล้ว +4

      I would assume they are accidental clicks.

  • @melanatedmoms5161
    @melanatedmoms5161 3 ปีที่แล้ว +1

    Thanks!

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว

      WOW, really appreciate it. You are so kind, thank you so much for the encouragement.

  • @sahanag836
    @sahanag836 4 ปีที่แล้ว +31

    Figured out the homework:
    Basically the trick is to have the other circuits connect to the ground level. So, what I did is duplicate the first circuit twice, and when I needed to connect the circuit back to the ground level, I just had a wire in the same column as the short end of the LEDs connect to the column with the ground level, so that way, the circuit connects back to the ground level. So, basically I made it work even though there's only one ground level pin.

    • @josephb5911
      @josephb5911 4 ปีที่แล้ว

      i did the same, i assume that's how you're supposed to do it?

    • @CodingWithLewis
      @CodingWithLewis 4 ปีที่แล้ว +2

      Thanks for the solution! I posted a video on my channel what this might look like. Thanks!

    • @crowant3717
      @crowant3717 4 ปีที่แล้ว

      i did the same but with cords linking up the LEDs with the ground column

    • @u30R
      @u30R 4 ปีที่แล้ว +1

      I just used the other 2 ground pins on the Power supply side.

    • @OatmealTheCrazy
      @OatmealTheCrazy 3 ปีที่แล้ว +1

      @@u30R I just attached the ground to the top row with the - and had all of the short led leads go to that row

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

    You are an excellent teacher. I am a teacher myself. When I have never taught a student before, I assume they know nothing and make everything simple to understand. You are very good at doing that. Great job

  • @MJCPeters
    @MJCPeters 5 ปีที่แล้ว +40

    😉 I love it when my instructor misspeaks and my brain catches it and I know what they meant to say. It is a sign that I understand the lesson.

  • @sammydogruby
    @sammydogruby 5 ปีที่แล้ว

    As a 81 year old newbie I am enjoying the new series of videos,as I did the previous lessons, so please keep them coming and thank you for taking the time to explain and making learning enjoyable.

  • @jorgebebelagua3774
    @jorgebebelagua3774 5 ปีที่แล้ว +7

    Got my iced Coffee Tonight and dropped in my LED's :) Thank you for the video! I hated coding and anything that had to do with it in H.S because the teacher did not have any patience to break it down Barney Style. I've learned more in two nights than 4 years in High School.

    • @christophermichaelson9050
      @christophermichaelson9050 4 ปีที่แล้ว

      That coffee, hot or cold, is very bad for GERD. Hopefully Paul sees this.

  • @lilgrimy6655
    @lilgrimy6655 3 ปีที่แล้ว +2

    I'm just on the third tutorial, realized you have like 60 more tutorials, and I am soooo excited, thankful, and in awe at the devotion to these videos, and how much this will help me in my journey to arduino competence!

    • @dremr2038
      @dremr2038 3 ปีที่แล้ว +1

      So you completed them all?

  • @anonimato1987
    @anonimato1987 3 ปีที่แล้ว +3

    Boy oh boy am I glad I found this channel!

  • @yaswanthpaani.k2113
    @yaswanthpaani.k2113 ปีที่แล้ว +1

    Thnx Mr Paul I'm 17 yrs old and I always wanted to get started with computer stuffs and things , It took me two years to find your channel . It was through your videos that i was able to learn Arduino programming thanks a lot and could u plsz teach us about programming microcontrollers that doesn't comes fixed in Board like Arduino by default .I hope that u understood what I'm trying to mean

  • @Brandon16532
    @Brandon16532 3 ปีที่แล้ว +16

    Tip for the HW:
    try using a for loop inside the void loop so you don't have like 50 lines of code
    for(int x = 0; x < 5; x++){
    code goes here
    }
    have three of these for each color, make sure you change the variable for each
    explanation:
    int x = 0; just means that a variable has been declared with a value of 0
    x < 5; just means it will stop after 5 loops (change accordingly)
    x++ just means that after every loop x will increase by 1

    • @jaspermccleary
      @jaspermccleary 2 ปีที่แล้ว +1

      I used a while loop and that worked as well but thanks for the tip.

  • @nicholasdavidson1789
    @nicholasdavidson1789 3 ปีที่แล้ว +1

    I've had an Arduino for months now and never done anything with it. Now I can't stop learning! You are awesome and make this so fun!

  • @isaachossain2807
    @isaachossain2807 4 ปีที่แล้ว +4

    1:22 I definitely agree, this is exactly what I was trying to learn as well. When I use something, I always wanna know how it works.

  • @thao3456
    @thao3456 2 ปีที่แล้ว

    I love your tutorials. Most TH-camr would gloss over details that would frustrate me. Thank you for breaking it down.

  • @klrwhizkid
    @klrwhizkid 4 ปีที่แล้ว +21

    Here's my code to flash red 5 times, flash green 10 and blue 15. Since you did not say to repeat, the code is set up to do this once. I like to tab in to help emphasize structure.
    // integer variables to keep track of blinks:
    int(countred);
    int(countgreen);
    int(countblue);
    void setup() {
    // put your setup code here, to run once:
    // pin 13 is for red, pin 12 for green and pin 11 for blue:
    // all three are outputs:
    pinMode(13,OUTPUT);
    pinMode(12,OUTPUT);
    pinMode(11,OUTPUT);
    // initialize the counters:
    countred = 0;
    countgreen = 0;
    countblue = 0;
    }
    void loop() {
    // put your main code here, to run repeatedly:
    // this first if / else loop will cause the red led on pin 13 :
    // to blink until it has blinked 5 times :
    if(countred!=5){
    countred = countred + 1;
    digitalWrite(13,HIGH);
    delay(500);
    digitalWrite(13,LOW);
    delay(500);
    }
    else
    // this second if / else loop will cause the green led on pin 12 :
    // to blink until it has blinked 10 times after the red Led is done:
    { if(countgreen!=10){
    countgreen = countgreen +1;
    digitalWrite(12,HIGH);
    delay(500);
    digitalWrite(12,LOW);
    delay(500);
    }
    else
    // this third if / else loop will cause the blue led on pin 11 :
    // to blink until it has blinked 15 times after red and green are done:
    { if(countblue!=10){
    countblue = countblue +1;
    digitalWrite(11,HIGH);
    delay(500);
    digitalWrite(11,LOW);
    delay(500);
    }
    else ;
    }
    }
    }

    • @joewhitlatch1584
      @joewhitlatch1584 4 ปีที่แล้ว +2

      Don't you need to change your third loop count to read {if(countblue!=15){
      otherwise, it works great for me.

    • @simonbpuk2949
      @simonbpuk2949 2 ปีที่แล้ว +7

      I don't think Paul has taught us this part yet unless i missed it in the first two videos

    • @ronaldsethoga667
      @ronaldsethoga667 2 ปีที่แล้ว

      Yeah change it to 15. I honestly thought we were supposed to change the LEDs in a space of 1 seconds, otherwise wouldn't have been stuck

    • @techyboi3091
      @techyboi3091 2 ปีที่แล้ว +1

      damn this works just need to change to 15 on the last one
      a bit advanced tho
      did not understand much

    • @user-fo1nk3pd1t
      @user-fo1nk3pd1t ปีที่แล้ว +6

      The problem here is that he didn't teach us any of those commands and if this is suppose to be aimed at a beginner (which it is), I don't think it''s right to omit important information like that. It's like trying to teach Calculus without first learning algebra. Sure, I can go watch some other video on how to create a loop or a video that goes more in depth on the Arduino language, but that kind of defeats the purpose.
      I didn't bother with trying to learn the language and get ahead of myself. Instead I used the only commands that he showed us in the 1st episode. It's lengthy and I did change the counter for the each of the LEDs to only blink 5 times. Otherwise the code would've been even longer. I used pins 11,12,13 as my outputs and the code looks likes this in case anyone is wondering:
      void setup() {
      // put your setup code here, to run once:
      pinMode(13,OUTPUT);
      pinMode(12,OUTPUT);
      pinMode(11,OUTPUT);
      }
      void loop() {
      // put your main code here, to run repeatedly:
      //
      //blink 1st LED 5 times
      //
      digitalWrite(13,HIGH);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,HIGH);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,HIGH);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,HIGH);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,HIGH);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      //
      //Blink 2nd LED 5 times
      //
      digitalWrite(13,LOW);
      digitalWrite(12,HIGH);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,HIGH);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,HIGH);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,HIGH);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,HIGH);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      //
      //Blink 3rd LED 5 times
      //
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,HIGH);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,HIGH);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,HIGH);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,HIGH);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,HIGH);
      delay(500);
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      delay(500);
      }

  • @bonganimalinga3439
    @bonganimalinga3439 3 ปีที่แล้ว +1

    The more I listen to this guy, the more I am motivated to continue learning to program. You are damn good man.

  • @davidlee9924
    @davidlee9924 4 ปีที่แล้ว +4

    i love how he breaks things down so i can understand it

  • @Truckinman2000
    @Truckinman2000 ปีที่แล้ว

    This is awesome. I'm also a General Class Ham operator that has forgotten alot about electronics. Covid19 retired me @52 because of lung issues. It worked but I did it the long way. I forgot all about if then else statements that I saw others do. I have to relearn alot of things do to Covid19... every thing from walking, cooking and now electronics. I love these classes!!! Short term memory is gone so I may have to go over some lessons a few times.

  • @julianpulido8673
    @julianpulido8673 4 ปีที่แล้ว +12

    bruh i need this guy to instruct my life

  • @RobVollmar
    @RobVollmar 3 ปีที่แล้ว +1

    Paul,
    My daughter (who is six) and I completed our homework using the longform cut and paste method. She is very helpful because her eyes are much better than mine and she's also got tiny little fingers!

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +1

      Wonderful to hear you are working on this with your daughter. Six is the right age to introduce children to programming. They can alter the simple blink program to make it do what they want. They can actually change LOW and HIGH and see what happens on the board. But, more importantly, you are building memories that will last a life time for her. Well Done!

  • @mikerilling2745
    @mikerilling2745 ปีที่แล้ว +3

    How can you save these programs so that you can repeat them later on without having to retype everything?

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

    Dear Paul, thanks for being so fabulous. I am a Diabetologist by profession and a STEM educator by passion. I use your Arduino series as a teaching resource and my students love it.
    I have a little bit of programming experience in C. I have thus used the for loop to get around the repetition of code. I am posting it here, in the interest of those who are new and wondering about an alternative approach. I am on to your 4th video. Thanks a ton from all of us @ Katalyst Education 🙂
    // Define the pins for LEDs
    const int firstLEDPin = 13;
    const int secondLEDPin = 12;
    const int thirdLEDPin = 11;
    // Define the durations for blinking and the gap between blinks
    const int blinkDuration = 300; // in milliseconds
    const int blinkGap = 200; // in milliseconds
    // Define the number of blinks for each LED
    const int firstLEDBlinks = 5;
    const int secondLEDBlinks = 10;
    const int thirdLEDBlinks = 15;
    void setup() {
    // Initialize the LED pins as output
    pinMode(firstLEDPin, OUTPUT);
    pinMode(secondLEDPin, OUTPUT);
    pinMode(thirdLEDPin, OUTPUT);
    }
    void loop() {
    // Blink the first LED
    for (int i = 0; i < firstLEDBlinks; i++) {
    digitalWrite(firstLEDPin, HIGH); // Turn on the LED
    delay(blinkDuration);
    digitalWrite(firstLEDPin, LOW); // Turn off the LED
    delay(blinkGap);
    }
    // Blink the second LED
    for (int i = 0; i < secondLEDBlinks; i++) {
    digitalWrite(secondLEDPin, HIGH); // Turn on the LED
    delay(blinkDuration);
    digitalWrite(secondLEDPin, LOW); // Turn off the LED
    delay(blinkGap);
    }
    // Blink the third LED
    for (int i = 0; i < thirdLEDBlinks; i++) {
    digitalWrite(thirdLEDPin, HIGH); // Turn on the LED
    delay(blinkDuration);
    digitalWrite(thirdLEDPin, LOW); // Turn off the LED
    delay(blinkGap);
    }
    }

  • @Александр-р3э3м
    @Александр-р3э3м 4 ปีที่แล้ว +4

    Oh, my god, Paul! It's almost 1 am and i am so happy, that now i can control LEDs and i understand how breadboards work! And yes, i have made my simple night lamp as the homework(i am not sure, if i can sleep to these 3 blinking diodes, but nonetheless :) ). And thank you so much for your awesome tutorials! The farther i go through them, the more happiness i have!)
    P.S. thank you also for a night lamp :)
    But, tomorrow i will try to make it smooth blinking and than it will be a better lamp ;)
    And again, THANKS!

  • @alandignans2396
    @alandignans2396 2 ปีที่แล้ว

    Wow. Only lesson 3 and I've learned so much. I sat down for a half-hour lesson but by the time I'd finished my "homework", I had been at it for nearly 2. The LEDs are flashing away merrily as I write.
    I appreciated the detail you went to when explaining exactly how a breadboard works and how each section differs in their connection structure. When I realised that each of the three LED circuits would need a connection to ground but there was only one ground connection on the UNO, I understood the reason for the full-length positive and negative strips you talked about - I linked the negative strip to the UNO GND and then had each LED circuit tap into the earth connection with a short jumper wire.
    I've done some work in BASIC so when I realised just how many lines of repeated code I would have to write in order to fulfil the homework brief I tried a FOR NEXT loop... which didn't work of course so I went to the Arduino website and learned how a loop should be structured. I also learned how to declare a variable in C. I ended up with 3 separate loops, each controlling a separate LED and everything works perfectly.
    I was surprised that such a small program took up 3% of storage space so it looks as if efficient coding is a must if you want to fit a more sophisticated program onto the UNO chip. I thought about nesting the loops to make the program more efficient but it's now late and I'm tired so I'll do it tomorrow before I start lesson 4.
    Thanks Paul.

  • @nestoNESTOnesto
    @nestoNESTOnesto 4 ปีที่แล้ว +5

    I don't remember if I ever did homework in school, but in here, in my 30's I did it enthusiastically :-D

  • @realyellowman
    @realyellowman 3 ปีที่แล้ว +2

    Best Arduino tutor, very easy and simple to understand and has a sense of humour. Already shared this with all my friends!

  • @edenshaffer1302
    @edenshaffer1302 4 ปีที่แล้ว +14

    Do you do live stream lessons? because I can tell that you don't edit your videos, which I admire because somehow you still make It super easy to watch and learn.

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

    Not quite as old as James, I am 76, but I also want to say thanks. Your tutorials are easy to follow and so far have worked. I am really enjoying them. I just got my Arduino and everything works OK>

  • @nicolasbassano3697
    @nicolasbassano3697 5 ปีที่แล้ว +5

    Hi Paul, The videos are great.
    On a side note I think it would be cool if the code for the assignment was available so we can check and compare with ours.
    Thank you for the time and keep em coming.

  • @wayneandrews1738
    @wayneandrews1738 ปีที่แล้ว

    I believe you are teaching a fundamental step that is missing in some electronics schools with two year courses.
    Theory can only go so far.
    You are teaching us the critical thinking of turning schematic diagrams into real working circuits.
    Also, we are learning to analyze both code and circuit building.
    Thank you for providing the "missing" steps that theory classes and some books don't provide!
    Very well thought out and done!
    Wayne

  • @lebrongoated23
    @lebrongoated23 3 ปีที่แล้ว +4

    I love these tutorials, you have somuch tutorials that I can benefit from, also you are a great teacher. I appreciate it somuch.

  • @user-ks5cg5cd7m
    @user-ks5cg5cd7m 3 ปีที่แล้ว +1

    My 11 year old son has completed the first two tutorials but got stuck on this third one. The circuit did not work. We had to troubleshoot. We were NOT using components we purchased from this course but rather ones we scavenged from other electronics kits. We found using a simple circuit we constructed from a Snap Kit with AA batteries to test components worked well. He was able to find that one of our wires was broken, and he also found that he used the wrong resister. He was so excited when he finally got the programmed circuit to work! Thanks again!

  • @jazzlovah1370
    @jazzlovah1370 4 ปีที่แล้ว +3

    I’ve just seen the third “episode” of this series so far. I ordered my Arduino kit from Amazon last night and won’t be arriving until Friday, July 24th. I’ve enjoyed all three videos and it’s a good refresher for me since I haven’t been in the subject of microprocessor-based control systems since the first half of my fifth year of studying Electronics and Communications Engineering twenty-eight years ago which focused more on theory and less practical application. This will be a great opportunity learning the hands-on side of microcontrollers. Thanks in advance for the videos, Paul. It rekindled my interest in the subject after being dormant for so long.

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

    Thank god i found this series. Presentation style is next to ideal!

  • @a1blerd374
    @a1blerd374 3 ปีที่แล้ว +3

    This man must be protected at all costs, thank you sir.

  • @aircates
    @aircates 2 ปีที่แล้ว

    Did the homework and added different delays between the end of one color led blink sequence and the beginning of the next one. Copy and paste is your friend here. Thanks for the excellent teaching!

  • @lhouse19
    @lhouse19 5 ปีที่แล้ว +6

    Great course, really breaks things down. Can't wait for the next lesson.

  • @anilgopie
    @anilgopie ปีที่แล้ว

    I bought an Arduino kit to learn with my niece and nephew. Haven't had time yet as they are in school, will jump on it during their summer break. But really enjoy this series, especially as you teach and then have an assignment.

  • @marinehm
    @marinehm 5 ปีที่แล้ว +3

    Paul; excited to see you still teaching!

  • @vinothparker7425
    @vinothparker7425 4 ปีที่แล้ว

    I think you are one of the best teacher in the world.. no one could explain like you do.. many teachers and TH-camrs don't have that patience to explain everything from the scratch. You are also explaining the important things again and again, which could be very helpful for the beginners like me.. i was thinking how I'm going to learn about Arduino but now my worries have gone.. I'm gonna watch each and every tutorial of yours in this playlist not even going to skip for a second..

  • @syedsajjadali4220
    @syedsajjadali4220 3 ปีที่แล้ว +3

    Boom, I have found the best teacher!!

  • @shennalim111
    @shennalim111 ปีที่แล้ว +1

    Thank you, so much. I'm trying to get my children interested in electronics and having to learn before I teach them. Your videos are fantastic.

  • @weinstienm.d.3826
    @weinstienm.d.3826 5 ปีที่แล้ว +3

    PAUL! SO glad to see your videos on my suggested!
    missed ya buddy

    • @paulmcwhorter
      @paulmcwhorter  5 ปีที่แล้ว +2

      Really glad to have time this summer to get back to making lessons. Hope you continue to stick with the series, hope to have some great new material coming up.

  • @stevenlightfoot6479
    @stevenlightfoot6479 2 ปีที่แล้ว

    I also want to say I genuinely appreciate what you are doing. I am very experienced professional engineer (mech) but never really worked in the details of electronics, and I need to control some DC motors, and discovered Arduino, so your very basic step by step really helps.

  • @markwatson1769
    @markwatson1769 4 ปีที่แล้ว +5

    i got all three blinking and can control their frequency, unsure how to limit their numbers ie: red 5, green 10, blue 15, repeat. enjoying the new learning

    • @digitalrodin
      @digitalrodin 4 ปีที่แล้ว

      Write code in void setup not void loop

  • @mahmoudkhaled3081
    @mahmoudkhaled3081 4 ปีที่แล้ว +3

    You really make me adore this field!!
    Thank you Mr. Paul

  • @Ali_Alhakeem
    @Ali_Alhakeem ปีที่แล้ว

    I've watched many arduino tutorials but yours is the easiest and most straight to the point one so far ! showing us how it works in realtime

  • @johndodge8999
    @johndodge8999 5 ปีที่แล้ว +6

    I assume the uneven blinking is an artifact of the recording devices frame rate?

  • @timpea777
    @timpea777 2 ปีที่แล้ว

    IM 134 YEARS OLD AND THIS IS MY FIRST DALLIANCE WITH MINATURISED CIRCUITRY. I FIND THIS YOUNG TECHNO WHIZZ TO BE A REMARKABLE TEACHER.

  • @danielsaenz5570
    @danielsaenz5570 2 ปีที่แล้ว

    Understanding Breadboards will unlock so much in this hobby. You teach how they work very well!

  • @rakowumusic5143
    @rakowumusic5143 3 ปีที่แล้ว +3

    for lazy people like me xD I don't know if it can be improved.
    void customBlink(int times, int pin){
    for (int i = 0; i < times; i++) {
    digitalWrite(pin,HIGH);
    delay(500);
    digitalWrite(pin,LOW);
    delay(500);
    digitalWrite(pin,0);
    }
    }
    void loop() {
    customBlink(5,13);
    customBlink(10,12);
    customBlink(15,11);
    }

  • @popcornrandomness8350
    @popcornrandomness8350 4 หลายเดือนก่อน +1

    This video has been so insightful not only am I learning more about robotics but also about physics I’ve gotten a 2in1 surprise. My question is what happens once all the holes are filled?

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

      They are constantly being filled and emptied. The electrons transition back to a higher energy state, and leave the hole behind again. The system is dynamic and in constant transition.

  • @micjon7620
    @micjon7620 4 ปีที่แล้ว +12

    Whose old, I'm writing code I said to my son and he replied "sure dad" and I replied "sure ". What a buzz when you're 73.😁

  • @na2449
    @na2449 2 ปีที่แล้ว

    Hi Paul! I messed around with electronics as a kid, and now at 50, I'm getting back into it, thanks to you. I stumbled across your video in the early hours and got the Arduino kit next day. Really great work!

  • @glennfelpel9785
    @glennfelpel9785 5 ปีที่แล้ว +6

    You are outstanding...Thank you

    • @paulmcwhorter
      @paulmcwhorter  5 ปีที่แล้ว +1

      Thanks . . . lots more on the way!

  • @andrewburn8611
    @andrewburn8611 3 ปีที่แล้ว

    I’m learning more from you than I did 3 years or college. Sometimes really clever people don’t understand how to explain the basics, you are very good at it.

  • @rohit-lohar
    @rohit-lohar 5 ปีที่แล้ว +3

    thanks so much sir for making more interesting videos on arduino and sharing with us.

    • @paulmcwhorter
      @paulmcwhorter  5 ปีที่แล้ว +2

      Stay tuned, lots more coming!

  • @SteamPonyDesign
    @SteamPonyDesign 2 ปีที่แล้ว

    Hi Paul, I'm just getting into coding and circuits and your videos were the first thing suggested to me by the Arduino discord group. I love your teaching style. I had serious trouble understanding breadboards but what helped me realize how it worked was seeing the inside of one and seeing where the conductive bars laid inside the bread board.

  • @cyberdounia6120
    @cyberdounia6120 5 ปีที่แล้ว +4

    thanks a lot i love all your videos! :-)

  • @nikkyrachit
    @nikkyrachit 2 ปีที่แล้ว

    Thanks Paul. Just completed the circuit & programming as you suggested for 3 LEDs. It worked perfectly well. Your way of teaching is boosting my confidence to do programming.

  • @MuhammadAli-iy4qn
    @MuhammadAli-iy4qn 5 ปีที่แล้ว +3

    sir pls make op amp tutorial series

    • @ianbertenshaw4350
      @ianbertenshaw4350 5 ปีที่แล้ว +2

      Muhammad Ali
      Hi Muhammed,
      I know you probably would like to see Paul make a video on OP amps and i would too but there are already many videos on these devices.
      I will give you a few channels to look at that may help you .
      Eevblog
      Learn electronics
      Great scott
      I subscribe to these channels and learn a lot from them .

  • @Karl-me4mh
    @Karl-me4mh 3 ปีที่แล้ว

    Oh, I paused the video before you gave the homework, connected all 6 red LEDs that were in my box and made a Knight Rider like running red light. And it worked ! Started with the first LED, after that always 2 LEDs at the same time on running to the right, leaving the last LED on and coming back then 2 seconds break before the next sequence. Now I can buy more resistors and leds, solder them on a circuit board and build the whole thing into my car. xD
    Your Tutorials are great.

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +1

      Nice work!

    • @Karl-me4mh
      @Karl-me4mh 3 ปีที่แล้ว

      @@paulmcwhorter thx, I can't wait until I can give signals into the arduino. Just added the binary counter to the kitt light.