SlideShare a Scribd company logo
Arduino
The open-source electronics prototyping
platform
By,
Yogesh T S,
tsyogesh40@gmail.com,
IT Dept,
Velammal College of Engineering and Technology.
Contents
• What is Microcontroller
• What is an Arduino
• History of arduino
• Programming environment
• Advantage of arduino
• Features of arduino
• Applications of arduino
• Arduino v/s Nodemcu
Famous microcontroller
manufacturers are MicroChip,
Atmel, Intel, Analog devices,
and more.
[list]
It is a micro-computer. As any
computer it has internal CPU,
RAM, IOs interface.
It is used for control purposes,
and for data analysis.
Micro-Controller
What is Arduino?
• “Arduino is an open-source physical computing
platform based on a simple i/o board and a
development environment that implements the
Processing / Wiring language. Arduino can be
used to develop stand-alone interactive objects
or can be connected to software on your
computer.“ ( www.arduino.cc, 2006 )
Arduino is a platform
• A physical Input / Output board (I/O) with a programmable
Integrated Circuit (IC).
Arduino boards
UNO Mega LilyPad
Arduino BT Arduino Nano Arduino Mini
Arduino UNO:Digital output
~: PWM.
0,1: Serial port.
In circuit Serial
programming
Atmel
MicroControlle
r
Analog input.
Power Supply
USB port
Power input
Why Arduino?
• It can run standalone from a computer (chip is
programmable) and it has memory (a small
amount).
• It can work with both Digital and Analog
electronic signals. Sensors and Actuators.
• You can make cool stuff! Some people are even
making simple robots, and we all know robots
are just cool. 
Advantages of Aurdino
Open source
Simplified and user-friendly programming language
No additional programmer/burner hardware
required for programming board
Portable
Low power consumption
Features of Arduino UN0
Microcontroller ATmega328
Operating Voltage 5V and 3.3 V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328) of which 0.5 KB used by
Bootloader
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz
Arduino by yogesh t s'
Arduino by yogesh t s'
Arduino Coding.
Let’s start with Arduino sketch
Arduino IDE
• Also including an Integrated Development
Environment (IDE) for programming.
• The language itself is based in C but is
largely modeled upon the
www.processing.org language.
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]
Data Types and operators
You may need to know about these typed: Array, Boolean, byte, etc. here.
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 addiation)
-= (compound subtraction)
*= (compound multiplication)
/= (compound division)
Statement and operators:
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
}
Control 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;
}
Loop statements:
Use break statement to stop the loop whenever needed.
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.
Code structure:
Led blinking example:
Used functions:
pinMode();
digitalRead();
digitalWrite();
delay(time_ms);
other functions:
analogRead();
analogWrite();//PWM.
Input and output:
Code Structure: Header
Header provides information
Example 1
Code Structure: setup function
setup function is executed
only once at the start
Example 1
Code Structure: loop function
loop function is
repeated indefinitely
Example 1
Code
Digital I/O Functions:
pinMode
digitalWrite
digitalRead
pinMode(13, Output)
prepare pin 13 for
outputs of voltage
Example 1
Code
digitalWrite(13, HIGH)
Sets pin 13 to a voltage
that
means “on”
Digital I/O Functions:
pinMode
digitalWrite
digitalRead
Example 1
Code
Digital I/O Functions:
pinMode
digitalWrite
digitalRead
delay(1000);
Tells microcontroller to
do nothing for 1000 ms =
1 s
Example 1
Code
digitalWrite(13, LOW)
Sets pin 13 to voltage
that means “off”
Digital I/O Functions:
pinMode
digitalWrite
digitalRead
Example 1
The connections
Example 1
Upload a program
• At this stage we just programmed the LED to blink on and off at a
set time interval.
• Press the reset button on the board and then click ‘Upload to I/O
board’ in the IDE. If all goes well lights should flicker on the board
and the IDE will confirm success.
NodeMCU
ESP8266 dev board
Arduino by yogesh t s'
ESP8266
ESP8266
• 32-bit RISC CPU: Tensilica Xtensa LX106 running at
80 MHz
• 64 KiB of instruction RAM, 96 KiB of data RAM
• External QSPI flash - 512 KiB to 4 MiB
• IEEE 802.11 b/g/n Wi-Fi
• WEP or WPA/WPA2 authentication, or open networks
• 16 GPIO pins
• SPI, I²C,
• I²S interfaces with DMA (sharing pins with GPIO)
• UART on dedicated pins, plus a transmit-only UART can be
enabled on GPIO2
• 1x10-bit ADC
• 3xPWM
NodeMCU
• Official NodeMCU firmware – LUA
• Micropython – Python 3
• Espruino - Javascript
• Arduino
• Official ESP 8266 SDK
• Adafruit etc.
Docs - http://www.nodemcu.com/docs/
Tools
• Binary firmware
• http://frightanic.com/nodemcu-custom-build/
• NodeMCU Flasher
• https://github.com/nodemcu/nodemcu-flasher
• IDE – ESPlorer
• https://github.com/4refr0nt/ESPlorer
Arduino by yogesh t s'
Arduino by yogesh t s'

