SlideShare una empresa de Scribd logo
1 de 23
Arduino Part 1
Topics:
Microcontrollers
Programming Basics: structure and
variables
Digital Output
Analog to Digital Conversion
What is a Microcontroller
• A small computer on a single chip
• containing a processor, memory, and input/output
• Typically "embedded" inside some device that they control
• A microcontroller is often small and low cost
• Examples
www.mikroe.com/chapters/view/1
What is a Development Board
• A printed circuit
board designed to
facilitate work with a
particular
microcontroller.
• Typical components include:
• power circuit
• programming interface
• basic input; usually buttons and LEDs
• I/O pins
The Arduino Development Board
Making-robots-with-arduino.pdf
The Arduino Microcontroller: Atmel
ARV Atmega 328
Making-robots-with-arduino.pdf
Specification
What is the Arduino
todbot.com/blog/bionicarduino
Getting Started
• Check out: http://arduino.cc/en/Guide/HomePage
1. Download & install the Arduino environment (IDE)
2. Connect the board to your computer via the UBS cable
3. If needed, install the drivers (not needed in lab)
4. Launch the Arduino IDE
5. Select your board
6. Select your serial port
7. Open the blink example
8. Upload the program
Try It: Connect the USB Cable
todbot.com/blog/bionicarduino
Arduino IDE
See: http://arduino.cc/en/Guide/Environment for more information
Select Serial Port and Board
Status Messages
todbot.com/blog/bionicarduino
todbot.com/blog/bionicarduino
Add an External LED to pin 13
• File > Examples > Digital > Blink
• LED’s have polarity
– Negative indicated by flat side of the housing
and a short leg
www.instructables.com
A Little Bit About Programming
• Code is case
sensitive
• Statements are
commands and
must end with a
semi-colon
• Comments follow a
// or begin with /*
and end with */
• loop and setup
Our First Program
Terminology
Digital I/0
pinMode(pin, mode)
Sets pin to either INPUT or OUTPUT
digitalRead(pin)
Reads HIGH or LOW from a pin
digitalWrite(pin, value)
Writes HIGH or LOW to a pin
Electronic stuff
Output pins can provide 40 mA of current
Writing HIGH to an input pin installs a 20KΩ pullup
www.mikroe.com/chapters/view/1
Arduino Timing
• delay(ms)
– Pauses for a few milliseconds
• delayMicroseconds(us)
– Pauses for a few microseconds
• More commands:
arduino.cc/en/Reference/HomePage
Digital? Analog?
• Digital has two values: on and off
• Analog has many (infinite) values
• Computers don’t really do analog, they quantize
• Remember the 6 analog input pins---here’s how
they work
todbot.com/blog/bionicarduino
Bits and Bytes
Variables
www3.ntu.edu.sg
Putting It Together
• Complete the sketch
(program) below.
• What output will be
generated by this program?
• What if the schematic were
changed? 
www.ladyada.net/learn/arduino
Good References
www.arduino.cc
www.ladyada.net/learn/arduino
www.EarthshineElectronics.com

Más contenido relacionado

Similar a ArduinoPart1.ppt

Arduino.pptx
Arduino.pptxArduino.pptx
Arduino.pptxAadilKk
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IOT Academy
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfAbdErrezakChahoub
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino WebinarFragiskos Fourlas
 
Arduino Workshop @ MSA University
Arduino Workshop @ MSA UniversityArduino Workshop @ MSA University
Arduino Workshop @ MSA UniversityAhmed Magdy Farid
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptansariparveen06
 
embedded-systems-for-beginners
embedded-systems-for-beginnersembedded-systems-for-beginners
embedded-systems-for-beginnersmohamed gaber
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdfHebaEng
 
Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Pawan Dubey, PhD
 
4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdfRynefelElopre2
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptxshivagoud45
 
arduino
 arduino arduino
arduinojhcid
 
Embedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontrollerEmbedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontrollerArun Kumar
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2Qtechknow
 

Similar a ArduinoPart1.ppt (20)

