Lesson Progress
0% Complete

Introduction to Microcontrollers (ESP32 & ESP32-CAM)

Time: 2:00 PM – 3:00 PM

Objective: Meet the “Brain” of the workshop and understand the power of WiFi-enabled controllers.

Presentation:

Esp32_3_IoT Microcontroller by Infinite Engineers

1. What is a Microcontroller?

Unlike a computer (which can run many programs at once), a microcontroller is a compact integrated circuit designed to govern a specific operation in an embedded system.

  • The “Brain”: It contains a processor, memory, and programmable input/output (I/O) peripherals.
  • The ESP32 Advantage: Unlike older boards, the ESP32 has built-in WiFi and Bluetooth, making it perfect for IoT (Internet of Things) projects.

2. Deep Dive: The ESP32 (30-Pin Board)

Show the students the physical board and point out these key features:

  • Micro-USB Port: Used for both power and uploading code from the computer.
  • Dual Core: It’s powerful enough to handle complex logic and wireless communication simultaneously.
  • GPIO Pins: These are the “nervous system” where we connect sensors (inputs) and motors/LEDs (outputs).

3. Introduction to ESP32-CAM

Explain that this is a specialized version of the ESP32 that adds “sight” to projects.

  • Camera Module: It includes a small OV2640 camera and a microSD card slot.
  • Use Cases: Face recognition, QR code scanning, and live video streaming over WiFi.
  • The Challenge: It has fewer GPIO pins than the standard ESP32 because the camera uses most of them.

4. How we “Talk” to the ESP32

To make the brain work, we must give it instructions (Code).

  • The Language: We use C++ (via the Arduino IDE).
  • The Logic: * Setup: Runs once (like waking up in the morning).
    • Loop: Runs forever (like breathing or heartbeat).

5. Interactive Activity: Component Pairing

Hold up various components from the list and ask students which “Pin” they think they need:

  • Digital Pins: For things that are either ON or OFF (e.g., LED, Buzzer, Switch).
  • Analog Pins: For things with a range of values (e.g., LDR, Potentiometer, Soil Moisture).

Required Materials for this Session

  • ESP32 30-pin board
  • USB Cable Type B
  • Extension Board (Shield)
  • ESP32-CAM Module (for demonstration)