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.
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.
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.
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.
@@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.
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
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
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!
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.
MANNNNNN I've been losing my damn MIND trying to understand for loops and arrays and WOW you make it so easy! THANK YOU!!!!
So glad it helped!
Every video is better than the previous! You do such a good job of helping me discover the value in the details.
Thanks Chad! Much appreciated!
Thank you so much. Your videos are so well done and easy to understand!
Thanks for watching - I am glad it's helpful!
Outstanding explanation!
Glad it was helpful! Thank you!
You break down information so well! I really appreciate these videos.
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.
@@programmingelectronicsPerhaps interrupts/timer interrupts?
Been watching your vids since 2019. I Truly like the way you provide information.thank you
I appreciate that! Thank you!
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.
Вы большой молодец , что делаете такие обучающие видео , спасибо большое !
This is golden (as is the whole series)
Subbed!
Glad you like it!
At 16:30 why is the first line of output messed up? It happened on the other examples too.
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.
An excellent explanation of how the for loop actually works when iterating arrays. Thank you.
Thanks so much for watching!
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.
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.
This is really good, thanks!!!
Thanks a ton for watching! I hope it was helpful!
@@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.
@@thomashvnmusic Thanks for sticking around!!!
@@michaelcheich2481 Absolutely!
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
Thanks for the video, hope you can share the application of using this on the sensor as you mention in the beginning. Tq sir
Thanks for watching!
Really helpful.🙌
Great to hear! Thank you!
Nice info, keep it up,thanks for sharing :)
Thanks for the note!!
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
Thanks for the note! I'll see what we can come up with for you!
Its so entertaining listen to you
Thanks so much for watching!
Thanks for the video. However, it is more lf a FOR loop video then Array Video.
You are right! Title adjusted, and I think we'll change out to a more representative thumbnail.
Thanks @Abrar!
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.
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!
@@programmingelectronics You're the best! Thanks.
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.
How to iterate array with millis() function or iterate through multiple arrays simultaneously
god bless you
👍🏻
hip, hip, array
char bestTeachers [][3] = {{“Programming Electronics Academy”}, {“Brocode”}, {“Paul McWhorter”}};