Arduino.pptx
Arduino.pptxArduino.pptx
Arduino.pptx
 
Arduino
ArduinoArduino
Arduino
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basics
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
 
Ardui no
Ardui no Ardui no
Ardui no
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino Webinar
 
Arduino01.pptx
Arduino01.pptxArduino01.pptx
Arduino01.pptx
 
Arduino Workshop @ MSA University
Arduino Workshop @ MSA UniversityArduino Workshop @ MSA University
Arduino Workshop @ MSA University
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
 
Arduino wk2
Arduino wk2Arduino wk2
Arduino wk2
 
embedded-systems-for-beginners
embedded-systems-for-beginnersembedded-systems-for-beginners
embedded-systems-for-beginners
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
 
Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming
 
4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf
 
arduino.pdf
arduino.pdfarduino.pdf
arduino.pdf
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
 
arduino
 arduino arduino
arduino
 
Embedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontrollerEmbedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontroller
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2
 
Arduino day
Arduino dayArduino day
Arduino day
 

Más de FreddyEspejo3

Proyecto Final de Investigación Operativa
Proyecto Final de Investigación OperativaProyecto Final de Investigación Operativa
Proyecto Final de Investigación OperativaFreddyEspejo3
 
Presentación Control Numérico Computarizado
Presentación Control Numérico ComputarizadoPresentación Control Numérico Computarizado
Presentación Control Numérico ComputarizadoFreddyEspejo3
 
tipos de sensores automotrices convencionales
tipos de sensores automotrices convencionalestipos de sensores automotrices convencionales
tipos de sensores automotrices convencionalesFreddyEspejo3
 
INTERNET DE LAS COSAS.pptx
INTERNET DE LAS COSAS.pptxINTERNET DE LAS COSAS.pptx
INTERNET DE LAS COSAS.pptxFreddyEspejo3
 
microcontroladores.ppt
microcontroladores.pptmicrocontroladores.ppt
microcontroladores.pptFreddyEspejo3
 
Microcontroladores.pptx
Microcontroladores.pptxMicrocontroladores.pptx
Microcontroladores.pptxFreddyEspejo3
 
Presentacion 1 (5).pptx
Presentacion 1 (5).pptxPresentacion 1 (5).pptx
Presentacion 1 (5).pptxFreddyEspejo3
 
tipos de textos freddy.ppt
tipos de textos freddy.ppttipos de textos freddy.ppt
tipos de textos freddy.pptFreddyEspejo3
 
CUADROS PROYECTO EDUCATIVO.ppt
CUADROS PROYECTO EDUCATIVO.pptCUADROS PROYECTO EDUCATIVO.ppt
CUADROS PROYECTO EDUCATIVO.pptFreddyEspejo3
 
TEMA I - Teoría CA - Análisis de Estado Senoidal Permanente.ppt
TEMA I - Teoría CA - Análisis de Estado Senoidal Permanente.pptTEMA I - Teoría CA - Análisis de Estado Senoidal Permanente.ppt
TEMA I - Teoría CA - Análisis de Estado Senoidal Permanente.pptFreddyEspejo3
 
DIAPOSITIVA ROBERTO & FRANZL 2020 FINAL.pptx
DIAPOSITIVA ROBERTO & FRANZL 2020 FINAL.pptxDIAPOSITIVA ROBERTO & FRANZL 2020 FINAL.pptx
DIAPOSITIVA ROBERTO & FRANZL 2020 FINAL.pptxFreddyEspejo3
 
evolucion-de-los-microprocesadores-intel-amd.ppt
evolucion-de-los-microprocesadores-intel-amd.pptevolucion-de-los-microprocesadores-intel-amd.ppt
evolucion-de-los-microprocesadores-intel-amd.pptFreddyEspejo3
 
SISTEMA DE AIRE ACONDICIONADO Y CALEFACCION.pptx
SISTEMA DE AIRE ACONDICIONADO Y CALEFACCION.pptxSISTEMA DE AIRE ACONDICIONADO Y CALEFACCION.pptx
SISTEMA DE AIRE ACONDICIONADO Y CALEFACCION.pptxFreddyEspejo3
 
