STM32 microcontrollers are the workhorses of embedded design. The low-cost Blue Pill (STM32F103C8T6) is a popular choice for prototyping, while Nucleo boards add an onboard ST-Link debugger and richer peripherals. What they all have in common is a serial UART that can be turned into a bidirectional data stream. The ASI Biont AI agent exploits that stream to create an intelligent link between your MCU and your chat interface.
In just a few minutes, ASI Biont can read telemetry from an STM32, control its GPIO pins, and even send alerts to messaging apps. The integration is dialog-driven: you describe the board and its connection parameters in natural language, and the AI agent writes the code. There are no management panels or buttons; you talk to the agent as if it were a colleague.
In this guide, we cover ten practical scenarios with code examples, from a simple COM-port bridge to a complete multi-board test bench.
Connection Methods at a Glance
| Method | Best for | STM32 example |
|---|---|---|
| COM port (Hardware Bridge) | USB/UART debugging | Blue Pill via CH340 |
| MQTT | Wireless |
| MQTT | Wireless telemetry and control | Blue Pill via ESP8266 |
| REST API | Cloud dashboards | Nucleo via Ethernet |
| WebSocket | Real-time browser dashboards | Blue Pill with W5500 |
Now that you have a clear picture of the connection options, let's walk through ten practical scenarios. We'll use the Blue Pill with a CH340 USB-to-serial adapter for the wired examples, and an ESP8266 module for the wireless ones. The same patterns apply to any Nucleo or custom STM32 board, as long as you know the UART peripheral and the pinout.
Step 1: Virtual COM Port Bridge
The simplest integration is a transparent bridge. Connect your STM32 to the host PC, note the COM port (e.g., COM8 on Windows or /dev/ttyACM0 on Linux), and tell ASI Biont:
Bridge COM8 at 115200 baud to my chat.
The agent creates a bidirectional pipe: every message you type in chat is sent to the board's UART, and every character the board prints appears in your chat window. This is perfect for interactive debugging or for chatting with a robot.
Here's a minimal STM32CubeIDE firmware for the Blue Pill that echoes received bytes:
```c
Comments