🤩 FREE Arduino Crash Course 👇👇
[ Ссылка ]
Want to learn more? Check out our courses! [ Ссылка ]
***Get the code, transcript, challenges, etc for this lesson on our website***
[ Ссылка ]
We designed this circuit board for beginners!
Kit-On-A-Shield: [ Ссылка ]
SHOP OUR FAVORITE STUFF! (affiliate links)
---------------------------------------------------
We use Rev Captions for our subtitles
[ Ссылка ]
Arduino UNO R3:
Amazon: [ Ссылка ]
Newegg: [ Ссылка ]
Budget Arduino Kits:
Amazon:[ Ссылка ]
Newegg:[ Ссылка ]
Multimeter Options:
Amazon: [ Ссылка ]
Newegg: [ Ссылка ]
Helping Hands:
Amazon: [ Ссылка ]
Newegg: [ Ссылка ]
Soldering Stations:
Amazon: [ Ссылка ]
Newegg: [ Ссылка ]
AFFILIATES & REFERRALS
---------------------------------------------------
►Audible Plus Free trial: [ Ссылка ]
►Join Honey- Save Money [ Ссылка ]
►Download Glasswire for Free:[ Ссылка ]
FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: [ Ссылка ]
Twitter: [ Ссылка ]
Website: [ Ссылка ]
WRITING TO CONSOLE WITH ARDUINO | SOLVED
How the heck do you write and print text to the Arduino console, you know, that black output section at the bottom of the Arduino IDE? Is it even possible?! Have you been reading about Serial.print(), but it just isn’t making any sense at all?
You just want to be able to view the state of some variables, I mean what gives! This should be easy!
Arduino console with how do I print here bubble pointing to black area
LESSON OUTLINE:
In this lesson…
You will learn exactly how to print and write text to the Arduino console
Spoiler Alert – you may have been looking for love in all the wrong places – it’s not actually the console! You’ll write to the Serial Monitor.
You will learn the two REQUIRED functions to write text on the Arduino console Serial Monitor
As a bonus, you’ll also learn how to avoid two of the most common printing gotchas that always trip people up when they are getting started with Arduino.
ARDUINO CONSOLE SERIAL MONITOR
When you open up the Arduino IDE, and you see the black section at the bottom that takes up 20% of the window, you might have assumed (very appropriately) that this was a console where you can print out text and values.
Similar to what you’ll find in other IDEs like Visual Studio, Eclipse, or whatever you’re familiar with. Trust me – just about everybody new to Arduino IDE thinks the exact same thing – so you are not alone!
But in fact, this IS NOT one of the functions of the Arduino console. Its only purpose is to display error messages and status information about your Arduino.
If you want to see text output like you think of on a console, you need to use the Serial Monitor Window. The Serial Monitor window can be found under Tools - Serial Monitor.
Arduino tools menu showing Serial Monitor shortcut for printing to console
The shortcut key to open the serial monitor window is CTRL + SHIFT + M (Or CMD + SHIFT + M on a macOS). This Serial Monitor window is where you see the text that you are writing and printing – not a console.
But how do you actually print, display, and write text this Arduino Console (which we now know is called the Serial Monitor)?
WRITING TO CONSOLE SERIAL MONITOR
It’s really easy! There are TWO functions you must invoke from the Arduino Serial library (which happens to be built into the Arduino IDE)
The first function is Serial.begin(baud rate). This function will go inside the curly braces of void setup. That’s because this function only needs to run once.
Serial.begin() is what establishes serial communication between your Arduino board and your computer.
The value that goes inside the parentheses is called the baud rate, and a very common baud rate to use is 9600 – it’s simply the speed at which your Arduino board and you Computer are agreeing to communicate at.
***About Us:***
This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
***We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.***
Ещё видео!