News for hackers. Stuff that matters.
Re:I like the RP2040 by HyulianGrader on Tuesday June 11, 2024 @11:31AM (#40647434)
It's safe to assume he's talking about the chip in both cases. You can connect either of them to a battery charger, camera, or nuclear reactor but all of those 'peripherals' are completely irrelevant to this comparison.
Re:I like the RP2040 by sophacles on Tuesday June 11, 2024 @11:50AM (#40647739)
So is GP.

The silicon chip itself for an ESP has:

bluetooth, ethernet, wifi, SD/EMMC, and a bunch more "peripherals" built into it.

The RP2040 does not.

To make this painfully clear:

For an esp32 to do wifi you wire the esp32 to an antenna.

For an RP2040 to do wifi you wire the 2040 to another chip, and that other chip to an antenna.

Do you see the difference?

Re:I like the RP2040 by moefh on Tuesday June 11, 2024 @12:02PM (#40647919)
GP is clearly talking about ESP32 boards, not the chip; they mentioned "LI Battery Controller", and "Display or Camera Connector". People sell RP2040 boards with those too, for example:

- board with a battery charger: https://learn.adafruit.com/adafruit-feather-rp2040-pico/powe...

- board with camera: https://www.waveshare.com/pico-cam-a.htm

Re:I like the RP2040 by Aurornis on Tuesday June 11, 2024 @12:33PM (#40648300)
ESP32 is available as a tiny module that is soldered to the board as if it was a chip.

Ignoring the module results in a flawed comparison. The module is chip and frequently used.

If they encased the module in plastic and called it a chip, it would be the same. You can think of it as a chip.

Re:I like the RP2040 by moefh on Tuesday June 11, 2024 @12:46PM (#40648500)
Do they sell chip-like modules with camera connectors and battery controllers, though? I don't deny that ESP32 modules look like and are soldered as though they were chips, but to me it's clear that GP was mixing up chips (and chip-like modules) with boards.
Re:I like the RP2040 by tbyehl on Tuesday June 11, 2024 @04:52PM (#40651334)
Espressif sell bare chips, modules with castellations for soldering to a PCB, and complete boards that typically contain a module. Some 3rd-party boards use a bare chip. Some 3rd-party boards also have castellations, as do Picos sold without pre-soldered headers. 3rd-party modules are also a thing.

Here's a pic of a module and several boards that demonstrates all of that.

https://imgur.com/a/yxjG8vh

Re:I like the RP2040 by HyulianGrader on Tuesday June 11, 2024 @11:55AM (#40647829)
No, that's both "just the chip", the chips have different peripherals. They both have the usual SPI, I2C, UART, ADC, etc., and they have their differences too.

I could just as well say "For an RP2040 to do USB you wire the RP2040 to the connector. For an ESP32 to do USB you wire the 32 to another chip, and that other chip to a connector."

It's clear to me GP has the impression that ESP32 is something more (a development board with an ESP32?) than the ESP32 "chip" itself.

Re:I like the RP2040 by krisoft on Tuesday June 11, 2024 @12:18PM (#40648113)
Maybe look at the ESP32 chip's datasheet? [1] This is the first sentence in it: "ESP32 is a single 2.4 GHz Wi-Fi-and-Bluetooth combo chip designed with the TSMC low-power 40 nm technology." That's the chip. Not the development board.

1: https://www.espressif.com/sites/default/files/documentation/...

Re:I like the RP2040 by Aurornis on Tuesday June 11, 2024 @12:34PM (#40648321)
The Espressif chips are available as cheap modules, and frequently used as such.

People generally refer to the module, not the isolated chip. The modules are effectively like a chip that you solder to the board.

Re:I like the RP2040 by 0x457 on Tuesday June 11, 2024 @01:54PM (#40649373)
Modules are "just" chip + all necessary hardware to start + antenna connector/pcb antenna. Those modules don't add any functionality to the chip.

The main benefit of those modules is: it's already certified with FCC and others, so you don't have to re-certify your design for radio communication. Since RP2040 does not have a radio, this is unnecessary.

Re:I like the RP2040 by HyulianGrader on Tuesday June 11, 2024 @12:32PM (#40648296)
What part of that contradicts my comment?

To be clear, GP is the one saying the ESP32 is more than just the chip itself, complete with battery controller and camera connector.

Re:I like the RP2040 by krisoft on Tuesday June 11, 2024 @06:42PM (#40652499)
Hmm. You are right.

On a second re-read it seems we agree.

Re:I like the RP2040 by milesvp on Tuesday June 11, 2024 @01:12PM (#40648875)
FYI. In the embedded space, peripherals refer to the chip's built in capabilities. Typically there is a peripheral that handles SPI, a peripheral that handles I2C, a peripheral that handles USART. There might be a peripheral that handles USB, or I2S, or any number of different abilities. It's either transistors or microcode on more sophisticated MCUs that allows these peripherals, and not every pin is connected to every peripheral, which can make chip selection even trickier. It really sucks to start designing around a chip that looks like it does everything you need with enough pins to only find out that once you start doing pin layouts you can't use both USART2 and I2C because they use the same pins. Worse, is when the datasheet makes this difficult to discern, and you only find out when doing some firmware work on a devboard.
Re:I like the RP2040 by g15jv2dp on Tuesday June 11, 2024 @03:47PM (#40650659)
Except it's not at all how GP used the word:

> From Wifi/Bluetooth Antenna, LI Battery Controller, Ethernet whatever, Display or Camera Connector - You choose.

None of those are in-chip peripherals. Besides, the RP2040 comes with a lot of peripherals too. Not as much as an ESP32 by a wide margin, but still.

Re:I like the RP2040 by zik on Wednesday June 12, 2024 @06:17AM (#40656450)
The ESP32 modules are available with or without the antenna built in, and the chips have an on-chip ethernet MAC peripheral, display support via on-chip LCD, I2C, or SPI peripherals, and camera via the on-chip CAM peripheral.

Not all versions have all these features. You can pick one based on the features you need.

Re:I like the RP2040 by 0x457 on Tuesday June 11, 2024 @01:42PM (#40649256)
> Worse, is when the datasheet makes this difficult to discern,

That's why I like RP2040 so much. Datasheet is amazing and clear, even for someone like me who hasn't spent too much time in embedded world.

There is a special, much shorter document just for hardware design that makes designing a board that uses RP2040 even easier.

Re:I like the RP2040 by 15155 on Tuesday June 11, 2024 @07:23PM (#40652811)
The RP2040 has one of the shortest datasheets of any MCU.

Look at any Nordic part or NXP part to see what a datasheet is supposed to look like. 3000+ pages with register documentation and behavioral examples.

Re:I like the RP2040 by 0x457 on Tuesday June 11, 2024 @07:33PM (#40652891)
To be fair, RP2040 also has the least features compared to those.

I’m not talking size of documentation, but it’s “bio-availability”.

Re:I like the RP2040 by HyulianGrader on Tuesday June 11, 2024 @01:24PM (#40649010)
FYI the RP2040 has peripherals too, a lot of the same ones.

It's very clear that GP has an odd misconception that an ESP32 is some kind of development board complete with "connectors" and possibly a battery charger, while an RP2040 is just the SoC itself.

Re:I like the RP2040 by croes on Tuesday June 11, 2024 @02:47PM (#40649948)
But if it's about the chip then just grab any ESP32.
Re:I like the RP2040 by 15155 on Thursday June 13, 2024 @05:36AM (#40667623)
If you do not need basic WiFi connectivity, the ESP32 is an overpriced, underpowered chip for which dozens of cheaper, more feature-rich alternatives exist.