SlideShare a Scribd company logo
2
Most read
8
Most read
16
Most read
Electronics
Microcontrollers for IoT Applications
Leopoldo Armesto
Senior Lecturer
Universitat Politècnica de València
1
Outline
Microcontroller
Signals
Memory
Architecture
Alternatives
Electronics for IoT
ESP Processors
Examples
2
Microcontroller signals
Digital vs. Analog: A digital signal varies between two possible states HIGH or LOW, while an
signal that can take any value within a range of voltages.
Digital Input: An external device controls the voltage and the microcontroller ‘monitor’ its
changes, so we can read it as HIGH or LOW.
Digital Output: The microcontroller can set a HIGH or LOW voltage.
Analog Input: An internal ADC converts the analog value into a decimal number (typically
discrete values with 10-bit to 16 bit resolution).
3
Microcontroller signals
PWM (Pulse modulated width): A periodic signal with variable HIGH/LOW times. Typically used
to control transistors, generate frequencies, etc... They can be seen as ‘analog’ signals for
components with slow dynamics, such as motors or analog filters.
Interrupts: Special signals that will interrupt the current program flow so that a higher priority
task can be executed.
External: External signals can generate an interrupt on specific pins.
Timers: Most microcontrollers include timers to measure time or to execute tasks
periodically.
4
Microcontroller signals
Bus signals: Used to transmit digital data between the microcontroller and another
external device.
UART: Serial communication with two lines (RX and TX) between two devices.
I2C: Serial communication with two lines (SDA and SCK). Master-slave
architecture.
SPI: Serial full-duplex communication with four lines (CLK, MOSI, MISO,SS).
Master-slave architecture.
5
Microcontroller memory
Programmemory(Flashmemory):
Where we store our code, non-volatile.
Large, compared to data memory, because is cheap.
Datamemory:
RAM (SRAM): Where we store variables that we use in our code. It is deleted on start-up (volatile).
Special Function Registers (SFR) are connected to specific peripherals such as de ADC or Timers.
ROM (EEPROM): Where we store long-term variables. Usually is even shorter than SRAM, because is expensive.
6
Microcontroller architecture
MCUClock
Program
Memory
Data Memory
GPIO
Bus Peripherals
Timers
Interrupts
ADC
7
Microcontroller alternatives
Microcontroller
• Simple to use
• Low consumption
Microprocessor
• OS
• Computational
Power
• Compatible with
many external
devices
DSP
• Similar to uC, but
specialized for
signal processing
• Requires
advanced
knowledge.
FPGA
• Very fast
• Need to think as a
circuit designer.
• Deployment is
much slower.
8
Arduino Uno WiFi Rev.2 Raspberry Pi 3B+ TI DSP Alhambra board
Electronics for IoT
Arduino Uno WiFi
• Easy to use.
• Expensive compared to other alternatives.
ESP8266
• Cheap
• Programmed with Arduino IDE
• WiFi
ESP32
• Cheap
• Programmed with Arduino IDE
• WiFi
• Faster than ESP8266
Raspberry Pi 3 B+
• More expensive than Raspberry Pi Zero W
• Ethernet connection.
• SC Card
• Camera
Raspberry Pi ZeroW
• Quite cheap.
• WiFi & Bluetooth.
• SD Card.
• Camera
9
ESP8266
ESP-01 :
Very-low cost Wi-Fi module
Can extend Wi-Fi capabilities of Arduino Uno (and similar) through UART connection.
4 GPIO available.
ESP-12E:
17 GPIO available (13 in NodeMCU)
1 analog input (0V~1.6V)
10
ESP-01
NodeMCU
ESP-12E
ESP8266MOD
Wemos D1 R2
A development board using ESP8266 compatible with Arduino Shields.
Characteristics:
WiFi 802.11
13 GPIO. 1 analog input (3.3V max).
4Mb Flash Memory
80Mhz/160Mhz clock speed
Micro USB (programming and serial communication).
Power jack, 9~24V. 11
Wemos D1 R2
ESP32
Wi-Fi & bluetooth (BLE)
32 GPIO available
18 Analog inputs channels (12 bits)
10 Touch inputs
2 DACs
4 SPI, 2 I2C and 3 UART interfaces
SD controller, Ethernet, CAN, IR, Motor PWM, LED PWM
12
ESP32-WROOM-32
Wemos D1 R32
A development board using ES32 compatible with Arduino Shields.
Characteristics:
WiFi 802.11
Bluetooth: v4.2 BR/EDR BLE
18 GPIO & 6analog input (3.3V max).
4Mb Flash Memory. 520KB RAM
240Mhz clock speed
Micro USB (programming and serial communication).13
Wemos D1 R32
Examples
Relay remote control using ESP-01
Requires an external USB-UART interface for programming
Ideal for simple home automation projects
14
Examples
Weather station:
Measures: Temperature & Humidity DHT11/22, Pressure, Altitude & Temperature BMP180, Light intensity LDR;
Rain value (Rain sensor).
IoT Cloud server for logging data.
15
Examples
Starter kit for IoT:
Basic I/O: 2 push buttons, 2 LEDs, 1 RGB LED, 1 Potentiometer
Sensors: Humidity & Temperature Sensor (DHT11), Analog Temperature Sensor (LM35), Light sensor (LDR)
IR communications
Buzzer.
OLED Screen: 128x64 pixels
16
Wemos D1 R32
Multi-sensor shield
OLED screen 128x64
Electronics
Microcontrollers for IoT Applications
Leopoldo Armesto
Senior Lecturer
Universitat Politècnica de València
17