More Related Content

What's hot (20)

Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likhar
Shivnaresh Likhar
 
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
DIPAN GHOSH
 
protection on lineman while working on transmission line report
 protection on lineman while working on transmission line report protection on lineman while working on transmission line report
protection on lineman while working on transmission line report
Ravi Phadtare
 
Arduino
ArduinoArduino
Arduino
Geet Patel
 
Automatic room light controller with visible counter
Automatic room light controller with visible counterAutomatic room light controller with visible counter
Automatic room light controller with visible counter
Mafaz Ahmed
 
How to measure frequency and duty cycle using arduino
How to measure frequency and duty cycle using  arduinoHow to measure frequency and duty cycle using  arduino
How to measure frequency and duty cycle using arduino
Sagar Srivastav
 
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Jonathan Ruiz de Garibay
 
Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015
Hafid Moujane
 
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
Prasant Kumar
 
Visitor counter
Visitor counterVisitor counter
Visitor counter
Anjuman Meman
 
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Sayan Seth
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
ABHISHEKJAISWAL282
 
Analog to Digital Conversion Using Microcontroller Education Boards
Analog to Digital Conversion Using Microcontroller Education BoardsAnalog to Digital Conversion Using Microcontroller Education Boards
Analog to Digital Conversion Using Microcontroller Education Boards
Kyle VanDruten
 
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (
Dhruwank Vankawala
 
Minor Project Report: Automatic Door Control System
Minor Project Report: Automatic Door Control SystemMinor Project Report: Automatic Door Control System
Minor Project Report: Automatic Door Control System
Saban Kumar K.C.
 
Bidirectional visitor counter & home automation by Jitendra Dhaka
Bidirectional visitor counter & home automation by Jitendra DhakaBidirectional visitor counter & home automation by Jitendra Dhaka
Bidirectional visitor counter & home automation by Jitendra Dhaka
NIT srinagar
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
Anurag Alaria
 
Human body temperature sensed automatic door opening system
Human body temperature sensed automatic door opening systemHuman body temperature sensed automatic door opening system
Human body temperature sensed automatic door opening system
Bhumika PATEL
 
Arduino_Project_Report
Arduino_Project_ReportArduino_Project_Report
Arduino_Project_Report
Jacob McCormick
 
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ajit kumar singh
 
Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likhar
Shivnaresh Likhar
 
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
DIPAN GHOSH
 
protection on lineman while working on transmission line report
 protection on lineman while working on transmission line report protection on lineman while working on transmission line report
protection on lineman while working on transmission line report
Ravi Phadtare
 
Automatic room light controller with visible counter
Automatic room light controller with visible counterAutomatic room light controller with visible counter
Automatic room light controller with visible counter
Mafaz Ahmed
 
How to measure frequency and duty cycle using arduino
How to measure frequency and duty cycle using  arduinoHow to measure frequency and duty cycle using  arduino
How to measure frequency and duty cycle using arduino
Sagar Srivastav
 
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Jonathan Ruiz de Garibay
 
Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015
Hafid Moujane
 
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
Prasant Kumar
 
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Sayan Seth
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
ABHISHEKJAISWAL282
 
Analog to Digital Conversion Using Microcontroller Education Boards
Analog to Digital Conversion Using Microcontroller Education BoardsAnalog to Digital Conversion Using Microcontroller Education Boards
Analog to Digital Conversion Using Microcontroller Education Boards
Kyle VanDruten
 
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (
Dhruwank Vankawala
 
Minor Project Report: Automatic Door Control System
Minor Project Report: Automatic Door Control SystemMinor Project Report: Automatic Door Control System
Minor Project Report: Automatic Door Control System
Saban Kumar K.C.
 
Bidirectional visitor counter & home automation by Jitendra Dhaka
Bidirectional visitor counter & home automation by Jitendra DhakaBidirectional visitor counter & home automation by Jitendra Dhaka
Bidirectional visitor counter & home automation by Jitendra Dhaka
NIT srinagar
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
Anurag Alaria
 
Human body temperature sensed automatic door opening system
Human body temperature sensed automatic door opening systemHuman body temperature sensed automatic door opening system
Human body temperature sensed automatic door opening system
Bhumika PATEL
 
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ajit kumar singh
 

Viewers also liked (20)

Stamford International University IT Orientation 3/2016
Stamford International University IT Orientation 3/2016Stamford International University IT Orientation 3/2016
Stamford International University IT Orientation 3/2016
Mintra Ruensuk
 
Bab 10 sni 6
Bab 10 sni 6Bab 10 sni 6
Bab 10 sni 6
Putra Sanubari
 
1060312綠島油污染事件清污作業執行情形
1060312綠島油污染事件清污作業執行情形1060312綠島油污染事件清污作業執行情形
1060312綠島油污染事件清污作業執行情形
epaslideshare
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the Arduino
Eoin Brazil
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
Karel čapek
Karel čapekKarel čapek
Karel čapek
Roman Věžník
 
Havran
HavranHavran
Havran
Roman Věžník
 
Arduino Introduction by coopermaa
Arduino Introduction by coopermaaArduino Introduction by coopermaa
Arduino Introduction by coopermaa
馬 萬圳
 
Kytice
KyticeKytice
Kytice
Roman Věžník
 
Projection Mapping with the Raspberry Pi
Projection Mapping with the Raspberry PiProjection Mapping with the Raspberry Pi
Projection Mapping with the Raspberry Pi
FITC
 
IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3
Mohammad Qasim Malik
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
Anija Nair
 
Les pratiques du contrôle de gestion face au changement
Les pratiques du contrôle de gestion face au changementLes pratiques du contrôle de gestion face au changement
Les pratiques du contrôle de gestion face au changement
Riadh Aissa Mohamed
 
Creative Critical Reflection
Creative Critical ReflectionCreative Critical Reflection
Creative Critical Reflection
shifa usman
 
Keskmine brutokuupalk Eestis, Lätis, Leedus ja Soomes
Keskmine brutokuupalk Eestis, Lätis, Leedus ja SoomesKeskmine brutokuupalk Eestis, Lätis, Leedus ja Soomes
Keskmine brutokuupalk Eestis, Lätis, Leedus ja Soomes
Kadri Seeder
 
Arduino (terminado)
Arduino (terminado)Arduino (terminado)
Arduino (terminado)
Sergio Serrano Calviño
 
Arduino arduino boardnano
Arduino   arduino boardnanoArduino   arduino boardnano
Arduino arduino boardnano
clickengenharia
 
Arduino nanomanual23
Arduino nanomanual23Arduino nanomanual23
Arduino nanomanual23
clickengenharia
 
Pengantar Raspberry Pi
Pengantar Raspberry PiPengantar Raspberry Pi
Pengantar Raspberry Pi
Nanra Sukedy
 
Stamford International University IT Orientation 3/2016
Stamford International University IT Orientation 3/2016Stamford International University IT Orientation 3/2016
Stamford International University IT Orientation 3/2016
Mintra Ruensuk
 
1060312綠島油污染事件清污作業執行情形
1060312綠島油污染事件清污作業執行情形1060312綠島油污染事件清污作業執行情形
1060312綠島油污染事件清污作業執行情形
epaslideshare
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the Arduino
Eoin Brazil
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
Arduino Introduction by coopermaa
Arduino Introduction by coopermaaArduino Introduction by coopermaa
Arduino Introduction by coopermaa
馬 萬圳
 
Projection Mapping with the Raspberry Pi
Projection Mapping with the Raspberry PiProjection Mapping with the Raspberry Pi
Projection Mapping with the Raspberry Pi
FITC
 
IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3
Mohammad Qasim Malik
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 
Les pratiques du contrôle de gestion face au changement
Les pratiques du contrôle de gestion face au changementLes pratiques du contrôle de gestion face au changement
Les pratiques du contrôle de gestion face au changement
Riadh Aissa Mohamed
 
Creative Critical Reflection
Creative Critical ReflectionCreative Critical Reflection
Creative Critical Reflection
shifa usman
 
Keskmine brutokuupalk Eestis, Lätis, Leedus ja Soomes
Keskmine brutokuupalk Eestis, Lätis, Leedus ja SoomesKeskmine brutokuupalk Eestis, Lätis, Leedus ja Soomes
Keskmine brutokuupalk Eestis, Lätis, Leedus ja Soomes
Kadri Seeder
 
Arduino arduino boardnano
Arduino   arduino boardnanoArduino   arduino boardnano
Arduino arduino boardnano
clickengenharia
 
Pengantar Raspberry Pi
Pengantar Raspberry PiPengantar Raspberry Pi
Pengantar Raspberry Pi
Nanra Sukedy
 
Ad

Similar to Arduino by yogesh t s' (20)

Arduino Platform with C programming.
Arduino Platform with C programming.Arduino Platform with C programming.
Arduino Platform with C programming.
Govind Jha
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdf
HebaEng
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
Md. Nahidul Islam
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
Wingston
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
baabtra.com - No. 1 supplier of quality freshers
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
LITS IT Ltd,LASRC.SPACE,SAWDAGOR BD,FREELANCE BD,iREV,BD LAW ACADEMY,SMART AVI,HEA,HFSAC LTD.
 
Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docx
Ajay578679
 
Arduino
ArduinoArduino
Arduino
Apu Ghosh
 
arduino
arduinoarduino
arduino
murbz
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
MasudurRahmanSourav
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
SAURABHKUMAR892774
 
Arduino
ArduinoArduino
Arduino
Jerin John
 
Unit 1 Introduction to Arduino BOARD.pptx
Unit 1 Introduction to Arduino BOARD.pptxUnit 1 Introduction to Arduino BOARD.pptx
Unit 1 Introduction to Arduino BOARD.pptx
Harshal Vaidya
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
shivagoud45
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Arduino experimenters guide ARDX
Arduino experimenters guide ARDXArduino experimenters guide ARDX
Arduino experimenters guide ARDX
Johnny Parrales
 
Introduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to IotIntroduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to Iot
Sachin S
 
Arduino experimenters guide hq
Arduino experimenters guide hqArduino experimenters guide hq
Arduino experimenters guide hq
Andreis Santos
 
introductiontoarduino-130219180141-phpapp01.pptx
introductiontoarduino-130219180141-phpapp01.pptxintroductiontoarduino-130219180141-phpapp01.pptx
introductiontoarduino-130219180141-phpapp01.pptx
BEVARAVASUDEVAAP1813
 
Introduction To Arduino-converted for s.pptx
Introduction To Arduino-converted for s.pptxIntroduction To Arduino-converted for s.pptx
Introduction To Arduino-converted for s.pptx
rtnmsn
 
Arduino Platform with C programming.
Arduino Platform with C programming.Arduino Platform with C programming.
Arduino Platform with C programming.
Govind Jha
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdf
HebaEng
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
Wingston
 
Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docx
Ajay578679
 
arduino
arduinoarduino
arduino
murbz
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
SAURABHKUMAR892774
 
Unit 1 Introduction to Arduino BOARD.pptx
Unit 1 Introduction to Arduino BOARD.pptxUnit 1 Introduction to Arduino BOARD.pptx
Unit 1 Introduction to Arduino BOARD.pptx
Harshal Vaidya
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
shivagoud45
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Arduino experimenters guide ARDX
Arduino experimenters guide ARDXArduino experimenters guide ARDX
Arduino experimenters guide ARDX
Johnny Parrales
 
Introduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to IotIntroduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to Iot
Sachin S
 
Arduino experimenters guide hq
Arduino experimenters guide hqArduino experimenters guide hq
Arduino experimenters guide hq
Andreis Santos
 
introductiontoarduino-130219180141-phpapp01.pptx
introductiontoarduino-130219180141-phpapp01.pptxintroductiontoarduino-130219180141-phpapp01.pptx
introductiontoarduino-130219180141-phpapp01.pptx
BEVARAVASUDEVAAP1813
 
Introduction To Arduino-converted for s.pptx
Introduction To Arduino-converted for s.pptxIntroduction To Arduino-converted for s.pptx
Introduction To Arduino-converted for s.pptx
rtnmsn
 
Ad

Recently uploaded (20)

Pruebas y Solucion de problemas empresariales en redes de Fibra Optica
Pruebas y Solucion de problemas empresariales en redes de Fibra OpticaPruebas y Solucion de problemas empresariales en redes de Fibra Optica
Pruebas y Solucion de problemas empresariales en redes de Fibra Optica
OmarAlfredoDelCastil
 
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCHUNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
Sridhar191373
 
Application Security and Secure Software Development Lifecycle
Application  Security and Secure Software Development LifecycleApplication  Security and Secure Software Development Lifecycle
Application Security and Secure Software Development Lifecycle
DrKavithaP1
 
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her IndustryTesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia
 
Structural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptxStructural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptx
gunjalsachin
 
UNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power SystemUNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power System
Sridhar191373
 
Webinar On Steel Melting IIF of steel for rdso
Webinar  On Steel  Melting IIF of steel for rdsoWebinar  On Steel  Melting IIF of steel for rdso
Webinar On Steel Melting IIF of steel for rdso
KapilParyani3
 
Highway Engineering - Pavement materials
Highway Engineering - Pavement materialsHighway Engineering - Pavement materials
Highway Engineering - Pavement materials
AmrutaBhosale9
 
Electrical and Electronics Engineering: An International Journal (ELELIJ)
Electrical and Electronics Engineering: An International Journal (ELELIJ)Electrical and Electronics Engineering: An International Journal (ELELIJ)
Electrical and Electronics Engineering: An International Journal (ELELIJ)
elelijjournal653
 
Proposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor RuleProposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor Rule
AlvaroLinero2
 
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
RishabhGupta578788
 
Software Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha TasnuvaSoftware Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha Tasnuva
tanishatasnuva76
 
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
BeHappy728244
 
UNIT-1-PPT-Introduction about Power System Operation and Control
UNIT-1-PPT-Introduction about Power System Operation and ControlUNIT-1-PPT-Introduction about Power System Operation and Control
UNIT-1-PPT-Introduction about Power System Operation and Control
Sridhar191373
 
Influence line diagram in a robust model
Influence line diagram in a robust modelInfluence line diagram in a robust model
Influence line diagram in a robust model
ParthaSengupta26
 
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
ManiMaran230751
 
ISO 10121-Flat Sheet Media-Catalouge-Final.pdf
ISO 10121-Flat Sheet Media-Catalouge-Final.pdfISO 10121-Flat Sheet Media-Catalouge-Final.pdf
ISO 10121-Flat Sheet Media-Catalouge-Final.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
What is dbms architecture, components of dbms architecture and types of dbms ...
What is dbms architecture, components of dbms architecture and types of dbms ...What is dbms architecture, components of dbms architecture and types of dbms ...
What is dbms architecture, components of dbms architecture and types of dbms ...
cyhuutjdoazdwrnubt
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning ModelEnhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Pruebas y Solucion de problemas empresariales en redes de Fibra Optica
Pruebas y Solucion de problemas empresariales en redes de Fibra OpticaPruebas y Solucion de problemas empresariales en redes de Fibra Optica
Pruebas y Solucion de problemas empresariales en redes de Fibra Optica
OmarAlfredoDelCastil
 
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCHUNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
Sridhar191373
 
Application Security and Secure Software Development Lifecycle
Application  Security and Secure Software Development LifecycleApplication  Security and Secure Software Development Lifecycle
Application Security and Secure Software Development Lifecycle
DrKavithaP1
 
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her IndustryTesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia
 
Structural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptxStructural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptx
gunjalsachin
 
UNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power SystemUNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power System
Sridhar191373
 
Webinar On Steel Melting IIF of steel for rdso
Webinar  On Steel  Melting IIF of steel for rdsoWebinar  On Steel  Melting IIF of steel for rdso
Webinar On Steel Melting IIF of steel for rdso
KapilParyani3
 
Highway Engineering - Pavement materials
Highway Engineering - Pavement materialsHighway Engineering - Pavement materials
Highway Engineering - Pavement materials
AmrutaBhosale9
 
Electrical and Electronics Engineering: An International Journal (ELELIJ)
Electrical and Electronics Engineering: An International Journal (ELELIJ)Electrical and Electronics Engineering: An International Journal (ELELIJ)
Electrical and Electronics Engineering: An International Journal (ELELIJ)
elelijjournal653
 
Proposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor RuleProposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor Rule
AlvaroLinero2
 
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
RishabhGupta578788
 
Software Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha TasnuvaSoftware Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha Tasnuva
tanishatasnuva76
 
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
BeHappy728244
 
UNIT-1-PPT-Introduction about Power System Operation and Control
UNIT-1-PPT-Introduction about Power System Operation and ControlUNIT-1-PPT-Introduction about Power System Operation and Control
UNIT-1-PPT-Introduction about Power System Operation and Control
Sridhar191373
 
Influence line diagram in a robust model
Influence line diagram in a robust modelInfluence line diagram in a robust model
Influence line diagram in a robust model
ParthaSengupta26
 
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
ManiMaran230751
 
What is dbms architecture, components of dbms architecture and types of dbms ...
What is dbms architecture, components of dbms architecture and types of dbms ...What is dbms architecture, components of dbms architecture and types of dbms ...
What is dbms architecture, components of dbms architecture and types of dbms ...
cyhuutjdoazdwrnubt
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning ModelEnhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 

Arduino by yogesh t s'

  • 1. Arduino The open-source electronics prototyping platform By, Yogesh T S, [email protected], IT Dept, Velammal College of Engineering and Technology.
  • 2. Contents • What is Microcontroller • What is an Arduino • History of arduino • Programming environment • Advantage of arduino • Features of arduino • Applications of arduino • Arduino v/s Nodemcu
  • 3. Famous microcontroller manufacturers are MicroChip, Atmel, Intel, Analog devices, and more. [list] It is a micro-computer. As any computer it has internal CPU, RAM, IOs interface. It is used for control purposes, and for data analysis. Micro-Controller
  • 4. What is Arduino? • “Arduino is an open-source physical computing platform based on a simple i/o board and a development environment that implements the Processing / Wiring language. Arduino can be used to develop stand-alone interactive objects or can be connected to software on your computer.“ ( www.arduino.cc, 2006 )
  • 5. Arduino is a platform • A physical Input / Output board (I/O) with a programmable Integrated Circuit (IC).
  • 6. Arduino boards UNO Mega LilyPad Arduino BT Arduino Nano Arduino Mini
  • 7. Arduino UNO:Digital output ~: PWM. 0,1: Serial port. In circuit Serial programming Atmel MicroControlle r Analog input. Power Supply USB port Power input
  • 8. Why Arduino? • It can run standalone from a computer (chip is programmable) and it has memory (a small amount). • It can work with both Digital and Analog electronic signals. Sensors and Actuators. • You can make cool stuff! Some people are even making simple robots, and we all know robots are just cool. 
  • 9. Advantages of Aurdino Open source Simplified and user-friendly programming language No additional programmer/burner hardware required for programming board Portable Low power consumption
  • 10. Features of Arduino UN0 Microcontroller ATmega328 Operating Voltage 5V and 3.3 V Input Voltage (recommended) 7-12V Input Voltage (limits) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA Flash Memory 32 KB (ATmega328) of which 0.5 KB used by Bootloader SRAM 2 KB (ATmega328) EEPROM 1 KB (ATmega328) Clock Speed 16 MHz
  • 13. Arduino Coding. Let’s start with Arduino sketch
  • 14. Arduino IDE • Also including an Integrated Development Environment (IDE) for programming. • The language itself is based in C but is largely modeled upon the www.processing.org language.
  • 15. 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] Data Types and operators You may need to know about these typed: Array, Boolean, byte, etc. here.
  • 16. 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
  • 17. Compound Operators: ++ (increment) -- (decrement) += (compound addiation) -= (compound subtraction) *= (compound multiplication) /= (compound division) Statement and operators:
  • 19. 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 } Control statements:
  • 20. 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; } Loop statements: Use break statement to stop the loop whenever needed.
  • 21. 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. Code structure:
  • 22. Led blinking example: Used functions: pinMode(); digitalRead(); digitalWrite(); delay(time_ms); other functions: analogRead(); analogWrite();//PWM. Input and output:
  • 23. Code Structure: Header Header provides information Example 1
  • 24. Code Structure: setup function setup function is executed only once at the start Example 1
  • 25. Code Structure: loop function loop function is repeated indefinitely Example 1
  • 26. Code Digital I/O Functions: pinMode digitalWrite digitalRead pinMode(13, Output) prepare pin 13 for outputs of voltage Example 1
  • 27. Code digitalWrite(13, HIGH) Sets pin 13 to a voltage that means “on” Digital I/O Functions: pinMode digitalWrite digitalRead Example 1
  • 28. Code Digital I/O Functions: pinMode digitalWrite digitalRead delay(1000); Tells microcontroller to do nothing for 1000 ms = 1 s Example 1
  • 29. Code digitalWrite(13, LOW) Sets pin 13 to voltage that means “off” Digital I/O Functions: pinMode digitalWrite digitalRead Example 1
  • 31. Upload a program • At this stage we just programmed the LED to blink on and off at a set time interval. • Press the reset button on the board and then click ‘Upload to I/O board’ in the IDE. If all goes well lights should flicker on the board and the IDE will confirm success.
  • 35. ESP8266 • 32-bit RISC CPU: Tensilica Xtensa LX106 running at 80 MHz • 64 KiB of instruction RAM, 96 KiB of data RAM • External QSPI flash - 512 KiB to 4 MiB • IEEE 802.11 b/g/n Wi-Fi • WEP or WPA/WPA2 authentication, or open networks • 16 GPIO pins • SPI, I²C, • I²S interfaces with DMA (sharing pins with GPIO) • UART on dedicated pins, plus a transmit-only UART can be enabled on GPIO2 • 1x10-bit ADC • 3xPWM
  • 36. NodeMCU • Official NodeMCU firmware – LUA • Micropython – Python 3 • Espruino - Javascript • Arduino • Official ESP 8266 SDK • Adafruit etc.
  • 38. Tools • Binary firmware • http://frightanic.com/nodemcu-custom-build/ • NodeMCU Flasher • https://github.com/nodemcu/nodemcu-flasher • IDE – ESPlorer • https://github.com/4refr0nt/ESPlorer

Editor's Notes

  • #5: Available openly, free of cost for anyone Physical computing is the interaction with real world