In this video, Zahraa uses an example to showcase the serial monitor by programming the built-in LED on the Arduino board that is connected to digital pin number 13, and uses the serial monitor window to see outputs.
- [Instructor] And now we are going to use…the same previous Blink program…and see some output using a Serial Monitor.…The first thing is…to initialize the Serial Monitor portrait…at 9600,…so I'll go ahead in the void setup function.…Now in order to show some output…showing the Serial Monitor,…I'm going to declare a variable named counter,…and the value associated with it is zero.…
So I'm going to go ahead outside the void setup function…equals zero,…note here this is not a pin zero,…we're just simply initializing the counter…to start from zero.…Now, in the void loop function,…I'm going to go ahead…and set the counter to add one every time it repeats itself.…So counter equals counter plus one.…So I'm going to add a comment,…just say adding one…everytime it loops.…
So I'm going to use the Serial.print function…in order to output a sentence…on the next line.…Serial.print,…and I'll use a quotation mark,…I'll say Blink Number,…I'll use the number sign, space, and the quotation mark…and close the bracket.…In the next line, I'll print the value of the counter.…
- What's an Arduino?
- Creating an Arduino program
- Using the setup() and loop() functions
- Using the pinMode() and digitalWrite() commands
- Creating your first sketch
- Writing code to turn LEDs on and off
- Wiring a pushbutton to Arduino
- Activating an LED with a pushbutton
Skill Level Beginner
Learning Arduino: Pulse Width Modulationwith Rae Hoyt1h 16m Intermediate
Learning Arduino: Interfacing with Hardwarewith Zahraa Khalil1h 40m Intermediate
1. Introduction to Arduino
2. Creating an Arduino Program
3. Interface with Output: LED
4. Interface with Input: Pushbutton
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.