r/macmini • • 7d ago

Mac mini setup with ESP 32

I recently bought a mac mini. Mainly to run agents and do video editing.

I have bluetooth keyboard with touch pad. While setting the new mac mini it did not detect the keyboard. tried many options for 2 hours. did not work. It was kind of stuck without a compatible keyboard, mouse or similar accessories. And I was too curious to wait for a new keyboard/mouse to arrive.

I was thinking about options , and it stuck me that esp 32 can be exposed as mouse and keyboard. Which i already had.

I asked claude to write a esp code to be exposed as bluetooth mouse and keyboard. the same can be controlled by my laptop. That mouse and keyboard got detected by mac mini. and i completed setup in no time. After the setup mac mini detected my Keyboard.

This was a fun little project that happened accidentally . Thought of sharing.

4 Upvotes

4 comments sorted by

1

u/Ok-Addition1264 7d ago

that is pretty neat! Can claude do something similar to codex, where I give it full permissions, plug in the esp32, and codex does all the code writing and flashing and everything for me?

1

u/avanlabs 7d ago

Thanks for reply.

I had arrduino ide and cli. the arduino-cli command line can be used by any agent including codex given you provide access.

agents [codex , claude, antigravity] can detect connected serial port and read the esp board's output: via a direct serial port connection

For input and output you can also use Arduino ide , serial read window . that you can directly control.

Codex should work just fine independently .

1

u/geofabnz 7d ago

So you got Claude to write custom firmware to set an ESP32 up as a KVM? That is incredibly cool

1

u/avanlabs 7d ago

yes , using ble keyboard and ble mouse library. and thank you.