More Related Content

What's hot (20)

PPTX
Embedded system
Vinod Srivastava
 
PPTX
Micro Processor Mini Project,Electronic Quiz Table
Subhashini Sundaram
 
PPTX
Architecture of 8051
hello_priti
 
PPT
Architecture of 8086 Microprocessor
Mustapha Fatty
 
PPT
Memory organization of 8051
Muthu Manickam
 
PDF
8051,chapter1,architecture and peripherals
amrutachintawar239
 
PPT
Bluetooth Slides
Aniruddha Gupta
 
PPT
E.s unit 6
Sneha Chopra
 
PDF
Arduino Lecture 1 - Introducing the Arduino
Eoin Brazil
 
PPTX
Code Conversion in 8085 Microprocessor
MOHIT AGARWAL
 
PPTX
8237 dma controller
Tech_MX
 
PDF
Raspberry Pi
Selvaraj Seerangan
 
PPTX
Embedded Systems - Training ppt
Nishant Kayal
 
PPT
8086 pin details
AJAL A J
 
PPTX
ARM Processors
Mathivanan Natarajan
 
PPTX
Smart door lock
aswin5432
 
PPTX
Wi-Fi Esp8266 nodemcu
creatjet3d labs
 
PPTX
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Moe Moe Myint
 
Embedded system
Vinod Srivastava
 
Micro Processor Mini Project,Electronic Quiz Table
Subhashini Sundaram
 
Architecture of 8051
hello_priti
 
Architecture of 8086 Microprocessor
Mustapha Fatty
 
Memory organization of 8051
Muthu Manickam
 
8051,chapter1,architecture and peripherals
amrutachintawar239
 
Bluetooth Slides
Aniruddha Gupta
 
E.s unit 6
Sneha Chopra
 
Arduino Lecture 1 - Introducing the Arduino
Eoin Brazil
 
Code Conversion in 8085 Microprocessor
MOHIT AGARWAL
 
8237 dma controller
Tech_MX
 
Raspberry Pi
Selvaraj Seerangan
 
Embedded Systems - Training ppt
Nishant Kayal
 
8086 pin details
AJAL A J
 
ARM Processors
Mathivanan Natarajan
 
Smart door lock
aswin5432
 
Wi-Fi Esp8266 nodemcu
creatjet3d labs
 
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Moe Moe Myint
 

Similar to Electronics Microcontrollers for IoT applications (20)

PPTX
3.TechieNest microcontrollers
TechieNest Pvt. Ltd .
 
PPTX
Msp 430 architecture module 1
SARALA T
 
PPTX
Microcontroller from basic_to_advanced
Imran Sheikh
 
PPTX
underground cable fault location using aruino,gsm&gps
Mohd Sohail
 
PPTX
Overview of Microcontroller and ATMega32 microcontroller
Rup Chowdhury
 
PPT
eCOG1X 16-bit Microcontrollers
Premier Farnell
 
PPT
Introduction to embedded systems
Игорь Медведев
 
PPT
Overview of ST7 8-bit Microcontrollers
Premier Farnell
 
PDF
The document provides an overview of the Arduino platform for beginners.
QucngV
 
PPT
Embedded & pcb design
Tanveer Behl
 
PDF
1-AVR Introduction to Atmega32 good .pdf
KSRaviKumarMVGREEE
 
DOCX
Assignment
Abu Md Choudhury
 
PPT
Embedded systems POWER SUPPLIES ARDUINO UNO
SRITECHSOLUTIONS
 
PPTX
Iot Workshop NITT 2015
Srivignessh Pss
 
PDF
Doc32059
Alfredo Santillan
 
PDF
32059 sistem
Alfredo Santillan
 
DOC
89s52 2
Sagari Bhaviri
 
DOCX
Wireless energy meter monitoring with automated tariff calculation
Udayalakshmi JK
 
PPTX
Microcontroller
Spitiq
 
