Arduino Tutorial 17: Understanding Arduino While Loops

preview_player
Показать описание
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:

In this lesson we show you now to use the Arduino While Loop. Anything you can do with a for loop you can do equally well with a while loop. The while loop, in my mind, is much more intuitive to use for arduino projects where you are reading data from sensors.

You can get the following Elegoo kit, to follow these lessons and play along at home

Get more details on this lesson on our WEB site, which has lots of great arduino content.

#Arduino
Рекомендации по теме
Комментарии
Автор

Just to let you know...Three years on and people are still watching and learning, holding their breath when you compile, banging the arm of the chair and yelling "BOOM!" Wonderful legacy Paul.

jasongreen
Автор

I watch your video's Paul, you have taught me a lot, I am sure you are not just talking to the wall.


Thank you.

jameshyde
Автор

I teach at a small school in western Kansas. I believe that the future belongs to those that understand coding and electronics. With your help, I'm introducing the understanding and application of an Arduino. On behalf of myself and my students thank you so very much.

mikecargill
Автор

Paul's easy style of lecturing is very effective. His teaching logic is easy to follow and, because he sometimes make (deliberate?) mistakes, his lessons also teach program debugging at the same time. Well done, keep it up!

emilbester
Автор

I'm devouring your tutorials like there's no tomorrow, (:
thanks so much.

joematarc
Автор

Youre students are so lucky to have you as their teacher you are truly talented thank you for the lessons

chidiukoha
Автор

i'm a retired engineer and my son introduced me to the fun of this series. Keep up the good work. I am learning more with every tutorial. best regards

gdpower
Автор

I am an Arduino Uno R3' s beginner. I like very much your Tutorials. Thanks a lot. Tony Truong

thuongtruong
Автор

Ex-Army Avionics Technician, BASIC programmer (coder) as a child. Now 49 years old, Advanced Paramedic within Primary Care and learning to code within Arduino IDE. Looking for ideas to develop a service improvement plan within a GP practice using the arduino!
Thanks for the lessons Paul!!

borgtraining
Автор

Paul, there are Many out here who are just starting to Learn Arduino including Myself. Just for My benefit I added 2 extra LED to this While(loop) if the potVal is lower than 400 a Clear LED lights, if the potVal is between 400-800 an Amber LED lights up... Red LED lights up if potVal is over 800. Your Teaching style is Fantastic and makes People want to Learn and Experiment....

mb
Автор

Paul... Thank you very much for your videos...I'm 60 years old and always wanted to learn about electronics....Bought my eelego kit and have made it this far! I was racking my brain trying to figure out why my light would come on at 1001 but wouldnt go off less than 1000.... finally saw my error....digitalWrite (potPin, LOW)....oops should have been (redPin, LOW).... I'm Learning! Thank you again!

denniswinden
Автор

I am a 75 retire mechanical engineer trying to learning computer coding. I bought the tool kits as recommended by you in your video. I find your lecture to be very helpful and fun to follow. Thank you for your time in teaching us.

tomleeut
Автор

Your the best lecture of Arduino much greetings from Dar Es Salaam, Tanzania welcome!!

Obonyogt
Автор

Yesterday I started this series. Today I know how to do all kinds of things that seemed too complicated a week ago. Everything has been going great as I’m watching these videos, the homework assignments have been challenging and fun, and I feel like I’m getting a solid review on coding that I never realized I needed.

clarityautodetails
Автор

Best Arduino lectures I've found on Youtube! I love em, I love the way you teach wish I could have had you doing my engineering degree. Anyone found a advanced C++ course to take after this? I love this way of learning!

thomashoffmann
Автор

Mr. Mcwhorter, you're an inspirational man/teacher/human/ no you're not talking to the wall, you're doing good deeds, may GOD Bless you.

mahdisaad
Автор

Yes, we're still here watching thanks for the vides Paul!

loudulko
Автор

Its 2020. There is a pandemic. I am a 20+ years engineer working from home. I love these videos. Yes, I watch these videos and do all the home works assignments like they are candy. MORE CANDY... please.

kriskokko
Автор

Another great lesson Paul. After todays demonstration I added another variable so the serial print would output a 0-5V number. Then added a second LED (yellow not blue or green). The yellow LED turned on between 0 and 2V. The yellow LED would also blink from 2.0 and 2.5V. The red LED would turn on between 2.5 and 5V.
Thoroughly enjoy your lessons. You sir, can teach!

autocrosser
Автор

I like the way you deliberately make errors . It is a great way to teach.

MardinBodley