3 ms·
Hmm, why use the RP2040 over something like an ESP8266? The author mentions a few advantages, but can someone elaborate?
by stavros 5y ago
Hmm, why use the RP2040 over something like an ESP8266? The author mentions a few advantages, but can someone elaborate?
- deleted 5y ago[deleted]
- jepler 5y agoThe goal here is to have a USB peripheral, so that this little device can plug in on USB and identify to the host system as an audio source (likely without even needing to install a driver, since audio sources & sinks are part of the USB spec). The RP2040 has built-in support for being a USB peripheral in its hardware, plus good support in the SDK for it. By contrast, the ESP8266 is not designed to be a USB peripheral. Usually it's used with a USB-to-serial converter when you need to connect it to a host computer. This allows, well, serial transfers. It can't appear to a host computer as an audio source. There might be ways to do it, such as bit banged USB or custom drivers on the host computer that treat a serial port as an audio source, but by using a microcontroller with built in USB support, a lot of headaches can be avoided. If you are particularly "into" the Espressif ecosystem, the ESP32-S2 and ESP32-S3 microcontrollers both have native USB support which would make them potential candidates for a similar project.
- trasz 5y agoIt is possible to do USB on microcontrollers that lack hardware USB support: https://github.com/obdev/v-usb https://github.com/obdev/v-usb
- deleted 5y ago[deleted]
- HALtheWise 5y agoThis project makes heavy use of the RP2040 "Programmable IO" PIO subsystem to do precise timing of input signals without needing to keep the cpu in a busy loop. No other microcontroller has that same subsystem, although other microcontrollers have differently-designed systems that allow similar results. The audio library would need to be rewritten though.
- jrockway 5y agoThe RP2040 is $1 in quantities of 10, so it’s really the perfect choice for this application. Personally, I only consider other microcontrollers if I must have some feature the RP2040 is missing (usually hardware floating point).
- stavros 5y agoThat's slightly more expensive than an ESP32, isn't it? I should get a few RP2040 boards to play with, though I really love the integrated wifi on the ESP...
- numpad0 5y agoComplexity wise it's CH552 < PIC18F < RP2040 < ESP8266