Page 1 of 1

Support for ESP32 - the story so far

Posted: 31 Aug 2016, 07:23
by moelski
Hi !

Tomorrow is the day ... Release time for the long awaited ESP32.
Did you think about get the ESPEasy project ported to the new hardware?

regards
Dominik

Re: Support for ESP32 planned?

Posted: 31 Aug 2016, 10:50
by costo
I think it is not on the developer(s) of ESPEasy to make support for the ESP32.

ESP's working in the Arduino IDE are the work of 'Igrr' found at https://github.com/esp8266/Arduino

Re: Support for ESP32 planned?

Posted: 31 Aug 2016, 13:19
by moelski
Hi costo,
ESP's working in the Arduino IDE are the work of 'Igrr'
That´s correct. But to have a working ESP32 in the Arduino IDE did not automatically mean that it works with the ESPEasy Code.
I think the ESP32 has much more hardware on board. So from my point of view the source code has to be adopted to the new hardware.

Dominik

Re: Support for ESP32 planned?

Posted: 31 Aug 2016, 13:45
by costo
I think you run too fast.
First there needs to be a working ESP32 library set which can be used with the Arduino IDE.

Re: Support for ESP32 planned?

Posted: 25 Oct 2016, 12:35
by Gamester17
Espressif have now released Arduino core for ESP32:

https://github.com/espressif/arduino-esp32

Just in case someone here have missed that fact.

Re: Support for ESP32 planned?

Posted: 25 Oct 2016, 15:48
by NietGiftig
Gamester17 wrote:Just in case someone here have missed that fact.
ah nice fact.
And did you give it a test run?
Any results that are worth to mention?

Re: Support for ESP32 planned?

Posted: 26 Oct 2016, 07:21
by moelski
Hi !

Just got my Nano32 last week and this week I get a ESP32 module (without dev board). 8-)
The board I have @home
The board I have @home
nano32.jpg (36.86 KiB) Viewed 28606 times
I will give compiling ESPEasy a try ... but honestly ... I don´t think all stuff will work. :D

There are some big differences in ESP8266 and ESP32 (the biggest is the existence of RTOS in ESP32).
And then we have the IO Routing in the ESP32 ... and btw .. a lot more free GPIO pins ;)

Hope to get a first test compile done until the upcoming weekend.
Keep you informed here about the results :ugeek:

Re: Support for ESP32 - the story so far

Posted: 27 Oct 2016, 05:15
by moelski
Hi @all,

ESP32 - First Tests with ESPEasy

ok this morning I gave the ESP32 a try :ugeek: As mentioned yesterday I have a Nano32 board (and a ESP32 modul).
1. Setup the dev environment with Arduino
https://github.com/espressif/arduino-esp32

2. Run Blink
Then I started with a simple Blink test and an external LED ob GPIO17. Works :mrgreen:
btw ... GPIO17 = Pin17. This would be a dream come true ... No differenet numberings für GPIO and Hardware Pins :shock:

3. Run WifiScan Example
Next test was to run a Wifi Sample to see if the Wifi stuff is working ...
And it works, too:
scan start
scan done
2 networks found
1: HomeSweetHome (-48)*
2: WLAN-261367 (-95)*
4. Give it a run with ESPEasy
Well I had hopes that it run from the first compile :roll: But you guess ... things change :mrgreen:
First of we have libs that have ESP8266 in the filename like ESP8266WiFi.h. Changing this is an easy task ...
But then there was a show stopper ... The lib DNSServer is not part of the Arduino ESP32 SDK. :cry:
But hey ... DNS is not so important ... So let´s try to comment it out ... :lol:
fatal error: WebServer.h: No such file or directory
And that´s where the story ends (for now). Maybe we can live without DNS support, but without a working WebServer ... well ... It´s like a printer without ink :oops:

So for now there is no (easy) way to get ESPEasy running on an ESP32. But hey ... The Arduino ESP32 stuff is a very young project.
And I think they will add the missing stuff, soon (hopefully) :roll:

Re: Support for ESP32 - the story so far

Posted: 27 Oct 2016, 20:51
by NietGiftig
moelski wrote:Hi @all,
........
So for now there is no (easy) way to get ESPEasy running on an ESP32. But hey ... The Arduino ESP32 stuff is a very young project.
And I think they will add the missing stuff, soon (hopefully) :roll:
Thanks for testing.
I' m interested in the power use of the ESP32, have you had the change measure it?
Of course difficult without connection, I know ;)

Re: Support for ESP32 - the story so far

Posted: 28 Oct 2016, 05:26
by moelski
Hi !
have you had the change measure it?
I flashed a WifiScanner and let the LED flash during each scan.
So I assume the Wifi part is switched on.

I have ~125mA with the onboard LED off and ~127mA with the Onboard LED turned on.

But keep in mind that I use a Nano32 which has a lot onboard stuff like a UART / USB interface and a power LED ...
So a plain ESP32 modul could be lower (at least a little).

