SONUB
EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure SONUB site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to SONUB, reload the page, and use the bell to enable notifications.

On iPhone or iPad, add SONUB to your Home Screen, open it there, then allow notifications.

Log in Log out Display theme Default theme Dark theme Pink theme Chat 1:1 Chat Group Chat Forum Notices News Suggestions Main menu
Development · Work · Business

AI in Practice

How to use for building websites, apps and games, for everyday work, and for business.

AI robot

Build an AI robot that hears, speaks, sees and moves for under $100

Buy cheap parts, put them together yourself and let be the robot’s brain. This is how to build a robot that hears with a microphone, speaks through a speaker, sees with a camera and moves on wheels for less than $100 in parts.

A maker at a desk building a small robot car with a camera, microphone, speaker and wheels, wirelessly linked to an AI brain in a cloud

Four abilities and the parts behind them

  • Parts inside the robot body
  • AI brain linked over Wi-Fi
  1. Hear — microphone

    The INMP441 digital microphone picks up sound and passes it to the board. The board recognizes its wake word on its own, then compresses what you say next and sends it to the AI.

    $3–4
    Microphone
  2. Speak — speaker

    The MAX98357A amplifier boosts the voice made by the AI and plays it through a small speaker. You choose the voice, tone and language in the AI settings.

    $3–4
    Amplifier
  3. See — camera

    The OV2640 camera on the ESP32-S3-CAM board takes pictures. Ask “What do you see in front of you?” and the photo goes to the AI’s vision , which describes what is there.

    $10–16
    Board (body · eye)
  4. Move — wheels

    The DRV8833 motor driver turns two TT gear motors. Spin both wheels the same way to go forward or back; spin them in opposite directions to turn on the spot.

    $2–6
    Motor driver
  5. Brain — artificial intelligence

    The ESP32-S3 is a tiny computer and cannot run a large AI itself. So it sends sound and photos over Wi-Fi to an AI , and the AI listens, thinks and sends back what to say and what to do. The robot tells the AI about its wheels and camera as tools (), and the AI calls those tools when it needs them.

    From one spoken sentence to an answer and a move
    1. Listen
    2. Turn speech into text
    3. AI thinks
    4. Run a tool
    5. Answer out loud

Parts list

You can buy everything from online stores such as AliExpress and Amazon. Prices are rough ranges as of October 2026 and change with the seller, shipping and exchange rates. The total stays under $100, so spend what is left on spare wires and parts.

Parts list
Part Model What it does Rough price
Board (body · eye) ESP32-S3-CAM (N16R8 · OV2640) A tiny computer with Wi-Fi. Its camera makes it the eye too. It must be an ESP32-S3 (an ESP32-S2 will not work). $10–16
Microphone INMP441 I2S The ear that takes in sound digitally $3–4
Amplifier MAX98357A I2S Boosts the board’s to drive the speaker $3–4
Speaker 3W 4Ω/8Ω The mouth the voice comes out of $2–4
Motor driver DRV8833 / TB6612FNG Lets the board’s weak signal switch the motors’ strong current on and off $2–6
Wheeled body 2WD chassis · TT motor ×2 A two-wheel car kit with a plate, two wheels, a caster wheel and two TT gear motors $10–15
Battery 18650 ×2 · holder · switch Two protected 18650 cells (7.4V) with a holder and power switch $8–15
Voltage converter 5V 3A buck converter Steps 7.4V down to the 5V the board and amplifier use $2–4
Wires Jumper wires · breadboard Jumper wires and a small breadboard — connect without soldering $3–5
Servo motor (optional) SG90 Carries the camera so the robot can turn its head $2–3
Total (rough) $45–76

Wiring — pin map

Connect everything with the power off. The microphone and amplifier pins match the ESP32-S3-CAM breadboard setup in the xiaozhi firmware, so you can use them as they are. The camera just plugs into the board’s flat connector. Tie all the GNDs together.

  • Microphone INMP441 I2S

    WS
    GPIO 1
    SCK
    GPIO 2
    SD
    GPIO 42
    VDD
    3V3
    L/R · GND
    GND
  • Amplifier MAX98357A I2S

    DIN
    GPIO 39
    BCLK
    GPIO 40
    LRC
    GPIO 41
    VIN · SD
    5V
    GND
    GND
  • Motor driver DRV8833 / TB6612FNG

    AIN1
    GPIO 21
    AIN2
    GPIO 47
    BIN1
    GPIO 14
    BIN2
    GPIO 38
    VM
    7.4V (18650 ×2)
    GND
    GND
  • Voltage converter 5V 3A buck converter

    IN
    7.4V (18650 ×2)
    OUT 5V
    ESP32-S3 5V · MAX98357A VIN
    GND
    GND

The motor pins are an example picked from the pins left free when no screen (LCD) or lamp is attached. Boards differ, so always check the pin names printed on yours, and avoid GPIO 0·3·45·46 (used at boot) and GPIO 35–37 (used by ). Set the same numbers for the motor pins in the firmware.

