The stuff Hacker News actually recommends.

Boards and maker kit

Espressif ESP32 vs STMicroelectronics STM32

Hacker News owners slightly favor the Espressif ESP32.

Espressif ESP32STMicroelectronics STM32
Owners with an opinion24914
Positive verdicts82% of 20273% of 11
Positive/negative since 202479/210/1
Happy after 3+ years20
Longest happy owner5 yrs–
Praised forperformance and valueperformance and value
Criticized forreliability and ease of useease of use and support
Newest comment

Updated

What owners wrote about both

Espressif ESP32: Doesn’t like itSTMicroelectronics STM32: Likes it
An ESP32 is a power hog meant to be plugged into a wall. Here are the current requirements for the various modes according to [1]: Active mode, 260mA to 790 mA (!) Modem sleep, 20mA Light sleep: 0.8 mA Deep sleep: 10 uA Hibernate: 2.5 uA Even with fancy DTIM beacons, Wifi and Bluetooth IoT devices just have a really power-hungry protocol stack and radio system to run. Compare that to something like an STM32U5 microcontroller [2]: 3.1 mA Run mode at 160 MHz 19.5 μA/MHz Run mode at 3.3 V 6.6 µA stop 2 mode with full SRAM 1.7 μA stop 3 mode with 16 Kbyte SRAM 0.5 uA standby mode with RTC 0.3 uA standby mode (24 wakeup pins) 0.1 uA shutdown mode (24 wakeup pins) And probably more importantly, an actual low-power microcontroller can wake from sleep in something like 4 microseconds, do something for a few cycles, and go back to sleep. Pager protocols are designed for this, putting the pager to sleep for sometimes an hour, and the crystal oscillator restarts the battery-powered device moments before the frame arrives, then goes back to sleep. Conversely, booting up the whole protocol stack on the ESP32 and acquiring a connection can take literally 4 seconds. That results in a power consumption ratio on the order of 100,000,000. ESP32s are not efficient. [1]: https://lastminuteengineers.com/esp32-sleep-modes-power-cons... [2]: https://www.st.com/en/microcontrollers-microprocessors/stm32...
Espressif ESP32: Likes itSTMicroelectronics STM32: Doesn’t like it
Definitely agree on the HAL. I didn't find the ESP32 docs too lacking though (for UART etc; for Wifi/BLE docs are non-existent of course). With STM32 they often have 3+ different kinds of timers (advanced, basic, sometimes also low-power). Instead of having one chapter about all of them and saying this and that feature is only available in TIM1, they will copy&paste the 100+ pages chapter for every kind of timer... They must be auto-generating this stuff somehow. edit: The NRF52 docs and architecture are much nicer than both (the registers seem to be designed by a programmer not a hardware person).
Espressif ESP32: Likes itSTMicroelectronics STM32: Neutral
Not just price- Espressif has done a really good job making their SDK and hardware documentation available to overseas hobbyists. Even hiring an English speaking dev to work SDK features that people were asking for in English, and doing a good job communicating with/engaging with the community. They're not great if you're coming from solely-software land, but their SDK and dev experience (you can just use the Arduino IDE for a gentler learning curve, step up to FreeRTOS, esp-idf, or go more bare-metal) is still leaps and bounds ahead of competitors, like the STM32CUBE cluster fuck...using their Hal was the only time in my life where deleting whitespace in C code could break a build. If the developer experience is awful, it doesn't matter that the STM32 chips perform better per second and per watt than an ESP32.
Espressif ESP32: Doesn’t like itSTMicroelectronics STM32: Likes it
I wish there were a fully open toolchain for the esp32. I mostly stick with stm these days just because everything I need to develop is available as a distro package.
Espressif ESP32: Likes itSTMicroelectronics STM32: Doesn’t like it
We're still in the toilet-paper-hoarding stage. Also people are still reselling at 400% to 1000% markup. Probably at least a couple years. Imagine if a shipment of 100K Raspberry Pi 2 W Zero came in today. "Everybody knows" if you buy direct you can pay $5, and the lowest price for scalpers on Amazon for a 2 W Zero is currently $149 so you can probably actually sell for $130-ish and clear $125 of scalping profit per unit shipped. Note there's not much risk... Put $500 of Pi on the credit card, get 100 units, if you can scalp FOUR at hyperinflated prices you broke even, even if the price craters to $5 tomorrow and you're sitting on 96 unsold units. There's just too much money floating around for the shortage to go away. The only way for a manufacturer to crack the scalper market is to get financing so cheap they can out-finance the entire scalper "industry". But no cross-planet exporter can out-finance the consumer sector credit card printing press of cash, so the scalpers are semi-permanent and some technologies are essentially dead now. Now personally I've written off the Pi and STM32 ecosystems. Everything in resale is either fake or falsely marked ("8GB" but its actually 2G, etc) or marked up to insane prices so those technologies are dead to me. Unfortunately there's still people trying to use those legacy technologies so prices on Amazon are $149 for a $5 product, but eventually those techs will be widely regarded as dead and then the market can clear and go back t…
Switched from the STMicroelectronics STM32 to the Espressif ESP32Espressif ESP32: Likes it
Right. Sorry I meant development boards. This is low volume, probably will only make a few a year. The nice thing about the esp32 is I can get the board with lora/display built in, with a battery, for $25 each. The stm32 board and module is only a tiny bit less, for example. If I wanted to I could do this with a cheap 8bit microcontroller, I would just have to design a custom board with an oscillator to modulate the IR LEDs etc. I was gonna do that with PWM from the microcontroller to "simplify" things. Edit: oh the MSP430 is neat! If I cared about battery life (driving 200ma of LEDs anyway...) I'd totally use that.
Espressif ESP32: Doesn’t like itSTMicroelectronics STM32: Doesn’t like it
I'm not really an embedded engineer, just getting my degree in EE and doing hobby projects with embedded. For one particular project I've been using a number for different BLE microcontrollers to see what works best. Started out with the ESP32 where I got everything running pretty quickly but the current consumption was about 10x as high as I wanted it to be. Then made a design with an STM32 and at first I liked the IDE and the documentation, but I sort of ran a ground and also disliked how incredibly expensive this particular microcontroller was. Now on my desk I have one which I think is the cheapest BLE microcontrollers from Silicon labs. EFR22BG22CC something. Neat little thing in a QFN-32 package, a simple hardware design and a lot cheaper than the STM32. The IDE seems pretty simple and I think that most of their tooling is open source since there is also an implementation for it in visual studio code. Documentation isn't as great, but I can get by. And also, despite the wide range of microcontrollers they offer, they do seem to be available in large quantities. The one I used mouser had like 350k of and more on the way. I've yet to see anyone here talk about silicon labs microcontrollers. Why's that?
Espressif ESP32: Likes itSTMicroelectronics STM32: Likes it
For the most part I've found that RaspPis are over-dimensioned for many projects I'm inclined to do, for example around the house, and have switched to much more readily-available and cheaper ESP32 and STM32 boards. I do have a RasPi in use that runs some heavier software like a Hue bridge emulator written in Python (diyHue), and for some of my projects I now have that Pi do more intensive computation centrally and then just dispatch results to esp32s. I'm currently building one of those refresh-once-a-day framed e-ink "newspaper on the wall" projects. In the picture frame I just have the panel, an IT8951 display controller and an esp32, all running off a LiPo pouch, mostly in deep sleep. The RSS scraping and pdflatex+ghostscript pipeline to produce the image is running on the central Pi in this. A single Pi may be all you need if your projects live on a network!
Espressif ESP32: Likes itSTMicroelectronics STM32: Likes it
Nice, but pointless addition to an old processor. ESP32's are cheap and readily accessible and they come with FreeRTOS running already. If I absolutely need to multitask on a Mega328 Arduino, I use the protothreads library. But really, for anything heavy, I'll turn to an ESP32 or an STM32. Use the right tool for the job!
Espressif ESP32: Likes itSTMicroelectronics STM32: Likes it
ESP32 / STM32 can do a whole heck of a lot, they're getting popular in modular synths now too. AFAIK a lot of vehicles use RTOSes for anything related to driving / vehicle stability, but I think they can use mostly whatever for infotainment, and that "whatever" seems to be largely low / mid-range stuff running absolutely garbage software that only gets updated if NHTSA makes them.