SlideShare a Scribd company logo
1 of 27
1
Microcontrollers
2
• Programmers work in the virtual world
• Machinery works in the physical world
• Microcontrollers connect the virtual and
physical world
• The inputs and outputs can be manipulated
by, and can manipulate, the physical world
Microcontrollers
3
4
Arduino is software
• An Integrated Development
Environment (IDE) for
programming
• Edit code like a word
document
• The platform creates the
“process”, compiles it, and
uploads it to the Arduino
• The language is called
‘wiring’, and is based on C
5
Arduino is a platform
• A physical Input / Output
board (I/O) with a
programmable
Integrated Circuit (IC).
6
Why Arduino?
• Open Source: anyone who wants can improve upon it
• Cheap: anyone can produce them for any price (<$15)
• Common Interface: communicates via USB
• Low Power: from USB or battery pack
• Standalone: memory allows it to run even when not
connected to a computer
7
What can it do?
• Sensors [ INPUTS ]
– Buttons, touch pads, tilt switches
– Variable resistors (e.g.. volume knob / sliders)
– Photoresistors (light sensor)
– Thermistors (temperature sensor)
– Ultrasound (distance sensor)
• Actuators [ OUTPUTS ]
– Lights, LED’s
– Motors
– Speakers
– Displays (LCD)
CURRENT LIMITS!!!
8
Autonomous
Vehicle
9
Laser Harp
10
Clock
11
Sign Language Glove
12
Interfacing
13
• Plugs into pins like a
breadboard
Interfacing
14
15
16
17
Inputs and Outputs
18
Concepts: INPUT vs. OUTPUT
•Referenced from the perspective of the
microcontroller (electrical board).
Inputs is a signal / information going
into the board.
Output is any signal exiting the
board.
19
Concepts: INPUT vs. OUTPUT
•Referenced from the perspective of the
microcontroller (electrical board).
Inputs is a signal / information going
into the board.
Output is any signal exiting the
board.
Examples:
Buttons Switches, Light
Sensors, Flex Sensors,
Humidity Sensors,
Temperature Sensors…
Examples:
LEDs, DC motor,
servo motor,
piezo buzzer,
relay, RGB LED
20
Analog vs. Digital
21
• Computers communicate in a digital language
– “ON” or “OFF”, “HIGH” or “LOW”, “1” or “0”, “5V or 0V”
• Our physical world is analog
– “warm”, “37 mph”, “92 degrees”
• So how do we create 2.73 volts if all we have is 0 and 5?
• With a technique called Pulse width Modulation (PWM)
• Imagine turning a fan off and on every second. It would
operate at a “medium” speed.
• The longer the pulses (ON’s), the higher the average
voltage and the actual voltage output.
Analog vs. Digital
22
Analog vs. Digital
23
Analog vs. Digital
Fixed cycle length:
constant number of cycles/sec
24
BIG
4
CONCEPTS digitalWrite()
analogWrite()
digitalRead()
analogRead()
25
Components
Push Button Digital Input Switch - Closes or
opens circuit
Potentiometer Analog Input Variable resistor
Photoresistor Analog Input Light Dependent
Resistor (LDR)
Relay Digital Output Switch driven by a
small signal
Temp Sensor Analog Input Temp Dependent
Resistor
Flex Sensor Analog Input Variable resistor
Soft Trimpot Analog Input Variable resistor
RGB LED Dig & Analog
Output
16,777,216 different
colors
Name Image Type Function
Digital Input
Analog Input
Analog Input
Digital Output
Analog Input
Analog Input
Analog Input
Dig & Analog
Output
26
Scales
27
Physical 0V 5V
Digital Write LOW (0) HIGH (1)
Digital Read LOW (0) HIGH (1)
Analog Read 0 1023
Analog Write 0 255
Scales

More Related Content

Similar to arduino4.ppt

arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
ssusere5db05
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
ethannguyen1618
 
Chapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptxChapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptx
khgh7
 
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptxInternet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
Dinola2
 

Similar to arduino4.ppt (20)

Tinkercad Workshop PPT, Dept. of ECE.pptx
Tinkercad Workshop PPT, Dept. of ECE.pptxTinkercad Workshop PPT, Dept. of ECE.pptx
Tinkercad Workshop PPT, Dept. of ECE.pptx
 
ARDUINO Presentation1.pptx
ARDUINO Presentation1.pptxARDUINO Presentation1.pptx
ARDUINO Presentation1.pptx
 
Ardui no
Ardui no Ardui no
Ardui no
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
 
From Arduino to LinnStrument
From Arduino to LinnStrumentFrom Arduino to LinnStrument
From Arduino to LinnStrument
 
Arduino course
Arduino courseArduino course
Arduino course
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
 
Audible Objects
Audible ObjectsAudible Objects
Audible Objects
 
Chapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptxChapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptx
 
Embedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseEmbedded system introduction - Arduino Course
Embedded system introduction - Arduino Course
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
 
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptxInternet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentation
 
LinnStrument : the ultimate open-source hacker instrument
LinnStrument : the ultimate open-source hacker instrumentLinnStrument : the ultimate open-source hacker instrument
LinnStrument : the ultimate open-source hacker instrument
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2
 
Porte à puce
Porte à pucePorte à puce
Porte à puce
 
Porte à puce - Automatic Door based on Arduino UNO R3
Porte à puce - Automatic Door based on Arduino UNO R3Porte à puce - Automatic Door based on Arduino UNO R3
Porte à puce - Automatic Door based on Arduino UNO R3
 

More from AhmedFouad252659 (11)

LECTURE1 -Anatomy_of_Musculoskeletal_System.ppt
LECTURE1 -Anatomy_of_Musculoskeletal_System.pptLECTURE1 -Anatomy_of_Musculoskeletal_System.ppt
LECTURE1 -Anatomy_of_Musculoskeletal_System.ppt
 
500500.pptx
500500.pptx500500.pptx
500500.pptx
 
cobalt 60.pptx
cobalt 60.pptxcobalt 60.pptx
cobalt 60.pptx
 
Lecture 4circuit.pptx
Lecture 4circuit.pptxLecture 4circuit.pptx
Lecture 4circuit.pptx
 
Lecture 10.pptx
Lecture 10.pptxLecture 10.pptx
Lecture 10.pptx
 
lecture 7 mutual.pptx
lecture 7 mutual.pptxlecture 7 mutual.pptx
lecture 7 mutual.pptx
 
lecture 1,2.pdf
lecture 1,2.pdflecture 1,2.pdf
lecture 1,2.pdf
 
mutual inductance
mutual inductancemutual inductance
mutual inductance
 
Basic Electronics presentation v2.ppt
Basic Electronics presentation v2.pptBasic Electronics presentation v2.ppt
Basic Electronics presentation v2.ppt
 
TechMed Smart Wireless stethoscope222.pptx
TechMed Smart Wireless stethoscope222.pptxTechMed Smart Wireless stethoscope222.pptx
TechMed Smart Wireless stethoscope222.pptx
 
Surface_Modification
Surface_ModificationSurface_Modification
Surface_Modification
 

Recently uploaded

Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Marc Lester
 

Recently uploaded (20)

Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
 
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfThe Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
 
Community is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea GouletCommunity is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea Goulet
 
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
 
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmux
 
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
 
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale IbridaUNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
 
Auto Affiliate AI Earns First Commission in 3 Hours..pdf
Auto Affiliate  AI Earns First Commission in 3 Hours..pdfAuto Affiliate  AI Earns First Commission in 3 Hours..pdf
Auto Affiliate AI Earns First Commission in 3 Hours..pdf
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdfTest Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdf
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdf
 
