Arduino Tutorial 11: Understanding the Arduino Serial Port and Print Commands

preview_player
Показать описание
You guys can help me out over at Patreon, and that will keep this high quality content coming:

In this lesson we show you how to print data to the Serial Monitor using Arduino. We investigate Baud Rate settings and how to get information from the Arduino into your Serial Monitor. Enjoy!

You can get the kit I am using for this series at the following link:

You can get more details on this lesson at our WEB site HERE:

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

4 years later and your series is still helping people. New Arduino user here. Yes I am the same with things being tidy and square😂😂 However, we differ in iced coffee vs iced bourbon 😂😂😅 With all seriousness, you have created by far the best series of videos on this topic. Thank you for all your time and effort.

SixtyStudio
Автор

Maybe an episode on how to make Paul’s Ice Coffee😄

cosmic
Автор

what i like abt this guy is the cool manner in which he teaches. No useless learning but he focuses on understanding! Thanks Paul for being there beside us!🙂😇😇😇😇

subhankarkolay
Автор

Possibly the best you tube channel ever. Thankyou Paul for giving everyone the ability to turn their imagination into reality.

gameshot
Автор

I am in depression, your videos helps me handle my conditions. You are a very good teacher. I love to learn new things. Thank for being there.

devendrakumarraj
Автор

I watched you a few years back on your old version of this and was blown away at how good you are at teaching this. I had other things to do for a couple of years (built a recording studio/editing suite by my Mt. cabin in NC and started doing a weekly youtube live stream of old time Gospel Music) and now I'm back into having a bit of time for the arduino since my show is running smoothly now. So, I looked you up and lo and behold, a newer version of you teaching this. Love the electronic "theory" you are throwing in. So, I have been watching your play list on the arduino and have gotten to here rather quickly because it was more of a review for me. But from here on I'm learning. God gives us different gifts. Mine was music, but yours is teaching. If someone can't learn this with you as a teacher, they need to take up something else! Thank you for your efforts. You have been and are, a big help to me and I'm sure to many others. I'm thinking God is quite happy with what you have done with your gift!

BirdYoumans
Автор

"NO! NO!!" God i love this guy! You are a fantastic teacher!

DanCoastie
Автор

Paul is a national treasure I have never seen anyone that can make teaching so easy. I wish I had a teacher like him when I was in school. I have had some terrible experience because of poor teaching.

astyles
Автор

I love those parts where Mr. McWhorter inserted "misses" on working out the program, it strengthens good programming practices and showed mistakes I might myself make so I won't have to. The tutorials have indeed been very exciting and keeps on getting better. Thank you for these great contents Mr. McWhorter. I hope you could do more contents in related areas.

richterxxazula
Автор

I have been going through all the lessons since I got my UNO, I'm really appreciating all of the info, Thanks

toomanyhobbies
Автор

An amazing arduino course for beginners. You are a born teacher Paul. you are magician. you make boring staff so exciting.

imannaseri
Автор

In C++ I was able to print multiple variables at a time, I gave it a try with this ide, low and behold it worked!
example:
String myString=" + ";
int x=10;
int y=10;
int z;


z=x+y;
Serial.println(x+myString+y+" = "+z);


Code for this lesson:
int J=1;
int inDelay=1000;
int x=3;
int y=7;
int z;
String myString=" + ";
String circleA="the area of this circle is ";
float pi=3.14;
float r=2;
float area;

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}

void loop() {
// put your main code here, to run repeatedly:
z=x+y;
area=pi*r*r;
Serial.println(x+myString+y+" = "+z);

delay(inDelay);
r=r+0.5;
}

linnarpewbes
Автор

This is only lesson 11, but it feels like I have made so much progress already. Thank you Sir! Best wishes from Italy

leonbacher
Автор

Very dense learning in this one (#11). The hardest yet for me. Paused often to keep-up with you and re-runed the video at least 3 times to sink it in! Very satisfying to work on the Serial printer though and will try to keep practicing because it could be a very usefull tool. Thanks!

gervaisdube
Автор

I finished this video and immediately went on ahead to create a program that basically prints the answer of a calculation we know as " iterative solution", and all we have to do is insert the equation and starting value, and it prints the answer to each iteration. Thanks Mr. McWhorter.

krishamsub.subedichhetri
Автор

Great lesson again! Thank you so much, Paul. Used the print command to get something like this on serial monitor:
Voltage across 220 ohm resistor is 1.99
Voltage across 330 ohm resistor is 3.01

Code:
int readpin=A1;
int readVal;
float v1=0;
float v2=0;
int delayT=500;
String line1= "voltage across 220 ohm resistor is " ;
String line2= "voltage across 330 ohm resistor is " ;

void setup()
pinMode(readpin, INPUT);
Serial.begin(9600);

void loop()
readVal=analogRead(readpin);
v1=(5./1023.)*readVal;
v2= 5-v1;
Serial.print(line1);
Serial.println(v1);
Serial.print(line2);
Serial.println(v2);
delay(delayT);

laxmanrao
Автор

I am so thankful for those videos. I’m going to do a classtest about arduino. My teacher didn’t explain at all. Now I’m starting to understand it. Thank you very much Paul.

theokerner
Автор

3:31 awesomeness overload. Paul Mcwhorter is the best teacher to ever exist.

muzamilfatima
Автор

I hope all the peoples in the world just explaine the code like you.

waleedeid
Автор

I get the feeling you may have been to a funeral or another sad occasion, i kept hearing semi me smile. Thanks again for another valuable lesson. Simon

simontopley