by dale_glass · 3y ago · 0 comments
I mean, what's the point? An ESP32 has 320K SRAM, 448K Flash and a 240 MHz dual core CPU. And it costs peanuts. That's the competition to beat, and this doesn't reach it, even though the ESP32 came out in 2016.
The Arduino has been resting on its laurels for too long, I'm afraid. There's long been things out there much faster and cheaper, and with wifi out there for a long time.
EDIT: And why not just use one of these, which is already for sale?
https://freematics.com/store/index.php?route=product/product...
Arduino owed its success solely to building a healthy maker ecosystem of folks who simply defaulted to it as a platform, published tutorials, and promoted it through word-of-mouth. That's probably still there. Raspberry Pi had the same thing going on for it, by the way.
Marketing / community building trumps technical merit in almost everything, and embedded computing is not an exception. I'm not lamenting this, it's just a fact of life.
A board supported by Arduino is vastly easier to use, especially for someone who just wants their project to _work_, not to learn the deep arcana of baremetal systems.
Is it actually possible to totally brick an AVR chip that way? Can't you always recover them with high-voltage programming mode?
Either way, I'm saying that Arduino is _the_ microcontroller platform with the fewest gotchas for a beginner.
One thing that was unique about the 8-bit Arduino was that while the board itself was common for prototyping, it wasn't that hard to put an AVR chip on a breadboard for permanent projects or just for the sake of doing it and there were plenty of tutorials. There was even built-in support in the IDE for using an Arduino board as a ISP programmer for a raw chip by connecting a few wires.
With the Raspberry Pi, hardly anyone who used it would ever build their own/modify the design of the board itself.
It's a shame there isn't a "standard" ESP32 board though. Some of the common boards/kits even have multiple revisions that aren't pin-compatible :(
Were you able to program them without additional (expensive) hardware?
You can also easily use an Arduino, a solderless breadboard, a few jumpers and some software as an AVR programmer [2].
[1] https://www.sparkfun.com/products/9825
[2] https://www.instructables.com/How-to-Program-an-Attiny85-Fro...
Raspberry Pi had the same thing
Maybe we have an answer here. Raspberry PI ventured in Arduino's market with Pico. Maybe Arduino is reacting to that?In my anecdotal experience the ESPs are also not as robust against mistreatment as the AVRs are. According to the datasheet they shouldn't survive as much as they seem to.
So while the hardware might be better, and there is always better hardware out there, it's sometimes worth to avoid the complexity.
The average user cannot debug the RTOS running on an ESP, a single Cortex-M4 is more complex than an AVR but still understandable down to bare metal by your average enthusiast.
ESP doesn't scale. Once you start with STM, you can switch to much more advanced boards with ease, ESP doesn't have the range.
And may be forced to. I still can't get H7s. ESP, nRF and others were barely affected by the shortage.
So I am not sure they are competitors. Like Intel and Raspberry Pi aren't competitors as they address very different markets.
Ok, but then Micro:Bit is much nicer. It has a Nordic nRF52833, so Bluetooth LE, accelerometer, magnetometer, MEMS microphone, buzzer, 5x5 led matrix, tactile push buttons, and a touch sensor button. And it's easy to program with MakeCode (our daughter programmed it when she was 5 or 6) and MicroPython. It's easy to program, supports crocodile chips. And even the bundle with battery holder and batteries is cheaper than an Uno.
They aren’t cheap but they also provide support and a good to deal with. https://www.dfrobot.com/
I'm sure there are good alternative to the Arudino out there. Arduino certainly wasn't the first to market with beginner friendly development boards and the popularity of Arudino only attracted more companies to the market. Unfortunately, it would be difficult to figure out who to go with since there is so much meaningless noise out there.
The fact that we call other boards "Arduino alternatives" is partially a testament to that. (Say, instead of "AVR alternatives")
It's certainly not perfect, always the fastest, doesn't expose all the features one might need, but it makes prototyping and portability oh so much easier. I'm glad we have something.
Now the ESP32 as usually delivered is not pin or voltage compatible, but surely that's not that hard of a problem. Just make an Arduino shaped board for it, and use a level shifter?
In fact this very thing seems to exist:
https://freematics.com/store/index.php?route=product/product...
The GPIO are not level shifted in the board you link.
But in reality, you can short all the pins to GND and then output high on all of them, and the chip survives indefinitely (although does get rather hot!).
It's really rather nice and robust.
However they're also pretty expensive (especially today, an m328p is over five bucks nowadays), and have been for around ten years or more.
Rather than a transistor I might just use a relay, mosfet, or motor driver module, since I can get extra features like short circuit protection and the ability to quickly swap without soldering anything, which gets exponentially more appealing the more times you have to repair something that's been made with discrete parts.
The use cases where I'd be working any other way are mostly outside of what I'd use an Uno or similar for anyway. And I probably wouldn't be using 5v at all for prototyping something to mass produce, since 3v3 is taking over.
However the ESP32 power consumption is too high. TI has an ARM-based wireless sensor platform that can run for years while making measurements every five minutes.
That's not to say there aren't some great ones out there, but any stumbling stones as a beginner might as well be cliffs.
What bothers me about this release is that they are re-using the Uno name for a product that doesn't feel at all like and Uno. I don't think they should have used the name Uno unless they were at least sticking with the AVR family and 5V compatibility, and maybe I'd go so far as to say sticking with the ATmega328.
On the sticking with a 328 side, I would have liked an Uno R4 that expanded power input supported to 24v, replaced the USB-B with USB-C, could be configured to either 3.3v or 5v (defaulting to 5v).
I think moving on to a newer AVR, such as 4808, would be good for an R4 ONLY if the majority of libraries targeting UNO would just work on it.
Personally, my favorite was the Leonardo. I have a small bin of boards in the Arduino Pro Micro form factor, except the end G/5v/TX/RX pins have been replaced with a USB connector, and the 328 was replaced with a 32u4, so they are programmed as if they were Leonardos.
While I love digikey’s parametric search, I’ve gotten feedback from more than one budding hack after that it is “too complicated and confusing”
Most of the good MOSFETs I'm aware of are SMT only, which is not beginner friendly. 2N7000 through hole is extremely available damn near everywhere. All companies have a clone of the venerated, classic MOSFET. EDIT: Its also been used in various beginner circuits for 40 years, so you can pickup an old book from the library and see those 2N7000 around and use those designs today.
----------
Honestly, if you're doing through-hole on ESP32, I suggest using a resistor + 2N2222 BJT instead of the MOSFET. But I think 2N7000 is easier (fewer parts, in particular no resistor needed). But that's a 5V design.
The 2N2222 also requires you to leak a decent amount of current through the Vbe / Ibe (while 2N7000 is like 1uA or less leak Vgs / Igs).
But... 5V and 2N7000 Jellybean + throughole is really easy to use. Its definitely a big advantage to Arduino IMO, and I'm glad that they're keeping the 5V driving capability in this newest version.
Yes, you can be careful about this and order the right part number to get a newer protected-gate version, but at that point please do us all a favor and specify some non-stone-age part.
"ON CHARACTERISTICS (Note 1) Gate Threshold Voltage (VDS = VGS, ID = 1.0 mAdc) VGS(th) 0.8 3.0 Vdc"
https://rocelec.widen.net/view/pdf/orqxwkxkq1/ONSM-S-A000354...
Figure 2 on page 5 gives you an idea of the voltages you're supposed to use. Optimal usage of the 2N7000 requires 10V Vgs (for 1.5A or more), but 5V is sufficient for ~800mA bursts. And I expect 800mA to be enough for most beginner uses.
4V might be usable, but that's well beyond the capabilities of ESP32.
Arduino is still unbeatable for community support, tutorials, and plug-and-play programming.
"The WiFi version comes with an Espressif S3 WiFi module"
https://www.renesas.com/us/en/software-tool/high-performance...
And ICE would be an In-Circuit Emulator.