Using Arrays with For Loops

  Рет қаралды 34,539

Programming Electronics Academy

Programming Electronics Academy

Күн бұрын

Пікірлер: 50
@Cor_Netto
@Cor_Netto 3 жыл бұрын
Outstanding explanation!
@programmingelectronics
@programmingelectronics 3 жыл бұрын
Glad it was helpful! Thank you!
@warrenstaben6166
@warrenstaben6166 3 жыл бұрын
Thank you so much. Your videos are so well done and easy to understand!
@programmingelectronics
@programmingelectronics 3 жыл бұрын
Thanks for watching - I am glad it's helpful!
@ChadKapper
@ChadKapper 3 жыл бұрын
Every video is better than the previous! You do such a good job of helping me discover the value in the details.
@programmingelectronics
@programmingelectronics 3 жыл бұрын
Thanks Chad! Much appreciated!
@interlightstudio1645
@interlightstudio1645 2 жыл бұрын
Been watching your vids since 2019. I Truly like the way you provide information.thank you
@programmingelectronics
@programmingelectronics 2 жыл бұрын
I appreciate that! Thank you!
@maggotdude667
@maggotdude667 3 жыл бұрын
You break down information so well! I really appreciate these videos.
@programmingelectronics
@programmingelectronics 3 жыл бұрын
Thanks so much for the note! Much appreciated! If there is any info in particular you are looking to learn about, please feel free to let us know and we'll try and make a video on it.
@maggotdude667
@maggotdude667 3 жыл бұрын
@@programmingelectronicsPerhaps interrupts/timer interrupts?
@IngeBall
@IngeBall 2 жыл бұрын
This is golden (as is the whole series) Subbed!
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Glad you like it!
@MarkATrombley
@MarkATrombley 3 жыл бұрын
At 16:30 why is the first line of output messed up? It happened on the other examples too.
@programmingelectronics
@programmingelectronics 3 жыл бұрын
Great question and nice observation Mark! I am sure some out there could explain this (and I would love to know as well), but I _think_ it has to do with the Serial Monitor reseting the Arduino when it is opened.
@aaronfidelisrecine
@aaronfidelisrecine 6 ай бұрын
MANNNNNN I've been losing my damn MIND trying to understand for loops and arrays and WOW you make it so easy! THANK YOU!!!!
@programmingelectronics
@programmingelectronics 6 ай бұрын
So glad it helped!
@thomashvnmusic
@thomashvnmusic 3 жыл бұрын
This is really good, thanks!!!
@programmingelectronics
@programmingelectronics 3 жыл бұрын
Thanks a ton for watching! I hope it was helpful!
@thomashvnmusic
@thomashvnmusic 3 жыл бұрын
@@programmingelectronics Im probably one of the oldest fans on the channel. I followed your channel about 8 years now and i remember the first videos you posted when you were drawing and explaining the micro-controller pins on paper. Was a fan back then, still a fan.
@michaelcheich2481
@michaelcheich2481 3 жыл бұрын
@@thomashvnmusic Thanks for sticking around!!!
@thomashvnmusic
@thomashvnmusic 3 жыл бұрын
@@michaelcheich2481 Absolutely!
@PrUveTGoogl
@PrUveTGoogl Жыл бұрын
Вы большой молодец , что делаете такие обучающие видео , спасибо большое !
@joshuapitong899
@joshuapitong899 2 жыл бұрын
Really helpful.🙌
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Great to hear! Thank you!
@KW-ei3pi
@KW-ei3pi 9 ай бұрын
Thanks! Very good tutorial. You went through the last part pretty quickly, and I couldn't figure out why "now" didn't print on the second and subsequent loops. It wasn't entirely clear that the INDEX values were in memory and could be overwritten by code to a new value. I get it now. Thanks. Regards.
@ianclaproth3675
@ianclaproth3675 Жыл бұрын
An excellent explanation of how the for loop actually works when iterating arrays. Thank you.
@programmingelectronics
@programmingelectronics Жыл бұрын
Thanks so much for watching!
@syaduinotech3681
@syaduinotech3681 2 жыл бұрын
Thanks for the video, hope you can share the application of using this on the sensor as you mention in the beginning. Tq sir
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks for watching!
@warrenscorner
@warrenscorner 3 жыл бұрын
That was a great tutorial of a for loop! 😂 Maybe part 2 can explain how to append an array or what types of variables can go into an array.
@programmingelectronics
@programmingelectronics 3 жыл бұрын
Thanks for the note and recommendation Warren! In retrospect I can see this is more a "for loop video" than an "array video" We changed up the title and thumbnail to hopefully reflect that better.
@RixtronixLAB
@RixtronixLAB 2 жыл бұрын
Nice info, keep it up,thanks for sharing :)
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks for the note!!
@joroxanborata3102
@joroxanborata3102 3 жыл бұрын
hi thanks you for the informative about arduino can you make a video to combine 3 sketch that have different doing. like relay lighting , automatic water, and a dht11 sensor
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks for the note! I'll see what we can come up with for you!
@Mica_No
@Mica_No 2 жыл бұрын
Its so entertaining listen to you
@programmingelectronics
@programmingelectronics 2 жыл бұрын
Thanks so much for watching!
@AbrarShaikh2741
@AbrarShaikh2741 3 жыл бұрын
Thanks for the video. However, it is more lf a FOR loop video then Array Video.
@programmingelectronics
@programmingelectronics 3 жыл бұрын
You are right! Title adjusted, and I think we'll change out to a more representative thumbnail. Thanks @Abrar!
@TheStudpop
@TheStudpop 3 жыл бұрын
Seems to me that i = 0 gets incremented before the next line, so the array’s index will never be 0 but rather 1,2,3.
@programmingelectronics
@programmingelectronics 3 жыл бұрын
I may have not explained it appropriately in the video, but when _entering_ a "for loop", the variable gets initialized and the condition is checked. The increment/decrement happens at the end of the for loop before the next check of the condition. 1st-> initialize var, check condition n...-> increment/decrement, check condition Hope this helps clarify!
@TheStudpop
@TheStudpop 3 жыл бұрын
@@programmingelectronics You're the best! Thanks.
@LilGh02t
@LilGh02t 2 жыл бұрын
The '++' operator increments the variable. If it's placed after (i++), the variable will be incremented after the code in the loop is executed, if the operator is placed before the variable (++i), the variable is incremented before entering the loop. Same rules applies to the '- -' operator.
@miroslavmikus6480
@miroslavmikus6480 2 жыл бұрын
If you don't need to know index i, you can use range based for loop: for (float val : sensorReadings) { } ; plus with another feature of c++11 "auto": for (auto val : sensorReadings) { Serial.println(val); } - less you have to write mans less bugs you can make
@Skyrime007
@Skyrime007 Жыл бұрын
How to iterate array with millis() function or iterate through multiple arrays simultaneously
@بوزيدأمينأستاذالعلومالفيزياء
@بوزيدأمينأستاذالعلومالفيزياء 7 ай бұрын
god bless you
@j.w.8663
@j.w.8663 Жыл бұрын
👍🏻
@frankbaron1608
@frankbaron1608 Жыл бұрын
hip, hip, array
@flywittzbeats4008
@flywittzbeats4008 Жыл бұрын
char bestTeachers [][3] = {{“Programming Electronics Academy”}, {“Brocode”}, {“Paul McWhorter”}};
What is the ? code!?  Learn about the ternary operator!
12:30
Programming Electronics Academy
Рет қаралды 12 М.
Using Arrays with Arduino
13:51
Programming Electronics Academy
Рет қаралды 31 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Using Serial.parseInt() with Arduino
15:39
Programming Electronics Academy
Рет қаралды 50 М.
Which Arduino IDE should I use?
13:43
Programming Electronics Academy
Рет қаралды 87 М.
How to Organize Code
14:37
Programming Electronics Academy
Рет қаралды 66 М.
LESSON 31: Understanding Arduino Arrays
29:47
Paul McWhorter
Рет қаралды 70 М.
Using tabs to organize code with the Arduino IDE
12:18
Programming Electronics Academy
Рет қаралды 62 М.
If you don’t learn sprintf(), your code will hate you later
8:34
Programming Electronics Academy
Рет қаралды 53 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 400 М.
Arduino MASTERCLASS | How to Use Arduino Libraries PART 7
14:26
Programming Electronics Academy
Рет қаралды 44 М.