Skip to content
esp-labsESP32-S3 bench guide

ESP32-S3 track guide · 8 hands-on labs

ESP32-S3 Bluetooth LE (BLE) Labs: Scanning, GATT, HID & MIDI

Cover the full Bluetooth 5 Low Energy stack on ESP32-S3: decoding raw advertising payloads, broadcasting custom beacons, hosting GATT characteristics, securing links with pairing and bonding, Web Bluetooth apps, BLE HID keyboards, BLE MIDI instruments, and BLE Central host mode.

Hardware needed for this track

Browse full parts library

Base requirement: ESP32-S3-DevKitC-1 board and a USB-C data cable.

  • 1.9″ ST7789 screen
  • Smartphone (Bluetooth)
  • Push button
  • Bluetooth keyboard or mouse

All labs in this track

  1. Find your own phone among the devices around you, read its packets byte by byte, and measure how often it advertises.

    • advertising
    • channels 37 · 38 · 39
    • AD structures
    • active vs passive scan
    • RSSI → distance
    • private addresses
    • scan duty cycle
  2. Make the board broadcast live values that your phone reads without ever connecting.

    • broadcaster role
    • 31-byte budget
    • AD structures
    • manufacturer data
    • iBeacon & Eddystone
    • ADV_IND · SCAN_IND · NONCONN
    • interval & advDelay
    • TX power vs battery
  3. Control the board from your phone over Bluetooth, and see every operation arrive on the gatt view.

    • central & peripheral
    • GATT: services & characteristics
    • UUIDs (16 & 128-bit)
    • read · write · notify
    • CCCD (subscribing)
    • MTU
    • connection interval
  4. Pair your phone with each of the three methods, read the Vault, and lock the board to your phone.

    • pairing vs bonding
    • IO capabilities
    • Just Works · Passkey · Numeric Comparison
    • LE Secure Connections (ECDH)
    • MITM protection
    • LTK & IRK
    • private addresses
    • filter accept list
  5. Control and draw on the board from a web page, and measure how many bytes per second your link really carries.

    • Web Bluetooth
    • GATT client in JavaScript
    • write without response
    • binary protocols
    • notification streams
    • throughput = MTU × packets ÷ interval
    • 2M PHY & long packets
  6. Pair the board as a keyboard, control your music with the button, and type text in the right layout.

    • HID over GATT
    • report map
    • key numbers vs characters
    • keyboard layouts
    • consumer control
    • bonding
    • media remote
  7. Play notes from the board into a synth, and see the synth's notes on the board.

    • MIDI messages
    • BLE-MIDI packets
    • timestamps
    • running status
    • connection interval = latency
    • capacitive touch
    • General MIDI drums
  8. Pair your BLE keyboard with the board, type on its screen, and understand every byte the keyboard sends.

    • central role
    • service discovery
    • HID over GATT (HOGP)
    • Report Map parsing
    • passkey entry as central
    • CCCD subscribe
    • key codes vs layouts
    • bond & reconnect

ESP32-S3 peripherals covered

Check all 17 ESP32-S3 hardware gotchas
  • Bluetooth LE

    Bluetooth 5 Low Energy: beacons, phones, keyboards, MIDI

  • USB Serial/JTAG

    A serial port and a debugger on two pins, no adapter needed

  • GPIO and IO MUX

    45 pins, and a matrix that routes almost any signal to almost any pin

Frequently asked questions

Does the ESP32-S3 support Bluetooth Classic (A2DP / SPP)?
No. The ESP32-S3 supports Bluetooth 5 Low Energy (BLE) only—not Bluetooth Classic audio or SPP. Use BLE GATT, HID-over-GATT, or BLE MIDI instead.
Why use NimBLE instead of the default Bluedroid stack on ESP32-S3?
NimBLE uses significantly less SRAM and flash while supporting both Peripheral (server) and Central (host) roles cleanly, which leaves more memory when combined with the TFT screen.
Why does BLE stop working if I lower the CPU clock away from the PLL?
Both the Wi-Fi and Bluetooth LE radios on ESP32-S3 require the PLL clock source; running the CPU solely from the 40 MHz crystal or RC oscillator disables the radio.