SlideShare a Scribd company logo
Introduction to Arduino
What is Arduino?
 Arduino is an open- source computer hardware and
software company, project and user community that
designs and manufactures microcontroller-based kits
for building systems consisting of digital devices,
interactive objects that can sense and control in the
physical world.
How to program Arduino?
 The Arduino Integrated Development Environment (IDE)
supports the C and C++ programming languages using
special rules of code organization.
 The Arduino IDE supplies a software library called
"Wiring" from the Wiring project, which provides many
common input and output procedures.
Arduino Products
Entry Level
Enhanced Features
Official Website:
https://www.arduino.cc/
ARDUINO UNO
Technical specifications:
 Microcontroller: Microchip ATmega328P
 Operating Voltage: 5 Volt
 Input Voltage: 7 to 20 Volts
 Digital I/O Pins: 14 (of which 6 provide PWM output)
 Analog Input Pins: 6
 DC Current per I/O Pin: 20 mA
 DC Current for 3.3V Pin: 50 mA
 Flash Memory: 32 KB of which 0.5 KB used
by bootloader
 SRAM: 2 KB
 EEPROM: 1 KB
 Clock Speed: 16 MHz
 Length: 68.6 mm
 Width: 53.4 mm
 Weight: 25 g
Program Structure
Setup( )
{
// A function that runs once at the start of a program and is used to
set //pinMode or initialize serial communication
}
loop( )
{
// This function includes the code to be executed continuously – reading
inputs, //triggering outputs, etc.
// This function is the core of all Arduino programs and does the bulk of
the //work.
}
Activity 1.1
Type : Team of 2 Duration : 15 Minutes
Use LED blink program from
example and upload it on the
ARDUINO board
Functions to handle digital I/O pinMode (pin, OUTPUT);
// make the digital pin either INPUT or OUTPUT
 digitalRead (pin);
//used to get the content on the pin which is
HIGH(1) or LOW(0)
 digitalWrite(pin, value)
//used to send HIGH(1) or LOW(0) value to a pin
Time Function
 delay(ms)
// waits for milli – seconds
/*….. Program to blink the LED on pin 13 …..*/
void setup( )
{
pinMode(13, OUTPUT); //Initialize the digital pin as output
}
void loop( )
{
digitalWrite(13, HIGH); // Turn the LED ON
delay(1000); // Wait for one second
digitalWrite(13, LOW); // Turn the LED OFF
delay(1000); // Wait for one second
}
Activity 1.2
Type : Team of 2 Duration : 10 Minutes
Modify the program to blink LED every 2
sec on pin 12.
Circuit for the LED
Cathode of
LED
Anode of LED
/*….. Program to blink the LED every 2 second on pin12*/
void setup( )
{
pinMode(12, OUTPUT); //Initialize the digital pin as output
}
void loop( )
{
digitalWrite(12, HIGH); // Turn the LED ON
delay(2000); // Wait for a two second
digitalWrite(12, LOW); // Turn the LED OFF
delay(2000); // Wait for a two second
}
Activity 1.3
Type : Team of 2 Duration : 15 Minutes
Modify the program to display the LED
state every 2 sec on Serial Monitor.
Serial communication with
ArduinoWhat is serial communication ?
The word serial means "one after the other."
 What is Baud rate ?
Number of symbols transferred per sec
Serial Display Functions
 Serial.begin(baud_rate)
//baud rate(characters per sec) between computer and
board is typically 9600 although you can work with
other speeds by changing settings of COM Port
 Serial.print(value),
//value could be any data and even string
 Serial.println(value)
