Intro to Microcontrollers
Intro to Microcontrollers
& ESP32
Presented by:
It includes:
• Processor (CPU) – the brain that executes instructions.
• Memory – to store data and program code (e.g., Flash,
RAM).
• Input/Output (I/O) Ports – to communicate with other
devices or sensors.
• Peripherals – like timers, ADCs, UARTs, and more.
Microcontroller’s role:
• Acts as the central control unit.
• Collects data from sensors.
• Processes that data based on programmed logic.
• Controls actuators or other devices accordingly.
Common Applications:
• Home appliances (washing machines, microwaves)
• Cars (engine control units, airbags)
• Industrial machines (robotic arms)
• Consumer electronics (remote controls, fitness
trackers)
Summary
Feature Microcontroller
Purpose Perform specific control tasks
Key CPU, memory, I/O, peripherals on one
Components chip
First DevelopedMid-1970s (e.g., Intel 8048)
Embedded systems (home, automotive,
Common Usage
IoT)
Low-cost, efficient control for dedicated
?Why Important
tasks
Types of Microcontrollers and Their Uses:
Microcontrollers come in various types, which differ by architecture, bit size,
manufacturer, and features.
Below is a categorized guide:
1. Based on Bit Size
The bit size refers to the width of the data bus, which impacts the amount
of data a microcontroller can process at once.
Type Description Common Uses
Simple, low-power, and Remote controls,
bit MCUs-8 inexpensive. Suitable for toys, simple
.basic tasks sensors
Better performance than 8- Automotive
bit MCUs-16 bit; used where more power sensors, small
.is needed appliances
High processing power and IoT, industrial
bit MCUs-32 advanced features. Often systems, smart
.ARM Cortex-based home
2. Based on Manufacturer / Popular
Families:
AVR (by Atmel/Microchip)
• Popular chip: ATmega328 (used in
Arduino Uno)
• Features: 8-bit, easy to program, popular
in hobby projects
• Uses: Prototyping, robotics, educational
tools
PIC (by Microchip)
•Types: PIC10, PIC16, PIC32
•Features: Range from 8-bit to 32-bit, robust
and reliable
•Uses: Consumer electronics, automotive,
medical devices
PIC10 PIC16
PIC32
ARM Cortex (by ARM, used by many brands
like STM, NXP, TI)
Suitable
Application Area Example Devices
Microcontroller Type
Smart bulbs,
IoT (Internet of ESP32, STM32, ARM
sensors,
Things) Cortex
thermostats
ATmega328 (Arduino), Autonomous robots,
Robotics
STM32 line followers
PIC16/32, ARM Engine control units,
Automotive
Cortex-M airbags
Home Washing machines,
bit PIC/AVR-8
Appliances microwaves
Fitness trackers,
Wearables MSP430, STM32L
smartwatches
Glucometers, blood
Medical Devices PIC, MSP430, STM32
pressure monitors