SlideShare a Scribd company logo
Team Emertxe
Arduino
Peripherals and Interfaces
Interfaces
Arduino
Interface – What?
A shared boundary across which two or more separate
components of a computer system exchange information
Source: wiki
Arduino
Interface - Pinout
EN
GPIO36
GPIO39
GPIO34
GPIO35
GPIO32
GPIO33
GPIO25
GPIO26
GPIO27
GPIO14
GPIO12
GPIO13
GND
VIN
GPIO23
GPIO22
GPIO1
GPIO0
GPIO21
GPIO19
GPIO18
GPIO5
GPIO17
GPIO16
GPIO4
GPIO2
GPIO15
GND
3.3V
GPIO0GPIO3
I2C_SDA
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
VIN
EN
EN
BOOT
AD1_C4
AD1_C5
AD2_C8
AD2_C9
AD2_C7
AD2_C6
AD2_C5
AD2_C4
TOUCH9
TOUCH8
DAC_1
DAC_2
TOUCH7
TOUCH6
TOUCH5
TOUCH4
AD1_C3
AD1_C6
AD1_C7
GPIO39
GPIO34
GPIO35
AD1_C0
AD2_C0
AD2_C2
AD2_C3
TOUCH0
TOUCH2
TOUCH3
SENS_VN
SENS_VP
HSPI_CK
HSPI_Q
HSPI_D
HSPI_HD
HSPI_WP
HSPI_C0
U0_TXD
GPIO0GPIO0U0_RXD
U0_CTS
32K_XP
32K_XN
U0_RTS
I2C_SCL
U2_TXD
GPIO0GPIO0U2_RXD
Light Emitting Diodes
Arduino
Interface - LEDs
●
Simplest device used in most on the embedded
applications as feedback
●
Works just like diodes
●
Low energy consumption, longer life, smaller size, faster
switching make it usable in wide application fields like
– Home lighting,
– Remote Controls, Surveillance,
– Displays and many more!!
Arduino
Interface - LEDs
D1
GPIO12
GND
R1
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
VIN
EN
EN
BOOT
Tactile Switch
Arduino
Interface - Tactile Switches
●
Provides simple and cheap interface
●
Comes in different shapes and sizes
●
Preferable if the no of user inputs are less
●
Some common application of tactile keys are
– HMI
– Mobile Phones
– Computer Mouse etc,.
Arduino
Interface - Tactile Switches
SW1
R2
R1
GND
3.3V
GPIO15
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
VIN
EN
EN
BOOT
SW2
R3
GPIO16
Analog Input
Arduino
Interface – Analog Inputs
●
Very important peripheral in embedded systems for real
time activities
●
The controller understands only digital signals, so an real
time linear signals have to be converted into digital form
●
Multiplexed with GPIO
●
Comes with different architecture, SAR is most commonly
used
Arduino
Interface - Analog Inputs - Potentiometer
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
VIN
EN
EN
BOOT
GND
3.3V
AD2_C0
R1
Interrupts
Arduino
Peripheral – Interrupt - Contents
●
Basic Concepts
●
Interrupt Source
●
Interrupt Classification
●
Interrupt Handling
Arduino
Peripheral – Interrupt – Basic Concept
●
An interrupt is a communication process set up in a
microprocessor or microcontroller in which:
– An internal or external device requests the MPU to stop the
processing
– The MPU acknowledges the request
– Attends to the request
– Goes back to processing where it was interrupted
●
Polling
Arduino
Peripheral – Interrupt – Vs Polling
●
Events Detection
●
Response
●
Power Management
Arduino
Peripheral – Interrupt – Sources
●
Timers
●
External
●
Peripherals
Interrupts
Hardware Software
Non Maskable Maskable
External Internal
Arduino
Peripheral – Interrupt – Classifications
Arduino
Peripheral – Interrupt – Handling
0x0000
0x0001
0x0002
i
i + 1
Super Loop Interrupt
Handler
Interrupt
Occurs Here
Arduino
Peripheral – Interrupt – Handling - ISR
●
Similar to a subroutine
●
When an interrupt occurs, the MPU:
– Completes the instruction being executed
– Disables global interrupt enable
– Places the address from the program counter on the stack
●
Attends to the request of an interrupting source
– Clears the interrupt flag
– Should save register contents that may be affected by the code in the
ISR
– Must be terminated with the instruction RETFIE
●
Return from interrupt
Arduino
Peripheral – Interrupt – Handling - ISR
●
What / What Not
Arduino
Peripheral – Interrupt – Handling - ISR
●
Latency is determined by:
– Instruction time (how long is the longest)
– How much of the context must be saved
– How much of the context must be restored
– The effort to implement priority scheme
– Time spend executing protected code
Arduino
Peripheral – Interrupt – Interface
SW1
R2
R1
GND
3.3V
GPIO15
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
VIN
EN
EN
BOOT
SW2
R3
GPIO16
Timers
Arduino
Peripherals - Timers
●
Resolution  Register Width
●
Tick  Up Count or Down Count
●
Quantum  System Clock settings
●
Scaling  Pre or Post
●
Modes
– Counter
– PWM or Pulse Generator
– PW or PP Measurement etc.,
Arduino
Peripherals – Timers - Example
●
Requirement – 5 pulses of 8 µsecs
●
Resolution – 8 Bit
●
Quantum – 1 µsecs
●
General
Arduino
Peripherals – Timers - Example
Timer Register
Overflows
28μs 20μs 12μs 4μs
Relay
Arduino
Interface - Relay
●
Most commonly used electromechanical switch
●
Uses a electromagnet to operate
●
Used to control high power devices using low power
signal
●
Provides isolation between the control and controlled
circuit
– Home Automation,
– Automotive applications
– Industrial application and many more !!
Arduino
Interface - Relay
Arduino
Interface - Relay
R1
GND
VIN
GPIO17
NO
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
VIN
EN
EN
BOOT
NC
C
Q1
K1
D1
VIN
CLCD
Arduino
Interface - CLCD
●
Most commonly used
display ASCII
characters
●
Some customization in
symbols possible
●
Communication Modes
– 8 Bit Mode
– 4 Bit Mode
Arduino
Interface - CLCD
D4
D5
D6
D7
EN
R/W
RS
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
VIN
EN
EN
BOOT
4
5
6
7
14
13D
CLK
OE
HCF4094
U1
GPIO19
GPIO18
GPIO5
VIN
GND
3.3V
Q1
Q2
Q3
Q4
Q5
Q62
3
15
8
STR
VDD
VIN
16
GND
R1
Sensors
DHT11
Arduino
Interface – Sensors - DHT11
●
A cheap and very simple sensor to measure Temperature
and Humidity
●
It uses a capacitive humidity sensor and a thermistor to
measure the surrounding air, and sends digital signal on
the data pin
Arduino
Interface - Sensors - DHT11
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
VIN
EN
EN
BOOT
GND
3.3V
GPIO16
U1
1-Vcc
2–Data
3–NC
4–Gnd
DHT11
R1
Thank You

