An Arduino is better if you're doing something and want a quick, easy, simple to program controller. It started as a way for artists to add MCUs to the projects without having to become embedded programmers.
I prefer to get things done quickly over cheap.
I have some ESP-based hardware ideas of my own (which include custom PCBs) but the CE certification is prohibitively expensive..
I do my certification testing in China by a reputable lab which is much cheaper than doing it here in Switzerland (at least 15k USD). At a minimum expect to spend 1000-2000 USD if all goes well.
There is a workaround for CE but it's a bit of a dirty trick. If you are not expecting to sell very many and your target audience are tinkerers then you can sell your device as a kit. There must be assembly that the end user has to do but they are then the ones "putting the device into the market" and they take on that responsivity of CE. That basically means they can't sell it unless they get a CE. Such an example is https://www.clockworkpi.com/ which sell their products a kits.
The $7 burrito era is long gone unless it's a frozen burrito or someplace that is extremely sus.
You need to do a little research. It will usually tell in the spec sheet. Which is why the Arduino is useful. You don't have to buy a level shifter. You don't have to read a level shifter spec sheet.
Where can you get a half decent microcontroller with wifi integrated on it? Espressif. All the others are flat out bad in some very important dimension, which isn't to say the Espressif products are perfect, but they fit in the important ways.
Of course they are more expensive (not much more, really, compared to simillar specced ESPs) but they are western and the peripheral actually work as intended. In my projects with ESP32 i had to basically bitbang every peripheral that i needed to use beyond their simplest mode.
IIRC their standalone wifi chip is pretty good even… just stick them together already c’mon.
It just pushes more integration headaches downstream to the customer, in addition to being inherently costlier. Espressif had the core right idea there, even if it's not the right decision for all designs.
What I want is a Wi-Fi radio that just works like a normal part. No RTOS requirement. No framework or software libs required. Read the datasheet and go.
For some context: This is how LoRa radios work, and this is how Esp-Hosted (Official firmware from Espressif that turns the ESP into a radio IC "coprocessor") works.
Wireless/network stack is hard.
Have you tried it? It's simply not in the same league of battle tested as the ESP one is, and I will happily agree almost everything else about the RP based ecosystem is superior.
I would probably go Atmega otherwise. It's rare I need something in the gap between 8-bit and a dedicated Raspberry Pi. And I'll take some rough edges to support a local company (though for transparency I do hold some stock in RPI).
- Texas Instruments (soon.)