0% found this document useful (0 votes)
7 views

Intro to arduino IDE & LED Blink

I need for teaching students

Uploaded by

dabloo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Intro to arduino IDE & LED Blink

I need for teaching students

Uploaded by

dabloo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

INTRODUCTION

TO ARDUINO IDE
Agenda

★ Arduino IDE 101


★ Basic syntax
★ LED Blink project
★ Conclusion
Intro to Arduino IDE
What is Arduino IDE?

The open-source Arduino Software (IDE) makes it easy to write


code and upload it to the board. This software can be used with
any Arduino board.
Basic syntax of Arduino IDE
★ Void setup
★ Void loop
Basic syntax of Arduino IDE
Void setup function
In Arduino IDE, the void setup() function is used to initialize the
program at the beginning
Void Loop function
In Arduino, void loop() is a function that repeats over and over again
until the Arduino board is powered off or the program is restarted
Serial Monitor
The Serial Monitor is an essential tool when creating projects with
Arduino. It can be used as a debugging tool, testing out concepts or to
communicate directly with the Arduino board.
LED Blink
LED Blink code

void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off
delay(1000); // wait for a second
}
PWR IN USB (to Computer)

RESET

SCL\SDA
(I2C Bus)

POWER
5V / 3.3V / GND
Digital I\O
PWM(3, 5, 6, 9, 10, 11)

Analog
INPUTS
Thankyou

You might also like