All workshops
Microcontrollers
Electronics Embedded ESP32

Microcontrollers

Discover microcontrollers, from their architecture to a multiplayer project, with the ESP32-S3 and Arduino-ESP32.

14 tutorials ~26h 6 components 12 resources
Start

Overview

Welcome to the Microcontrollers course!

It takes you from the fundamental concepts of a microcontroller (architecture of a µC, GPIO, ADC, serial buses) to building a multiplayer embedded mini-game on the ESP32-S3, with Seeed Studio’s XIAO ESP32S3 board.

Skills involved

  • Understand the internal architecture of a microcontroller (CPU, memories, peripherals)
  • Drive digital and analog inputs/outputs (GPIO, ADC, PWM)
  • Communicate over the standard serial buses (UART, I2C, SPI)
  • Structure an embedded program with a game loop and a finite state machine (FSM)
  • Design a schematic in KiCad and solder a PCB
  • Connect a microcontroller to a web browser over Wi-Fi (web server, WebSocket)

Progression

Phase Time Outcome
Lectures 4.5 h µC: architecture, GPIO, ADC/PWM, buses, development toolchain
Labs 10.5 h Kit modules on a breadboard, board designed in KiCad then soldered, Pong on the board (Lab 1: 1 h 30, Labs 2 to 4: 3 h each)
Project 24 h, in pairs Multiplayer Snake (console + browser) on the soldered board: see the brief

Why this project?

The Game Boy style mini-game is the common thread of the course: simple to understand, rich to implement. The labs build the console itself: each module of the kit is first tested on a breadboard, then brought together on a board designed in KiCad and soldered, on which a first Pong runs. The project then introduces Snake, a new game mechanic, and adds asymmetric multiplayer in the browser. The finite state machine (FSM) used to handle the menu/game/game over screens directly prepares the network states of the project.

The course

The session programme, what you are assessed on and the vocabulary of the course.

The project

The brief of the multiplayer Snake project: requirements, deliverables and assessment.

Slides

The slides of the three lectures and of the project kick-off, to be shown full screen.

Concepts

Key notions to understand before getting started.

Tutorials

Follow the steps in order to complete the workshop from start to finish.

How-to guides

Solve a specific problem, step by step.

Resources

Reference sheets for the hardware, software and tools used in the workshop.

Hardware & Components

Software & Tools

References

Need help?