actuator

BLE-controlled linear micro servo: ESP32-C6 firmware (ESP-IDF, NimBLE, OTA over BLE) and a Material 3 Expressive Android app

readme · slastra/actuator

A tiny BLE-controlled linear actuator: an AGFRC C1.5CLS 1.5 g linear micro servo (9 mm stroke, worm drive) on a Seeed XIAO ESP32C6, swinging a 6 mm horn arm through 90°, driven from an Android phone.

Left to right: the built actuator with an 18650 cell strapped alongside and the servo pushrod on the side; a render of the printed parts; the Android app showing the horn at 62.5 degrees

More renders are in hardware/, and more app screenshots in android/.

firmware/ ESP-IDF 6.0 firmware: servo control with stall protection, NimBLE peripheral with PIN pairing, OTA updates over BLE with rollback, status LED, USB console
hardware/ Printable parts (STL): body, door, servo and ESP32 brackets
android/ Kotlin + Jetpack Compose apps for the phone (Material 3 Expressive) and for Wear OS (crown sets the angle): find, pair and drive the actuator

The BLE protocol (UUIDs, value layouts, error codes) is specified in firmware/main/ble.h.

Quick start

  1. Print the parts in hardware/ and assemble.
  2. Wire the servo: red to 5V, brown to GND, orange to D10 (GPIO18). See firmware/README.md for the pin-order catch.
  3. Pick a pairing PIN: cp firmware/sdkconfig.defaults.local.example firmware/sdkconfig.defaults.local and fill in six digits.
  4. Flash once over USB: cd firmware && idf.py build flash. After that, tools/ota-push updates it over BLE.
  5. Build and install the app (android/README.md), open it, and enter the PIN when Android asks.

License

MIT