More Related Content

PPTX
Memory Organisation in embedded systems
PDF
Microcontroller pic 16f877 addressing modes instructions and programming
PPT
Embedded Systems
PDF
Characteristics and Quality Attributes of Embedded System
PPTX
ARM Processors
PPTX
Processes and operating systems
PPTX
Introduction to Embedded System I: Chapter 2 (5th portion)
Memory Organisation in embedded systems
Microcontroller pic 16f877 addressing modes instructions and programming
Embedded Systems
Characteristics and Quality Attributes of Embedded System
ARM Processors
Processes and operating systems
Introduction to Embedded System I: Chapter 2 (5th portion)

What's hot (20)

PPTX
Torque Sensors Explained
PDF
Device drivers and interrupt service mechanism
PPT
Case study of digital camera
PPTX
Microcontroller
PDF
Introduction to Avr Microcontrollers
PPT
PIC 16F877A by PARTHIBAN. S.
PPTX
Language for Embedded System
PPTX
Microprocessor in washing machine
PPTX
Low pass filters
PPTX
AVRTIMER.pptx
PPT
06. thumb instructions
PPTX
Pic microcontroller architecture
PPTX
MODEL TRAIN CONTROLLER.pptx
PPT
DAC-digital to analog converter
PDF
RTOS for Embedded System Design
PDF
Architecture Of TMS320C50 DSP Processor
PDF
Unit II Arm7 Thumb Instruction
PPTX
Ultrasonic sensor
PPTX
microcontroller vs microprocessor
PDF
Introduction to embedded systems
Torque Sensors Explained
Device drivers and interrupt service mechanism
Case study of digital camera
Microcontroller
Introduction to Avr Microcontrollers
PIC 16F877A by PARTHIBAN. S.
Language for Embedded System
Microprocessor in washing machine
Low pass filters
AVRTIMER.pptx
06. thumb instructions
Pic microcontroller architecture
MODEL TRAIN CONTROLLER.pptx
DAC-digital to analog converter
RTOS for Embedded System Design
Architecture Of TMS320C50 DSP Processor
Unit II Arm7 Thumb Instruction
Ultrasonic sensor
microcontroller vs microprocessor
Introduction to embedded systems
Ad

