Electronic Project Engineer's Best Partner!
engineer

How to Build an AI Desktop Buddy ESP32, BLE and Custom PCB Design?

35 0 Dec 03.2026, 17:22:00

QUICK ANSWER  An AI Desktop Buddy is both a fun electronic pet and a human–machine interface that connects AI applications to the physical world. This guide explains how to build one using an ESP32, BLE communication, and a custom PCB design, covering everything from prototyping to manufacturing.

How Does an AI Desktop Buddy Work

An AI desktop buddy does not need to run an AI model locally. Instead, it communicates with the AI application running on a computer.

The system has three main parts:

  • AI application — Manages conversations, tasks, and permission requests.

  • BLE communication — Transfers status updates and user responses.

  • Embedded hardware — Displays information and handles physical interactions.

For example, when Claude is processing a task, the desktop application sends status information to the device. The ESP32 receives the data and updates the screen.

When Claude requests permission to perform an action, the device displays the request. Users can then approve or deny it using physical buttons.

This architecture keeps the hardware relatively simple because AI processing remains on the computer.

AI Desktop Buddy

ESP32 and BLE Communication

The reference project uses an ESP32-based M5StickC Plus development board. Its firmware is built with the Arduino framework and uses the M5StickCPlus library for display, IMU, and button functions.

The more interesting part is its communication protocol.

Claude Desktop Buddy uses Bluetooth Low Energy (BLE) with the Nordic UART Service (NUS). Data is exchanged as UTF-8 JSON messages, with each message ending in a newline character.

The device receives information such as:

  • Number of active AI sessions

  • Current task status

  • Recent messages

  • Pending permission requests

It can also send approval and denial decisions back to the computer.

ESP32 development 32

An Important Communication Design Consideration

BLE does not necessarily deliver an entire JSON message in one transmission. A message may be split into multiple packets.

The firmware therefore needs to buffer incoming data until it receives the newline character, then parse the complete JSON message.

This is an important consideration when developing custom hardware. Reliable communication depends not only on the Bluetooth module but also on how the MCU handles fragmented data, buffer limits, and connection interruptions.

The protocol documentation also recommends BLE Secure Connections pairing to protect transmitted messages and tool-call information.

What Should You Consider When Designing a Custom PCB

The original project uses an existing development board, which makes prototyping easier. However, developers who want a smaller device, a different display, or a custom enclosure may benefit from designing their own PCB.

Several hardware areas deserve attention.

MCU selection

An ESP32 module is a practical starting point because it provides processing capabilities and integrated wireless connectivity. Other BLE-compatible MCUs can also be considered if the firmware is adapted to their hardware and software platforms.

Display interface

The display determines the required resolution, memory, and communication bandwidth. A larger screen may require more RAM and a faster display interface.

Power management

A USB-powered desktop device can use a relatively simple power supply. A portable version needs additional battery charging, protection, and power management circuits.

PCB layout

The ESP32 antenna needs an appropriate clearance area. Keep it away from batteries, metal structures, and other components that could interfere with wireless performance.

The display interface, power circuitry, buttons, and USB connector should also be arranged to simplify routing and assembly.

These decisions should be considered together with the enclosure design, rather than after the PCB layout is finished.

From Prototype to Custom PCB and PCBA

Building a working prototype is only the first step. Turning it into a custom hardware product requires additional engineering work.

A typical development process includes:

  1. Test the BLE communication and user interaction using an existing development board.

  2. Select the MCU, display, power components, and other hardware.

  3. Create the schematic and PCB layout.

  4. Check the design for electrical and manufacturing issues.

  5. Manufacture the PCB and assemble the components.

  6. Test the assembled board for power, communication, display, and button functionality.

Before ordering PCBA, developers should prepare the Gerber files, Bill of Materials (BOM), and Pick-and-Place files.

These documents allow the manufacturer to fabricate the bare PCB, source components, and assemble the board according to the design.

pcb of ai desktop buddy

Build Your AI Desktop Buddy with PCBgogo

Once your custom PCB design is ready, the next step is turning it into a physical device.

PCBgogo provides PCB fabrication and PCBA manufacturing services to support hardware development, from early prototypes to small-batch production.

  • Custom PCB Manufacturing — Fabrication of boards based on your PCB design files.

  • Component Sourcing — Procurement of electronic components based on your BOM.

  • SMT Assembly — Automated placement and soldering of surface-mount components.

  • Through-Hole Assembly — Assembly of through-hole components.

  • Inspection and Testing — Manufacturing inspection and testing options for assembled boards.

Whether you are developing a compact ESP32 desktop buddy, experimenting with a different display, or building a customized AI interaction device, PCBgogo can provide PCB and PCBA manufacturing support to help turn your design into a working prototype.

PCBgogo - Reliable, High-Quality PCB Manufacturing    
       PCBgogo is a one-stop PCB and PCBA manufacturing factory, helping you save time and costs while ensuring consistent, reliable quality.
     Get a Free Quote  >  

Conclusion

Claude Desktop Buddy demonstrates how a simple embedded device can extend an AI assistant beyond the computer screen.

Its combination of ESP32, BLE communication, display, and physical controls provides a useful starting point for developers interested in building AI-powered hardware.

More importantly, the project offers an opportunity to explore custom hardware design. By adapting the reference architecture, developers can create their own PCB layouts, improve the user experience, and build devices with different features and form factors.

With professional PCB fabrication and PCBA services from PCBgogo, developers can take the next step from an open-source reference project to their own physical AI hardware.

Share the Project
Hot Label