Intro to Embedded
2025
Overview
Part 1 - Introduction
Part 2 - Hardware Basics
Part 3 - Sensors
Part 4 - Making some stuff!
Next week…
Requirements
What is a Microcontroller?
The ESP32
The ESP32
We must know pin numbers to access them in code.
Search up “pinout diagram” for
whichever microcontroller you use.
Creating a New Project
Project Structure
Serial Communication
Baud rate: The speed of communication (bits per second) between the microcontroller and computer
Upload to ESP32
Accessing GPIO pins
Digital Outputs
In logic In the real world
ON HIGH TRUE 1 3.3 or 5V Vcc
OFF LOW FALSE 0 0V GND
Light Emitting Diodes (LEDs)
Diode: A one-way valve for electric current.
This means you must take care to wire LEDs
in the correct direction
Light Emitting Diodes (LEDs)
Resistors
Control voltage levels and prevent components from burning out
Breadboard
Let’s start wiring!!!
Let’s start wiring!!!
Try to make the following circuit
use a resistor between 200 - 5000 Ohms
Wiring
What happens if we connect it to pin 2?
How can we control LED brightness?
Pulse Width Modulation (PWM)
Pulse Width Modulation (PWM)
Push Button
When pressed, the button closes
the circuit, allowing current to flow through
Push Button
Reading a Pin
‘reading’ will be either 0 or 1
Push Button
What is the state of pin 2 when button is pressed?
What about not pressed?
Pull Up and Pull Down
When setting a pin mode to input, we must specify whether it should be pulled to GND or 5V by default
INPUT_PULLUP => 5V by default
INPUT_PULLDOWN => GND by default
Push Button Example
Potentiometer
Provides variable resistance,
depending on where it is turned
Potentiometer
Choose Your Next Quest
Next Workshop
📍 Where: CB11.05.400 (iHub)
📆 When: Thursday, 11th September
⏰ Time: 6:00 pm - 8:00 pm
Thank You