Similar to Arduino - Peripherals and interface (20)

PPTX
ELTN 117 - Interrupts_2020.pptx
PPTX
Arduino Programming - Brief Introduction
PPTX
IoT applications With Arduino coding and real life examples
PPTX
Arduino intro.pptx
PDF
ARUDINO UNO and RasberryPi with Python
PDF
Micro-controllers (PIC) based Application Development
PPTX
Basics of open source embedded development board (
PPTX
Basics of open source embedded development board (
PPTX
02 General Purpose Input - Output on the Arduino
PDF
manual Internet of ThingsArduino_IOTArdu
PPTX
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
PDF
Introduction of Arduino Uno
PPTX
Arduino_Beginner.pptx
PDF
Arduino spooky projects_class3
PPTX
arduino and its introduction deep dive ppt.pptx
PPTX
EMBEDDED SYSTEM BASICS
PPTX
Iot Workshop NITT 2015
PPTX
Peripheral Interfacing with Microcontrollers cse 303 MD SAZID ZAMIL GREEN UN...
PDF
Iot for smart agriculture
PPTX
8259 Programmable Interrupt Controller.pptx
ELTN 117 - Interrupts_2020.pptx
Arduino Programming - Brief Introduction
IoT applications With Arduino coding and real life examples
Arduino intro.pptx
ARUDINO UNO and RasberryPi with Python
Micro-controllers (PIC) based Application Development
Basics of open source embedded development board (
Basics of open source embedded development board (
02 General Purpose Input - Output on the Arduino
manual Internet of ThingsArduino_IOTArdu
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
Introduction of Arduino Uno
Arduino_Beginner.pptx
Arduino spooky projects_class3
arduino and its introduction deep dive ppt.pptx
EMBEDDED SYSTEM BASICS
Iot Workshop NITT 2015
Peripheral Interfacing with Microcontrollers cse 303 MD SAZID ZAMIL GREEN UN...
Iot for smart agriculture
8259 Programmable Interrupt Controller.pptx
Ad

More from Emertxe Information Technologies Pvt Ltd (20)

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
cuic standard and advanced reporting.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPT
Teaching material agriculture food technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
KodekX | Application Modernization Development
PPTX
Big Data Technologies - Introduction.pptx
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
The Rise and Fall of 3GPP – Time for a Sabbatical?
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
cuic standard and advanced reporting.pdf
Chapter 3 Spatial Domain Image Processing.pdf
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Teaching material agriculture food technology
Spectral efficient network and resource selection model in 5G networks
Network Security Unit 5.pdf for BCA BBA.
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Unlocking AI with Model Context Protocol (MCP)
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KodekX | Application Modernization Development
Big Data Technologies - Introduction.pptx
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
GamePlan Trading System Review: Professional Trader's Honest Take

Arduino - Peripherals and interface