Rust on Espressif chips – 15-07-2022
mabez.dev
mabez.dev
- https://tweedegolf.nl/en/blog/65/async-rust-vs-rtos-showdown
Undoubtedly the pi pico W will take some amount of mindshare away from Espressif, but espressif still has several advantages that are important to me (ESPHome, usb-c board availability, ease of creating custom PCBs with their small all-in-one modules, RISC-V), but the gap will close, and my worry is that the might of the Pi community will basically just make it the more well-supported chip in the long run.
I know it's impossible to predict the future, but after the announcement, I find myself a little less excited to continue investing in keeping up with the esp32 stuff, even though right now I have something like 10 boards automating various parts of my home
(note this is from the lens of a tinkerer, not someone using these professionally)
esp32 is faster than a Pico, but a lot of the examples for the Pico are in MicroPython, so I don't think performance is what they're pushing anyways.
I still like the esp32 better. It's faster for a pretty negligible difference in power consumption, I already kind of know the API, and I can get them with cameras and SD card slots already in them. I just don't see a compelling reason to switch.
I think esp32 will be fine, at least until something significantly better comes along and kills the esp32 and Pico.
Part of what makes esphome/tasmota/... so attractive is reusing existing devices with an esp inside. These won't exist for the pico w.
I think the enthusiast IoT space will continue to primarily use esp32/esp8266 devices.
If the Pi foundation offers a small module akin to the esp8266/esp32 modules, that might change.
[1] https://www.eenewseurope.com/en/espressif-moves-exclusively-...
Espressif is based in Shanghai. China nationally is moving to RISC-V & red linux for all internal cases so they aren't reliant on foreign tech/ip. Espressif makes products for the ccp (I'd wager it is their single largest client and probably directly influencing their board, but that is speculation). Most chip manufacturers work pretty close with their govs for biz.
Its hard to appreciate today how significant a role esp32 will play in future computing trends (but it is probably HUGE imho, i love their products and transparency)
I could make the same statement about huawei, alibaba, et al.
However I don't want to be accused of being a liar.
Who/What was the application/client for the aithink (a division of espressif) esp32-cam board
The application is/was ccp military & ccp dystopia-esque long range surveillance tech.
Its not a dev board, it was designed for a specific application.
You can find references to the models in the Chinese (mandarin) version of the docs. The cameras which include night vision & heat can be found on taobao, have esp32-cam inside.
[0]: https://github.com/bjoernQ/esp32-rust-nostd-temperature-logg...
They mention a rust dev kit. Does this mean you can use rust on the standard espressif esp32 devkits? I just bought an espressif esp32-S3-wroom to learn on and would love to use rust if possible.
The main esp-rs github organization[1] is a good place to get started!
[0]: https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...
You can target the s2 and flash it using cargo.
However if you are building something complex and want to use Probe-rs you will probably want to buy a c3 module.
Also you can emulate and test the riscv in qemu. (useful for integration testing on cloud)
Rust for embedded is awesome and doesn't get enough attention for how powerful the potential is.
Esp32-s2 has 3 low power sleep suspend modes. For the speed of the dual 240mhz processors are monsters with ~4mb of ram. Xtensa core is among best in class, but could be overkill for the application wheres STM, etc. might have a smaller much lower frequency chip that is. A lot of the esp32 dev boards also have bigger than necessary "protect the processor" type components which burn power too.
Raspberry pi burns way more power than esp32 per clock cycle (its a little toaster) but nobody complains about that.
I suspect the complaints are by hobbyists using arduino on s2 which can't/dont access them. (requires c++)
Riscv as architecture is not power efficient yet, give it time - the fact riscv exists at all still blows my mind.