And I use the 5V input. So there is a voltage regulator involved. The ESP works at 3.3V ...

Re: Support for ESP32 - the story so far

Posted: 28 Oct 2016, 05:53
by moelski
Arduino-ESP32 ...
Yesterday I asked the developers when DNS and Webserver are implemented:
https://github.com/espressif/arduino-esp32/issues/27

It seems that there are general problems with the network which have to be fixed first ...
So we have to stay tuned on this :ugeek:

Re: Support for ESP32 - the story so far

Posted: 31 Oct 2016, 09:35
by tozett
where did your esp32 came from? aliexpress?

Re: Support for ESP32 - the story so far

Posted: 31 Oct 2016, 16:04
by papperone
Just got this article http://www.esp32.com/viewtopic.php?t=339 which I understood ESP3212 moduel has been cancelled (?) and new one named ESP32S is just come out.
I've checked eBay who seems to be the only site I can find the new chip on sale for 7.99$ http://www.ebay.com/itm/ESP-32S-WiFi-Bl ... rmvSB=true

Re: Support for ESP32 - the story so far

Posted: 07 Nov 2016, 16:01
by wutu
ESPEasy + ESP32 with Ethernet port or WiFi is my dream combination. :idea: One probe to rule them all. :)

Re: Support for ESP32 - the story so far

Posted: 13 Nov 2016, 14:40
by uhrheber
Yesterday, I received a Sparkfun ESP32 Thing.
Did some tests with the SDK, and had fun with the easter egg BASIC.

I was at least able to control an ESPEasy node by calling its event triggering URLs from the ESP32..
But there are still lots of things missing, that will hopefully be added in the coming 1.0 SDK.
The things that make the ESP32 more interesting than the ESP8266, like Ethernet, CAN, touch, ULP, etc. are still unsupported at this time.
They aren't even documented in the technical handbook.

Because of this, those functions are also missing in the Arduino board package.

BTW: Those modules are still in stock at exp-tech.de, and even cheaper than the NANO32s that they're selling on Ebay.

Re: Support for ESP32 - the story so far

Posted: 17 Nov 2016, 09:57
by uhrheber
Jack Tan, the maker of the Noduino Quantum board (http://wiki.jackslab.org/Noduino_Quantum) has some interesting examples of how to use internal ESP32 hardware, that isn't yet documented and/or supported in the official SDK, like ADC, hall sensor, temperature sensor, etc.

Link to his githup fork: https://github.com/icamgo/esp-idf/tree/master/examples

Have fun.
Uhrheber

Re: Support for ESP32 - the story so far

Posted: 27 Nov 2016, 21:46
by hilo90mhz
Awesome! Can't wait for esp32 support... Once the SDK and Arduino support is more done it doesn't look too hard and the new features will be extensive.

For power usage the current Arduino environment is always at 160mhz so the power usage can be lowered some later when they give us the option to lower speed and I believe selectively put the wifi and main cores into sleep mode when not needed.

With the built in bluetooth we could even have it do fancy things like advertising it's IP address with the Bluetooth device name (although it might need to be time limited for security).

You could also create a bluetooth to wifi bridge very easily and then have make some sort of ultra low power bluetooth only nodes based on NRF52832 that could run for a few years on battery. Anyway just dreaming up the possibilities :)

The moat practical and easy to implement addition for me will be all the built in analog input pins!!

Re: Support for ESP32 - the story so far

Posted: 07 Dec 2016, 00:32
by ILoveIOT
ESPEasy + ESP32 with Ethernet port or WiFi is my dream combination. :idea: One probe to rule them all. :)
Wow, it has "real" RJ45 LAN 10MB connection support, it looks very ugly at the momemt but after some release versions and some new cheap boards for ebay or ali,....wow very nice, thank you for the info !!

http://hackaday.com/2016/04/01/ethernet ... e-esp8266/

Re: Support for ESP32 - the story so far

Posted: 07 Dec 2016, 00:34
by hilo90mhz
ILoveIOT wrote:
ESPEasy + ESP32 with Ethernet port or WiFi is my dream combination. :idea: One probe to rule them all. :)
Wow, it has "real" RJ45 LAN 10MB connection support, it looks very ugly at the momemt but after some release versions and some new cheap boards for ebay or ali,....wow very nice, thank you for the info !!

http://hackaday.com/2016/04/01/ethernet ... e-esp8266/
Yes it will be soon... You can already buy the modules for $4 each here http://gridconnect.com/wireless-wifi-bl ... om-32.html

Re: Support for ESP32 - the story so far

Posted: 07 Dec 2016, 01:02
by ILoveIOT
Omg this is so nice, just saw also the possibility of USB connections, don't know why we should need that,..only know,..we are using it very hard in a few years, ESP32 with 64GB storage ? Mouse and keyboard ? :mrgreen:

Would be very sick in the end to have a ESP32, with gigabit controller and 2TB usb disk, as SAN/NAS solution :D

Re: Support for ESP32 - the story so far