From Knowledge Graphs via Lego Bricks to scientific conversations.pptx
From Knowledge Graphs via Lego Bricks to scientific conversations.pptxFrom Knowledge Graphs via Lego Bricks to scientific conversations.pptx
From Knowledge Graphs via Lego Bricks to scientific conversations.pptx
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
 
Encryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key ConceptsEncryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key Concepts
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
Rapidoform for Modern Form Building and Insights
Rapidoform for Modern Form Building and InsightsRapidoform for Modern Form Building and Insights
Rapidoform for Modern Form Building and Insights
 
The Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test AutomationThe Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test Automation
 

arduino4.ppt

  • 2. 2 • Programmers work in the virtual world • Machinery works in the physical world • Microcontrollers connect the virtual and physical world • The inputs and outputs can be manipulated by, and can manipulate, the physical world Microcontrollers
  • 3. 3
  • 4. 4 Arduino is software • An Integrated Development Environment (IDE) for programming • Edit code like a word document • The platform creates the “process”, compiles it, and uploads it to the Arduino • The language is called ‘wiring’, and is based on C
  • 5. 5 Arduino is a platform • A physical Input / Output board (I/O) with a programmable Integrated Circuit (IC).
  • 6. 6 Why Arduino? • Open Source: anyone who wants can improve upon it • Cheap: anyone can produce them for any price (<$15) • Common Interface: communicates via USB • Low Power: from USB or battery pack • Standalone: memory allows it to run even when not connected to a computer
  • 7. 7 What can it do? • Sensors [ INPUTS ] – Buttons, touch pads, tilt switches – Variable resistors (e.g.. volume knob / sliders) – Photoresistors (light sensor) – Thermistors (temperature sensor) – Ultrasound (distance sensor) • Actuators [ OUTPUTS ] – Lights, LED’s – Motors – Speakers – Displays (LCD) CURRENT LIMITS!!!
  • 13. 13 • Plugs into pins like a breadboard Interfacing
  • 14. 14
  • 15. 15
  • 16. 16
  • 18. 18 Concepts: INPUT vs. OUTPUT •Referenced from the perspective of the microcontroller (electrical board). Inputs is a signal / information going into the board. Output is any signal exiting the board.
  • 19. 19 Concepts: INPUT vs. OUTPUT •Referenced from the perspective of the microcontroller (electrical board). Inputs is a signal / information going into the board. Output is any signal exiting the board. Examples: Buttons Switches, Light Sensors, Flex Sensors, Humidity Sensors, Temperature Sensors… Examples: LEDs, DC motor, servo motor, piezo buzzer, relay, RGB LED
  • 21. 21 • Computers communicate in a digital language – “ON” or “OFF”, “HIGH” or “LOW”, “1” or “0”, “5V or 0V” • Our physical world is analog – “warm”, “37 mph”, “92 degrees” • So how do we create 2.73 volts if all we have is 0 and 5? • With a technique called Pulse width Modulation (PWM) • Imagine turning a fan off and on every second. It would operate at a “medium” speed. • The longer the pulses (ON’s), the higher the average voltage and the actual voltage output. Analog vs. Digital
  • 23. 23 Analog vs. Digital Fixed cycle length: constant number of cycles/sec
  • 25. 25 Components Push Button Digital Input Switch - Closes or opens circuit Potentiometer Analog Input Variable resistor Photoresistor Analog Input Light Dependent Resistor (LDR) Relay Digital Output Switch driven by a small signal Temp Sensor Analog Input Temp Dependent Resistor Flex Sensor Analog Input Variable resistor Soft Trimpot Analog Input Variable resistor RGB LED Dig & Analog Output 16,777,216 different colors Name Image Type Function Digital Input Analog Input Analog Input Digital Output Analog Input Analog Input Analog Input Dig & Analog Output
  • 27. 27 Physical 0V 5V Digital Write LOW (0) HIGH (1) Digital Read LOW (0) HIGH (1) Analog Read 0 1023 Analog Write 0 255 Scales