New ESP32-S3 development board is now available → /products
OceanLabz
Login
AI Xiaozhi

ESP32 S3 AI Expansion with S3 Camera Board

By OceanLabz Admin•27 Oct 2026

Introduction

The OceanLabz ESP32-S3 Expansion Board simplifies AI and IoT development by integrating support for the ESP32-S3 N16R8 DevKit, ST7735 TFT, SSD1306 OLED, INMP441 microphone, and MAX98357A audio amplifier on a single plug-and-play board. It reduces wiring, provides GPIO expansion, and is ideal for XiaoZhi AI, TinyML, robotics, smart home, and embedded system projects.

In this tutorial, we will set up XiaoZhi AI on the OceanLabz ESP32-S3 Expansion Board step by step. By the end of this guide, your board will be ready to use as an AI voice assistant.

Features

Required Components

Component Description Qty
ESP32-S3 Dev Board ESP32 S3 Devkit Without Camera Board 1
INMP441 I2S Mic Digital I2S microphone 1
MAX98357A Amp I2S audio amplifier 1
2W 4Ω Speaker 2W 4Ω Speaker or any available speaker up to 16Ω. 1
TFT 1.8 inc Display (I2C) 128x160 Shows pairing code, Animations and more! 1
AI EXPANSION BOARD For prototyping 1

Circuit Connections

🎤 INMP441 Mic
VDD → 3.3V
GND → GND
L/R → GND
SD → GPIO42
WS → GPIO1
SCK → GPIO2
🔊 MAX98357A Amp
VIN → 5V
GND → GND
LRC → GPIO46
DIN → GPIO41
GAIN → GND
BCLK → GPIO14
📺 TFT Display
VCC → 3.3V
GND → GND
BL → GPIO19
CLK → GPIO45
DIN → GPIO21
D/C → GPIO47
CS → GPIO3
RST → GPIO20

Hardware Setup

⚠️ Important: The Expansion Board has 22 female header pins per side, while the ESP32-S3 Camera Board has 20. Align the board correctly, leaving one female pin empty at both the front and back on each side.
⚠️ Important Note – ESP32-S3 AI Expansion Board

The ESP32-S3 AI Expansion Board, designed to work with an ESP32-S3 development board featuring two USB ports: USB OTG and USB UART.

Recommended Programming Method: Always use the USB UART port for programming instead of USB OTG. The USB OTG signal lines share GPIO connections with the TFT backlight and reset signals. Incorrect connections or configurations may cause hardware damage.

If USB UART Is Not Working: If USB OTG is your only programming option, first use the onboard jumpers to disconnect the TFT backlight and reset signals from their ESP32 GPIO connections. Then connect these signals directly to 3.3V as per the board's jumper configuration.

Once these changes are made, you can safely program the ESP32-S3 board through the USB OTG port, provided GPIO 19 and GPIO 20 are not being used for other functions in your code.

Flash Firmware (Browser-Based)

No Arduino IDE required — flash directly from your browser using Web Serial.

  1. Click "CONNECT" below
  2. Hold BOOT button on ESP32 and connect USB
  3. Select the ESP32 port and click Connect
  4. Choose "Install OceanLabz ESP32" and click Install
  5. Wait 2 minutes for completion
ESP32-S3 TFT
Connect your ESP32-S3 board to your computer using a USB cable, then click below to install the firmware.

Wi-Fi Configuration

After flashing, the ESP32 creates a hotspot named Xiaozhi-XXXX.

  1. Connect to this Wi-Fi (no password)
  2. Open 192.168.4.1 in browser
  3. Select your home 2.4GHz Wi-Fi and enter password
  4. Device will restart and connect to your network
⚠️ ESP32 only supports 2.4GHz networks. Use a data-capable USB cable.

Create Account & Pair

1
Reconnect to your home Wi-Fi (exit the XiaoZhi hotspot).
2
Open xiaozhi.me and click on "Console".
3
Create a free account using Google Sign-Up (fastest method).

Pair Your ESP32

1
Click "+ Add Device" in the console dashboard.
2
Read the 6-digit code scrolling on the TFT or OLED display.
3
Enter the code and click Confirm to link your device.
4
Accept the agreement and click "Start Using", then select Open Source (Free).
⚠️ The code refreshes quickly — enter it as soon as it appears.
Device Paired Successfully!
Your ESP32 is now connected and visible in the console dashboard.

Most Powerful Features & Voice Commands

🔊 Set volume to 50%
☀️ Increase brightness
🌧️ Check weather status
🎵 Play music
😉 Tell me a joke
📊 Get instant AI response
🎤 Press BOOT to activate
Auto-sleep after silence — press BOOT again to wake.