Posted: 07 Dec 2016, 01:13
by hilo90mhz
ILoveIOT wrote:Omg this is so nice, just saw also the possibility of USB connections, don't know why we should need that,..only know,..we are using it very hard in a few years, ESP32 with 64GB storage ? Mouse and keyboard ? :mrgreen:

Would be very sick in the end to have a ESP32, with gigabit controller and 2TB usb disk, as SAN/NAS solution :D
Yes!! Not sure about real feasibility of USB as there is no hardware support but I did see the work done on bitbanging USB on ESP8266 so who knows.. but the built in LAN and tons of other features make it so much nicer than ESP8266

I did a comparison to other Arduino compatible boards here: https://hilo90mhz.com/arduino-esp32-esp ... son-chart/

Re: Support for ESP32 - the story so far

Posted: 07 Dec 2016, 01:44
by ILoveIOT
Hehe,..I guess the will add full USB support in the next version :D But its already amazing what they can do with both chips.

Nice overview you have on youre website.

Re: Support for ESP32 - the story so far

Posted: 07 Dec 2016, 07:31
by moelski
Hi !

I don´t wanna be the grinch here :roll: but I think the ESP32 will be a different story than the ESP8266.
And to be honest I have my doubts that ESPEasy can converted easy to the new platform.

First of all the ESP32 has always a RTOS (RealTime Operating System) : http://www.freertos.org/about-RTOS.html
So the whole handling of Tasks is a complete different thing. On the ESP8266 you have one running task, on ESP32 you can have many ...
Then you have two cores ... Sounds great, but data handling and data transfer between tasks is not as easy as on the ESP8266.

And the Arduino Core for ESP32 is still in a very early stage ...
I guess the will add full USB support in the next version
What´s the benefit of "full USB support"? And can you explain what you mean by that ;) ?

Re: Support for ESP32 - the story so far

Posted: 07 Dec 2016, 16:38
by ILoveIOT
I don´t wanna be the grinch here ;)
Haha,...so don't be,...haha, we where talking about the possibility in a few years,...not days or months.
And to be honest I have my doubts that ESPEasy can converted easy to the new platform.
Its not easy, guess it must be a version that is incompatible with each other, but the extra functionality make it worth at the end.
What´s the benefit of "full USB support"? And can you explain what you mean by that
Full USB support will be keyboard, mouse, (block) storage devices, maybe camera's, really don't know, like I already sed, don't know why we should need that,..only know,..we are using it very hard in a few years, I was talking about the next version,..maybe the ESP64 ?
And the Arduino Core for ESP32 is still in a very early stage
I know, and I've time enough ;)

Re: Support for ESP32 - the story so far

Posted: 30 Mar 2017, 10:47
by rosenbp
What's the current state of ESPEasy on ESP32? Is there a branch for it?

Re: Support for ESP32 - the story so far

Posted: 12 Apr 2017, 15:07
by ILoveIOT
What's the current state of ESPEasy on ESP32? Is there a branch for it?
No, it will still need some more time, but there is some nice dev on the hardware, the first step ;)

https://www.esp32.com/viewtopic.php?t=1149

Not very cheap with 22 euro's, but I guess these prices will drop in time.

P.S. with a SD micro card in it,..you could already build a SAN/NAS with it :mrgreen:

Re: Support for ESP32 - the story so far

Posted: 12 Apr 2017, 23:49
by psy0rz
moelski wrote: 07 Dec 2016, 07:31
And the Arduino Core for ESP32 is still in a very early stage ...
As long as there is no stable Arduino core its no use trying to compile ESPEasy. As for RTOS: That would me a complete rewrite of the core and probably of most of the plugins.

I might be doable, but you have to wonder: Isnt an ESP32 just overkill for ESPEasy at this moment? Its more expensive, has much better specs, but offers little benefit for our project. Other than extra GPIO perhaps?

In the future if they get cheaper and Arduino core is stable, its a different story.

Re: Support for ESP32 - the story so far

Posted: 13 Apr 2017, 01:21
by ILoveIOT
In the future if they get cheaper and Arduino core is stable, its a different story.
Very true,..that should at least be the base,..but i got the time,..no rush no hurries ;)

For me the LAN RJ45 option seems to be the solution, also the bluetooth, usb and micro sd, SSL encryption options might be fun, but I guess for now its overkill :mrgreen: 10 years ago with arduino 16mhz an esp8266 80mhz would be overkill too.

Re: Support for ESP32 - the story so far

Posted: 13 Apr 2017, 12:42
by rosenbp
A great advantage of ESP32 over ESP8266 is the much lower power consumption in the various sleep modes and its ability to configure almost all pins for wakeup. This makes it by others very interesting for battery powered applications.

Re: Support for ESP32 - the story so far

Posted: 13 Apr 2017, 16:43
by Shardan
ILoveIOT wrote: 13 Apr 2017, 01:21 ....SSL encryption options might be fun, but I guess for now its overkill :mrgreen: .....
Living at a time where IoT's are hacked and bot-zombified i would prefer to have encryption.