Skip to content

ESP32 #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ionciubotaru opened this issue Mar 8, 2017 · 30 comments
Closed

ESP32 #170

ionciubotaru opened this issue Mar 8, 2017 · 30 comments
Labels
enhancement Type - Enhancement that will be worked on

Comments

@ionciubotaru
Copy link

Please consider to make the necessary changes to run Tasmota on ESP32.
When i tried I got a strange error:

sketch\support.h:8:28: fatal error: user_interface.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board ESP32 Dev Module.

@arendst
Copy link
Owner

arendst commented Mar 8, 2017

Supply me with a sonoff using esp32 and I will have a look into it...

See #81

@arendst arendst closed this as completed Mar 8, 2017
@arendst arendst reopened this Mar 8, 2017
@arendst arendst added the duplicated Result - Duplicated Issue label Mar 8, 2017
@ionciubotaru
Copy link
Author

Please send me your address and I will send you a new ESP32 - please send a private message to [email protected]

@davidelang
Copy link
Collaborator

tl;dr summary, pull requests are king

@ionciubotaru I think that arendst is saying that he isn't going to bother with this until and unless there is a device that contains an ESP32. His focus is on sonoff devices, not general device control. When small additions can support other devices, he's willing to add some changes to support them (although in most cases, he's mostly accepting changes proposed by others rather than doing the development work himself)

so I don't think that shipping an ESP32 dev board to him will help (but if I'm wrong, I'll happily pay for one :-)

But if we can get things working on an ESP32, and the changes aren't that large, I think the odds are good that he'll accept the changes.

I have a few kickstarter power strips that contain horrific cloud-only-unencrypted controllers that I plan to replace the controllers on. I'm probably going to have to use an ESP32 as I don't think there are enough pins on the ESP8266, but I'd love to have it based on tasmota rather than having to duplicate the work.

@ionciubotaru
Copy link
Author

As you can see people love Tasmota.
Please add a donation mark on Tasmota's main page

@arendst arendst added the enhancement Type - Enhancement that will be worked on label Mar 9, 2017
@arendst
Copy link
Owner

arendst commented Mar 10, 2017

Had a look at the Esp32-Arduino package and must say that it could take a while to get Sonoff-Tasmota working on an ESp32; many libraries used by Tasmota like HTTPClient, OTAupgrade and Webserver have not been implemented yet.

@ionciubotaru
Copy link
Author

Of course, it's better to wait until all libraries are available.

I think that HTTPClient is here: https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/WiFiClient/WiFiClient.ino

Web server is here: https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/SimpleWiFiServer/SimpleWiFiServer.ino

and OTA has status To be implemented espressif/arduino-esp32#125

@arendst arendst closed this as completed Mar 12, 2017
@ionciubotaru
Copy link
Author

@arendst
Copy link
Owner

arendst commented Mar 17, 2017

I received my esp32 (thnx) and were able to play with it using both Arduino IDE and PlatformIo. I must say it's a totally different ballpark with a lot of memory, features and new concepts (like flash partitioning). From what I see it needs a total rethinking of my current Sonoff-Tasmota.

Do not expect a Sonoff-tasmota-Esp32 any time soon....

@davidelang
Copy link
Collaborator

davidelang commented Mar 17, 2017 via email

@arendst
Copy link
Owner

arendst commented Mar 17, 2017

@davidelang yes it is feature rich but the main problem is that many Arduino-esp8266 libraries have not been converted yet to the new esp32 environment; they all need (major) rewrites and from what I see there are not that many resources working on a quick release of Arduino-esp32.

@davidelang
Copy link
Collaborator

davidelang commented Mar 17, 2017 via email

@ionciubotaru
Copy link
Author

Good news. Please take your time and develop Sonoff-tasmota-Esp32 when you feel comfortable.
The development board is a gift, you have no obligation.

@davidelang
Copy link
Collaborator

reopening to keep tracking the packages

@JacekDob
Copy link

JacekDob commented Feb 6, 2018

My first approach of porting to ESP32 for Wemos32:
Sonoff-Tasmota

Contributions are welcome.

@ionciubotaru
Copy link
Author

great news @JacekDob
As long as esp32 is for hardware integrators and is not present inside final products, I suggest to port the core version of Tasmota with wifi, configuration, web server, eeprom and some important sensors like ds18x, dht ....
Use only one standard template with all pins available.
After production release each developer will add it's own code and hopefully will contribute to your Tasmota's fork.

@JacekDob
Copy link

JacekDob commented Feb 6, 2018

This is exactly what I focused on:

Working

  • Wifi
  • EEPROM/Flash (by NVS)
  • Relays
  • Webserver
  • MQTT

Prepared for Wemos ESP32 (all pins configurable).

@JacekDob
Copy link

JacekDob commented Feb 8, 2018

Update:

Working (Tested)

  • Wifi
  • Flash (by NVS)
  • Relays
  • Switches (as inputs)
  • Webserver (USE_WEBSERVER)
  • MQTT (MQTT_USE)
  • Logging (Serial, Web)
  • NTP (with simple one zone)

Should work (compiles, not tested)

  • DOMOTICZ (USE_DOMOTICZ)
  • Home Assistant (USE_HOME_ASSISTANT)
  • Emulation (USE_EMULATION)
  • I2C (USE_I2C)
  • SPI (USE_SPI)
  • MDNS Discovery (USE_DISCOVERY)
  • WS2812 (USE_WS2812)
  • Counter
  • DHT (USE_DHT)
  • DS DS18x20 (USE_DS18x20 or USE_DS18x20_LEGACY)
  • SHT (USE_SHT, USE_SHT)
  • HTU (USE_HTU)
  • BMx (USE_BMP, USE_BME680, USE_BH1750)
  • VEML6070 (USE_VEML6070)
  • TSL2561 (USE_TSL2561) (see below)
  • ADS1115 (USE_ADS1115)
  • INA219 (USE_INA219)
  • DISPLAY (USE_DISPLAY)

@ionciubotaru
Copy link
Author

great, please activate issues on your fork to communicate directly

@JacekDob
Copy link

JacekDob commented Feb 8, 2018

Activated

feel welcome to contribute:
https://github.com/JacekDob/Sonoff-Tasmota

@mcsSolutions
Copy link

I captured this ESP32 fork for compilation using Atom/PlatformIO. The platformio.ini contains only ESP8266 environments. Much conditional compilation based upon ESP32 and ESP8266 definitions. Without any edits several compile errors generated which I suspect are related to getting the environment setup. Is there a platformio.ini for Wemos ESP32? How does the ESP32 define get set?

@JacekDob
Copy link

JacekDob commented Mar 6, 2018

Tasmota for ESP32 currently compiles in Arduino IDE.

To work with PlatformIO needs adaptation. I guess for somebody with experience in it should take an hour. Waiting for contribution.

PS.
Please raise issues in ESP32 Tasmota fork.

@ascillato2 ascillato2 removed the duplicated Result - Duplicated Issue label Aug 18, 2018
@ascillato2
Copy link
Collaborator

Link to Tasmota ESP32 fork already in Tasmota Wiki

@GrendelOnCampus
Copy link

I don't have seen any changes since 2018. Is this project dead? I'm not a developer. SO, are there any working binaries for Devices like NodeMCU ESP32 WROOM? (The boards with Reset & Boot-Button)

@meingraham
Copy link
Collaborator

Nobody is working on the project and there are no plans to port Tasmota to ESP32. There are no Tasmota binaries available for the ESP32.

@GrendelOnCampus
Copy link

Why? The ESP32 is a great MCU. Sometimes, the 8266 has too few GPIOs.
I like Tasmota and I guess, there are no alternative firmware projects for the ESP32. Right?

@meingraham
Copy link
Collaborator

@GrendelWWU

There are at least two I/O expanders supported by Tasmota to add more GPIO to Tasmota. This is not a limitation when using Tasmota on an ESP82xx.

There is plenty of interest but nobody is available to work on porting Tasmota. It was already tried. But that effort died on the vine. As the Tasmota codebase is open source, nothing is stopping someone from doing giving it another go.

ESPHome, for one, supports the ESP32.

@GrendelOnCampus
Copy link

Thank you for your hint to these MCP expanders. It seems, I'll have to learn, how to compile my own Tasmota, cause these chips are not enabled by default. At this moment, I've been just doing some C programs with gcc and some more smaller projects with Arduino Nano Boards. Maybe it would be the first step do learn porting Tasmota to ESP32? On the other hand.... the easiest way will be, just going there and using two WeMOS boards. ;-) I will think about it.
My project, for going into details, is, making this outlet smart:
https://www.bueroshop24.de/brennenstuhl-power-manager-pma-6-fach-steckdosenleiste-mit-%C3%BCberspannungsschutz-schwarz-328708?srpId=dd9eb1f577f5a2086a5da5abc39a8b8e&lkz=624763&obt=1&storeType=B2C&gclid=EAIaIQobChMIvfGb3Z_x5gIVT-h3Ch3clgEMEAQYASABEgJenfD_BwE

@meingraham
Copy link
Collaborator

@GrendelWWU

Give Gitpod a try. It is very simple to use. No software installation required.
https://tasmota.github.io/docs/#/installation/Prerequisites?id=online-compilers

@mcsSolutions
Copy link

I have a Tasmota 5.1.2.0 spinoff for ESP32 upon which I include a trilateration location tracking application. The source is available at http://mcsSprinklers.com/BLEScannerSource.zip. This should be a reasonable base for Tasmota on ESP32. There is a binary as *_BLE.bin in http://mcsSprinklers.com/mcsTasmota.zip that goes into basic ESP32 modules such as NodeMCU. Documentation is contained as part of http://mcsSprinklers.com/mcsMQTT.pdf.

@GrendelOnCampus
Copy link

@meingraham
Thank you. I will see, which option is the best for me. But it'll take plenty of time.

@mcsSolutions
Thanks a lot. Maybe this will help me, doing the first steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on
Projects
None yet
Development

No branches or pull requests

8 participants