In this video, Zahraa teaches you how to program the built-in LED on the Arduino board that is connected to digital pin number 13, as well as programming it to make it blink.
- [Instructor] Alright, now you are ready to…write your first Arduino sketch.…In this example, we are going to use the built-in LED…in the Arduino board…that is connected to digital pin number 13…and program it to make it blink.…So I started a new file from scratch.…If you're still using the same previous file,…then you can go ahead to the File,…and then click New in order to start a new file.…In this program, we are going to use it to…turn on the LED for a certain time…and turn it off for a certain time.…
So the very first thing that I'm going to do…is to initialize the pin number 13 as an output.…So I'll go to the void set of function…write pinMode function,…specify pin number 13…and then make it as OUTPUT.…One of the recommended ways is that we can create a variable…and name it and instead of using the pin number 13,…we can use the variable instead.…So the recommendation is…you go at the beginning of the code…which is outside the void setup,…and then write down…integer LED equals 13.…
So this creates a variable named LED…
- 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: Interfacing with Hardwarewith Zahraa Khalil1h 40m Intermediate
Learning Arduino: Pulse Width Modulationwith Rae Hoyt1h 16m Intermediate
1. Introduction to Arduino
2. Creating an Arduino Program
3. Interface with Ouptut: 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.