Live data from Hacker News

ESP32-P4: High-performance MCU with IO-connectivity and security features

espressif.com

31–40 of 95 posts

Re: ESP32-P4: High-performance MCU with IO-connectivity and security features

#31
post #22

What's the industry's consensus on Espressif modules? As a layman they look like an insane deal. With western manufacturers $3.5 doesn't even get you a firm handshake whereas Espressif gives you a fully intergrated module with everything already on board. https://www.digikey.com/en/products/detail/espressif-systems...

$3.5 is pretty expensive when you can get microcontroller chips for $0.5 or less in bulk. In general, "the industry" makes their own boards and modules, and prefers cutting off any excess cost and features in favor of getting cheaper microcontrollers to optimally integrate into a design. That is, unless said designs actually need wifi, in which case Espressif is actually a consideration, but otherwise STMicroelectronics or Nordic Semiconductors chips tend to be more cost-effective, and the latter has significant leniency on board design as it allows remapping nearly all pins.

Re: ESP32-P4: High-performance MCU with IO-connectivity and security features

#32

Ha, for most of my applications the ESP32s are actually wildly over-powered - but the development experience is quite good. It's cool that they're seriously expanding their media interfacing capabilities - the ESP32s already have some, but they're quite basic. I don't see a mention of it, so I have to wonder: What about Linux? There was a project a while back to get Linux running (at a snail's pace) by using JuiceVM…

Last time I read into it, the lack of memory management hardware (paging etc.) was one of the main reasons stated why normal Linux can't run on these devices.

Someone managed to get Linux to work by writing a virtual machine and emulating a Linux capable computer, but that was obviously not a serious use case (it was also extremely slow for obvious reasons).

Re: ESP32-P4: High-performance MCU with IO-connectivity and security features

#33
post #22

What's the industry's consensus on Espressif modules? As a layman they look like an insane deal. With western manufacturers $3.5 doesn't even get you a firm handshake whereas Espressif gives you a fully intergrated module with everything already on board. https://www.digikey.com/en/products/detail/espressif-systems...

Given that Espressif was one of the few companies not to fail during the supply chain crunch I wouldn't hesitate to use them. Unlike the Raspberry PI Foundation.

This is mostly due to Espressif modules being less demanded.

Re: ESP32-P4: High-performance MCU with IO-connectivity and security features

#35
post #29

There's a very nice language dedicated to ESP32 programming that has semantics very similar to ruby and python and very clean minimalistic syntax. It called toit https://toitlang.org/

It’s strange that in their examples they don’t show any I/O (apart from print). I would expect support from such a language to support me with I/O while I concentrate on my program. For example by providing an event loop. Of course, if I need a more performant approach I would switch to a low level language.

The documentation at first glance looks like any general purpose language but they do have io through various buses:

https://docs.toit.io/peripherals

They also have nice simple tutorials.

Not sure about the event loop. I don't think it's even based. Looks more like "immediate mode".

Re: ESP32-P4: High-performance MCU with IO-connectivity and security features

#37
post #31
post #22

What's the industry's consensus on Espressif modules? As a layman they look like an insane deal. With western manufacturers $3.5 doesn't even get you a firm handshake whereas Espressif gives you a fully intergrated module with everything already on board. https://www.digikey.com/en/products/detail/espressif-systems...

$3.5 is pretty expensive when you can get microcontroller chips for $0.5 or less in bulk. In general, "the industry" makes their own boards and modules, and prefers cutting off any excess cost and features in favor of getting cheaper microcontrollers to optimally integrate into a design. That is, unless said designs actually need wifi, in which case Espressif is actually a consideration, but otherwise STMicroelectron…

I look at Nordic the same way, but for battery-powered BLE etc vice WiFi; If this is your requirement, Noric is great. If not, it's probably not the ideal fit.

STM is more about versatile lineup; there are many variants with different footprints, redundant peripherals, price points etc. I think the $0.5 is only if you're a major manufacturer buying G0s or they're predecessors.

Re: ESP32-P4: High-performance MCU with IO-connectivity and security features

#38
post #29

There's a very nice language dedicated to ESP32 programming that has semantics very similar to ruby and python and very clean minimalistic syntax. It called toit https://toitlang.org/

It’s strange that in their examples they don’t show any I/O (apart from print). I would expect support from such a language to support me with I/O while I concentrate on my program. For example by providing an event loop. Of course, if I need a more performant approach I would switch to a low level language.

I concur that's strange; the homepage code examples are standard imperative things. Clean IO, peripheral APIs, scheduling/code structure, and resource sharing is what I'd expect as priorities from an embedded-dedicated lang.

Re: ESP32-P4: High-performance MCU with IO-connectivity and security features

#39
post #6

Huge huge fan of ESP32s over Arduino/RPi/etc for any/all projects where I can do so. I’ve probably got 15-20 ESP32 projects around the house, and have done somewhere around 80-100 for other people. Arduino does a great job with marketing but at the end of the day you could do 99% of Arduino projects with an ESP32 for 1/10th the cost, use less power, and get way more features at the same time, while still using the Ar…

A little off topic: Is there a video compression chip that I can put on a board with an ESP32 to make a live streaming camera similar to what can be done with an RPi or Jetson Nano?

Re: ESP32-P4: High-performance MCU with IO-connectivity and security features

#40
post #20

Earlier quoted context omitted.

Agreed - they deliver a very flexible, cost-effective, performant MCU. Downsides (to me) are toolchain and power consumption. Has the Arduino toolchain been enough for home automation? I’ve been playing with Zephyr, but when I’ve gotten down into those gritty late-AM Saturday night programming hours, actual library support seems to be patchy, outside Arduino and Espressif toolchains. I ended up running MicroPython on…

I use a wide mix of ESP-WROOM-32, Lolin ESP-32-OLED (when I want on-board display), and all sorts of other random ones. For all my home automation I use ESPHome and Home Assistant (20+ custom devices, plus however many light bulbs and Sonoffs and stuff). For tool chain I personally use Platform.IO in VSCode but I’ve done a fair few with Arduino IDE and it works in a pinch.

Would you mind sharing some of the Home Assistant projects you’ve built? I have some ESP32-CAMs coming and plan to setup a cat box monitor.
Post reply on HN