SlideShare une entreprise Scribd logo
1  sur  40
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 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
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'

Contenu connexe

Tendances

Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharShivnaresh 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 Switch2DIPAN 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 reportRavi 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 counterMafaz 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 arduinoSagar 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 DevelopmentJonathan 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-2015Hafid 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 ArduinoABHISHEKJAISWAL282
 
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 BoardsKyle 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 SystemSaban 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 DhakaNIT srinagar
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detectionAnurag 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 systemBhumika 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
 

Tendances (20)

Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt 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
 
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
 
Arduino
ArduinoArduino
Arduino
 
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
 
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
 
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
 
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
 
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...
 
Visitor counter
Visitor counterVisitor counter
Visitor counter
 
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...
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
 
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
 
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 (
 
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
 
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
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
 
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
 
Arduino_Project_Report
Arduino_Project_ReportArduino_Project_Report
Arduino_Project_Report
 
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
 

En vedette

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/2016Mintra 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 ArduinoEoin Brazil
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduinoAhmed 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 PiFITC
 
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-3Mohammad Qasim Malik
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 
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 changementRiadh Aissa Mohamed
 
Creative Critical Reflection
Creative Critical ReflectionCreative Critical Reflection
Creative Critical Reflectionshifa 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 SoomesKadri Seeder
 
Arduino arduino boardnano
Arduino   arduino boardnanoArduino   arduino boardnano
Arduino arduino boardnanoclickengenharia
 
Pengantar Raspberry Pi
Pengantar Raspberry PiPengantar Raspberry Pi
Pengantar Raspberry PiNanra Sukedy
 

En vedette (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
 
Bab 10 sni 6
Bab 10 sni 6Bab 10 sni 6
Bab 10 sni 6
 
1060312綠島油污染事件清污作業執行情形
1060312綠島油污染事件清污作業執行情形1060312綠島油污染事件清污作業執行情形
1060312綠島油污染事件清污作業執行情形
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the Arduino
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Karel čapek
Karel čapekKarel čapek
Karel čapek
 
Havran
HavranHavran
Havran
 
Arduino Introduction by coopermaa
Arduino Introduction by coopermaaArduino Introduction by coopermaa
Arduino Introduction by coopermaa
 
Kytice
KyticeKytice
Kytice
 
Projection Mapping with the Raspberry Pi
Projection Mapping with the Raspberry PiProjection Mapping with the Raspberry Pi
Projection Mapping with the Raspberry Pi
 
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
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
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
 
Creative Critical Reflection
Creative Critical ReflectionCreative Critical Reflection
Creative Critical Reflection
 
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
 
Arduino (terminado)
Arduino (terminado)Arduino (terminado)
Arduino (terminado)
 
Arduino arduino boardnano
Arduino   arduino boardnanoArduino   arduino boardnano
Arduino arduino boardnano
 
Arduino nanomanual23
Arduino nanomanual23Arduino nanomanual23
Arduino nanomanual23
 
Pengantar Raspberry Pi
Pengantar Raspberry PiPengantar Raspberry Pi
Pengantar Raspberry Pi
 

Similaire à Arduino by yogesh t s' (20)

Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
 
Arduino course
Arduino courseArduino course
Arduino course
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
 
arduinoedit.pptx
arduinoedit.pptxarduinoedit.pptx
arduinoedit.pptx
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
What is arduino
What is arduinoWhat is arduino
What is arduino
 
Arduino: Arduino starter kit
Arduino: Arduino starter kitArduino: Arduino starter kit
Arduino: Arduino starter kit
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
 
Arduino
ArduinoArduino
Arduino
 
arduino.pdf
arduino.pdfarduino.pdf
arduino.pdf
 
Indroduction arduino
Indroduction arduinoIndroduction arduino
Indroduction arduino
 
Indroduction the arduino
Indroduction the arduinoIndroduction the arduino
Indroduction the arduino
 
Rig nitc [autosaved] (copy)
Rig nitc [autosaved] (copy)Rig nitc [autosaved] (copy)
Rig nitc [autosaved] (copy)
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advanced
 

Dernier

Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
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.pptSAURABHKUMAR892774
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxsomshekarkn64
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 

Dernier (20)

young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
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
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptx
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 

Arduino by yogesh t s'

  • 1. Arduino The open-source electronics prototyping platform By, Yogesh T S, tsyogesh40@gmail.com, 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
  • 11.
  • 12.
  • 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.
  • 33.
  • 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

Notes de l'éditeur

  1. Available openly, free of cost for anyone Physical computing is the interaction with real world