breadboard
docs

Example project · Start here

ESP32-C5 blink

A real emulated ESP32-C5 (single RISC-V RV32IMAC at 240 MHz) runs the bundled chip-specific firmware and blinks its onboard G27 RGB pixel. The C5 is the bench’s only dual-band board: its Wi-Fi 6 station sees 5 GHz networks that no other board here can hear, and its 802.15.4 radio CLI works. Thread and Zigbee applications are not qualified on this board.

The ESP32-C5 blink circuit as rendered by the simulator

How it works

There is no code to edit on this bench. The bundled example:esp32c5-blink image is a short bare-metal RISC-V program written for the ESP32-C5's own register map. It prints a banner over UART0 and then sends WS2812 frames to the onboard RGB pixel on G27: one frame sets the pixel to dim red, the next turns it off.

Between frames, the program arms comparator 0 of the system timer in period mode for 0.25 s, routes that interrupt through the C5's CLIC interrupt controller and waits with a wfi instruction, so the pixel changes state four times per second. The WS2812 bits are timed in CPU cycles from the 240 MHz clock: a 1.25 µs bit cell, with a longer high time for a 1 than for a 0. The pixel on the board decodes those real edges, exactly as it would from any other firmware.

What to watch

Serial prints ESP32-C5 ready - blinking G27 RGB pixel (RV32IMAC core) once, at boot. After that the pixel on the board image flashes red and goes dark, a quarter of a second each. Select the board to open its Inspector: the firmware picker offers official MicroPython and three bundled ESP-IDF programs, hello_world, the IEEE 802.15.4 radio CLI and the NimBLE bleprph Bluetooth LE peripheral.

What's on the bench

  • ESP32-C5-DevKitC-1

This project runs prebuilt firmware on the emulated board; open it in the simulator to watch it work and inspect every part live.

Try this

  • In the Inspector, switch the firmware to official MicroPython v1.29.0 and drive the same pixel from the REPL: import neopixel, machine, then np = neopixel.NeoPixel(machine.Pin(27), 1), np[0] = (0, 0, 64) and np.write() turn it blue.
  • Choose the 802.15.4 radio CLI program in the Inspector and type help in Serial to list the commands the stock ESP-IDF console offers.
  • Open the dual-band Wi-Fi example next. The same script runs on a C5 and a C6, and only the C5 can see the 5 GHz network.

Related projects