SlideShare a Scribd company logo
Arduino
THE OPEN-SOURCE ELECTRONICS PROTOTYPING PLATFORM
Introduction to …
Content
What is Arduino?
Arduino Uno.
HC-05 Bluetooth Module.
Relay Module.
Arduino Programming.
Building Circuits.
Conclusion.
What is Arduino?
The Arduino is an …
 single-board microcontroller, intended to make the application of interactive objects
or environments more accessible .
Designed to make the process of using electronics multidisciplinary projects more
accessible.
Arduino can…
Sense the environment by receiving input from variety of sensors.
Affect its surroundings by controlling lights, motors, and other actuators.
Arduino Boards:
MegaUNO LilyPad
Arduino BT Arduino Nano Arduino Mini
Arduino Uno
Introduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to Iot
Setting Up IDE
Check out: http://arduino.cc/en/Guide/HomePage
1. Download & install the Arduino environment (IDE).
2. Connect the board to your computer via the USB cable.
3. If needed, install the drivers.
4. Launch the Arduino IDE.
5. Select your board.
6. Select your serial port.
7. Open the blink example .
8. Upload the program.
HC-05 Bluetooth Module
Introduction to Arduino and Hands on to Iot
Circuit Connection
Relay Module
Circuit Connection
Programming Environment
The Arduino Uno can be programmed with the Arduino software IDE(integrated
development environment) .
The Atmega328 on the Arduino Uno comes preburned with a Bootloader that allows
you to upload new code to it without the use of an external hardware programmer.
You can also bypass the Bootloader and program the microcontroller through the
ICSP (In-Circuit Serial Programming) header.
Arduino IDE works on windows , linux as well as Mac lion X platforms.
Arduino IDE
Arduino Coding.
Data Types and operators
Integer: used with integer variables with value between
2147483647 and -2147483647.
Ex: int x=1200;
Character: used with single character, represent value from -
127 to 128.
Ex. char c=‘r’;
Long: Long variables are extended size variables for number
storage, and store 32 bits (4 bytes), from -2,147,483,648 to
2,147,483,647.
Ex. long u=199203;
Floating-point numbers can be as large as 3.4028235E+38
and as low as -3.4028235E+38. They are stored as 32 bits (4
bytes) of information.
Ex. float num=1.291; [The same as double type]
Statement and operators:
Statement represents a command, it ends with ;
Ex:
int x;
x=13;
Operators are symbols that used to indicate a specific function:
- Math operators: [+,-,*,/,%,^]
- Logic operators: [==, !=, &&, ||]
- Comparison operators: [==, >, <, !=, <=, >=]
Syntax:
; Semicolon, {} curly braces, //single line comment,
/*Multi-line comments*/
Statement and operators:
Compound Operators:
++ (increment)
-- (decrement)
+= (compound addition)
-= (compound subtraction)
*= (compound multiplication)
/= (compound division)
Control statements:
If Conditioning:
if(condition)
{
statements-1;
…
Statement-N;
}
else if(condition2)
{
Statements;
}
Else{statements;}
Control statements:
Switch case:
switch (var) {
case 1:
//do something when var equals 1
break;
case 2:
//do something when var equals 2
break;
default:
// if nothing else matches, do the default
// default is optional
}
Loop statements:
Do… while:
do
{
Statements;
}
while(condition); // the statements are run at least once.
While:
While(condition)
{statements;}
for
for (int i=0; i <= val; i++){
statements;
}
Use break statement to stop the loop whenever needed.
Code structure:
Void setup()
{
//Used to indicate the initial values of system on starting.
}
Void loop()
{
//Contains the statements that will run whenever the system is powered after setup.
}
Input and output:
Led blinking example:
Used functions:
pinMode();
digitalRead();
digitalWrite();
delay(time_ms);
other functions:
analogRead();
analogWrite();//PWM.
Lets Build Circuit
Introduction to Arduino and Hands on to Iot
Coding
Final thoughts
Arduino is a cheap and versatile open source prototyping environment
It is basically designed for novice , non technical people
Programming language is simple
Arduino has a terrific community support and documentation
Technical people can use Arduino for testing sensors or other
prototyping work
Introduction to Arduino and Hands on to Iot

More Related Content

PPTX
Arduino and c programming
PPTX
Arduino : how to get started
PPTX
Arduino slides
PPS
What is Arduino ?
PPTX
Introduction to Arduino Microcontroller
PPT
Arduino presentation by_warishusain
PDF
Arduino- Serial communication
PPTX
Introduction to Arduino
Arduino and c programming
Arduino : how to get started
Arduino slides
What is Arduino ?
Introduction to Arduino Microcontroller
Arduino presentation by_warishusain
Arduino- Serial communication
Introduction to Arduino

What's hot (20)

PPTX
Introduction to Arduino Hardware and Programming
PPTX
Wi-Fi Esp8266 nodemcu
PPTX
Arduino Microcontroller
PPT
Arduino
PPTX
Introduction to Arduino.pptx
PPTX
Introduction to Arduino
PPTX
Nodemcu - introduction
PPTX
Arduino
PPS
Arduino Uno Pin Description
PDF
Esp8266 basics
PPTX
Lesson sample introduction to arduino
PPTX
Arduino course
PPTX
Presentation on Raspberry pi
PDF
Introduction of Arduino Uno
PPTX
Arduino
PPTX
Aurdino presentation
PPTX
Arduino Interfacing with different sensors and motor
PPTX
Ardui no
ODP
Intro to Hardware Programming with the Arduino Uno
Introduction to Arduino Hardware and Programming
Wi-Fi Esp8266 nodemcu
Arduino Microcontroller
Arduino
Introduction to Arduino.pptx
Introduction to Arduino
Nodemcu - introduction
Arduino
Arduino Uno Pin Description
Esp8266 basics
Lesson sample introduction to arduino
Arduino course
Presentation on Raspberry pi
Introduction of Arduino Uno
Arduino
Aurdino presentation
Arduino Interfacing with different sensors and motor
Ardui no
Intro to Hardware Programming with the Arduino Uno
Ad