PPT
PMA71xx- SmartLEWIS™ MCUs
Premier Farnell
 
3.TechieNest microcontrollers
TechieNest Pvt. Ltd .
 
Msp 430 architecture module 1
SARALA T
 
Microcontroller from basic_to_advanced
Imran Sheikh
 
underground cable fault location using aruino,gsm&gps
Mohd Sohail
 
Overview of Microcontroller and ATMega32 microcontroller
Rup Chowdhury
 
eCOG1X 16-bit Microcontrollers
Premier Farnell
 
Introduction to embedded systems
Игорь Медведев
 
Overview of ST7 8-bit Microcontrollers
Premier Farnell
 
The document provides an overview of the Arduino platform for beginners.
QucngV
 
Embedded & pcb design
Tanveer Behl
 
1-AVR Introduction to Atmega32 good .pdf
KSRaviKumarMVGREEE
 
Assignment
Abu Md Choudhury
 
Embedded systems POWER SUPPLIES ARDUINO UNO
SRITECHSOLUTIONS
 
Iot Workshop NITT 2015
Srivignessh Pss
 
32059 sistem
Alfredo Santillan
 
Wireless energy meter monitoring with automated tariff calculation
Udayalakshmi JK
 
Microcontroller
Spitiq
 
PMA71xx- SmartLEWIS™ MCUs
Premier Farnell
 
Ad

More from Leopoldo Armesto (20)

PPTX
Variables with Facilino
Leopoldo Armesto
 
PPTX
USB Serial with Facilino
Leopoldo Armesto
 
PPTX
Undestanding Bluetooth
Leopoldo Armesto
 
PPTX
Two-button UI with Facilino
Leopoldo Armesto
 
PPTX
ThingsBoard Time-Series and Attributes with Facilino
Leopoldo Armesto
 
PPTX
ThingsBoard RPCs with Facilino
Leopoldo Armesto
 
PPTX
Text with Facilino
Leopoldo Armesto
 
PPTX
RGB LEDs with Facilino
Leopoldo Armesto
 
PPTX
RGB LED strips with Facilino
Leopoldo Armesto
 
PPTX
OLED 128x32 with Facilino
Leopoldo Armesto
 
PPTX
Maths with Facilino
Leopoldo Armesto
 
PPTX
Logic with Facilino
Leopoldo Armesto
 
PPTX
Light dimmer with Facilino
Leopoldo Armesto
 
PPTX
LDR with Facilino
Leopoldo Armesto
 
PPTX
LCDs with Facilino
Leopoldo Armesto
 
PPTX
IR Receive with Facilino
Leopoldo Armesto
 
PPTX
Gas sensor with Facilino
Leopoldo Armesto
 
PPTX
Functions and Procedures with Facilino
Leopoldo Armesto
 
PPTX
Flow Control with Facilino
Leopoldo Armesto
 
PPTX
Web-server UI with Facilino
Leopoldo Armesto
 
Variables with Facilino
Leopoldo Armesto
 
USB Serial with Facilino
Leopoldo Armesto
 
Undestanding Bluetooth
Leopoldo Armesto
 
Two-button UI with Facilino
Leopoldo Armesto
 
ThingsBoard Time-Series and Attributes with Facilino
Leopoldo Armesto
 
ThingsBoard RPCs with Facilino
Leopoldo Armesto
 
Text with Facilino
Leopoldo Armesto
 
RGB LEDs with Facilino
Leopoldo Armesto
 
RGB LED strips with Facilino
Leopoldo Armesto
 
OLED 128x32 with Facilino
Leopoldo Armesto
 
Maths with Facilino
Leopoldo Armesto
 
Logic with Facilino
Leopoldo Armesto
 
Light dimmer with Facilino
Leopoldo Armesto
 
LDR with Facilino
Leopoldo Armesto
 
LCDs with Facilino
Leopoldo Armesto
 
IR Receive with Facilino
Leopoldo Armesto
 
Gas sensor with Facilino
Leopoldo Armesto
 
Functions and Procedures with Facilino
Leopoldo Armesto
 
Flow Control with Facilino
Leopoldo Armesto
 
Web-server UI with Facilino
Leopoldo Armesto
 
Ad

Recently uploaded (20)

PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
Controller Request and Response in Odoo18
Celine George
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
infertility, types,causes, impact, and management
Ritu480198
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 

