Voice Control Meets Hardware: Building a WebUSB-Powered Toy Car
Have you ever wanted to control physical hardware using just your voice? What if you could do it directly from a web browser, no native app required? That's exactly what the bot-reborn project demonstrates—and it's a fascinating look at where web technologies and hardware are heading.
The Concept
At its core, bot-reborn is a toy car with a phone mounted on top. The phone listens for voice commands, processes them, and sends instructions to an FT232H USB-to-FIFO chip using WebUSB in FTDI async bitbang mode. The result? A car that responds to spoken directions without any custom software installed on your device—just a browser and the right webpage.
This isn't just a novelty project. It showcases several powerful technologies working together in a way that's both accessible and educational.
WebUSB: The Browser as a Hardware Interface
For years, connecting custom hardware to a computer required native drivers, platform-specific code, or middleware like Electron. WebUSB changes that equation. It's a relatively new browser API that allows web pages to communicate directly with USB devices.
Think about what this means for prototyping. You can write hardware-interfacing code in JavaScript, deploy it to a webpage, and users can access it instantly from Chrome, Edge, or any Chromium-based browser. No installation, no driver headaches, no platform lock-in. For startups and developers building hardware products, this dramatically reduces the barrier to creating companion web apps for your devices.
The FT232H chip is a popular choice for hardware projects because it provides a flexible USB-to-serial interface with GPIO capabilities. In async bitbang mode, it can toggle pins rapidly based on byte values sent over USB—essentially turning it into a programmable logic controller you can command from the browser.
Voice Recognition: The Human Interface
The voice control layer uses the Web Speech API, which modern browsers support natively. This API can transcribe spoken words in real-time without sending data to external servers (when using on-device recognition). For a toy car project, this means instant response times and privacy by default.
You say "forward," the car moves forward. "Turn left," and it turns left. The voice commands get translated into byte sequences that the FT232H interprets as pin states, which then drive the car's motors through whatever motor controller the builder has implemented.
Why This Matters for Developers and Startups
If you're building a hardware product, you need a companion app. Traditionally, that means investing in native development for iOS and Android, or maintaining a desktop application. WebUSB and voice APIs shift that paradigm.
You could ship a simple webpage that handles everything: device pairing, user interface, and now even voice control. Users visit your page, grant browser permissions to access their hardware, and they're immediately interacting with your product through a familiar interface—their web browser.
This approach also simplifies debugging. JavaScript's tooling for logging, inspection, and hot-reloading makes iterative development faster than recompiling embedded C code for every change.
Getting Started
The bot-reborn repository provides the foundation for experimenting with this stack. Even if you don't have a toy car lying around, you can explore how the FTDI bitbang communication works, study the WebUSB pairing flow, or adapt the voice recognition logic for other projects.
Key areas to explore:
- WebUSB device permissions and connection handling
- FTDI async bitbang protocol for GPIO control
- Web Speech API integration for continuous recognition
- The motor control logic that translates commands into movement
The Future is Browser-Native Hardware
Projects like bot-reborn hint at a future where web browsers are full-fledged hardware platforms. The same JavaScript ecosystem that powers your web app can now talk to sensors, motors, and custom circuits. For makers, it lowers the barrier to entry. For startups, it simplifies product ecosystems. For developers, it's a new frontier with familiar tools.
Voice control, WebUSB, and bitbang protocols aren't just technical curiosities—they're building blocks for the next generation of web-connected hardware. Whether you're prototyping a smart device or just curious about what your browser can do, this project offers a playground worth exploring.
What voice-controlled hardware would you build with these tools?
Read in other languages: