ANTHONY NISTOR // VOICE CONTROLLED STACKR

Voice Controlled Stackr

An I2S microphone on Stackr streams sound to a desktop application. The application turns that sound into text, recognizes a spoken instruction, and tells the robot what to do.

// SYSTEM ARCHITECTURE

About the Project

In the spirit of the Full Self Drive (FSD) project I wanted my Stackr robot to get voice control as well. Using a INMP441 microphone I gave the robot “ears”. With a similar architecture to the FSD project I created an audio stream over WiFi from the microphone to the desktop. Running a voice to text AI application on the desktop I was able to understand the commands coming from the robot and control it accordingly. This project was a good opportunity to learn about I2S digital audio interface and how to add another AI capability to Stackr.

  • I2S Microphone The microphone on the robot uses an I2S connection and streams the sound it hears.
  • Speech to Text A desktop application runs an AI program trained to turn that sound into text.
  • Recognized Commands The application knows a set of instructions. GO, LEFT, RIGHT, and STOP are among them.
  • Robot Response Once an instruction is recognized, the application sends the corresponding command and the robot carries it out.
// CHALLENGES

Challenges

ISSUE SOLUTION
Response time was too long Simplified the commands the robot is responding to. Reduced the timeouts in the recording process. Used a simplified model.
Motor noise was interfering with the microphone Run robot at lower speeds. Filtered the motor noise in software.
Switching to a simplified model introduced errors in transcribing the sound. We observed that errors were contained though (eg. GO command produced either: “go”, “no” or “so” transcriptions. As a result I changed the algorithm to react to all of those considering that was not intersecting with responses for the other desired commands.
How to stream I2S signal over TCP A TCP pipe was implemented to stream the sound continuously and not in chunks as originally done.
// VOICE RUN

Voice Control Demo

The microphone mounted on Stackr.

VOICE_DEMO.MP4 LIVE DEMO

On the Bench

The I2S microphone in its printed frame, wired to the controller on Stackr.

// HARDWARE & SOFTWARE

System Component Breakdown

01

Microphone Mount

A I2S digital microphone is used to digitize sound and make it available to the Stackr's MCU. A mount that make the microphone point in any desired angle was created to hold it.

02

AI Software

Similar to Full Self Driving project this project relies on AI to convert sound to text.

03

Software Architecture

Because Arduino MCU onboard of Stackr is underpowered for significant AI tasks a distributed architecture is used. The microphone streams the digital audio from the phone to a desktop app. The desktop application runs the AI and sends instructions to Stackr using TCP over WiFi.

04

Communication

To send the audio from the microphone to the MCU I2S is used. From Stackr to the desktop the communication is done using TCP over WiFi.

// PROJECT MEDIA

Build Pictures

The I2S microphone, the printed mount, and the frame on Stackr.

CAD Design
CLICK TO ENLARGE

CAD Design

FreeCAD parts for the blue microphone frame: side plates, cross bar, and round cover.

3D Printed Parts
CLICK TO ENLARGE

3D Printed Parts

Blue printed side frames, cross bar, and cover, laid out with the round microphone board and header pins.

Microphone Mount
CLICK TO ENLARGE

Microphone Mount

INMP441 pressed into the blue bar, with the colored ribbon cable plugged into its header.

Assembled Add-On
CLICK TO ENLARGE

Assembled Add-On

Blue frame screwed together, with the microphone cable hanging from the top bar.

Add-On + Stackr
CLICK TO ENLARGE

Add-On + Stackr

Blue frame bolted over the white Stackr, with the microphone cable plugged into the Nano ESP32.

// SLIDESHOW

All Project Pictures

12 photographs and drawings from this build.

20261019_134954~2.jpg 1 / 12
20261019_134954~2.jpg
// TECHNICAL SPECIFICATIONS

System Parameters

PARAMETER SPECIFICATION / VALUE
Microphone INMP441
Communication I2S
CAD Software FreeCAD
Manufacturing 3D Printing
Algorithms AI
Communication WiFi/TCP