ESP32 Lab Notes — My First Experiments

2026-05-17HardwareESP32EmbeddedIoT

  • esp32
  • uart
  • wifi
  • ble
  • serial
  • arduino
  • esp-idf
  • electronics

Over the last weeks I started experimenting with ESP32 boards, embedded development, UART communication, and low-level hardware concepts.

This post documents my setup, troubleshooting sessions, lessons learned, and ideas for future projects.


Hardware Used

Boards

Accessories


Understanding the USB Ports

One of the first confusing things was discovering that some ESP32 boards expose two USB-C ports.

COM Port

Usually connected to:

This is typically the port used by:

idf.py -p /dev/cu.wchusbserialXXXX monitor

USB Port

Usually connected directly to the ESP32 USB peripheral.

Can be used for:


Serial Communication & UART

The ESP32 serial monitor runs over UART.

Typical baud rate:

115200

This defines the speed of serial communication.

OSI Perspective

UART is mostly Layer 1 / Layer 2 adjacent:

Compared to:

Protocol Typical Use
UART Serial debugging
SPI Fast chip communication
I2C Sensor buses
CAN Automotive/industrial
TCP/IP Network communication
HTTP Application layer APIs

ESP-IDF Setup

I experimented with Espressif’s official SDK:

Export Environment

Fish shell:

source ~/esp/esp-idf/export.fish

Common Commands

Monitor serial logs

idf.py -p /dev/cu.wchusbserialXXXX monitor

Detect chip

esptool chip-id

Flash firmware

idf.py flash

Troubleshooting Serial Detection

One major issue:

Found 0 serial ports...

Things checked:


Arduino IDE vs ESP-IDF

I tested both environments.

Arduino IDE

Pros:

Cons:

ESP-IDF

Pros:

Cons:


Power Supply Lessons

I experimented with powering modules using:

One module was damaged after using a larger supply.

Important lesson:

Voltage matters first

Current is available, not forced.

But:

can still destroy components.


Learning Electronics Basics

Topics explored:

Measuring Voltage

Using a tester/multimeter to:

Identifying 220V Wires

Important concepts:

And understanding why reversing connections may still work electrically but can reduce safety.


ESP32 Project Ideas

Distributed Sensor Network

Small IoT infrastructure:

BLE Tracker

Using BLE advertisements to:

WiFi Sniffer

Educational exploration of:

CAN Bus Experiments

Learning:

Potential use cases:


RF & Wireless Curiosity

Topics I want to explore further:

Comparisons:

Module Focus
NRF24 Simple 2.4GHz communication
CC1101 Sub-GHz RF experimentation
RTL-SDR Signal analysis / SDR
ESP32 WiFi + BLE embedded platform

ESP32 + AI

One interesting direction is combining ESP32 hardware with local AI systems.

Potential architecture:

ESP32 -> MQTT -> Local LLM -> Analysis Dashboard

Applications:


Future Experiments

Planned projects:


Final Thoughts

The ESP32 ecosystem is an excellent bridge between:

Coming from backend/security engineering, working directly with hardware changes the perspective completely.

You stop thinking only in APIs and services and start thinking about:

And that opens a completely different layer of computing.