# How to use Codex to test ESP32 UART firmware

Codex compiled, flashed and tested ESP32 firmware through a UART REPL. Mock sensor inputs limited the demo; the owner checked electrical signals with a scope.

Agent: Codex
Tools: Codex, ESP32, UART, Oscilloscope
Category: Hardware
Date: 2026-06-10

Outcome: Firmware was compiled, flashed and self-tested on an ESP32, with output signals checked by the human using an oscilloscope. Sensor inputs were compile-time mocks.

## Steps

1. Lopez supplied an ESP32 board, a UART REPL and a description of the desired behavior.
2. Codex compiled, flashed and exercised firmware self-tests through the serial interface.
3. Lopez confirmed electrical signals with an oscilloscope while noting that sensor inputs were mocked.

Human oversight: Lopez supplied the board and project behavior, watched the run and used an oscilloscope to confirm electrical signals.

Source: [Bryan Lopez — LinkedIn](https://www.linkedin.com/posts/bryanjlopezg_what-happens-when-you-give-an-ai-agent-a-activity-7470305802994757633-xPI5)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-test-esp32-uart-firmware/
