Arduino Uno R4 WiFi LESSON 16: Understanding If Statements and Conditionals

  Рет қаралды 5,559

Paul McWhorter

Paul McWhorter

Күн бұрын

Пікірлер: 54
@youssefshepl6892
@youssefshepl6892 8 ай бұрын
Now, I am following the Arduino R3 tutorials, but I came here to tell you that you are the best teacher I have ever seen
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
Wow, thanks!
@larryplatzek9017
@larryplatzek9017 8 ай бұрын
Most programs need to use if statements and conditionals, so this is another important lesson!
@mohammedsadiq2045
@mohammedsadiq2045 8 ай бұрын
3 words: Amazing Amazing Amazing I Really learned from you Mr. Paul, and I would love if you made serial videos about ESP32 using MicroPython or arduino, or both Thank you
@louistoweill4232
@louistoweill4232 8 ай бұрын
Good morning from Washington state. Thanks for the lessons!
@woowocgwhwrehvcb
@woowocgwhwrehvcb 6 ай бұрын
Great Lesson. I aced the homework.
@TheUnofficialMaker
@TheUnofficialMaker 8 ай бұрын
2 tips: 1. clear monitor window before each run. 2. include a print to show what number you entered, hard to see on the line where you enter the value and goes by quick. Nice work.
@310765
@310765 8 ай бұрын
Brilliant Paul, thank you so much 😊 👍🏼
@anitamlv
@anitamlv 8 ай бұрын
Hi Mr McWhorter, Do you can help me with a Bluetooth Module HC05, to set Role Master? I cannot change the role, please help me
@jamesjones-gk2gp
@jamesjones-gk2gp Ай бұрын
You might want to indent - Conditional statements, while, for statements to give your code some formating. You will find it easier to read
@EI.01
@EI.01 8 ай бұрын
Sir when will you have to make videos on how to use the esp32
@electronichome1153
@electronichome1153 8 ай бұрын
I've used if else during this tutorial, instead several if conditions
@scottwait3585
@scottwait3585 8 ай бұрын
Thank you Paul
@ex1stenz
@ex1stenz 8 ай бұрын
i lost the meaning of "Serial.parse", what is "Parse" standing for?
@robertschuldenfrei2402
@robertschuldenfrei2402 8 ай бұрын
Parse means to split apart. You could split out an integer from a string by writing a program to look at the string character by character. You would be looking at each character to see if it was a number. You would have to be mindful of the minus sign. Years ago, 1968 to be exact, I did just that with the original Dartmouth BASIC.
@ex1stenz
@ex1stenz 8 ай бұрын
@@robertschuldenfrei2402 oh ok got it! Many thanks! :)
@electronichome1153
@electronichome1153 8 ай бұрын
For typing OR in Windows - type twice Alt+124
@jeff_wild
@jeff_wild 8 ай бұрын
My lesson 16 homework assignment: kzbin.info/www/bejne/pIrOd2N_grOErac
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
LEGEND!
@chrisallen2894
@chrisallen2894 4 ай бұрын
👍
@patrickfox-roberts7528
@patrickfox-roberts7528 8 ай бұрын
👍👍
@richardsstark9825
@richardsstark9825 8 ай бұрын
My Homework kzbin.info/www/bejne/a2PVoJeApM5qm6Msi=f_djVs8j0s2FAlNb I tried to set up the code so any input other than red, yellow and green would turn off the LEds and give a message like "there is no such LED", like: if (colInput !="red" || colInput !="green" || colInput !="yellow"){ digitalWrite(rPin,LOW); digitalWrite(gPin,LOW); digitalWrite(yPin,LOW); Serial.print("there is no such LED"); } But this doesn't work. Any suggestions?
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
LEGEND!
@robertschuldenfrei2402
@robertschuldenfrei2402 8 ай бұрын
Hi Richard, && not ||
@richardsstark9825
@richardsstark9825 8 ай бұрын
Thank You Robert! Yes, this worked but I still don't understand the logic behind it.@@robertschuldenfrei2402
@robertschuldenfrei2402
@robertschuldenfrei2402 8 ай бұрын
@@richardsstark9825 Here is the logic behind it. In the || (or) construction if the color you entered is "red" it fails the first test since the color IS red, but it passes the second test because red is not "green." Even if the red LED was turn on in an earlier test like if(colInput="red") it will be turned off immediately when it hits your "or" constructed statement. If you want to learn Arduino programming at a much deeper level than Paul can do in this course I recommend a very elementary book: Sams Teach Yourself Arduino Programming in 24 Hours by Richard Blum. Even if you have never written a program before you could learn how it is done with this book. You will come to understand why some function look like loop() and others look like myValue.toInt(). [answer: the first is a function and the second is string object method]
@qzorn4440
@qzorn4440 6 ай бұрын
wikipedia... One 0 (zero) is a number representing an empty quantity. Adding 0 to any number leaves that number unchanged. 🤞 Twilight zone stuff.
@VeryUsMumblings
@VeryUsMumblings 8 ай бұрын
More Comments for KZbin juice!
@LorisHW
@LorisHW 7 ай бұрын
HW link Try #56: kzbin.info/www/bejne/o2q9e6GDjs-Ml9E
@paulmcwhorter
@paulmcwhorter 7 ай бұрын
Its been a while, glad to see your homeworks once again.
@LorisHW
@LorisHW 7 ай бұрын
@@paulmcwhorter I seem to have found a link that did not get rejected this time. It continues to be a problem ...
@drdentin3215
@drdentin3215 8 ай бұрын
My ArduinoR4 homework 16 kzbin.info/www/bejne/eYjLl6uOebVpqZo. Thanks Paul. I used a blinkLED function. Paul has recently gone over functions classes and methods in the PicoW series approximately lesson 64. I thought it would be a challenge to see if I could do it in the Arduino IDE.
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
LEGEND!
@alistaircook1997
@alistaircook1997 8 ай бұрын
Enjoyed your If Satement lesson, here is my homework for lesson 16 :- kzbin.info/www/bejne/iWrYaIxsZdZqeNU
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
LEGEND!
@robertschuldenfrei2402
@robertschuldenfrei2402 8 ай бұрын
Finally got the video to stick. kzbin.info/www/bejne/nnzck6t5g5doars
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
LEGEND!
@Tron_Starfighter
@Tron_Starfighter 8 ай бұрын
LEGEND - kzbin.info/www/bejne/pJmYaauXbpmLqLs
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
Excellent!
@Adrian427
@Adrian427 8 ай бұрын
Thanks, Paul, for another great tutorial. Homework completed: kzbin.info/www/bejne/mam1lWtngZuhlbc
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
Nicely done.
@perfectly_unstable
@perfectly_unstable 5 ай бұрын
Excellent lesson as usual. Homework complete kzbin.info/www/bejne/qHWmeGysfKZ1prs Many Thanks!!
@paulmcwhorter
@paulmcwhorter 5 ай бұрын
LEGEND!
@stinky2202
@stinky2202 8 ай бұрын
Wrong James Cameron LoL
@FreidonNasrat
@FreidonNasrat 8 ай бұрын
studio.kzbin.infoJlQ49ifHXz8/edit Homework lesson16
@drthik1
@drthik1 5 ай бұрын
I got it! Didn't open the laptop till after the lesson was over and started fresh. kzbin.info/www/bejne/apWrq2iHgr2Wrc0si=4RkbI_kSk4pdqE_W
@paulmcwhorter
@paulmcwhorter 5 ай бұрын
LEGEND!
@alfredvink
@alfredvink 20 күн бұрын
Homework done. kzbin.info/www/bejne/eXu9g2Ohgp2emdU
@paulmcwhorter
@paulmcwhorter 19 күн бұрын
LEGEND!
NEW Arduino Uno R4 Boards - Minima & WiFi
57:40
DroneBot Workshop
Рет қаралды 127 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Arduino UNO R4  UltrSonic Distance Measurement
10:57
James Lewellen
Рет қаралды 49
COMPUTER SCIENCE explained in 17 Minutes
16:49
Wacky Science
Рет қаралды 1,8 МЛН
The Lever Paradox
24:43
Steve Mould
Рет қаралды 677 М.
He Wasn't Fooling Anyone
8:18
Daily Dose Of Internet
Рет қаралды 3 МЛН
Every Minute One Person Is Eliminated
34:46
MrBeast
Рет қаралды 31 МЛН
Day in the Life of a Japanese Wagyu High School Student
21:25
Paolo fromTOKYO
Рет қаралды 332 М.