ESP32-C6 Arduino Guide: Wi-Fi 6, Zigbee, Thread and DevKitC Pins
ESP32-C6 with Arduino: Wi-Fi 6, BLE 5, Zigbee and Thread, DevKitC-1 pinout, Arduino IDE 3.x setup, a C3 vs C6 vs S3 table, Zigbee light and sensor code.
The ESP32-C6 is Espressif's RISC-V microcontroller that combines Wi-Fi 6, Bluetooth LE 5 and IEEE 802.15.4 (the radio used by Zigbee and Thread) on a single chip. In short, with one board you can build a device that joins your home Wi-Fi or a light or sensor that joins Home Assistant's Zigbee network. If you know the classic ESP32, the software side feels familiar; in the Arduino IDE you use the same WiFi, BLE and GPIO functions, but there are a few important differences you need to know.
In this guide we'll first look at the C6's specs and at what Wi-Fi 6 really gives you. Then we'll compare the ESP32-C3, C6 and S3 in a table and go through the pins and pitfalls of the ESP32-C6-DevKitC-1 board. After setting up the Arduino IDE, we'll write two Zigbee examples: a light you switch on and off from Home Assistant, and a sensor that reports temperature and humidity. In the last section we'll sum up, without hype, what's possible on the Thread and Matter side.
What is the ESP32-C6? Specifications
The C6 contains two processors: a 160 MHz high-performance (HP) RISC-V core that runs your program and a low-power (LP) RISC-V core running at up to 20 MHz that can take over simple jobs while the main core sleeps. Your Arduino code runs on a single core; there's no second application core as on the classic ESP32, so you can't spread tasks over cores with xTaskCreatePinnedToCore. The chip runs on 3.3 V and its pins are not 5 V tolerant. The classic ESP32's ADC2 and Wi-Fi conflict doesn't exist here, because the C6's single ADC can be used while Wi-Fi is on.
| Feature | ESP32-C6 |
|---|---|
| Processor | 32-bit RISC-V, 160 MHz (HP) + 20 MHz (LP) core |
| Memory | 512 KB HP SRAM, 16 KB LP SRAM, 320 KB ROM |
| Flash | External; 8 MB on the DevKitC-1 N8 version |
| Wi-Fi | Wi-Fi 6 (802.11ax), 2.4 GHz only; compatible with 802.11b/g/n |
| Bluetooth | Bluetooth LE 5 (5.3 certified); no Classic Bluetooth |
| 802.15.4 | Zigbee 3.0 and Thread 1.3 |
| GPIO | 30 (QFN40 package), 22 (QFN32 package) |
| ADC | 12-bit SAR, 7 channels (GPIO 0–6) |
| Interfaces | 2 UART + LP UART, I2C + LP I2C, SPI, I2S, 2 TWAI (CAN), 6-channel LEDC PWM, RMT, USB Serial/JTAG |
| Operating voltage | 3.0–3.6 V (pins not 5 V tolerant) |
What does Wi-Fi 6 really give you?
Wi-Fi 6 immediately makes people think of high speed, but with the C6 it's a different story. The chip speaks 802.11ax only in the 2.4 GHz band with a 20 MHz channel width; there's no 5 GHz support (the dual-band chip is the ESP32-C5). In projects where a sensor sends a few hundred bytes a second, speed isn't the issue anyway. The real gain lies in two features: OFDMA lets the router share the channel more efficiently between many devices on a crowded network, and TWT (Target Wake Time) lets the device agree in advance with the router when it will wake up, extending sleep time on battery-powered devices. For these advantages your router also needs to be Wi-Fi 6. With an older Wi-Fi 4 router the C6 simply works as an ordinary 802.11n device, so you don't lose anything.
ESP32-C3 vs C6 vs S3 comparison
| Feature | ESP32-C3 | ESP32-C6 | ESP32-S3 |
|---|---|---|---|
| Core | 1 x RISC-V, 160 MHz | 1 x RISC-V 160 MHz + LP core | 2 x Xtensa LX7, 240 MHz |
| SRAM | 400 KB | 512 KB + 16 KB LP | 512 KB |
| Wi-Fi | Wi-Fi 4 (802.11n) | Wi-Fi 6 (802.11ax) | Wi-Fi 4 (802.11n) |
| Bluetooth | BLE 5 | BLE 5 | BLE 5 |
| Zigbee / Thread | No | Yes (802.15.4) | No |
| GPIO | 22 | 30 | 45 |
| ADC channels | 6 | 7 | 20 |
| USB | Serial/JTAG | Serial/JTAG | USB OTG + Serial/JTAG |
| Touch pins | No | No | 14 |
| PSRAM | No | No | Yes (2–8 MB depending on module) |
| Arduino core | 2.0 and later | 3.0 and later | 2.0 and later |
| Best for | Cheap, small Wi-Fi/BLE devices | Zigbee/Thread devices, smart home | Camera, displays, audio, AI |
The rule of thumb is simple: if your project will join a Zigbee or Thread network, or battery life on a Wi-Fi 6 router matters, take the C6. If Wi-Fi and BLE are enough and you want a small, cheap board, the ESP32-C3 Super Mini makes sense. If you need a camera, a large display, audio processing or lots of pins, the dual-core ESP32-S3 with PSRAM is more powerful. The classic ESP32 is still the only choice for projects that need Bluetooth Classic, such as a Bluetooth speaker.
ESP32-C6-DevKitC-1 pinout
| Pin / part | Name in Arduino | Role and note |
|---|---|---|
| GPIO 8 | RGB_BUILTIN | The board's WS2812 RGB LED; also a strapping pin |
| GPIO 9 | BOOT_PIN | BOOT button; LOW at power-up enters download mode |
| GPIO 16 / 17 | TX / RX | UART0; wired to the USB-UART bridge, Serial comes out here |
| GPIO 12 / 13 | USB D- / D+ | Native USB port; don't use them for anything else |
| GPIO 23 / 22 | SDA / SCL | Default I2C pins |
| GPIO 18 / 19 / 20 / 21 | SS / MOSI / MISO / SCK | Default SPI pins |
| GPIO 0–6 | A0–A6 | ADC inputs; 0–7 are low-power (LP) GPIOs |
| GPIO 6 / 7 | SDA1 / SCL1 | LP I2C, fixed pins |
| GPIO 4, 5, 8, 9, 15 | - | Strapping pins: don't pull them externally at boot |
| 5V / 3V3 / GND | - | 5V comes from USB; all GPIO logic is 3.3 V |
Arduino IDE setup step by step
- Open Arduino IDE 2, go to Tools > Board > Boards Manager and search for 'esp32'.
- Install version 3.x of the esp32 by Espressif Systems package. C6 support arrived with 3.0.0; in 2.x versions the C6 board doesn't appear in the list.
- Select ESP32C6 Dev Module from the Tools > Board menu.
- Connect the board with a USB-C cable. The DevKitC-1 has two ports: the UART port (USB-UART bridge) and the native USB port.
- If you use the native USB port, set USB CDC On Boot to Enabled; on the UART port it can stay Disabled.
- Pick the board from the Port menu, upload the test sketch below and open the Serial Monitor at 115200 baud.
1// ESP32-C6 ilk test: yonga bilgisi + dahili RGB LED / first test: chip info + onboard RGB LED
2#include <Arduino.h>
3
4const uint8_t RGB_PIN = 8; // DevKitC-1 üzerindeki WS2812 LED / onboard WS2812 LED on DevKitC-1
5
6void setColor(uint8_t r, uint8_t g, uint8_t b) {
7#if ESP_ARDUINO_VERSION_MAJOR >= 3
8 rgbLedWrite(RGB_PIN, r, g, b); // 3.x adı / 3.x name
9#else
10 neopixelWrite(RGB_PIN, r, g, b); // 2.x adı / 2.x name
11#endif
12}
13
14void setup() {
15 Serial.begin(115200);
16 delay(1500); // USB CDC portunun açılmasını bekle / wait for the USB CDC port
17 Serial.printf("Model: %s rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
18 Serial.printf("Cekirdek / Cores: %d, %lu MHz\n", ESP.getChipCores(), (unsigned long)ESP.getCpuFreqMHz());
19 Serial.printf("Flash: %lu MB\n", (unsigned long)(ESP.getFlashChipSize() / (1024 * 1024)));
20 Serial.printf("Bos RAM / Free heap: %lu bayt\n", (unsigned long)ESP.getFreeHeap());
21 Serial.printf("Arduino-ESP32: %d.%d.%d\n", ESP_ARDUINO_VERSION_MAJOR, ESP_ARDUINO_VERSION_MINOR, ESP_ARDUINO_VERSION_PATCH);
22}
23
24void loop() {
25 const uint8_t colors[4][3] = {{40, 0, 0}, {0, 40, 0}, {0, 0, 40}, {0, 0, 0}}; // düşük parlaklık / low brightness
26 for (int i = 0; i < 4; i++) {
27 setColor(colors[i][0], colors[i][1], colors[i][2]);
28 delay(500);
29 }
30 Serial.printf("Yonga sicakligi / Chip temperature: %.1f C\n", temperatureRead());
31}
32This sketch prints the chip model (ESP32-C6), the number of cores (1), the clock speed, the flash size and the installed Arduino-ESP32 version to the Serial Monitor; then it lights the onboard RGB LED red, green and blue and shows the chip's internal temperature on every round. This is not room temperature but the chip's own temperature, usually 5–15 °C above ambient. In 3.x the LED function is called rgbLedWrite(); the old name neopixelWrite() is being deprecated. Thanks to the #if ESP_ARDUINO_VERSION_MAJOR line, the same test also compiles with the 2.x core on boards like the C3. You'll find the other changes you meet when moving older projects to 3.x in the ESP32 core 3 migration guide.
Zigbee and Thread: what is the 802.15.4 radio for?
Zigbee and Thread are mesh networks with a low data rate (250 kbit/s) but very low energy use. Mains-powered devices act as routers and pass the signal on to each other, while battery sensors act as end devices and sleep most of the time. A Zigbee network is managed by a coordinator; in Home Assistant that is usually a Zigbee stick plugged into USB. Thread is IPv6-based and connects to your home network through a Thread border router. The C6 can speak both protocols, but since it has a single 802.15.4 radio it runs only one of them at a time. In the examples in this guide the C6 acts as an end device.
| Protocol | Topology | Connection to Home Assistant | Suitable devices |
|---|---|---|---|
| Wi-Fi | Star (to the router) | MQTT, ESPHome or HTTP | Plugged-in, data-heavy devices |
| Bluetooth LE | Point to point | Bluetooth adapter or proxy | Devices paired with a phone |
| Zigbee | Mesh | ZHA or Zigbee2MQTT + Zigbee stick | Battery sensors, lights, plugs |
| Thread (Matter) | IPv6 mesh | Matter integration + Thread border router | Cross-brand smart home devices |
ESP32-C6 Zigbee light example
- In the Tools menu, set Zigbee mode to Zigbee ED (end device).
- Choose Zigbee 4MB with spiffs as the Partition Scheme (Zigbee 8MB with spiffs also works on the 8 MB N8 board); the Zigbee stack needs separate partitions to store its settings.
- Connect an LED (with a 220 Ω resistor) or a relay module that can be triggered at 3.3 V to GPIO 2.
- Upload the code. In Home Assistant, open ZHA and choose Add device to open the network for pairing.
- Once the C6 joins, a light entity called 'BlueGrays C6Light' appears; switch it on and off with the toggle.
- If pairing fails, hold the BOOT button for 3 seconds to factory reset, or set Erase All Flash Before Sketch Upload to Enabled and upload again.
1// ESP32-C6 Zigbee ışık (son cihaz) / Zigbee light (end device)
2// Araçlar / Tools: Zigbee mode = Zigbee ED (end device), Partition Scheme = Zigbee 4MB with spiffs
3#include <Arduino.h>
4#ifndef ZIGBEE_MODE_ED
5#error "Tools > Zigbee mode: Zigbee ED (end device) secilmeli / must be selected"
6#endif
7#include "Zigbee.h"
8
9#define LIGHT_ENDPOINT 10
10const uint8_t RELAY_PIN = 2; // röle ya da LED (yüksekte açık) / relay or LED (active high)
11const uint8_t BUTTON_PIN = BOOT_PIN; // GPIO 9: kısa bas aç/kapa, 3 sn bas fabrika ayarı / short press toggle, 3 s factory reset
12
13ZigbeeLight zbLight = ZigbeeLight(LIGHT_ENDPOINT);
14
15void setLight(bool on) { // ağdan komut gelince çağrılır / called on a command from the network
16 digitalWrite(RELAY_PIN, on ? HIGH : LOW);
17 rgbLedWrite(RGB_BUILTIN, 0, on ? 30 : 0, 0); // dahili LED durumu gösterir / onboard LED shows state
18}
19
20void setup() {
21 Serial.begin(115200);
22 pinMode(RELAY_PIN, OUTPUT);
23 digitalWrite(RELAY_PIN, LOW);
24 pinMode(BUTTON_PIN, INPUT_PULLUP);
25
26 zbLight.setManufacturerAndModel("BlueGrays", "C6Light"); // Home Assistant'ta görünen ad / name shown in Home Assistant
27 zbLight.onLightChange(setLight);
28 Zigbee.addEndpoint(&zbLight);
29
30 if (!Zigbee.begin()) { // varsayılan rol: son cihaz / default role: end device
31 Serial.println("Zigbee baslamadi, yeniden basliyor / Zigbee failed, rebooting");
32 ESP.restart();
33 }
34 Serial.print("Ag araniyor / Joining network");
35 while (!Zigbee.connected()) { // koordinatör eşleşmeye açık olmalı / coordinator must permit joining
36 Serial.print(".");
37 delay(100);
38 }
39 Serial.println(" tamam / ok");
40}
41
42void loop() {
43 if (digitalRead(BUTTON_PIN) == LOW) {
44 delay(100); // sıçrama önleme / debounce
45 unsigned long start = millis();
46 while (digitalRead(BUTTON_PIN) == LOW) {
47 delay(50);
48 if (millis() - start > 3000) {
49 Serial.println("Fabrika ayari / Factory reset");
50 delay(1000);
51 Zigbee.factoryReset(); // ağdan çıkar ve yeniden başlar / leaves the network and reboots
52 }
53 }
54 zbLight.setLight(!zbLight.getLightState()); // yerel düğme, durum Zigbee özniteliğine yazılır / local button, state saved to the Zigbee attribute
55 }
56 delay(100);
57}
58The code's logic is based on Espressif's official Zigbee_On_Off_Light example. The ZigbeeLight object defines a standard on/off light on endpoint 10; when a command arrives from the coordinator, the setLight() function we registered with onLightChange() runs and updates both GPIO 2 and the onboard RGB LED. A short press on the board's BOOT button changes the light locally with setLight() and also writes the new state to the Zigbee attribute, which Home Assistant usually picks up through reporting; holding it longer than 3 seconds makes Zigbee.factoryReset() remove the device from the network and restart it. The #error line warns you right away if you try to compile without selecting a Zigbee mode. Because these two Zigbee sketches are C6-specific and use the Zigbee library of the 3.x core, ESP32C6 Dev Module must be selected in the Arduino IDE.
Zigbee temperature and humidity sensor example
In the second example we connect an I2C AHT20 sensor to the C6's default I2C pins: VCC to 3V3, GND to GND, SDA to GPIO 23 and SCL to GPIO 22. Install the Adafruit AHTX0 library from the Library Manager. The ZigbeeTempSensor endpoint adds the standard Zigbee temperature cluster and addHumiditySensor() adds the humidity cluster; since ZHA recognises these standard clusters, you'll see two separate entities in Home Assistant.
1// ESP32-C6 Zigbee sıcaklık + nem sensörü (AHT20) / Zigbee temperature + humidity sensor (AHT20)
2// Araçlar / Tools: Zigbee mode = Zigbee ED (end device), Partition Scheme = Zigbee 4MB with spiffs
3#include <Arduino.h>
4#ifndef ZIGBEE_MODE_ED
5#error "Tools > Zigbee mode: Zigbee ED (end device) secilmeli / must be selected"
6#endif
7#include "Zigbee.h"
8#include <Wire.h>
9#include <Adafruit_AHTX0.h>
10
11#define SENSOR_ENDPOINT 10
12const uint8_t BUTTON_PIN = BOOT_PIN; // 3 sn bas: fabrika ayarı / hold 3 s: factory reset
13
14ZigbeeTempSensor zbSensor = ZigbeeTempSensor(SENSOR_ENDPOINT);
15Adafruit_AHTX0 aht; // SDA GPIO 23, SCL GPIO 22 (C6 varsayılanı / C6 default)
16unsigned long lastRead = 0;
17
18void setup() {
19 Serial.begin(115200);
20 pinMode(BUTTON_PIN, INPUT_PULLUP);
21 if (!aht.begin()) {
22 Serial.println("AHT20 bulunamadi / AHT20 not found");
23 }
24
25 zbSensor.setManufacturerAndModel("BlueGrays", "C6Climate");
26 zbSensor.setMinMaxValue(-20, 60); // ölçüm aralığı (°C) / measuring range (°C)
27 zbSensor.setTolerance(0.3); // AHT20 doğruluğu / AHT20 accuracy
28 zbSensor.addHumiditySensor(0, 100, 2);
29 Zigbee.addEndpoint(&zbSensor);
30
31 if (!Zigbee.begin()) {
32 Serial.println("Zigbee baslamadi / Zigbee failed");
33 ESP.restart();
34 }
35 while (!Zigbee.connected()) {
36 delay(100);
37 }
38 // En az 10 sn, en çok 300 sn arayla ya da 0,5 °C değişince rapor et
39 // report at least every 300 s, at most every 10 s, or on a 0.5 °C change
40 zbSensor.setReporting(10, 300, 0.5);
41 zbSensor.setHumidityReporting(10, 300, 2);
42}
43
44void loop() {
45 if (millis() - lastRead > 5000) { // 5 saniyede bir ölç / measure every 5 s
46 lastRead = millis();
47 sensors_event_t humidity, temp;
48 if (aht.getEvent(&humidity, &temp)) {
49 zbSensor.setTemperature(temp.temperature);
50 zbSensor.setHumidity(humidity.relative_humidity);
51 Serial.printf("%.1f C %.0f %%\n", temp.temperature, humidity.relative_humidity);
52 }
53 }
54 if (digitalRead(BUTTON_PIN) == LOW) {
55 unsigned long start = millis();
56 while (digitalRead(BUTTON_PIN) == LOW) {
57 delay(50);
58 if (millis() - start > 3000) Zigbee.factoryReset();
59 }
60 zbSensor.report(); // kısa basış: hemen gönder / short press: send now
61 }
62 delay(20);
63}
64The sensor is read every 5 seconds and the value is written to the endpoint with setTemperature(), but that doesn't mean a message goes out every time. setReporting(10, 300, 0.5) decides when a report is sent: send when the temperature changes by 0.5 °C, with at least 10 seconds between two reports, and send anyway every 300 seconds even if nothing changes. This keeps the network free of unnecessary traffic and makes it easier to move to a deep-sleep battery version later. A short press on BOOT sends the values immediately with report().
A note on Home Assistant and Matter
The Zigbee route is the most mature: in Home Assistant, the ZHA integration and a Zigbee coordinator stick are all you need. Zigbee2MQTT works too, but since your home-made device isn't in its device list it may show up as unsupported, and some features may need an external converter definition. On the Wi-Fi side you can connect the C6 with MQTT or ESPHome as usual; for Wi-Fi projects with Home Assistant, see the Home Assistant ESP32 projects article.
Matter is the standard that gets smart home devices from different brands talking a common language, and it runs over Wi-Fi or Thread. The Arduino-ESP32 3.x core includes a Matter library; light, plug and sensor examples are ready to go over Wi-Fi, and the device is added to Home Assistant's Matter integration with a QR code or pairing code. To use Matter over Thread, you need a Thread border router at home: Home Assistant's OpenThread Border Router add-on with a compatible radio stick, or certain smart speakers and hubs, can do this job. Thread support is a fairly recent addition to the Arduino core, so check the documentation and examples for the version you have installed.
ESP32-C6 project ideas
- Zigbee plug or lamp: Add a relay to the light example and switch it on at sunset with Home Assistant automations.
- Battery Zigbee climate sensor: Combine the AHT20 example with deep sleep and put a sensor in every room.
- Door and window sensor: Connect a reed switch to a GPIO and send a notification over Zigbee when it opens.
- Wi-Fi 6 data logger: Build a sensor that wakes briefly and sends readings over MQTT on a Wi-Fi 6 router.
- Smart RGB lamp: Use the onboard WS2812 LED or an external strip as a Zigbee colour light.
- Thread and Matter experiment: If you have a border router, try the Matter examples on a Thread network.
Common problems and fixes
| Problem | Cause | Fix |
|---|---|---|
| ESP32C6 missing from the board list | Old 2.x package installed | Update the esp32 package to 3.x in the Boards Manager |
| Serial Monitor is empty | USB CDC On Boot disabled on the native USB port | Set it to Enabled or use the UART port |
| 'Zigbee end device mode is not selected' error | No Zigbee mode selected | Tools > Zigbee mode: Zigbee ED |
| Device won't join the network | Coordinator not open for pairing, or old network data left over | Press Add device in ZHA; factory reset with BOOT or upload with flash erase |
| Board won't start or stays in download mode | A module wired to a strapping pin | Move relays and sensors away from GPIO 4, 5, 8, 9, 15 |
| Old code won't compile | 3.x API changes (e.g. LEDC, neopixelWrite) | Use the new names such as ledcAttach() and rgbLedWrite() |
The ESP32-C6 is one of the easiest doors into the smart home world from the Arduino side: with the same board you can build a Wi-Fi sensor today and a Zigbee lamp tomorrow. If you want to strengthen the basic ESP32 skills (LEDs, buttons, sensors, Wi-Fi connection) step by step, the ESP32 projects in the BlueGrays app give you a circuit diagram and ready-made code for each one, so you can then carry that knowledge into the Zigbee world with the C6.
Frequently asked questions
Can I use the ESP32-C6 with the Arduino IDE?
Yes. You need version 3.0.0 or newer of the 'esp32 by Espressif Systems' package from the Boards Manager; 2.x versions don't support the C6. Select ESP32C6 Dev Module as the board, and the Zigbee examples appear under File > Examples in the Zigbee section.
What's the difference between the ESP32-C6 and ESP32-C3?
Both are single-core 160 MHz RISC-V chips. Unlike the C3, the C6 offers Wi-Fi 6, an 802.15.4 radio for Zigbee and Thread, an extra low-power core, more RAM (512 KB) and more GPIOs. For small projects that only need Wi-Fi and BLE, the C3 is cheaper and good enough.
Does the ESP32-C6 support 5 GHz Wi-Fi?
No. The ESP32-C6 supports Wi-Fi 6 only in the 2.4 GHz band with a 20 MHz channel width. For projects that need both 2.4 and 5 GHz, Espressif designed the dual-band ESP32-C5.
Can the ESP32-C6 be a Zigbee coordinator?
Yes, with the 'Zigbee ZCZR (coordinator/router)' option in Arduino's Zigbee mode menu and the matching examples, it can work as a coordinator or router. In a larger smart home setup such as Home Assistant, though, a ready-made Zigbee coordinator stick is usually used, and the C6 is more practical as an end device or router.
Does the ESP32-C6 support Bluetooth Classic?
No. The C6 only supports Bluetooth Low Energy (BLE 5). For projects that need Classic Bluetooth, such as the BluetoothSerial library or A2DP audio streaming, use the classic ESP32.
Does the ESP32-C6 work with Home Assistant over Matter?
Yes, with the Matter library in Arduino-ESP32 3.x the C6 can be added to Home Assistant's Matter integration as a Matter device over Wi-Fi. Using Matter over Thread additionally requires a Thread border router, and the C6 uses only one of Wi-Fi or Thread at a time.
Projects to build after reading this
See all projects
LED Blink with ESP32
Teaches basic GPIO output usage with ESP32. We achieve a blinking effect by turning an LED on and off from a digital pin. ESP32 version of the classic blink project on Arduino UNO; the basic blink commands in the Arduino environment are the same, but the ESP32's pin layout and 3.3 V GPIO levels differ from those of the Arduino UNO.

ESP32 LED Control with Push Button (Push)
The LED lights up when the button is pressed and turns off when released. Shows how the ESP32's digital input pin and internal pull-up resistor are used. The INPUT_PULLUP mode eliminates the need for an external resistor.

ESP32 LED Control with Pushbutton (Toggle)
Each time the button is pressed the state of the LED changes: if it is on it turns off, if it is off it turns on. Classic toggle pattern. With debounce we clean up the mechanical noise of the pushbutton to ensure a single toggle with a single press.

ESP32 Built-in LED Blink
Blinking the built-in blue LED on the ESP32 DevKit V1. No external components required! The first project you should try when you buy an ESP32. GPIO 2 is connected to the built-in LED.

Reading Light Intensity with the ESP32 LDR Module
Real-time monitoring of the LDR module's raw ADC value and relative light percentage calculated from dark and light reference values in the Serial Monitor. This percentage is not a lux measurement. Teaches the module’s calibration logic. It is ideal to complete this before Project 10, as it is used to determine the threshold value.

ESP32 WS2812B NeoPixel Strip Control
WS2812B (NeoPixel) addressable LEDs are smart RGB LEDs that can be chained and controlled from a single data pin. In this project we drive an 8-LED WS2812B strip with the Adafruit_NeoPixel library and create a smooth rainbow animation. The ESP32's 3.3V logic works with most WS2812B batches; if it gets unstable, we show the fix with a 470Ω series resistor and a 1000µF capacitor. The animation shifts the hue in HSV color space.

ESP32 Wi-Fi STA Connection (with LCD Screen)
In this project, we connect the ESP32 to the home Wi-Fi network in Station (STA) mode in a secure, fault-tolerant manner. We store the SSID and password in a separate secrets.h file to prevent leaking to Git, set up an auto-reconnect mechanism, and display the RSSI signal level and IP address on an I2C LCD screen. The internal LED works as a status indicator. It is a production-grade connection manager.

Automatic Lighting with the ESP32 PIR Motion Sensor
In this project an HC-SR501 PIR motion sensor detects someone entering the room and turns on an LED automatically. millis() tracks how long the LED stays on: each HIGH reading refreshes the last-motion time, and the LED turns off at least 10 seconds after the last HIGH. The code also waits 50 ms with delay(50) in every loop, so the loop is not fully non-blocking. Great for stairs, hallways, bathrooms or closet lighting.
More articles
BlueGrays app
Build this circuit step by step on your phone
Wiring diagram, code and parts list on one screen. 500+ Arduino, ESP32, ESP8266, Pico, mBot and micro:bit projects ready to build.
Scan with your phone
Point your camera at the code and your phone's app store opens.
or open the store

