Components
ESP32-S3 vs STM32: Which Microcontroller Should You Use?
A practical comparison of ESP32-S3 and STM32F411 boards for IoT, robotics and maker projects — connectivity, power, tooling and price.
· 9 min read
Key takeaways
- Pick ESP32-S3 when you need Wi-Fi or Bluetooth built in.
- Pick STM32 for real-time control, motors and low-jitter timing.
- Both work with Arduino, PlatformIO and their native SDKs.
- Buying in multi-packs drops the per-board cost dramatically.
The short answer
The ESP32-S3 is a connected chip: dual-core, Wi-Fi and Bluetooth LE on the die, plenty of RAM with PSRAM, and vector instructions useful for small AI models. The STM32F411 'Black Pill' is a control chip: a Cortex-M4 with hardware floating point, predictable timing and a huge ecosystem in industry.
If your project talks to the internet, start with ESP32-S3. If it drives motors, reads sensors at precise intervals or runs on a battery for months, start with STM32.
ESP32-S3 strengths
Native USB, dual cores at 240MHz and up to 8MB of PSRAM make the S3 ideal for camera projects, voice assistants and dashboards that serve a web page.
ESP-IDF is mature, and the Arduino core makes prototyping fast.
- Built-in Wi-Fi 4 + BLE 5
- AI acceleration instructions
- Large community and examples
STM32F411 strengths
The Black Pill packs a 100MHz Cortex-M4F with 512KB of flash into a breadboard-friendly board. Its timers and DMA make it excellent for motor control, audio and data acquisition.
STM32CubeIDE and HAL libraries are free, and the skills transfer directly to professional embedded jobs.
Adding sensors: distance and LiDAR
Both chips speak I2C and UART, so modules like time-of-flight LiDAR sensors plug straight in. A micro LiDAR gives robots and drones reliable distance readings up to 12 metres, far beyond ultrasonic sensors.
Pro tip: Run the LiDAR on a hardware UART rather than software serial for stable 1000Hz readings.
Verdict
Many serious builds use both: an STM32 for real-time control and an ESP32-S3 as the network co-processor. Keeping a few of each on the bench means you can start any project the day you get the idea.
Frequently asked questions
Products mentioned in this article
Keep reading

Electronics
Noise-Cancelling Headphones Buying Guide: What Actually Matters
Hybrid ANC, codecs, battery life and multipoint explained — how to pick wireless noise-cancelling headphones without overpaying.
7 min read

Carbon Fiber & Materials
Carbon Fiber Sheets Explained: 3K Twill, Thickness and CNC Tips
What 3K twill means, how to choose carbon fiber sheet thickness, and how to cut and drill carbon fiber safely for drones, RC and builds.
8 min read

Carbon Fiber & Materials
Aerogel Insulation: The Space-Age Material You Can Actually Buy
What silica aerogel is, why it is one of the best thermal insulators on Earth, and practical uses from EV battery packs to workshops.
6 min read