//print in new line
Eg. Print INDIA on serial monitor
void setup( )
{
Serial.begin(9600);// 9600 is default baud rate of serial com
port of a computer
}
void loop( )
{
Serial.println(“INDIA”); // Send the value “INDIA”
}
Serial Monitor
/*….. Modify the program to blink on pin12 and display the LED state every 2 sec
on Serial Monitor…..*/
void setup( )
{
pinMode(12, OUTPUT); //Initialize the digital pin as output
Serial.begin(9600);
}
void loop( )
{
digitalWrite(12, HIGH); // Turn the LED ON
Serial.println(“ON”); // Send the value “ON”
delay(2000); // Wait for a second
digitalWrite(12, LOW); // Turn the LED OFF
Serial.println(“OFF”); // Send the value “OFF”
delay(2000); // Wait for a second
}
Activity 1.4
Type : Team of 2 Duration : 25 Minutes
Modify the program to blink 10 times
per loop iteration and display no. of
loop iterations on serial monitor.
Looping Concept
//for loop concept
Syntax –
for(initialization ; condition; increment / decrement)
{
//code which you want to perform
}
Example : to print number from 1 to 10
for(int i=1;i<=10;i++)
{
Serial.println(i);
Serial.println(“INDIA”);
}
long int Count=0;
void setup( )
{
pinMode(12, OUTPUT); //Initialize the digital pin as output
Serial.begin(9600);
Serial.println(“count of iterations running are: “);
}
void loop( )
{
for (int i=1;i<=10;i++)
{
Serial.println(i);
digitalWrite(12, HIGH);
Serial.println(“ON”);
delay(1000); // wait for a second
digitalWrite(12, LOW);
 Serial.println(“OFF”);
delay(1000); // wait for a second
}
Count++;
 Serial.print(“Iteration:”);
Serial.println(Count);
}
Condition Statements
if(Condition 1)
{
//Statements
}
if(Condition 2)
{
//Statements
}
else
{
//Statements
}
Topic Learning Outcomes
At the end of the topic the student should be able to
1. Explain the importance of platform based development
2. Use looping, delay and conditioning concepts in
developing a program on Arduino environment.

More Related Content

PPTX
Chapter 4: Combinational Logic
PPT
Arduino presentation by_warishusain
PPTX
555 Timer integrated circuit and its applications
PPTX
Seven Segment Display
PPTX
Introduction to arduino
ODP
Introduction to Arduino
PPTX
Getting started with arduino uno
PDF
Introduction to Arduino Programming
Chapter 4: Combinational Logic
Arduino presentation by_warishusain
555 Timer integrated circuit and its applications
Seven Segment Display
Introduction to arduino
Introduction to Arduino
Getting started with arduino uno
Introduction to Arduino Programming

What's hot (20)

PPTX
Introduction to Arduino
PPT
Interfacing keypad
DOCX
Digital Clock Using Logic Gates
PPTX
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
PPT
Arduino traffic lights
PDF
Encoder & Decoder
PPT
multiplexers and demultiplexers
PDF
verilog ppt .pdf
PDF
Chapter 01 Basic Principles of Digital Systems
PPTX
Introduction to Arduino Microcontroller
DOCX
Digital clock
PPT
Logic gates presentation
PDF
Lesson 10- NodeMCU with LCD I2C
PPTX
latches
PPT
Analysis and design of a low voltage and low power double tail comparator
PPTX
Johnson counter
PPTX
Tinker cad intro
DOCX
Arduino lcd display
PPTX
555 timer ppt by vishnu
Introduction to Arduino
Interfacing keypad
Digital Clock Using Logic Gates
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
Arduino traffic lights
Encoder & Decoder
multiplexers and demultiplexers
verilog ppt .pdf
Chapter 01 Basic Principles of Digital Systems
Introduction to Arduino Microcontroller
Digital clock
Logic gates presentation
Lesson 10- NodeMCU with LCD I2C
latches
Analysis and design of a low voltage and low power double tail comparator
Johnson counter
Tinker cad intro
Arduino lcd display
555 timer ppt by vishnu
Ad

Similar to Introduction to Arduino (20)

PDF
Arduino programming part1
PPTX
Arduino . .
PPTX
How to use an Arduino
PPTX
Intel galileo gen 2
PPTX
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
PDF
Introduction to Arduino
PPTX
Arduino Day 1 Presentation
PPT
01 Intro to the Arduino and it's basics.ppt
PDF
Cassiopeia Ltd - standard Arduino workshop
PPTX
Arduino intro.pptx
PPTX
Arduino
PPTX
Powerful Electronics with Arduino
PPTX
Arduino_UNO _tutorial_For_Beginners.pptx
PPTX
arduinoedit.pptx
PPTX
Introduction to arduino Programming with
PPTX
Aurdino presentation
PPTX
week2aweek2aweek2aweek2aweek2aweek2aweek2a
PDF
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
PPTX
Arduino workshop
PPTX
Sensors and Actuators in Arduino, Introduction
Arduino programming part1
Arduino . .
How to use an Arduino
Intel galileo gen 2
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
Introduction to Arduino
Arduino Day 1 Presentation
01 Intro to the Arduino and it's basics.ppt
Cassiopeia Ltd - standard Arduino workshop
Arduino intro.pptx
Arduino
Powerful Electronics with Arduino
Arduino_UNO _tutorial_For_Beginners.pptx
arduinoedit.pptx
Introduction to arduino Programming with
Aurdino presentation
week2aweek2aweek2aweek2aweek2aweek2aweek2a
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
Arduino workshop
Sensors and Actuators in Arduino, Introduction
Ad

