LESSON 6: Reading Data from Arduino Serial Monitor

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I've ran into problems on the message prompts for inputting the number of LED blinks. After entering the first number and hitting send, the program would prompt me for the second number but immediately continue with the blinking loops, without waiting for me to finish entering the seconds number. Turns out my Arduino IDE's Serial Monitor tool was sending NEWLINE characters after every send by default (it's the dropdown right next to where you set the Serial Monitor BAUD). After setting the value to "No line ending", my program started to work as expected.

albundi
Автор

You are one of the best tutors I have come across. I'm a 55+ man and your style conveys the foundation very well that, one would not forget the concept behind it and also you are so clear and very detailed oriented. This is a field where details does matter a lot, otherwise, one can give up easily due to frustration that something is not working the way it is expected. A simple character typo can throw people off. You are also teaching the patience and awareness that this field requires. Thanks again and I'm planning to attend all your classes. It is working out perfect so far and I'm eagerly waiting to apply this learning to my invention idea.

illamp
Автор

I found these lessons during the COVID-19 quarantine (UK). I brushed the dust from my arduino kit which i bought a few months ago and decided i would try again. When i first started to learn arduino, i didnt know ANY programming language and started with videos thatassumed i already knew how to code. I didnt, i lost interest because i didnt understand anything. Now i found this channel, and everything is so easy; on my first day I started to code all by myself! this is so much fun

jakubzak
Автор

With those videos EVERY BODY IS HAPPY
Thank you sir.

MK-efiu
Автор

You are an awesome teacher! I've been through other tutorials on youtube and you have been, by far, the best. Thanks for your time.

joshtomada
Автор

I wish teachers at my school were this clear

paoloh
Автор

This is definitely one of the best arduino tutorial series

williamjaeger
Автор

Good fun! All my professional life, I was the "ideas man" and someone else did the coding, Now I am retired, I thought I would put my own ideas into practice by writing my own code and it is an eye opener. I'll be honest - at first I didn't like your stye, but now, I think you are a great teacher - why? because you make human mistakes and then you show how to correct them and that is priceless because that is how "reality" works! Thanks a million!

DerrickWindsor
Автор

solution to the code not stopping after the first while loop is to add a
Serial.read(); here


Serial.println("how many times should the yellow led blink?");
while (Serial.available()== 0){} // "=" means set = to. "==" means test to see if = to
loopcounty = Serial.parseInt(); // reads the number inputted and makes the loop that number

Serial.read();


this clears the buffer serial.available buffer and makes it so that the next while loop can actually work.


took about 30 mins of figuring out but this works wonderfully and doesnt require changing any settings

photoion
Автор

After Arduino Tutorials I found these lessons, and here I am remembering somethngs two weeks old and fndng new ones.Glad I meet this. Thank YOU.

franciscoserafim
Автор

Really enjoying your lessons. So much to learn. I'm a HAM, since 1970's, and so much has changed. I have three sketches I want to modify to get it to work with my radio. Matter of combining two of the sketches with a large part from one with a smaller part of another to get the results I need. So hopefully the classes will guide me to my requirement. Thanks again Paul.

clofland
Автор

Hello. Thank you for your clear and basic lessons on the Arduino. I'm 65 years of age and wanted to delve into the world of electronics. No prior knowledge of the subject I am very much enjoying your excellent lessons. Thank you

Rrt
Автор

Paul, thank you very much for all your videos, you have helped me a lot getting onto Arduino, I am 53+ and all your step by step lessons are just great for people like me. Keep up the good work!

mounirababou
Автор

i purchased a 2560 @ month ago. You are a godsend.. Kind of glad there is only  10, 000 learners in front of me and less than 50 with quality tutorial awareness.

michaelholmes
Автор

Extremely good tutor. I really like your slow, concise and explanatory style. It is really helping me to understand this fairly complex subject. Thanks

martinconroy
Автор

Well i made through lesson 6! Thanks for posting these great lessons!
I followed a web-page tutorial on "How to control a stepper motor with a rotary encoder", So i built it, copied his script, and found it didn't work worth a damn, The motor was erratic and would step back constantly, So i asked him if there was a code issue, He admitted it was poorly written garbage, (with a promise to fix it) this was the FIRST of his many projects listed! UGGG....This is why i'm here to learn, All i keep finding is useless examples or rubbish code with ill-defined schematic!

stclairstclair
Автор

I am a novice, but you have a wonderful way of explaining things patiently. than you very much.

maybornelectronics
Автор

Thanks for posting your Arduino lessons! Your efforts are appreciated!

SeattleRingHunter
Автор

Another great lesson. Thanks and I'll pass this onto my students. I am having them use your lessons for in-depth tutorials on specific Arduino programming concepts. You really explain the material. While I did your new and improved Arduino lessons, I decided to do these as well.

hughpatterson
Автор

I don't know how you don't have a 10 million subs yet. You are the best

vinaykamath