IoTSimulator

ESP32: Pin Basics, Wiring Tips, and First Example Code

Learn how the ESP32 works with Arduino and IoT projects. This guide covers the processor, Wi-Fi and Bluetooth features, pinout, and wiring.
Muhammad Ichsanul Fadhil
Muhammad IchsanPublished 29 May 2026
ESP32

If Arduino feels like a small robot brain, the ESP32-C3 is that same idea plus a Wi-Fi radio. It can still read sensors and drive LEDs, but it can also connect to your network for dashboards, web pages, or simple phone control.

This guide is the beginner-friendly overview: what the ESP32-C3 DevKit is, what the important pins mean, which pins to be careful with at boot, and a tiny first sketch you can run right away.

Description

ESP32-C3 DevKit board overview
ESP32-C3 DevKit board overview

The ESP32-C3 DevKitM-1 is a small development board built around the ESP32-C3 chip and an ESP32-C3-MINI-1 module. The ESP32-C3 family combines a single-core RISC-V CPU with 2.4 GHz Wi-Fi and Bluetooth LE, which is why it shows up in a lot of beginner IoT projects.

One important beginner detail: the ESP32-C3 uses 3.3V logic. That means its GPIO pins are meant for 3.3V signals, not 5V. Many Arduino modules are 5V-friendly, so this is the first place people get surprised when moving from Uno to ESP.

Core Capabilities & Specifications

FeatureWhat it means
Wi-Fi + Bluetooth LEYou can build wireless projects without extra shields.
3.0V-3.6V supply (3.3V typical)The chip is designed around 3.3V power and signals.
BOOT + RESET buttonsHelps you enter download mode and restart quickly.
Strapping pins (GPIO2 / GPIO8 / GPIO9)These pins are checked during reset - avoid wiring that pulls them the wrong way.
ADC (analog input)Great for knobs and sensors, but note the ADC input range depends on attenuation.
WS2812 RGB LED on GPIO8The DevKitM-1 includes an addressable RGB LED driven by GPIO8.

The BOOT button is used to enter code download / flash mode. On the ESP32-C3 DevKitM-1, holding BOOT and pressing RESET puts the board into download mode.

Pin Basics (What Beginners Actually Use)

ESP32-C3 DevKit pin highlights
ESP32-C3 DevKit pin highlights

Power Pins

  • 3V3: 3.3V supply rail for sensors that support 3.3V.
  • 5V: 5V from USB (useful for powering 5V modules, but do not feed 5V into GPIO).
  • GND: ground (the reference line - everything must share this).
  • EN: reset/enable pin (RESET button toggles this).

GPIO Pins to Be Careful With

GPIO2, GPIO8, and GPIO9 are strapping pins on ESP32-C3 boards. That means their level during reset affects how the chip boots. For a first project, avoid wiring parts that might pull these pins LOW during reset (for example, a button to ground or a sensor output with a strong pull-down).

ADC Voltage Range (Quick Note)

The ESP32-C3 ADC can measure analog voltage, but the usable range depends on the attenuation setting. In ESP-IDF docs, the widest listed range reaches up to about 2.5V with 11 dB attenuation. So if you connect a sensor that outputs 0-3.3V, you may need a divider or choose the right attenuation in your sketch code.

Wiring Tips

  • Always share ground: if your sensor and board do not share GND, readings will look random or stop working.
  • 3.3V signals only: if a module outputs 5V logic, use a level shifter (or a resistor divider for simple one-way signals).
  • Start with one LED: it's the fastest way to confirm a GPIO pin is doing what you think.

Simple Demo: Blink an LED (Through a Resistor)

Pin Connection Map
Source Component
IO2 (GPIO2)
→
Target Component
Resistor -> LED Anode
Explanation
GPIO2 toggles HIGH/LOW to blink the LED.
Source Component
GND
→
Target Component
LED Cathode
Explanation
Completes the circuit back to ground so current can flow.
A safe first wiring: IO2 drives an LED through a resistor.
3V3
3V3
GND.1
GND.1
D15
D15
D2
D2
D4
D4
RX2
RX2
TX2
TX2
D5
D5
D18
D18
D19
D19
D21
D21
RX0
RX0
TX0
TX0
D22
D22
D23
D23
EN
EN
GND.2
GND.2
VP
VP
VN
VN
D34
D34
D35
D35
D32
D32
D33
D33
D25
D25
D26
D26
D27
D27
D14
D14
D12
D12
D13
D13
GND.3
GND.3
1
1
2
2
A
A
anode
anode
C
C
K
K
cathode
cathode

Use the code below (shown on this page) to blink that LED. If it does not blink, double check the LED direction: the anode (A) must be on the resistor side, and the cathode (C) must go to GND.

Summary & Practical Next Steps

The ESP32-C3 DevKit is a great next step after Arduino because it keeps the same simple GPIO workflow while adding wireless features.

If you remember only two things: (1) it is a 3.3V board, and (2) be careful with strapping pins (GPIO2/8/9) when you wire your first circuits. With that, you can build reliable beginner projects and grow into Wi-Fi dashboards later.

New

Wait! We're building more...

Our laboratory is currently preparing a lot of exciting new projects using ESP32. Stay tuned for the upcoming massive update!
Muhammad Ichsanul Fadhil
About Writer
Muhammad Ichsanul Fadhil
"I'm a developer and hardware enthusiast with a passion for IoT. I love experimenting with new components and writing down everything I learn to help others build their own projects."

Share this article

Share it with your favorite channel.