More from Amarjeetsingh Thakur (20)

PPTX
“Introduction to MATLAB & SIMULINK”
PDF
Python code for servo control using Raspberry Pi
PDF
Python code for Push button using Raspberry Pi
PDF
Python code for Buzzer Control using Raspberry Pi
PDF
Arduino programming part 2
PDF
Python openCV codes
PDF
Python Numpy Source Codes
PDF
Steemit html blog
PDF
Python OpenCV Real Time projects
PPTX
Adafruit_IoT_Platform
PDF
Core python programming tutorial
PDF
Python openpyxl
PPTX
Introduction to Internet of Things (IoT)
PPTX
Introduction to Node MCU
PPTX
Introduction to Things board (An Open Source IoT Cloud Platform)
PPTX
Introduction to MQ Telemetry Transport (MQTT)
PPTX
Arduino Interfacing with different sensors and motor
PPTX
Image processing in MATLAB
PPTX
Introduction to Arduino
PPTX
Image Processing Using MATLAB
“Introduction to MATLAB & SIMULINK”
Python code for servo control using Raspberry Pi
Python code for Push button using Raspberry Pi
Python code for Buzzer Control using Raspberry Pi
Arduino programming part 2
Python openCV codes
Python Numpy Source Codes
Steemit html blog
Python OpenCV Real Time projects
Adafruit_IoT_Platform
Core python programming tutorial
Python openpyxl
Introduction to Internet of Things (IoT)
Introduction to Node MCU
Introduction to Things board (An Open Source IoT Cloud Platform)
Introduction to MQ Telemetry Transport (MQTT)
Arduino Interfacing with different sensors and motor
Image processing in MATLAB
Introduction to Arduino
Image Processing Using MATLAB

Recently uploaded (20)

PPTX
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
anatomy of limbus and anterior chamber .pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
Simulation of electric circuit laws using tinkercad.pptx
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
PPT
Chapter 6 Design in software Engineeing.ppt
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Practice Questions on recent development part 1.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
PPT
Drone Technology Electronics components_1
PPTX
436813905-LNG-Process-Overview-Short.pptx
PDF
composite construction of structures.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
anatomy of limbus and anterior chamber .pptx
573137875-Attendance-Management-System-original
Simulation of electric circuit laws using tinkercad.pptx
Structs to JSON How Go Powers REST APIs.pdf
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
Chapter 6 Design in software Engineeing.ppt
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Practice Questions on recent development part 1.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
Drone Technology Electronics components_1
436813905-LNG-Process-Overview-Short.pptx
composite construction of structures.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx

Introduction to Arduino

  • 2. What is Arduino?  Arduino is an open- source computer hardware and software company, project and user community that designs and manufactures microcontroller-based kits for building systems consisting of digital devices, interactive objects that can sense and control in the physical world.
  • 3. How to program Arduino?  The Arduino Integrated Development Environment (IDE) supports the C and C++ programming languages using special rules of code organization.  The Arduino IDE supplies a software library called "Wiring" from the Wiring project, which provides many common input and output procedures.
  • 9. Technical specifications:  Microcontroller: Microchip ATmega328P  Operating Voltage: 5 Volt  Input Voltage: 7 to 20 Volts  Digital I/O Pins: 14 (of which 6 provide PWM output)  Analog Input Pins: 6  DC Current per I/O Pin: 20 mA  DC Current for 3.3V Pin: 50 mA  Flash Memory: 32 KB of which 0.5 KB used by bootloader  SRAM: 2 KB  EEPROM: 1 KB  Clock Speed: 16 MHz  Length: 68.6 mm  Width: 53.4 mm  Weight: 25 g
  • 10. Program Structure Setup( ) { // A function that runs once at the start of a program and is used to set //pinMode or initialize serial communication } loop( ) { // This function includes the code to be executed continuously – reading inputs, //triggering outputs, etc. // This function is the core of all Arduino programs and does the bulk of the //work. }
  • 11. Activity 1.1 Type : Team of 2 Duration : 15 Minutes Use LED blink program from example and upload it on the ARDUINO board
  • 12. Functions to handle digital I/O pinMode (pin, OUTPUT); // make the digital pin either INPUT or OUTPUT  digitalRead (pin); //used to get the content on the pin which is HIGH(1) or LOW(0)  digitalWrite(pin, value) //used to send HIGH(1) or LOW(0) value to a pin
  • 13. Time Function  delay(ms) // waits for milli – seconds
  • 14. /*….. Program to blink the LED on pin 13 …..*/ void setup( ) { pinMode(13, OUTPUT); //Initialize the digital pin as output } void loop( ) { digitalWrite(13, HIGH); // Turn the LED ON delay(1000); // Wait for one second digitalWrite(13, LOW); // Turn the LED OFF delay(1000); // Wait for one second }
  • 15. Activity 1.2 Type : Team of 2 Duration : 10 Minutes Modify the program to blink LED every 2 sec on pin 12.
  • 16. Circuit for the LED Cathode of LED Anode of LED
  • 17. /*….. Program to blink the LED every 2 second on pin12*/ void setup( ) { pinMode(12, OUTPUT); //Initialize the digital pin as output } void loop( ) { digitalWrite(12, HIGH); // Turn the LED ON delay(2000); // Wait for a two second digitalWrite(12, LOW); // Turn the LED OFF delay(2000); // Wait for a two second }
  • 18. Activity 1.3 Type : Team of 2 Duration : 15 Minutes Modify the program to display the LED state every 2 sec on Serial Monitor.
  • 19. Serial communication with ArduinoWhat is serial communication ?
  • 20. The word serial means "one after the other."  What is Baud rate ? Number of symbols transferred per sec
  • 21. Serial Display Functions  Serial.begin(baud_rate) //baud rate(characters per sec) between computer and board is typically 9600 although you can work with other speeds by changing settings of COM Port  Serial.print(value), //value could be any data and even string  Serial.println(value) //print in new line
  • 22. Eg. Print INDIA on serial monitor void setup( ) { Serial.begin(9600);// 9600 is default baud rate of serial com port of a computer } void loop( ) { Serial.println(“INDIA”); // Send the value “INDIA” }
  • 24. /*….. Modify the program to blink on pin12 and display the LED state every 2 sec on Serial Monitor…..*/ void setup( ) { pinMode(12, OUTPUT); //Initialize the digital pin as output Serial.begin(9600); } void loop( ) { digitalWrite(12, HIGH); // Turn the LED ON Serial.println(“ON”); // Send the value “ON” delay(2000); // Wait for a second digitalWrite(12, LOW); // Turn the LED OFF Serial.println(“OFF”); // Send the value “OFF” delay(2000); // Wait for a second }
  • 25. Activity 1.4 Type : Team of 2 Duration : 25 Minutes Modify the program to blink 10 times per loop iteration and display no. of loop iterations on serial monitor.
  • 26. Looping Concept //for loop concept Syntax – for(initialization ; condition; increment / decrement) { //code which you want to perform } Example : to print number from 1 to 10 for(int i=1;i<=10;i++) { Serial.println(i); Serial.println(“INDIA”); }
  • 27. long int Count=0; void setup( ) { pinMode(12, OUTPUT); //Initialize the digital pin as output Serial.begin(9600); Serial.println(“count of iterations running are: “); } void loop( ) { for (int i=1;i<=10;i++) { Serial.println(i); digitalWrite(12, HIGH); Serial.println(“ON”); delay(1000); // wait for a second digitalWrite(12, LOW);  Serial.println(“OFF”); delay(1000); // wait for a second } Count++;  Serial.print(“Iteration:”); Serial.println(Count); }
  • 28. Condition Statements if(Condition 1) { //Statements } if(Condition 2) { //Statements } else { //Statements }
  • 29. Topic Learning Outcomes At the end of the topic the student should be able to 1. Explain the importance of platform based development 2. Use looping, delay and conditioning concepts in developing a program on Arduino environment.