EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: Dajgoro on January 22, 2019, 10:58:45 am

Title: ESP alternatives
Post by: Dajgoro on January 22, 2019, 10:58:45 am
Hi

I was wondering if there was a alternative to the popular ESP modules (not including the RTL8710) which is made by some western company, and has a proper ide and documentation?
The ESP has a ton of code written for it, but I don't like how its still a sort of magical black box device.
Do any of the big mcu brands have something that has both wifi and ethernet in a single package with good code support, even if its a bit more expensive?
Title: Re: ESP alternatives
Post by: edigi on January 22, 2019, 12:13:23 pm
While I can't help you with your original question what I wanted to note is that I'm surprised to hear that you regard ESP as black box.
When playing with ESP32 I've found myself using the technical reference most often (register level description, 669 pages long currently):
https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf (https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf)
I've used also the API reference frequently:
https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/index.html (https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/index.html)

The root of the documentation (still with many more documents related to both SW and HW):
https://docs.espressif.com/projects/esp-idf/en/latest/ (https://docs.espressif.com/projects/esp-idf/en/latest/)
or in github:
https://github.com/espressif/esp-idf (https://github.com/espressif/esp-idf)

The Arduino IDE also works just fine.

This is not to say that there could not be improvements either in documentation or in the HW.
E.g. although the ADC is specced as 12 bits in practice it has many issues limiting it to around 8 bits. When looking for alternatives however I've found that many recent controllers are plagued with very similar issue...
Similarly PCNT is just 16 bits. Sure one can extend it in SW but it would be so much simpler if 32 bits used directly in the HW.
Also while it introduces a great flexibility the APB is just in the way for many use cases (e.g. instant time stamping of fast events)

There is however the general tendency that there is not anymore such extensive documentation as it used to be couple of decades ago (remember everything used to have even schematics; not anymore). Simply it seems that no company can afford it anymore (time to market, budget etc)....

So IMHO one can have many valid reasons to look for alternatives (like if you say you wanted an ARM version), but I'm surprised to read that lack of documentation is mentioned as one of the main issues.

DISCLAIMER: I have no affiliation with Espressif. I've just bought and used stuff from them just like from many other vendors.
Title: Re: ESP alternatives
Post by: nsrmagazin on January 22, 2019, 02:23:55 pm
https://www.microchip.com/design-centers/wireless-connectivity/embedded-wi-fi (https://www.microchip.com/design-centers/wireless-connectivity/embedded-wi-fi)
Title: Re: ESP alternatives
Post by: Dajgoro on January 22, 2019, 02:30:33 pm
I say its a black box because I always see it being used arduino style in some weird IDE with no debugger using arudino libraries which end up doing funny things.
It seems to me like its something brewed up by the community rather than a single manufacturer like MCP parts, which then has a consistent way of doing things.