Build it step by step

  1. Order the parts

    Order from the list above. Pick an ESP32-S3 camera board with 8MB PSRAM (N16R8). Overseas shipping can take a while, so buy spare wires at the same time.

  2. Assemble the body

    Follow the two-wheel kit’s manual and screw the motors, wheels, caster wheel and battery holder to the plate. Push the board, microphone and amplifier into the breadboard and set it on the plate.

  3. Wire it up

    Connect the wires following the pin map above. Battery + goes through the power switch to the motor driver (VM) and the voltage converter; the converter’s 5V goes to the board and the amplifier. Before switching on, check again that + and − are not swapped.

  4. Flash the firmware

    Flash xiaozhi-esp32, an voice AI firmware, to the board over USB. The easiest start is a ready-made file in a web flasher; to build it yourself, choose the breadboard board with a camera (bread-compact-wifi-s3cam) in ESP-IDF.

  5. Connect Wi-Fi and the brain

    With your phone, join the Wi-Fi the robot creates (it starts with Xiaozhi-) and enter your home Wi-Fi (2.4GHz) at http://192.168.4.1. The robot reads out a six-digit ; register it in the xiaozhi.me console and choose a name, voice, language and AI model.

  6. Add movement tools

    Copy the board folder to make your own robot board and register self.car.move (drive the wheels) and self.car.stop (stop) as MCP tools (code below). Now when you say “Go forward a little”, the AI calls that tool.

  7. Test it

    Say the wake word or press the button on the board to start talking. Ask “What do you see in front of you?” and it takes a photo with the built-in camera tool (self.camera.take_photo) and answers. Test movement with the wheels lifted off the floor at first.

Three ways to choose the brain

Whichever you choose, keep the AI’s on the server only, never in the robot. The robot only holds a device code.

  1. xiaozhi.me — the easiest start

    The official xiaozhi server. Register the device code and start talking right away; individuals can use it for free (terms may change). It is run in China, though, so your voice and photos go there.

  2. Your own server — pick any AI

    Run the open-source xiaozhi-esp32-server on your server with and change the server address in the firmware. You choose , the (, , DeepSeek, and more), and the vision model, and voice and photos pass through your own server.

  3. Real-time voice AI — the most natural talk

    Connect straight to the OpenAI Realtime , as ElatoAI does. One model hears, thinks and speaks, so answers are quick and natural (under 2 seconds round trip), but you pay for every minute of conversation.

Give the robot body movement tools

The xiaozhi firmware has an MCP server inside the robot body. Register a tool’s name, description and inputs as below, and the AI reads that description during a conversation and calls the tool at the right moment. Drive() is a short function that switches the four motor pins above and stops the motors when the time is up.

// main/boards/my-robot-car/ (copy of bread-compact-wifi-s3cam)
auto& mcp = McpServer::GetInstance();

mcp.AddTool("self.car.move",
    "Drive the robot car. direction: forward, backward, left, right. ms: 100-3000",
    PropertyList({
        Property("direction", kPropertyTypeString),
        Property("ms", kPropertyTypeInteger, 100, 3000),
    }),
    [this](const PropertyList& p) -> ReturnValue {
        Drive(p["direction"].value<std::string>(), p["ms"].value<int>());
        return true;   // Drive() stops the motors when the time is up
    });

mcp.AddTool("self.car.stop", "Stop the motors now", PropertyList(),
    [this](const PropertyList&) -> ReturnValue { Stop(); return true; });

Rules to keep

  • Keep API keys on the server, never in the robot (ESP32). Anyone can read out the firmware flashed to a board.
  • Limit each move to a few seconds and make the robot stop by itself when the time is up. Always fit a power switch you can reach by hand.
  • Use protected 18650 cells, never put + and − the wrong way round, and do not leave them charging unattended. Children build it with an adult.
  • The microphone and camera send the sound and sight of your home to a server. Tell your family, and use your own server if that worries you.
  • Wi-Fi works on 2.4GHz only. When the internet drops, the brain drops too and the robot cannot talk. If you use a paid AI API, set a spending limit first.

Other ways

  1. A walking robot like the video

    The Sesame robot in the reference video walks on four legs with an ESP32 board, eight MG90S servos and a small OLED screen for its face (about $50–60 in parts; needs a printer and soldering). It has no microphone, camera or AI, so switch the board to an ESP32-S3 and add a microphone and amplifier to give it a brain the same way.

    Source Reference video

  2. Raspberry Pi Zero 2 W

    Add a camera and the same microphone and amplifier to this $15 computer and use AI APIs and OpenCV straight from (about $60–95 in total). It can do a lot, but it boots slowly and uses more power.

  3. Start with a kit

    If choosing parts feels hard, start talking with a xiaozhi kit that bundles an ESP32-S3 camera board, microphone and speaker, such as the Keyestudio KS5028, then add wheels and a motor driver.

References (checked 2026-10-22)

Guidelines

AI

Study

Vibe Coding

AI in Practice

Certificate

AI Class

Chat

Forum

Practice

Create

Community

More

Glossary

Pick a word you don't know. You'll see a simple explanation and related terms.

No matching term yet.

Pick a term to see its explanation.