News for hackers. Stuff that matters.
Re:Arduino Uno R4 by dale_glass on Sunday March 26, 2023 @12:07PM (#35316028)
A nice improvement, but maybe too little too late?

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...

Re:Arduino Uno R4 by eternityforest on Sunday March 26, 2023 @12:27PM (#35316280)
Seems like the big feature is 5v compatibility. Most ESP32 boards don't have 5v level shifting.
Re:Arduino Uno R4 by kevin_thibedeau on Sunday March 26, 2023 @01:12PM (#35316861)
5V is the special feature but it only has 20mA sink/source on two pins. That's not particularly friendly for typical Uno applications.
Re:Arduino Uno R4 by mardifoufs on Sunday March 26, 2023 @01:19PM (#35316930)
Does that mean it can only output 20ma at 5v? Or the opposite?
Re:Arduino Uno R4 by kevin_thibedeau on Sunday March 26, 2023 @01:23PM (#35316975)
It means people are going to blow pins thinking they can drive an LED at 20mA from any output.
Re:Arduino Uno R4 by londons_explore on Sunday March 26, 2023 @01:48PM (#35317266)
The original ATMEGA328p may have said in the datasheet that it could only do 20mA for 2 pins...

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.

Re:Arduino Uno R4 by kevin_thibedeau on Sunday March 26, 2023 @03:11PM (#35318315)
The ATmega supports 40mA on any pin. This is about the Renesas part.
Re:Arduino Uno R4 by formerly_proven on Sunday March 26, 2023 @03:42PM (#35318710)
I think I killed only one AVR in a long time tinkering. They even tolerate pretty severe over-voltage well, probably because they support EEPROM-style parallel HV programming.

However they're also pretty expensive (especially today, an m328p is over five bucks nowadays), and have been for around ten years or more.

Re:Arduino Uno R4 by hungryforcodes on Sunday March 26, 2023 @08:19PM (#35321272)
You can do exactly the same to an ESP32 / 8266.
Re:Arduino Uno R4 by eternityforest on Sunday March 26, 2023 @02:57PM (#35318117)
When would you ever need more than that in the Arduino ecosystem? I haven't in a rather long time. These days I usually don't even bother with LEDs, I'll just use an addressible pixel LED.

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.

Re:Arduino Uno R4 by dragontamer on Sunday March 26, 2023 @12:19PM (#35316184)
But an ESP32 can't turn on an 2N7000 MOSFET. 2N7000 is a 5V MOSFET, and is the cheapest one to boot, and one of the easiest to use.
Re:Arduino Uno R4 by kayson on Sunday March 26, 2023 @03:10PM (#35318293)
There are bajillions of mosfets; you can certainly find another one that works even if it's a tiny bit more expensive.
Re:Arduino Uno R4 by dragontamer on Sunday March 26, 2023 @03:21PM (#35318446)
Sure. So name one, that's cheap, readily available from many manufacturers, through hole, with 100mA+ or so Ids, low enough capacitance to be used with a microcontroller like ESP32.

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.

----------

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.

Re:Arduino Uno R4 by taylorportman on Sunday March 26, 2023 @06:39PM (#35320436)
There is an IRL series. I just got some IRL540N's https://learnarduinonow.com/2017/06/02/logic-level-mosfets-i... But I got arduinos to go with them because I doubt they will work directly from an esp. I think the big reason arduino can get away with charging so much is they must have some sort of educational institution market buying their products. The software and community support that comes with them is nice to have.
Re:Arduino Uno R4 by exmadscientist on Monday March 27, 2023 @07:14AM (#35325211)
The 2N7000 has the minor, trifling, potentially catastrophic flaw that many (most?) of them have completely unprotected gates. (In fact, it's one of the few parts you can reliably source that still offers this feature if you should need it, say for FET party tricks.) This means that the bloody things blow up if you so much as look at them funny. You absolutely need proper ESD precautions to use these things reliably. Many a student has come to the false conclusion that they didn't understand how to use MOSFETs when, in fact, they had just inadvertently blown up some or all of their crappy old 2N7000s. This is not really what you want for a "jellybean" part.

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.

Re:Arduino Uno R4 by dragontamer on Monday March 27, 2023 @12:53PM (#35329040)
> In fact, it's one of the few parts you can reliably source that still offers this feature if you should need it, say for FET party tricks.

Few? Tons of MOSFETs have no ESD protection, because that ESD protection diode has uA levels of leakage current in practice. Both MOSFETs discussed in this subthread (IRL540 and AO3401A) are both unprotected MOSFETs that blowup from ESD.

In fact, no one has even listed an ESD-protected MOSFET yet.

> Yes, you can be careful about this and order the right part number to get a newer protected-gate version

Unprotected MOSFETs have nothing to do with "old" or "new". Its because that protection diode has a number of characteristics (in particular: sucking currents in a different direction than expected and changing the circuit) that needs to be carefully considered.

You can't just replace unprotected MOSFETs with protected ones and hope that your circuits work. You very well could be shorting out some circuit inadvertently.

Re:Arduino Uno R4 by exmadscientist on Tuesday March 28, 2023 @03:09AM (#35336963)
Gate protection zeners are much more common in the more modern, higher-performance parts. So if you are used to using dinosaurs, you might think they're rare. Also, manufacturers occasionally get sloppy about noting their existence; you really need to see an I_GSS spec to be sure. (And because, well, if you're concerned about gate leakage, that is the spec!)

The 2N7000 is significantly worse than other MOSFETs. I don't know if that's because it's older, because its fab process is worse or was worse at one time, because it's easy to get those TO-92 legs into trouble, or just because of the die's low C_iss, but it's one fragile little bastard. The 2N7002 seems to be much better!

> Unprotected MOSFETs have nothing to do with "old" or "new".

Yes, they do, because the 2N7000 is older (1986) than integrated gate protection devices! Anything you see with them isn't a "true" 2N7000, even if it might meet the JEDEC spec sheet (which is rather hard to turn up...). Modern versions might have protection or might not (check the letters at the end of the part number... and hope you've got the right era of datasheet... and hope you've got the original MPN and don't have to read the condensed markings on the parts themselves... oh and hope you know the actual manufacturer!), but if they're older then they certainly won't have protection. So it kind of is an old (nope) versus new (maybe) thing.

> You can't just replace unprotected MOSFETs with protected ones and hope that your circuits work. You very well could be shorting out some circuit inadvertently.

Okay, technically, yes. In practice, no. Enhancement MOSFETs are usually used for power/switching applications, which won't care one damn bit about a silly diode, or in feedback loops for analog applications, which again won't care much. For various reasons, JFETs and depletion MOSFETs are usually preferred in analog-land, along of course with ICs. That's not to say you don't see discrete enhancement MOSFETs, but it's very, very uncommon. (And when I try to design that sort of stuff, I always seem to get stuck on not being able to find a FET without the pesky diodes built in. Sigh.)

Re:Arduino Uno R4 by dragontamer on Tuesday March 28, 2023 @10:53AM (#35342081)
https://www.onsemi.com/pdf/datasheet/nvmjst3d3n04c-d.pdf

August 2022 part. Unprotected MOSFET. Top-of-the-line, modern technology with 0.003 Ohms Rds, 157 Amps supported.

Protected vs unprotected has nothing to do with old or new. And yes, the specs on the 2N7000 suck, but who cares? It gets the job done and is the dirt-cheapest part. Beginners don't need performance, they just need lots of parts to play with, so cheapness probably takes priority.

> Also, manufacturers occasionally get sloppy about noting their existence

What are you talking about?

Any MOSFET with ESD-protection has a Human-body model (HBM) ESD specification. Probably in the realm of 2000V, or +/-1700V, depending on how the protection diode works.

TI btw makes a ton of ESD-protected MOSFETs with 4000V ESD and like 50nA of leakage. But they're much costlier, and of course surface-mount only because that's what pros use in practice. (Beginners definitely prefer through hole so that it works on breadboards, which is another reason to use 2N7000).

TI Part for reference: CSD17381F4 / https://www.ti.com/lit/ds/symlink/csd17381f4.pdf

You can tell its ESD-protected from the HBM test and CDM test. Also, the circuit model shows the protection diode.

Re:Arduino Uno R4 by cellularmitosis on Sunday March 26, 2023 @07:51PM (#35321022)
But could a hobbyist who is following one of the bazillion tutorials which calls for a 2N7000 or other non-logic-level mosfet? Does that hobbyist even know what a threshold voltage is? These are barriers to entry which are removed by 5V IO.

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”

Re:Arduino Uno R4 by guenthert on Sunday March 26, 2023 @03:10PM (#35318304)
Wut? From the data sheet:

"ON CHARACTERISTICS (Note 1) Gate Threshold Voltage (VDS = VGS, ID = 1.0 mAdc) VGS(th) 0.8 3.0 Vdc"

Re:Arduino Uno R4 by dragontamer on Sunday March 26, 2023 @03:20PM (#35318432)
Yeah, Vgs(th) is 3V worst-case. That's the specification for 1mA of current flow Ids, which is near useless (note: the Arduino has traditionally been able to supply 20mA+, so a 1mA Ids current at 3V is completely pointless). "th" is Threshold after all, its not when the MOSFET is usable, its when it "starts to turn on".

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.

Re:Arduino Uno R4 by 15155 on Monday March 27, 2023 @12:10AM (#35322766)
But it can turn on an AO3401A.
Re:Arduino Uno R4 by dragontamer on Monday March 27, 2023 @03:08AM (#35323723)
Beginners won't use a surface-mount part.
Re:Arduino Uno R4 by 15155 on Monday March 27, 2023 @01:33PM (#35329649)
When I was a beginner, I wish someone would have handed me proper surface-mount parts and accompanying breakout boards that would turn them into TH components suitable for a breadboard.
Re:Arduino Uno R4 by ta988 on Sunday March 26, 2023 @12:29PM (#35316304)
Power supply is only up to 16V pins are 3.3V, and it is much more expensive. They are just different products that serve different users. With Arduino you get a 100% working ecosystem there are still a lot of incompatibilities with esp32 (although a lot less these days).
Re:Arduino Uno R4 by em3rgent0rdr on Sunday March 26, 2023 @12:19PM (#35316187)
"When it comes to hardware compatibility, pinout, voltage and form factor are unchanged from UNO R3, ensuring maximum hardware and electrical compatibility with existing shields and projects."
Re:Arduino Uno R4 by okl on Sunday March 26, 2023 @12:12PM (#35316087)
I'm not into Arduinos but I think they are not selling their products because they have the largest RAM or the fastest CPU but because of the Arduino IDE, the language and the community.
Re:Arduino Uno R4 by dale_glass on Sunday March 26, 2023 @12:18PM (#35316177)
The ESP32 can be programmed through the Arduino IDE, using the exact same language. I've done that.

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...

Re:Arduino Uno R4 by ta988 on Sunday March 26, 2023 @12:31PM (#35316336)
So now you need to add a level shifer increase the number of mistakes and the risk of ruining your board. Your solution makes life of hobbyists less enjoyable IMHO.

The GPIO are not level shifted in the board you link.

Re:Arduino Uno R4 by dale_glass on Sunday March 26, 2023 @12:35PM (#35316380)
Maybe that's not the right board, but a level shifter is what, $1 or so? Could be on the board itself easily.
Re:Arduino Uno R4 by szundi on Sunday March 26, 2023 @12:43PM (#35316491)
Please try to imagine you are a begginner again.
Re:Arduino Uno R4 by II2II on Sunday March 26, 2023 @01:03PM (#35316726)
I think the suggestion is to make an electrically compatible Uno board by incorporating the level shifters onto the board. The end user wouldn't have to think about them because they are already there.
Re:Arduino Uno R4 by dale_glass on Sunday March 26, 2023 @12:55PM (#35316624)
Of course I don't mean I expect a beginner to get a board made so that they can use a surface mount level shifter for their beginner project.

My question here is why the weird approach? Why have two MCUs on a board, and have the one that the user interacts with be the technically inferior one?

Why not just make a better version of the ESPRIT? Just add a level shifter to it, and there you go: form factor compatible, 5V compatible, and more powerful than Arduino's not yet released project. And probably cheaper to manufacture than the two MCU design they came up with.

And yeah, you can use exactly the same IDE and API for the ESP32.

Re:Arduino Uno R4 by numpad0 on Sunday March 26, 2023 @01:30PM (#35317055)
Renesas had been trying to get into Arduino market, previously with Gadget Renesas efforts. Arduino is expanding more into (over-bloated...) industrial control applications for heavy industries. There, I would assume, the both parties saw aligned interests to have a Renesas chip in the center of a new Arduino(maybe ARM might be in it too).

Performance must have been a non-issue, they make everything from timers for rice cookers to custom ISA smartphone SoCs. It must have been just an option that is good enough, easily available and comfortably low-tech to let to an enthusiast with an SEM in his basement.

Re:Arduino Uno R4 by dale_glass on Sunday March 26, 2023 @01:49PM (#35317278)
Okay, now that finally makes some sense!

Though does Arduino really amount to something measurable to a giant like Renesas? And I presume that Arduino plans to keep the IDE and API, so not like 99% of people would be learning anything about the details of Renesas' chips.

Re:Arduino Uno R4 by numpad0 on Sunday March 26, 2023 @03:01PM (#35318161)
Renesas/then-Hitachi H8 and Microchip PIC were popular in Japanese EE colleges and Universities. The H8 was always a bit too advanced, more popular in more niche robotics than plain EE, and must have been not too important for Renesas. But the latter was blown away entirely by AVR as Arduino came around and created a whole hobbyist industry.

IDE and API won't be issues, it's just bare C/C++ and APIs are just extra standard libraries. But the popularity of Arduino and ATmega328P/ATmega32U, its expanded talent pools, etc must be somewhat tempting and potentially-vital-looking for Renesas, while also not too tempting nor threatening to make substantial changes to its operations and focus on over the counter chip sales.

Re:Arduino Uno R4 by hungryforcodes on Sunday March 26, 2023 @08:23PM (#35321308)
Why would you need to add a level shifter. Almost every single i2c or SPI component I've used works just fine with the ESPs 3.3v or is 3.3v to 5v compatible.
Re:Arduino Uno R4 by II2II on Sunday March 26, 2023 @12:56PM (#35316634)
Yeap. My first attempts to move away from Arduino were an absolute nightmare, even though I treated it as a development board and had ditched the Arduino libraries. There was too much inconsistent information from the community about third-party STM32 boards. ESP32 boards were okay given my skill level, but I certainly wouldn't recommend them for novices. The relatively recent Pi Pico was a refreshing change due to the consistent documentation, but it is something where you have to be willing to sit down and read the documentation. And that is only considering programming the things, you still have to build something around it.

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.

Re:Arduino Uno R4 by Avamander on Sunday March 26, 2023 @01:58PM (#35317396)
The Arduino hardware abstraction layer has really been one of the biggest steps towards a more universal and interoperable set of software for bare silicon. Yet as you experienced, even then it wasn't enough to bridge the gap fully.

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.

Re:Arduino Uno R4 by twarge on Sunday March 26, 2023 @05:04PM (#35319606)
This was also my path. I'm still surprised that stm32 development is not more widely taught. I'm also surprised that products like the leaflabs maple didn't take over.
Re:Arduino Uno R4 by numpad0 on Sunday March 26, 2023 @12:14PM (#35316126)
But can you plug an ESP32 to HEW through the official $1k ICE?
Re:Arduino Uno R4 by drivers99 on Sunday March 26, 2023 @12:46PM (#35316533)
Trying to understand your statement. What do HEW and ICE stand for? Google isn’t helping.
Re:Arduino Uno R4 by II2II on Sunday March 26, 2023 @01:09PM (#35316806)
I assume they are talking about this:

https://www.renesas.com/us/en/software-tool/high-performance...

And ICE would be an In-Circuit Emulator.

Re:Arduino Uno R4 by gjsman-1000 on Sunday March 26, 2023 @12:13PM (#35316104)
You assume that technical specifications determine success - which, as Apple has shown, isn’t true.

Arduino is still unbeatable for community support, tutorials, and plug-and-play programming.

Re:Arduino Uno R4 by mardifoufs on Sunday March 26, 2023 @01:25PM (#35317005)
Is that true outside of the original board? I never see or hear about the newer arduino variants, to the point where I thought they semi-pivoted to become a more enterprise/industrial oriented offering. It might be selection biais, but it's not very hard to gauge "hobby" usage (youtubers, guides, subreddits, forums) and yet even the bluepill or esp32 are much more common in those circles than the newer arduino boards.
Re:Arduino Uno R4 by 0xDEF on Sunday March 26, 2023 @12:57PM (#35316648)
I love the ESP32 and use it as the central gateway (IoT hub) solutions I develop.

However the ESP32 power consumption is too high. TI has a ARM-based wireless sensor platform that can run for years while making measurements every five minutes.

Re:Arduino Uno R4 by DeathArrow on Sunday March 26, 2023 @01:00PM (#35316684)
ESP has more than ESP32 microcontrollers. They also have lower power microcontrollers and even RISC-V based microcontrollers.
Re:Arduino Uno R4 by Avamander on Sunday March 26, 2023 @02:01PM (#35317437)
I've used a lot of them, I've used various boards in education. Few alternatives offer as mature and smooth experience that Arduino (AVR) boards do.

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.

Re:Arduino Uno R4 by clort on Sunday March 26, 2023 @02:24PM (#35317690)
can you name it please? I'm interested in a hobbyist project and although I haven't got up off my arse yet, I might one day...
Re:Arduino Uno R4 by 0xDEF on Sunday March 26, 2023 @02:52PM (#35318040)
Look at TI's CC1310 platform for wireless sensors. There may be newer models of it.
Re:Arduino Uno R4 by DeathArrow on Sunday March 26, 2023 @12:58PM (#35316664)
I think Arduino and ESP32 have different goals. One is more of an educational tool targeting children and adults to automate simple stuff and learning to program microcontrollers in a simplified way and the other is focusing on more industrial solutions where performance, price and flexibility matters.

So I am not sure they are competitors. Like Intel and Raspberry Pi aren't competitors as they address very different markets.

Re:Arduino Uno R4 by zamadatix on Sunday March 26, 2023 @01:09PM (#35316813)
Addressing specific markets only works if you do it uniquely or better. The simplified Arduino tooling works on the ESP32, which is also the cheaper and better option.
Re:Arduino Uno R4 by DeathArrow on Sunday March 26, 2023 @02:36PM (#35317834)
Good point. Are there ready made ESP32 boards good for education?
Re:Arduino Uno R4 by ThrowawayTestr on Sunday March 26, 2023 @03:16PM (#35318376)
Just google ESP on AliExpress. Tons of different dev boards available.
Re:Arduino Uno R4 by adr1an on Sunday March 26, 2023 @04:44PM (#35319381)
NodeMCU ESP32
Re:Arduino Uno R4 by lostlogin on Sunday March 26, 2023 @11:34PM (#35322569)
People rate the ESPs from DF robot.

They aren’t cheap but they also provide support and a good to deal with. https://www.dfrobot.com/

Re:Arduino Uno R4 by swimfar on Sunday March 26, 2023 @07:52PM (#35321033)
But that Arduino tooling and all the libraries, tutorials, etc. wouldn't exist if nobody had bought Arduinos. If I'm just buying a few boards for personal projects I like to support companies that provide more than just hardware to the maker community.
Re:Arduino Uno R4 by danieldk on Sunday March 26, 2023 @01:53PM (#35317324)
One is more of an educational tool targeting children and adults to automate simple stuff and learning to program microcontrollers in a simplified way

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.

Re:Arduino Uno R4 by DeathArrow on Sunday March 26, 2023 @02:37PM (#35317844)
It might be true but Arduino built a brand and is better known.
Re:Arduino Uno R4 by Avamander on Sunday March 26, 2023 @01:53PM (#35317331)
The ESP32 and ESP8266 are significantly more complex and come with a bunch of downsides that make an already difficult venture into the "hardware land" even more so. Watchdog timeout or some other exception, you'll get a stacktrace that requires a fragile Java piece of software to decode, and it only does that to some extent. It's seriously not pleasant.

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.

Re:Arduino Uno R4 by ThrowawayTestr on Sunday March 26, 2023 @03:15PM (#35318362)
The ESP is compatible with the Arduino IDE. I've found it as easy to program as any other microcontroller. (Though I have encountered watchdog issues with unoptimized code)
Re:Arduino Uno R4 by LeifCarrotson on Sunday March 26, 2023 @04:39PM (#35319327)
As long as you stay within the guide rails and libraries provided by the IDE.

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.

Re:Arduino Uno R4 by rolenthedeep on Sunday March 26, 2023 @09:55PM (#35321979)
I'm in the middle of porting a project from arduino to esp-idf. If you want to do anything slightly complex with the Bluetooth stack, those features just don't exist in the arduino core. It's very frustrating.
Re:Arduino Uno R4 by LeifCarrotson on Monday March 27, 2023 @11:06AM (#35327643)
That's why I typically prefer to build my base application on a standalone processor and export Bluetooth or Wifi duties to an nRF52820 or ATWILC1000.

Yes, the processor required to run these network protocols is pretty beefy, so a big and fast chip like those made by Espressif has plenty of capacity to run your own app alongside the big communication stacks, but it's far simpler and more power efficient to let a small and simple Bluetooth chip do only Bluetooth stuff, and power it up or down as needed and talk to it over SPI or whatever from a host processor that you have full control of.

Re:Arduino Uno R4 by ahepp on Sunday March 26, 2023 @08:33PM (#35321378)
Unless I'm reading wrong, it looks like this new Uno will have a Cortex-M processor rather than an AVR
Re:Arduino Uno R4 by ChancyChance on Sunday March 26, 2023 @02:28PM (#35317732)
Once I learned how to use STMCubeMX, I never went back to Arduino. Comparing STM boards with Arduino in terms of price, RAM, Flash, GPIO, analog, ... and R4 looks like Steve Buscemi doing the "hello fellow kids" meme. I think the big win for Arduino was the ecosystem and simplicity, but the big embedded players have invested significantly in this space with tons of code examples compatible with the arduino add ins (STM boards all have the arduino header).

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.

Re:Arduino Uno R4 by the__alchemist on Sunday March 26, 2023 @03:35PM (#35318612)
> 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.

Re:Arduino Uno R4 by wombat_trouble on Sunday March 26, 2023 @02:49PM (#35317994)
Arduino never made sense as far as technical specs go. You could always buy more capable and compatible AVR microcontrollers for one tenth the price. In the past decade, the disparity has gotten more dramatic as 8-bit chips have gotten even cheaper and even more capable.

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.

Re:Arduino Uno R4 by slim on Sunday March 26, 2023 @07:16PM (#35320772)

  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?
Re:Arduino Uno R4 by tgsovlerkhgsel on Sunday March 26, 2023 @09:30PM (#35321828)
With the massive difference in abilities and price between ESP32 based boards and Arduino, and the increasing number of shields available for common ESP32 boards, I think Arduino has lost a lot of the "community" advantage.

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 :(

Re:Arduino Uno R4 by unmole on Sunday March 26, 2023 @10:21PM (#35322173)
> You could always buy more capable and compatible AVR microcontrollers for one tenth the price.

Were you able to program them without additional (expensive) hardware?

Re:Arduino Uno R4 by tzs on Monday March 27, 2023 @12:46AM (#35322927)
There are low cost AVR programmers, such as [1]. Similar are available for much less on Aliexpress.

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...

Re:Arduino Uno R4 by josephcsible on Monday March 27, 2023 @01:23AM (#35323135)
Generic AVR programmers go for about $8 on Amazon.
Re:Arduino Uno R4 by inamberclad on Sunday March 26, 2023 @11:32PM (#35322563)
Arduino is also orders of magnitude lower friction than just about any other embedded platform. Baremetal AVR? Set up your makefile, ICSP programmer, and find the right fuse flags or risk bricking your chip with the wrong clock settings. STM32? Set up the whole STM32CubeMx project and export it as a Makefile and remember to only add code in the correct areas? Baremetal ESP32/ESP8266? Doesn't exist, but you can use a FreeRTOS fork with special binary blobs. PIC microcontrollers? Set up Microchip's HUGE IDE and special compilers and programming tools.

A board supported by Arduino is vastly easy to use, especially for someone who just wants their project to _work_, not to learn the deep arcana of baremetal systems.

Re:Arduino Uno R4 by josephcsible on Monday March 27, 2023 @12:41AM (#35322906)
> find the right fuse flags or risk bricking your chip with the wrong clock settings

Is it actually possible to totally brick an AVR chip that way? Can't you always recover them with high-voltage programming mode?

Re:Arduino Uno R4 by inamberclad on Monday March 27, 2023 @01:29AM (#35323169)
I don't know how many people have a high voltage programmer, especially the people that would choose an Arduino. I'm personally lucky to have found an AVRISP mkII that was being thrown away when I was a broke college student.

Either way, I'm saying that Arduino is _the_ microcontroller platform with the fewest gotchas for a beginner.

Re:Arduino Uno R4 by morpheuskafka on Monday March 27, 2023 @12:28AM (#35322854)
> folks who simply defaulted to it as a platform,

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.

Re:Arduino Uno R4 by RobotToaster on Sunday March 26, 2023 @04:55PM (#35319496)
This isn't even the fastest arduino, in 2014 there was the edison version that had a dual core 400mhz x86.
Re:Arduino Uno R4 by cellularmitosis on Sunday March 26, 2023 @07:46PM (#35320990)
Probably the fastest 5V IO Arduino.
Re:Arduino Uno R4 by nyanpasu64 on Sunday March 26, 2023 @06:23PM (#35320274)
Selling Arduinos for over $20 is utterly ridiculous when you cam get a Pi Pico for $4, ESP8266 for under $10, or an Arduino clone on AliExpress for under $4.
Re:Arduino Uno R4 by rowanG077 on Sunday March 26, 2023 @06:47PM (#35320509)
A big disadvantage is that the esp32 has a closed source core.
Re:Arduino Uno R4 by tyingq on Sunday March 26, 2023 @08:59PM (#35321601)
The WiFi Uno R4 also comes with an ESP32, in addition to the ARM processor :)

"The WiFi version comes with an Espressif S3 WiFi module"

Re:Arduino Uno R4 by jdboyd on Monday March 27, 2023 @12:35PM (#35328815)
A lot of things Arduino has been putting out recently feels like it might be too little for too late or way to high of a price.

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.

Re:Arduino Uno R4 by sheepybloke on Monday March 27, 2023 @08:56PM (#35334371)
For me, Adafruit ate Arduino’s lunch. In terms of boards, form factor, price, ease of use, there is no comparison. That’s what confuses me about this board: why should I buy this vs any similar Adafruit board?