That microchip module doesn't look too bad, and also its not that much more expensive, I'll look into it.
Title: Re: ESP alternatives
Post by: krho on January 22, 2019, 05:11:13 pm
 ESP32 uses freertos under the hood, so you can use this from any IDE that supports C++ development. e.g.. simple google search for ESP32 ide returns instruction on how to use it With eclipse IDE (https://www.instructables.com/id/ESP32-With-Eclipse-IDE/)
Title: Re: ESP alternatives
Post by: cv007 on January 22, 2019, 05:55:39 pm
It probably depends what you consider an alternative. If you are mainly after network access, Onion Omega2's are nice.
Title: Re: ESP alternatives
Post by: Yansi on January 22, 2019, 06:17:14 pm
I would rather like to hear about a WiFi chip, that does NOT have any internal user programmable CPU, that could be interfaced to a higher level MCU/MPU system through a common high speed interface, such as QSPI, SDIO or similar.
Title: Re: ESP alternatives
Post by: lucazader on January 22, 2019, 07:00:27 pm
Have a look at the cypress range of wifi chips.
There are quite a few modules build with their chips that use a host MCU (stm32 f4's usually, as a hangover from when the product line was owned by broadcom) and im sure at least a few of these will have Ethernet support.
Title: Re: ESP alternatives
Post by: Yansi on January 22, 2019, 07:16:27 pm
No more toy modules please. I just want a chip, that I could integrate into design (I am not that easily scared off by a 100 pin chip with RF interface), config and move data through a well defined interface and that's all.

Will have a look, thanks for tips.
Title: Re: ESP alternatives
Post by: westfw on January 22, 2019, 10:27:17 pm
Quote
I was wondering if there was a alternative to the popular ESP modules (not including the RTL8710) which is made by some western company, and has a proper ide and documentation?
Are you kidding?  For a while, every silicon vendor in existence was either offering a wireless module, or buying up fabless IP companies that had wireless modules.I think TI was one of the earlier cases, with their CC3000 modules (now NRND), somewhat as a result of their ChipCom acquisition (although IIRC, CC didn't have WLAN at the time the were acquired.)Atmel bought Newport Media, Ozmo, and Meshnetics.
Microchip bought Roving Networks and ZeroG.SiLabs bought Ember.
Cypress bought Broadcom's IoT division.
WizNet and Lantronix have modules.
If you want to nearly any trade show, there would be a bunch of vendors you'd never heard of selling "easy to use modules for wireless connectivity."  (there probably still are.  IoT, you know.)
At the time that 8266 was becoming popular, most of the competing modules sold for 5x the price in large quantities ($20-$30 if you bought one at a time), were leaving the Antenna and FCC issues to the OEM, and didn't offer any user programmability (in fear of providing access to their propritietary code.)  People were faced with "Things" that they wanted to add networking to, where the wireless module cost several times the entire reset of the system, and had an inaccessible CPU that was "many" times more powerful that the "Thing."  Prices have come down (now ~$10); I'm not sure if the IP issues have been "solved."


Quote
I would rather like to hear about a WiFi chip, that does NOT have any internal user programmable CPU, that could be interfaced to a higher level MCU/MPU system through a common high speed interface, such as QSPI, SDIO or similar.
Good god, why?  TI is probably one of the big vendors with chip-level solutions, I think.  But... how much networking stack do you want to be in there?  And do you trust a silicon vendor to provide and maintain a complete IP stack?  What about IPv6?  What about next week's deprecated security/encryption protocol?
Title: Re: ESP alternatives
Post by: technix on January 23, 2019, 07:46:53 am
Do you have export control concerns that require you blocking out all components sourced from a mainland Chinese company?

If it is just mainland China you must block out, maybe MediaTek MT7688. That is likely way too big a chip for your purpose, as it is a full blown wireless router chipset and runs Linux albeit with a largely open source environment.
Title: Re: ESP alternatives
Post by: Dajgoro on January 23, 2019, 11:05:26 am
Quote
I was wondering if there was a alternative to the popular ESP modules (not including the RTL8710) which is made by some western company, and has a proper ide and documentation?
Are you kidding?  For a while, every silicon vendor in existence was either offering a wireless module, or buying up fabless IP companies that had wireless modules.
I know, and that's the problem. There are so many other modules, but the question is which are cheap, reliable, won't give me a headache working with, and as most important that they can be easily sourced in larger quantities.

Even if the ESP was the perfect chip, its still good to have a good alternative in case something happens to it.

Do you have export control concerns that require you blocking out all components sourced from a mainland Chinese company?
Not at the moment, but in my country I already experienced funky import issues from US sellers even tho I'm in the EU.


If it is just mainland China you must block out, maybe MediaTek MT7688. That is likely way too big a chip for your purpose, as it is a full blown wireless router chipset and runs Linux albeit with a largely open source environment.
The MT7688 looks like an interesting IC.
How easily can it be sourced, and how good is the support for it?