Index
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) 128×160 | Shows pairing code, Animations and more! | 1 |
| AI EXPANSION BOARD | For prototyping | 1 |
Circuit Connections
GND → GND
L/R → GND
SD → GPIO41
WS → GPIO39
SCK → GPIO40
GND → GND
LRC → GPIO21
DIN → GPIO47
GAIN → GND
BCLK → GPIO48
GND → GND
BL → GPIO42
CLK → GPIO44 RX
DIN → GPIO43 TX
D/C → GPIO38
CS → GPIO45
RST → GPIO1
Hardware Setup


Flash Firmware (Browser-Based)
No Arduino IDE required — flash directly from your browser using Web Serial.
- Click “CONNECT” below
- Hold BOOT button on ESP32 and connect USB
- Select the ESP32 port and click Connect
- Choose “Install OceanLabz ESP32” and click Install
- Wait 2 minutes for completion

Wi-Fi Configuration
After flashing, the ESP32 creates a hotspot named Xiaozhi-XXXX.
- Connect to this Wi-Fi (no password)
- Open
192.168.4.1in browser - Select your home 2.4GHz Wi-Fi and enter password
- Device will restart and connect to your network

Create Account & Pair

Pair Your ESP32


