In this video, Zahraa explains the method to set up the Arduino board with the Arduino IDE. Zahraa also goes through the two special functions that are a part of every Arduino sketch: setup() and loop() )
- [Instructor] All right, so as mentioned,…that once you open the software,…it comes in with a default starting code.…The code contains two functions,…they are part of every Arduino sketch,…setup function and a loop function.…The Arduino program calls the setup function…as the first thing when the Arduino unit powers up.…So any code that you place…in the setup function in your sketch runs first…and only runs one time.…
The setup function is a great place…to initialize input and output pins…so they are ready to be used.…Then the program moves to the loop function code.…The program calls the code…inside the loop function repeatedly…until the Arduino board is powered off.…Most of the time, we place the main code…inside the loop function section.…It is the heart of most sketches.…This is where we tell the Arduino board…what to do in the sketch.…Each time the sketch reaches the end of the loop function,…it returns to the beginning of the loop.…
Now for your program to run,…you need to include both functions,…setup and loop in your sketch,…
- 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.