ESP32C3 0.42 OLED
Overview
ESP32C3 0.42 OLED is a mini development board based on the Espressif ESP32-C3 [1] RISC-V WiFi/Bluetooth dual-mode chip.
For more details see the 01space ESP32C3 0.42 OLED [2] Github repo.
Hardware
This board is based on the ESP32-C3-FH4 with WiFi and BLE support. It features:
RISC-V SoC @ 160MHz with 4MB flash and 400kB RAM
WS2812B RGB serial LED
0.42-inch OLED over I2C
Qwiic I2C connector
One pushbutton
Onboard ceramic chip antenna
On-chip USB-UART converter
Note
The RGB led is not supported on this Zephyr board yet.
Note
The ESP32-C3 does not have native USB, it has an on-chip USB-serial converter instead.
Supported Features
The esp32c3_042_oled
board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo
-
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
esp32c3_042_oled/esp32c3
target
Type |
Location |
Description |
Compatible |
---|---|---|---|
CPU |
on-chip |
Espressif RISC-V CPU1 |
|
ADC |
on-chip |
ESP32 ADC1 |
|
Bluetooth |
on-chip |
Bluetooth HCI for Espressif ESP321 |
|
CAN |
on-chip |
ESP32 Two-Wire Automotive Interface (TWAI)1 |
|
Clock control |
on-chip |
ESP32 RTC (Power & Clock Controller Module) Module1 |
|
Counter |
on-chip |
ESP32 Counter Driver based on RTC Main Timer1 |
|
on-chip |
ESP32 general-purpose timers2 |
||
Display |
on-board |
SSD1306 128x64 dot-matrix display controller on I2C bus1 |
|
DMA |
on-chip |
ESP32 GDMA (General Direct Memory Access)1 |
|
Flash controller |
on-chip |
ESP32 flash controller1 |
|
GPIO & Headers |
on-chip |
ESP32 GPIO controller1 |
|
I2C |
on-chip |
ESP32 I2C1 |
|
I2S |
on-chip |
ESP32 I2S1 |
|
Interrupt controller |
on-chip |
ESP32 Interrupt controller1 |
|
MTD |
on-chip |
Flash node1 |
|
on-chip |
Fixed partitions of a flash (or other non-volatile storage) memory1 |
||
Pin control |
on-chip |
ESP32 pin controller1 |
|
PWM |
on-chip |
ESP32 LED Control (LEDC)1 |
|
RNG |
on-chip |
ESP32 TRNG (True Random Number Generator)1 |
|
Sensors |
on-chip |
ESP32 temperature sensor1 |
|
Serial controller |
on-chip |
||
on-chip |
ESP32 UART1 |
||
SPI |
on-chip |
ESP32 SPI1 |
|
Timer |
on-chip |
ESP32 System Timer1 |
|
Watchdog |
on-chip |
ESP32 XT Watchdog Timer1 |
|
on-chip |
|||
Wi-Fi |
on-chip |
ESP32 SoC Wi-Fi1 |
Connections and IOs
See the following image:

01space ESP32C3 0.42 OLED Pinout
It also features a 0.42 inch OLED display, driven by a SSD1306-compatible chip. It is connected over I2C: SDA on GPIO5, SCL on GPIO6.
Prerequisites
Espressif HAL requires WiFi and Bluetooth binary blobs. Run the command below to retrieve those files.
west blobs fetch hal_espressif
Note
It is recommended running the command above after west update
.
Programming and Debugging
Standalone application
The board can be loaded using a single binary image, without 2nd stage bootloader. It is the default option when building the application without additional configuration.
Note
This mode does not provide any security features nor OTA updates.
Use the following command to build a sample hello_world application:
# From the root of the zephyr repository
west build -b esp32c3_042_oled samples/hello_world
Sysbuild
Sysbuild (System build) makes it possible to build and flash all necessary images needed to bootstrap the board.
By default, the ESP32 sysbuild configuration creates bootloader (MCUboot) and application images.
To build the sample application using sysbuild, use this command:
west build -b esp32c3_042_oled --sysbuild samples/hello_world
Flashing
For the Hello, world!
application, follow the instructions below.
Assuming the board is connected to /dev/ttyACM0
on Linux.
# From the root of the zephyr repository
west build -b esp32c3_042_oled samples/hello_world
west flash --esp-device /dev/ttyACM0
Since the Zephyr console is by default on the usb_serial
device, we use
the espressif monitor utility to connect to the console.
$ west espressif monitor -p /dev/ttyACM0
After the board has automatically reset and booted, you should see the following message in the monitor:
***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx *****
Hello World! esp32c3_042_oled