Electronics Microcontrollers for IoT applications

  • 1. Electronics Microcontrollers for IoT Applications Leopoldo Armesto Senior Lecturer Universitat Politècnica de València 1
  • 3. Microcontroller signals Digital vs. Analog: A digital signal varies between two possible states HIGH or LOW, while an signal that can take any value within a range of voltages. Digital Input: An external device controls the voltage and the microcontroller ‘monitor’ its changes, so we can read it as HIGH or LOW. Digital Output: The microcontroller can set a HIGH or LOW voltage. Analog Input: An internal ADC converts the analog value into a decimal number (typically discrete values with 10-bit to 16 bit resolution). 3
  • 4. Microcontroller signals PWM (Pulse modulated width): A periodic signal with variable HIGH/LOW times. Typically used to control transistors, generate frequencies, etc... They can be seen as ‘analog’ signals for components with slow dynamics, such as motors or analog filters. Interrupts: Special signals that will interrupt the current program flow so that a higher priority task can be executed. External: External signals can generate an interrupt on specific pins. Timers: Most microcontrollers include timers to measure time or to execute tasks periodically. 4
  • 5. Microcontroller signals Bus signals: Used to transmit digital data between the microcontroller and another external device. UART: Serial communication with two lines (RX and TX) between two devices. I2C: Serial communication with two lines (SDA and SCK). Master-slave architecture. SPI: Serial full-duplex communication with four lines (CLK, MOSI, MISO,SS). Master-slave architecture. 5
  • 6. Microcontroller memory Programmemory(Flashmemory): Where we store our code, non-volatile. Large, compared to data memory, because is cheap. Datamemory: RAM (SRAM): Where we store variables that we use in our code. It is deleted on start-up (volatile). Special Function Registers (SFR) are connected to specific peripherals such as de ADC or Timers. ROM (EEPROM): Where we store long-term variables. Usually is even shorter than SRAM, because is expensive. 6
  • 8. Microcontroller alternatives Microcontroller • Simple to use • Low consumption Microprocessor • OS • Computational Power • Compatible with many external devices DSP • Similar to uC, but specialized for signal processing • Requires advanced knowledge. FPGA • Very fast • Need to think as a circuit designer. • Deployment is much slower. 8 Arduino Uno WiFi Rev.2 Raspberry Pi 3B+ TI DSP Alhambra board
  • 9. Electronics for IoT Arduino Uno WiFi • Easy to use. • Expensive compared to other alternatives. ESP8266 • Cheap • Programmed with Arduino IDE • WiFi ESP32 • Cheap • Programmed with Arduino IDE • WiFi • Faster than ESP8266 Raspberry Pi 3 B+ • More expensive than Raspberry Pi Zero W • Ethernet connection. • SC Card • Camera Raspberry Pi ZeroW • Quite cheap. • WiFi & Bluetooth. • SD Card. • Camera 9
  • 10. ESP8266 ESP-01 : Very-low cost Wi-Fi module Can extend Wi-Fi capabilities of Arduino Uno (and similar) through UART connection. 4 GPIO available. ESP-12E: 17 GPIO available (13 in NodeMCU) 1 analog input (0V~1.6V) 10 ESP-01 NodeMCU ESP-12E ESP8266MOD
  • 11. Wemos D1 R2 A development board using ESP8266 compatible with Arduino Shields. Characteristics: WiFi 802.11 13 GPIO. 1 analog input (3.3V max). 4Mb Flash Memory 80Mhz/160Mhz clock speed Micro USB (programming and serial communication). Power jack, 9~24V. 11 Wemos D1 R2
  • 12. ESP32 Wi-Fi & bluetooth (BLE) 32 GPIO available 18 Analog inputs channels (12 bits) 10 Touch inputs 2 DACs 4 SPI, 2 I2C and 3 UART interfaces SD controller, Ethernet, CAN, IR, Motor PWM, LED PWM 12 ESP32-WROOM-32
  • 13. Wemos D1 R32 A development board using ES32 compatible with Arduino Shields. Characteristics: WiFi 802.11 Bluetooth: v4.2 BR/EDR BLE 18 GPIO & 6analog input (3.3V max). 4Mb Flash Memory. 520KB RAM 240Mhz clock speed Micro USB (programming and serial communication).13 Wemos D1 R32
  • 14. Examples Relay remote control using ESP-01 Requires an external USB-UART interface for programming Ideal for simple home automation projects 14
  • 15. Examples Weather station: Measures: Temperature & Humidity DHT11/22, Pressure, Altitude & Temperature BMP180, Light intensity LDR; Rain value (Rain sensor). IoT Cloud server for logging data. 15
  • 16. Examples Starter kit for IoT: Basic I/O: 2 push buttons, 2 LEDs, 1 RGB LED, 1 Potentiometer Sensors: Humidity & Temperature Sensor (DHT11), Analog Temperature Sensor (LM35), Light sensor (LDR) IR communications Buzzer. OLED Screen: 128x64 pixels 16 Wemos D1 R32 Multi-sensor shield OLED screen 128x64
  • 17. Electronics Microcontrollers for IoT Applications Leopoldo Armesto Senior Lecturer Universitat Politècnica de València 17