02Resorteyamortiguador.pdf
02Resorteyamortiguador.pdf02Resorteyamortiguador.pdf
02Resorteyamortiguador.pdfFreddyEspejo3
 

Más de FreddyEspejo3 (20)

Proyecto Final de Investigación Operativa
Proyecto Final de Investigación OperativaProyecto Final de Investigación Operativa
Proyecto Final de Investigación Operativa
 
Presentación Control Numérico Computarizado
Presentación Control Numérico ComputarizadoPresentación Control Numérico Computarizado
Presentación Control Numérico Computarizado
 
tipos de sensores automotrices convencionales
tipos de sensores automotrices convencionalestipos de sensores automotrices convencionales
tipos de sensores automotrices convencionales
 
Tema5_BJT.ppt
Tema5_BJT.pptTema5_BJT.ppt
Tema5_BJT.ppt
 
INTERNET DE LAS COSAS.pptx
INTERNET DE LAS COSAS.pptxINTERNET DE LAS COSAS.pptx
INTERNET DE LAS COSAS.pptx
 
arduino 2.pptx
arduino 2.pptxarduino 2.pptx
arduino 2.pptx
 
CONDENSADOR.pptx
CONDENSADOR.pptxCONDENSADOR.pptx
CONDENSADOR.pptx
 
microcontroladores.ppt
microcontroladores.pptmicrocontroladores.ppt
microcontroladores.ppt
 
Microcontroladores.pptx
Microcontroladores.pptxMicrocontroladores.pptx
Microcontroladores.pptx
 
Presentacion 1 (5).pptx
Presentacion 1 (5).pptxPresentacion 1 (5).pptx
Presentacion 1 (5).pptx
 
tipos de textos freddy.ppt
tipos de textos freddy.ppttipos de textos freddy.ppt
tipos de textos freddy.ppt
 
CUADROS PROYECTO EDUCATIVO.ppt
CUADROS PROYECTO EDUCATIVO.pptCUADROS PROYECTO EDUCATIVO.ppt
CUADROS PROYECTO EDUCATIVO.ppt
 
TEMA I - Teoría CA - Análisis de Estado Senoidal Permanente.ppt
TEMA I - Teoría CA - Análisis de Estado Senoidal Permanente.pptTEMA I - Teoría CA - Análisis de Estado Senoidal Permanente.ppt
TEMA I - Teoría CA - Análisis de Estado Senoidal Permanente.ppt
 
DIAPOSITIVA ROBERTO & FRANZL 2020 FINAL.pptx
DIAPOSITIVA ROBERTO & FRANZL 2020 FINAL.pptxDIAPOSITIVA ROBERTO & FRANZL 2020 FINAL.pptx
DIAPOSITIVA ROBERTO & FRANZL 2020 FINAL.pptx
 
evolucion-de-los-microprocesadores-intel-amd.ppt
evolucion-de-los-microprocesadores-intel-amd.pptevolucion-de-los-microprocesadores-intel-amd.ppt
evolucion-de-los-microprocesadores-intel-amd.ppt
 
CNC.pptx
CNC.pptxCNC.pptx
CNC.pptx
 
CNC.pptx
CNC.pptxCNC.pptx
CNC.pptx
 
tema 5.ppt
tema 5.ppttema 5.ppt
tema 5.ppt
 
SISTEMA DE AIRE ACONDICIONADO Y CALEFACCION.pptx
SISTEMA DE AIRE ACONDICIONADO Y CALEFACCION.pptxSISTEMA DE AIRE ACONDICIONADO Y CALEFACCION.pptx
SISTEMA DE AIRE ACONDICIONADO Y CALEFACCION.pptx
 
02Resorteyamortiguador.pdf
02Resorteyamortiguador.pdf02Resorteyamortiguador.pdf
02Resorteyamortiguador.pdf
 

Último

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Último (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

ArduinoPart1.ppt