# Case study: ESP32-S3 IoT device from PCB to KMP app · Alex Mitrovic
URL: https://alexmitrovic.com/work/esp32-iot-device
Last updated: 2026-11-30

> A connected device built end to end: PCB, enclosure, ESP32-S3 firmware in C/C++ and a Kotlin Multiplatform app with BLE and Wi-Fi setup.

Own project · Hardware + KMP

# ESP32-S3 device, PCB to app

My own connected device, built end to end. It's why I understand what firmware teams deal with, and it's where I test ideas before using them on client work.

- **Type:** Own project

- **Hardware:** ESP32-S3, custom PCB, 3D-modeled enclosure

- **Firmware:** C/C++

- **App:** Kotlin Multiplatform, Compose Multiplatform

[Image: An ESP32 development board, an open 3D-printed enclosure and a phone on a desk]**Enclosure****ESP32-S3****App**

In short

## What did I build?

I designed my own connected device end to end: the electronics and PCB, a 3D-modeled enclosure, ESP32-S3 firmware in C/C++ and a Kotlin Multiplatform companion app with BLE onboarding and Wi-Fi provisioning over BLE.

ESP32-S3PCB designC/C++Kotlin MultiplatformCompose MultiplatformWi-Fi provisioning

## Problem

One or two sentences on what the device does.

The goal was to own every layer once: to know first-hand what a firmware engineer means by "the app is doing it wrong", and to have a bench device for testing ideas before using them on client work.

## Approach

- Electronics design and PCB layout, plus a 3D-modeled enclosure.
- ESP32-S3 firmware in C/C++, including the BLE GATT services the app talks to.
- A Kotlin Multiplatform and Compose Multiplatform companion app.
- BLE onboarding and Wi-Fi provisioning over BLE.

Under the hood

## What it took

Setup is BLE, everyday use is Wi-Fi: the app finds the device over BLE, sends the Wi-Fi credentials, and confirms the device got onto the network before it says “done”. That confirmation step is the one most provisioning flows skip, and the one users notice. More in [Wi-Fi provisioning over BLE](https://alexmitrovic.com/blog/wifi-provisioning-over-ble).

Owning the firmware too meant designing the GATT services for the app's convenience, not only the chip's: a version characteristic, a stable device ID in the advertising data, and error codes the app can show as words.

## Result

Two or three honest lessons, e.g. something about connection parameters, provisioning UX or KMP. This is also great article material. If you publish the code, link the GitHub repository here.

## Related

[**Enclosure****ESP32-S3****App** Expertise### IoT app developerAn IoT app developer who has built the device side too: ESP32-S3 firmware, a PCB and the companion app. BLE, Wi-Fi, MQTT and USB, on Android and iOS.](https://alexmitrovic.com/iot-app-developer)

[**Companion app****3D-printed prototype****Pilot units** Industry### Hardware startupsYour first Bluetooth companion app, built alongside your hardware: what to decide early, milestones from prototype to production, OTA from day one.](https://alexmitrovic.com/for/hardware-startups)

[Article### Wi-Fi provisioning over BLE: getting IoT devices online without losing usersGetting an IoT device onto Wi-Fi from an Android or iOS app: BLE provisioning vs SoftAP, ESP32 provisioning, confirmation and the errors to handle.](https://alexmitrovic.com/blog/wifi-provisioning-over-ble)

## Similar problem on your device?

Tell me what's breaking. No pitch deck needed.

[Book a free call](https://alexmitrovic.com/contact)

Free · NDA on request · reply within 1–2 working days