Similar to Introduction to Arduino and Hands on to Iot (20)

PPT
Arduino_CSE ece ppt for working and principal of arduino.ppt
PPSX
Arduino by yogesh t s'
PPT
Arduino Platform with C programming.
PDF
Arduino reference
PDF
PPTX
Introduction to the Arduino
PDF
The IoT Academy IoT Training Arduino Part 3 programming
PPTX
arduino
PPTX
Ch_2_8,9,10.pptx
PPTX
Introduction to arduino
PPTX
Introduction to Arduino
PPTX
introductiontoarduino-130219180141-phpapp01.pptx
PDF
arduino
PDF
Arduino experimenters guide ARDX
PDF
introductiontoarduino-130219180141-phpapp01.pdf
PDF
Ardx experimenters-guide-web
PPTX
PDF
Arduino experimenters guide hq
PDF
Ardx eg-spar-web-rev10
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino by yogesh t s'
Arduino Platform with C programming.
Arduino reference
Introduction to the Arduino
The IoT Academy IoT Training Arduino Part 3 programming
arduino
Ch_2_8,9,10.pptx
Introduction to arduino
Introduction to Arduino
introductiontoarduino-130219180141-phpapp01.pptx
arduino
Arduino experimenters guide ARDX
introductiontoarduino-130219180141-phpapp01.pdf
Ardx experimenters-guide-web
Arduino experimenters guide hq
Ardx eg-spar-web-rev10
Ad

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectroscopy.pptx food analysis technology
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Understanding_Digital_Forensics_Presentation.pptx
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Empathic Computing: Creating Shared Understanding
Reach Out and Touch Someone: Haptics and Empathic Computing
sap open course for s4hana steps from ECC to s4
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Chapter 3 Spatial Domain Image Processing.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Programs and apps: productivity, graphics, security and other tools
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”

Introduction to Arduino and Hands on to Iot

  • 1. Arduino THE OPEN-SOURCE ELECTRONICS PROTOTYPING PLATFORM Introduction to …
  • 2. Content What is Arduino? Arduino Uno. HC-05 Bluetooth Module. Relay Module. Arduino Programming. Building Circuits. Conclusion.
  • 4. The Arduino is an …  single-board microcontroller, intended to make the application of interactive objects or environments more accessible . Designed to make the process of using electronics multidisciplinary projects more accessible.
  • 5. Arduino can… Sense the environment by receiving input from variety of sensors. Affect its surroundings by controlling lights, motors, and other actuators.
  • 6. Arduino Boards: MegaUNO LilyPad Arduino BT Arduino Nano Arduino Mini
  • 10. Setting Up IDE Check out: http://arduino.cc/en/Guide/HomePage 1. Download & install the Arduino environment (IDE). 2. Connect the board to your computer via the USB cable. 3. If needed, install the drivers. 4. Launch the Arduino IDE. 5. Select your board. 6. Select your serial port. 7. Open the blink example . 8. Upload the program.
  • 16. Programming Environment The Arduino Uno can be programmed with the Arduino software IDE(integrated development environment) . The Atmega328 on the Arduino Uno comes preburned with a Bootloader that allows you to upload new code to it without the use of an external hardware programmer. You can also bypass the Bootloader and program the microcontroller through the ICSP (In-Circuit Serial Programming) header. Arduino IDE works on windows , linux as well as Mac lion X platforms.
  • 19. Data Types and operators Integer: used with integer variables with value between 2147483647 and -2147483647. Ex: int x=1200; Character: used with single character, represent value from - 127 to 128. Ex. char c=‘r’; Long: Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647. Ex. long u=199203; Floating-point numbers can be as large as 3.4028235E+38 and as low as -3.4028235E+38. They are stored as 32 bits (4 bytes) of information. Ex. float num=1.291; [The same as double type]
  • 20. Statement and operators: Statement represents a command, it ends with ; Ex: int x; x=13; Operators are symbols that used to indicate a specific function: - Math operators: [+,-,*,/,%,^] - Logic operators: [==, !=, &&, ||] - Comparison operators: [==, >, <, !=, <=, >=] Syntax: ; Semicolon, {} curly braces, //single line comment, /*Multi-line comments*/
  • 21. Statement and operators: Compound Operators: ++ (increment) -- (decrement) += (compound addition) -= (compound subtraction) *= (compound multiplication) /= (compound division)
  • 23. Control statements: Switch case: switch (var) { case 1: //do something when var equals 1 break; case 2: //do something when var equals 2 break; default: // if nothing else matches, do the default // default is optional }
  • 24. Loop statements: Do… while: do { Statements; } while(condition); // the statements are run at least once. While: While(condition) {statements;} for for (int i=0; i <= val; i++){ statements; } Use break statement to stop the loop whenever needed.
  • 25. Code structure: Void setup() { //Used to indicate the initial values of system on starting. } Void loop() { //Contains the statements that will run whenever the system is powered after setup. }
  • 26. Input and output: Led blinking example: Used functions: pinMode(); digitalRead(); digitalWrite(); delay(time_ms); other functions: analogRead(); analogWrite();//PWM.
  • 30. Final thoughts Arduino is a cheap and versatile open source prototyping environment It is basically designed for novice , non technical people Programming language is simple Arduino has a terrific community support and documentation Technical people can use Arduino for testing sensors or other prototyping work