Support for ESP32 - the story so far

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
moelski
Normal user
Posts: 126
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Support for ESP32 - the story so far

#1 Post by moelski » 31 Aug 2016, 07:23

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
Last edited by moelski on 27 Oct 2016, 05:02, edited 1 time in total.
regards
Dominik

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: Support for ESP32 planned?

#2 Post by costo » 31 Aug 2016, 10:50

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

User avatar
moelski
Normal user
Posts: 126
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: Support for ESP32 planned?

#3 Post by moelski » 31 Aug 2016, 13:19

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
regards
Dominik

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: Support for ESP32 planned?

#4 Post by costo » 31 Aug 2016, 13:45

I think you run too fast.
First there needs to be a working ESP32 library set which can be used with the Arduino IDE.

Gamester17
Normal user
Posts: 32
Joined: 15 Sep 2016, 13:46

Re: Support for ESP32 planned?

#5 Post by Gamester17 » 25 Oct 2016, 12:35

Espressif have now released Arduino core for ESP32:

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

Just in case someone here have missed that fact.

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: Support for ESP32 planned?

#6 Post by NietGiftig » 25 Oct 2016, 15:48

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?

User avatar
moelski
Normal user
Posts: 126
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: Support for ESP32 planned?

#7 Post by moelski » 26 Oct 2016, 07:21

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 13511 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:
regards
Dominik

User avatar
moelski
Normal user
Posts: 126
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: Support for ESP32 - the story so far

#8 Post by moelski » 27 Oct 2016, 05:15

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:
regards
Dominik

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: Support for ESP32 - the story so far

#9 Post by NietGiftig » 27 Oct 2016, 20:51

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 ;)

User avatar
moelski
Normal user
Posts: 126
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: Support for ESP32 - the story so far

#10 Post by moelski » 28 Oct 2016, 05:26

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 ...
regards
Dominik

User avatar
moelski
Normal user
Posts: 126
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: Support for ESP32 - the story so far

#11 Post by moelski » 28 Oct 2016, 05:53

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:
regards
Dominik

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: Support for ESP32 - the story so far

#12 Post by tozett » 31 Oct 2016, 09:35

where did your esp32 came from? aliexpress?

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Support for ESP32 - the story so far

#13 Post by papperone » 31 Oct 2016, 16:04

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
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

wutu
Normal user
Posts: 35
Joined: 05 Feb 2016, 07:33

Re: Support for ESP32 - the story so far

#14 Post by wutu » 07 Nov 2016, 16:01

ESPEasy + ESP32 with Ethernet port or WiFi is my dream combination. :idea: One probe to rule them all. :)

uhrheber
Normal user
Posts: 22
Joined: 26 Sep 2016, 14:03

Re: Support for ESP32 - the story so far

#15 Post by uhrheber » 13 Nov 2016, 14:40

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.

uhrheber
Normal user
Posts: 22
Joined: 26 Sep 2016, 14:03

Re: Support for ESP32 - the story so far

#16 Post by uhrheber » 17 Nov 2016, 09:57

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

User avatar
hilo90mhz
Normal user
Posts: 11
Joined: 29 Mar 2016, 21:21
Location: Hilo, Hawaii
Contact:

Re: Support for ESP32 - the story so far

#17 Post by hilo90mhz » 27 Nov 2016, 21:46

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!!

ILoveIOT
Normal user
Posts: 44
Joined: 01 Nov 2015, 10:54

Re: Support for ESP32 - the story so far

#18 Post by ILoveIOT » 07 Dec 2016, 00:32

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/

User avatar
hilo90mhz
Normal user
Posts: 11
Joined: 29 Mar 2016, 21:21
Location: Hilo, Hawaii
Contact:

Re: Support for ESP32 - the story so far

#19 Post by hilo90mhz » 07 Dec 2016, 00:34

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

ILoveIOT
Normal user
Posts: 44
Joined: 01 Nov 2015, 10:54

Re: Support for ESP32 - the story so far

#20 Post by ILoveIOT » 07 Dec 2016, 01:02

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

User avatar
hilo90mhz
Normal user
Posts: 11
Joined: 29 Mar 2016, 21:21
Location: Hilo, Hawaii
Contact:

Re: Support for ESP32 - the story so far

#21 Post by hilo90mhz » 07 Dec 2016, 01:13

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/

ILoveIOT
Normal user
Posts: 44
Joined: 01 Nov 2015, 10:54

Re: Support for ESP32 - the story so far

#22 Post by ILoveIOT » 07 Dec 2016, 01:44

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.

User avatar
moelski
Normal user
Posts: 126
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: Support for ESP32 - the story so far

#23 Post by moelski » 07 Dec 2016, 07:31

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 ;) ?
regards
Dominik

ILoveIOT
Normal user
Posts: 44
Joined: 01 Nov 2015, 10:54

Re: Support for ESP32 - the story so far

#24 Post by ILoveIOT » 07 Dec 2016, 16:38

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 ;)

rosenbp
Normal user
Posts: 2
Joined: 30 Mar 2017, 10:43

Re: Support for ESP32 - the story so far

#25 Post by rosenbp » 30 Mar 2017, 10:47

What's the current state of ESPEasy on ESP32? Is there a branch for it?

ILoveIOT
Normal user
Posts: 44
Joined: 01 Nov 2015, 10:54

Re: Support for ESP32 - the story so far

#26 Post by ILoveIOT » 12 Apr 2017, 15:07

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:

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: Support for ESP32 - the story so far

#27 Post by psy0rz » 12 Apr 2017, 23:49

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.
Please support ESPEasy development via Patreon or buy us a coffee.

ILoveIOT
Normal user
Posts: 44
Joined: 01 Nov 2015, 10:54

Re: Support for ESP32 - the story so far

#28 Post by ILoveIOT » 13 Apr 2017, 01:21

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.

rosenbp
Normal user
Posts: 2
Joined: 30 Mar 2017, 10:43

Re: Support for ESP32 - the story so far

#29 Post by rosenbp » 13 Apr 2017, 12:42

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.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Support for ESP32 - the story so far

#30 Post by Shardan » 13 Apr 2017, 16:43

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.
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests