ESP32 boards

Moderators: Voyager, BertB, Stuntteam, LisaM

Message
Author
AndrewJ
Normal user
Posts: 226
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#101 Post by AndrewJ » 09 Jan 2018, 17:25

Hi Lisa,
Just thought I'd post a screen shot of uPyEasy on my Lolin32 Lite board, working with three DS18B20 sensors (it seems these have to be on separate pins) and a BME280 showing all three readings (temperature, humidity, and pressure) and running nice and stable. :)
It starts automatically, thanks to BertB for his suggestion to add a main.py file. :)
Still using port 9000.

Thanks for all the hard work you have been putting in. :) Please continue, within the time you have available, and let me know if I can help at all.

AndrewJ

Devices with 3xDS18B20 and BME280.PNG
Devices with 3xDS18B20 and BME280.PNG (33.36 KiB) Viewed 1704 times

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#102 Post by LisaM » 09 Jan 2018, 18:38

AndrewJ wrote:
09 Jan 2018, 17:25
Hi Lisa,
Just thought I'd post a screen shot of uPyEasy on my Lolin32 Lite board, working with three DS18B20 sensors (it seems these have to be on separate pins) and a BME280 showing all three readings (temperature, humidity, and pressure) and running nice and stable. :)
It starts automatically, thanks to BertB for his suggestion to add a main.py file. :)
Still using port 9000.

Thanks for all the hard work you have been putting in. :) Please continue, within the time you have available, and let me know if I can help at all.

AndrewJ


Devices with 3xDS18B20 and BME280.PNG
Cool!!! :D

The DS's should be able to run on one pin, but maybe the plugin can't handle that yet. I haven't tested that out so far.
I'm busy documenting the architecture and database contents, so that you'll understand how uPyEasy operates.

AndrewJ
Normal user
Posts: 226
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#103 Post by AndrewJ » 09 Jan 2018, 19:18

The DS's should be able to run on one pin, but maybe the plugin can't handle that yet. I haven't tested that out so far.
I tried this first time around, with just two DS's, but they interfered with each other and both ended up looking at the same ROM address and reporting the same value as each other. It would be good to do that eventually, to match the ESP8266 version (it would simplify wiring, and use less pins too ;) ) but it is probably best to spend time on developing the rest of uPyEasy, unless someone particularly needs that extra functionality.
I'll raise an Issue on Github for this so it doesn't get lost.
I'm busy documenting the architecture and database contents, so that you'll understand how uPyEasy operates.
That sounds good. :)

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#104 Post by LisaM » 13 Jan 2018, 13:20

Version v54 has been created op put in the releases dir of the uPyEasy github: https://github.com/letscontrolit/uPyEas ... /tag/ALPHA
The following functionality has been added:
  • Config page
Added admin password (password protected uPyEasy!)
  • Tools page
Added Load Settings (restoring your config)
Added Save Settings (saving your config)
Added Files (Files Explorer, see all dirs/files in the ESP32 flash area, where you can edit/delete/add them)

This is the LAST alpha, the coming week(s) i'm busy documenting uPyEasy (including Togaf 9.1 based Architecture Guidelines, since i'm certified and working as a Data Architect) and transferring the source code to the Github repository. The first new version will then be BETA-1.

BertB
Normal user
Posts: 982
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#105 Post by BertB » 13 Jan 2018, 15:57

This is getting better each time I look.

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#106 Post by LisaM » 13 Jan 2018, 17:01

BertB wrote:
13 Jan 2018, 15:57
This is getting better each time I look.
Thx! :D

AndrewJ
Normal user
Posts: 226
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#107 Post by AndrewJ » 13 Jan 2018, 19:02

Thanks for all your hard work on this! :D

BertB
Normal user
Posts: 982
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#108 Post by BertB » 13 Jan 2018, 21:42

Knipsel.PNG
Knipsel.PNG (16.5 KiB) Viewed 1570 times
Knipsel2.PNG
Knipsel2.PNG (28.92 KiB) Viewed 1569 times

AndrewJ
Normal user
Posts: 226
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#109 Post by AndrewJ » 13 Jan 2018, 21:50

I like it!
:)

AndrewJ
Normal user
Posts: 226
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#110 Post by AndrewJ » 15 Jan 2018, 21:58

LisaM wrote:
13 Jan 2018, 13:20
Version v54 has been created op put in the releases dir of the uPyEasy github: https://github.com/letscontrolit/uPyEas ... /tag/ALPHA
The following functionality has been added:
  • Config page
Added admin password (password protected uPyEasy!)
  • Tools page
Added Load Settings (restoring your config)
Added Save Settings (saving your config)
Added Files (Files Explorer, see all dirs/files in the ESP32 flash area, where you can edit/delete/add them)

This is the LAST alpha, the coming week(s) i'm busy documenting uPyEasy (including Togaf 9.1 based Architecture Guidelines, since i'm certified and working as a Data Architect) and transferring the source code to the Github repository. The first new version will then be BETA-1.
Hi Lisa,
Many thanks for that. It's working on my LOLIN32 LITE board with no immediate problems. :)
(I'm still finding that I need to change to port to 9000 to avoid the 128 error, but I've got it off to a fine art now!) ;)
I'll give it a try on my recently-arrived LOLIN32 Pro soon.

Regarding the DOIT devkit v1 - revision 0 chip, I've more or less given up on it. It just seems very unreliable, I think there may be issues with the power supply end but even attempts to use it with an external supply failed.

Looking forward to the BETA-1 when it's ready!
Andrew

Jeff
Normal user
Posts: 26
Joined: 18 Nov 2016, 18:35

Re: ESP32 boards

#111 Post by Jeff » 15 Jan 2018, 22:55

Hello, thank you for your development :D
I try the upyeasy for amusing on my Wemos ESP32 lolin oled and that work :mrgreen:
If i use a AP wifi open without key, it's ok, on the other hand if i tried an other AP with WPA_PSK, i lost the connexion and i must reset the esp32, an idea :?
I ested the command upyeasy.setwifi with more combination, but error

Code: Select all

>>> upyeasy.setwifi ('IOT','xxxxxxxxxx','','',80)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "upyeasy/__init__.py", line 29, in setwifi
  File "upyeasy/utils.py", line 46, in setwifi
  File "filedb.py", line 73, in update
OSError: [Errno 2] ENOENT
I tested a switch with domoticz, doesn't work, it was fast test.
I you want, i can test a oled plugin :?

waspie
Normal user
Posts: 81
Joined: 09 Feb 2017, 19:35

Re: ESP32 boards

#112 Post by waspie » 16 Jan 2018, 14:30

when attempting to flash using :
esptool.py --port COM9 write_flash --baud 460800 --compress 0x1000 upyeasy_v54_20180113_test_esp32_2048.bin

i get:
esptool write_flash: error: argument <address> <filename>: Must be pairs of an address and the binary filename to write there

any tips?

scratch that, removed the "baud" statement and it flashed. leaving this here in case it's helpful to someone else

BertB
Normal user
Posts: 982
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#113 Post by BertB » 28 Jan 2018, 16:17

I hate it when stuff does not work reliably.
I think I followed all the steps in the books.
I have Python36 and pip and ampy and pyserial.
When I start pyton i get the >>> signs
when I enter import serial, again I get >>>

But when I enter esptool.py --port COM6 erase_flash in the shell, I get

Traceback (most recent call last):
File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
import serial
ImportError: No module named serial

What stupid thin am I forgetting?

Oh, by the way, some week ago I got it working.
And I really want to play with upyeasy Beta ....

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#114 Post by LisaM » 28 Jan 2018, 16:26

BertB wrote:
28 Jan 2018, 16:17
I hate it when stuff does not work reliably.
I think I followed all the steps in the books.
I have Python36 and pip and ampy and pyserial.
When I start pyton i get the >>> signs
when I enter import serial, again I get >>>

But when I enter esptool.py --port COM6 erase_flash in the shell, I get

Traceback (most recent call last):
File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
import serial
ImportError: No module named serial

What stupid thin am I forgetting?

Oh, by the way, some week ago I got it working.
And I really want to play with upyeasy Beta ....
Espressif instructions: https://github.com/espressif/esptool
More help on installation of esptool: https://diyprojects.io/esp-easy-flash-f ... y-esp8266/

BertB
Normal user
Posts: 982
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#115 Post by BertB » 28 Jan 2018, 16:46

Thanks, but i did that:

Code: Select all

D:\Program Files>cd python\python36

D:\Program Files\Python\Python36>esptool.py --port COM6 erase_flash
Traceback (most recent call last):
  File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
    import serial
ImportError: No module named serial

D:\Program Files\Python\Python36>pip install esptool
Requirement already satisfied: esptool in d:\program files\python\python36\lib\site-packages
Requirement already satisfied: ecdsa in d:\program files\python\python36\lib\site-packages (from esptool)
Requirement already satisfied: pyserial>=2.5 in d:\program files\python\python36\lib\site-packages (from esptool)
Requirement already satisfied: pyaes in d:\program files\python\python36\lib\site-packages (from esptool)

D:\Program Files\Python\Python36>esptool.py --port COM6 flash_id
Traceback (most recent call last):
  File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
    import serial
ImportError: No module named serial

D:\Program Files\Python\Python36>mode

Status for device COM6:
-----------------------
    Baud:            115200
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         OFF
    XON/XOFF:        OFF
    CTS handshaking: OFF
    DSR handshaking: OFF
    DSR sensitivity: OFF
    DTR circuit:     OFF
    RTS circuit:     OFF

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#116 Post by LisaM » 28 Jan 2018, 16:55

BertB wrote:
28 Jan 2018, 16:46
Thanks, but i did that:

Code: Select all

D:\Program Files>cd python\python36

D:\Program Files\Python\Python36>esptool.py --port COM6 erase_flash
Traceback (most recent call last):
  File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
    import serial
ImportError: No module named serial

D:\Program Files\Python\Python36>pip install esptool
Requirement already satisfied: esptool in d:\program files\python\python36\lib\site-packages
Requirement already satisfied: ecdsa in d:\program files\python\python36\lib\site-packages (from esptool)
Requirement already satisfied: pyserial>=2.5 in d:\program files\python\python36\lib\site-packages (from esptool)
Requirement already satisfied: pyaes in d:\program files\python\python36\lib\site-packages (from esptool)

D:\Program Files\Python\Python36>esptool.py --port COM6 flash_id
Traceback (most recent call last):
  File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
    import serial
ImportError: No module named serial

D:\Program Files\Python\Python36>mode

Status for device COM6:
-----------------------
    Baud:            115200
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         OFF
    XON/XOFF:        OFF
    CTS handshaking: OFF
    DSR handshaking: OFF
    DSR sensitivity: OFF
    DTR circuit:     OFF
    RTS circuit:     OFF
Path set correctly?:

Code: Select all

Python -V
Esptool version?:

Code: Select all

esptool.py -h
Re-installing?:

Code: Select all

pip uninstall esptool
pip install esptool

BertB
Normal user
Posts: 982
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#117 Post by BertB » 28 Jan 2018, 17:41

LisaM wrote:
28 Jan 2018, 16:55
Path set correctly?:
I can start python from everywhere on the pc
after issuing Path, I get a lot of stuff, including:
D:\Program Files\Python\Python36\Scripts;D:\Program Files\Python\Python36

Code: Select all

Python -V
C:\Users\berbe>python -V
Python 3.6.2
Esptool version?:

Code: Select all

esptool.py -h
D:\Tools\uPython>esptool.py -h
Traceback (most recent call last):
File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
import serial
ImportError: No module named serial
Re-installing?:

Code: Select all

pip uninstall esptool
pip install esptool
Does not seem to help at all ...

But when I first start python and then import serial:
D:\Tools\uPython>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
>>>

BertB
Normal user
Posts: 982
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#118 Post by BertB » 28 Jan 2018, 18:46

Solved it ... I got one esptool.py to many ...
:oops: :mrgreen:

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#119 Post by LisaM » 28 Jan 2018, 18:48

BertB wrote:
28 Jan 2018, 18:46
Solved it ... I got one esptool.py to many ...
:oops: :mrgreen:
:D Cool! Next step...

BertB
Normal user
Posts: 982
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#120 Post by BertB » 28 Jan 2018, 18:53

yeah ... growing up hurts ...
But, I had a esptool in the directory of Python36.
And one in Lib/site-packages.

When I run esptool from site-packages, there is no nagging about serial.
So, I removed esptool from the home directory of Python.

Now I have the following:
D:\Program Files\Python\Python36>esptool.py --port COM6 erase_flash
'esptool.py' is not recognized as an internal or external command,
operable program or batch file.

So, that was the wrong de-fuse wire :-)
In site-packages is also the serial directory.


So, where do I put all this stuff?

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#121 Post by LisaM » 28 Jan 2018, 19:57

BertB wrote:
28 Jan 2018, 18:53
yeah ... growing up hurts ...
But, I had a esptool in the directory of Python36.
And one in Lib/site-packages.

When I run esptool from site-packages, there is no nagging about serial.
So, I removed esptool from the home directory of Python.

Now I have the following:
D:\Program Files\Python\Python36>esptool.py --port COM6 erase_flash
'esptool.py' is not recognized as an internal or external command,
operable program or batch file.

So, that was the wrong de-fuse wire :-)
In site-packages is also the serial directory.


So, where do I put all this stuff?
In powershell:

Code: Select all

esptool.py.exe
List all vars:

Code: Select all

ls Env:

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#122 Post by micropet » 31 Jan 2018, 15:32

Hi Lisa,

great work.

I installed the beta yesterday on an ESP-32 Dev board
It works, only the performance of the webinterface is not as good as in your videos.

Many of us would like to participate in the event in a timely manner.

Is it possible to provide Nightly Build?
Can you tell us how to compile the source code from Github?
How do you access the file system of the ESP? For example, to exchange .py files.

Many greetings Peter
Attachments
upEASY.jpg
upEASY.jpg (80.27 KiB) Viewed 1673 times

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#123 Post by LisaM » 31 Jan 2018, 16:08

micropet wrote:
31 Jan 2018, 15:32
Hi Lisa,

great work.

I installed the beta yesterday on an ESP-32 Dev board
It works, only the performance of the webinterface is not as good as in your videos.

Many of us would like to participate in the event in a timely manner.

Is it possible to provide Nightly Build?
Can you tell us how to compile the source code from Github?
How do you access the file system of the ESP? For example, to exchange .py files.

Many greetings Peter
Hi Peter,

I'm busy writing the build doc's but will take one or two weeks to complete. Nightly build is on the todo list also.
Here is a guide how to upload files: https://techtutorialsx.com/2017/06/04/e ... le-system/

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#124 Post by micropet » 31 Jan 2018, 19:06

Thank you Lisa,

I am looking forward to it.

I know Ampy, that's really primitive. I thought you had a more comfortable method.
Something like mounting the file system as a drive.

Greetings Peter

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#125 Post by LisaM » 31 Jan 2018, 22:15

micropet wrote:
31 Jan 2018, 19:06
Thank you Lisa,

I am looking forward to it.

I know Ampy, that's really primitive. I thought you had a more comfortable method.
Something like mounting the file system as a drive.

Greetings Peter
The ESP32 design doesn't allow it, the STM32's all have an usb driver that mimics the flash drive as an usb drive.
You can use ampy (or rshell/mpfshell) and the file commander in uPyEasy tool menu and that's it.
Anything more would take a lot of my time and i'm waisting it on other more important stuff... ;)

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#126 Post by micropet » 01 Feb 2018, 07:03

ok I understand.

But the STM32 has no WIFI and therefore no mqtt integration.
This probably makes the ESP32 most suitable.

User avatar
budman1758
Normal user
Posts: 192
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP32 boards

#127 Post by budman1758 » 01 Feb 2018, 07:08

micropet wrote:
01 Feb 2018, 07:03
ok I understand.

But the STM32 has no WIFI and therefore no mqtt integration.
This probably makes the ESP32 most suitable.
viewtopic.php?f=22&t=3905
Probably better than Wifi. 8-)
"The glass is twice as big as it needs to be".

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#128 Post by micropet » 01 Feb 2018, 10:06

Thank you - already ordered.

WIFI has the advantage for me that I can just put my sensors where I have a 5V power supply.

User avatar
budman1758
Normal user
Posts: 192
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP32 boards

#129 Post by budman1758 » 01 Feb 2018, 16:14

I use those ethernet boards with a Raspberry PI Zero and POE for my homemade security cameras. I send 12 volts to it and use a DC stepdown at the camera. That way the wireless isn't overloaded. Plus, you need power for it anyway so POE makes sense.
"The glass is twice as big as it needs to be".

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#130 Post by LisaM » 01 Feb 2018, 18:36

budman1758 wrote:
01 Feb 2018, 07:08
micropet wrote:
01 Feb 2018, 07:03
ok I understand.

But the STM32 has no WIFI and therefore no mqtt integration.
This probably makes the ESP32 most suitable.
viewtopic.php?f=22&t=3905
Probably better than Wifi. 8-)
And now you know where the fast uPyEasy demo came from... Wifi is always slow, 100MB or 1GB ethernet is preferable always! I have my house wired with 40 ethernet connections, together with a 1GB switch it's faster then any wifi ever will be. My gate is 30M from my house, wifi was always unreliable there. Since i have it connected to ethernet, it never failed again. ;)

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#131 Post by micropet » 01 Feb 2018, 21:59

I have about 50 devices here, all connected via WIFI.
None of it is completely reliable. Some run a few weeks, some a few months. Suddenly a device stops sending because it is no longer on the network.

I will test the solution over LAN.

Is the STM32F405RGT6 and the W5500 ethernet card recommended?

The STM32F405RGT6 has little memory.

Or are there better solutions?

Greetings Peter

TD-er
Normal user
Posts: 1127
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP32 boards

#132 Post by TD-er » 01 Feb 2018, 22:38

Have these 'stalled' devices been up like 49.7 days?
If so. please test with one of the last builds for ESPeasy.
I've added some patches to prevent such crashes.

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#133 Post by micropet » 02 Feb 2018, 06:46

Yes, they are always on.

It is the latest version from the Git. I always flash about 5 devices with the current version.
They have stayed in the network so far. I would have to watch it longer.

One Device with BME280 VEML6040 MH-Z19 TVoc CSS811 SDS021 loses the CSS811, BME280 and the VEML6040 after a few hours. After a reset, the sensors stay away.

Only switching off and then switching on the supply voltage brings it back to life.

There are 2x 10k terminators on the I2C bus. The device ran before with an ESP-32 always without problems. I have no idea why the I2C bus suddenly stops working.

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#134 Post by micropet » 02 Feb 2018, 06:59

Lisa,

here you can compare the performance of my installation. ESP-210 is the Arduino version, ESP-01 is the Python version. The Python version sometimes hangs for a few seconds.

Greetings Peter
Attachments
Performance ESPEasy.zip
(1.59 MiB) Downloaded 34 times

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#135 Post by LisaM » 02 Feb 2018, 12:04

micropet wrote:
02 Feb 2018, 06:59
Lisa,

here you can compare the performance of my installation. ESP-210 is the Arduino version, ESP-01 is the Python version. The Python version sometimes hangs for a few seconds.

Greetings Peter
Peter,

Am i correct to notice that the uPyEasy performance is good, besides the hardware tab?

Cheers,

Lisa

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#136 Post by LisaM » 02 Feb 2018, 12:07

micropet wrote:
01 Feb 2018, 21:59
The STM32F405RGT6 has little memory.
Or are there better solutions?
Yes, the orange/raspberry pi which have it all, loads of memory and ethernet and wifi, however they have a tradeoff in terms of latency. Besides that, i haven't found so far an I2C python library for the pi's which can be used with micropython.

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#137 Post by micropet » 02 Feb 2018, 12:51

Yes Lisa, most of the time the performance is good.
But there is also a break in between, then it takes a little longer.

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#138 Post by micropet » 02 Feb 2018, 13:01

But real python is running on the Pi. :)
Also with I2C.

I had built some devices with sensors and PWM for my LEDs a long time ago.
They also did not run so reliably. Often there were problems with the microSD.
The Card was suddenly unreadable.
With my PI3s I booted over a USB stick, that was little better.

Overall, I was not satisfied.

I think the most important thing in lighting control or in sensor devices is reliability. They should never fail.

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#139 Post by LisaM » 02 Feb 2018, 13:55

micropet wrote:
02 Feb 2018, 13:01
But real python is running on the Pi. :)
Also with I2C.

I had built some devices with sensors and PWM for my LEDs a long time ago.
They also did not run so reliably. Often there were problems with the microSD.
The Card was suddenly unreadable.
With my PI3s I booted over a USB stick, that was little better.

Overall, I was not satisfied.

I think the most important thing in lighting control or in sensor devices is reliability. They should never fail.
The STM32's are build for industrial purposes, expensive but very reliable. That's why they have a very low latency, a ton of sensor inputs en low memory. They run in factories and buildings for decades without hickup. The ESP's are build for consumers, cheap and a lot of memory.

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#140 Post by micropet » 02 Feb 2018, 17:20

So STM boards ...

I just got a PYBv1.1 with STM32F405RG and flashed it with normal MicroPython .

My machine immediately detected an additional drive with boot.py and main.py.
Wow, great.

Can I simply copy the .py files from your github to this drive?
Unfortunately, I have no experience with microPython.


Greetings Peter

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#141 Post by micropet » 02 Feb 2018, 18:50

Lisa,

if I flash the file upyeasy_v020_test_20180128_stm32-pybv3_1024.dfu on the PYBv1.1 the COM port is gone.

I'm flashing on Windows with dfu-util - old 0 -D upyeasy_v020_test_20180128_stm32-pybv3_1024.dfu

If I flash the original MicroPython, the COM port is back.

That's not right or?

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#142 Post by LisaM » 02 Feb 2018, 19:04

micropet wrote:
02 Feb 2018, 17:20
So STM boards ...

I just got a PYBv1.1 with STM32F405RG and flashed it with normal MicroPython .

My machine immediately detected an additional drive with boot.py and main.py.
Wow, great.

Can I simply copy the .py files from your github to this drive?
Unfortunately, I have no experience with microPython.


Greetings Peter
You can't copy the uPyEasy python files over to the STM flash drive, because it ain't big enough. The uPyEasy files are 'frozen', meaning they are part of the firmware. You need to flash the STM again using these instructions: viewtopic.php?f=22&t=3905

LisaM
Normal user
Posts: 494
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#143 Post by LisaM » 02 Feb 2018, 19:07

micropet wrote:
02 Feb 2018, 18:50
Lisa,

if I flash the file upyeasy_v020_test_20180128_stm32-pybv3_1024.dfu on the PYBv1.1 the COM port is gone.

I'm flashing on Windows with dfu-util - old 0 -D upyeasy_v020_test_20180128_stm32-pybv3_1024.dfu

If I flash the original MicroPython, the COM port is back.

That's not right or?
Did you turn the STM on/off? Did the com port disappear completely or did it change numbers?

Please continue the STM thread in the STM32 topic.

User avatar
micropet
Normal user
Posts: 31
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: ESP32 boards

#144 Post by micropet » 02 Feb 2018, 19:11

The board has been restarted several times.

The Comport remains completely gone.
But an "unknown device" emerges
An error occurred while requesting the USB device descriptor.

If I flash the original Python, Comport is back.

Sorry listen now in STM thread in the STM32 topic

AndrewJ
Normal user
Posts: 226
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#145 Post by AndrewJ » 25 Feb 2018, 21:09

Hi Lisa,
I'm sorry to report that I'm having a problem with Beta version v.0.2.1. on ESP32 boards :(
I downloaded the binary from the releases page, and installed it per the instructions in post 1 (I tried with and without an erase first). it's getting into a reboot loop when it starts. The log shows

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3f400020,len:429240
ets Jun  8 2016 00:22:57
repeated endlessly. This is happening on two different ESP32 boards, one is a Lolin32 Lite, the other a Lolin32 Pro.

I tried it a few times with the same result, then went back to v54 and it works fine.

Am I missing something?

Regards
Andrew.

CHK_BLN
Normal user
Posts: 24
Joined: 19 Nov 2015, 22:14

Re: ESP32 boards

#146 Post by CHK_BLN » 26 Feb 2018, 19:06

Hello
I have the same problem.

Look here:

http://www.letscontrolit.com/forum/view ... 869#p24927

Best regards

AndrewJ
Normal user
Posts: 226
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#147 Post by AndrewJ » 26 Feb 2018, 20:44

Hello @CHK_BLN,
Thanks for that, it's comforting to know I'm not alone! ;)

Were you able to find any solution?

Best wishes
Andrew

BertB
Normal user
Posts: 982
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#148 Post by BertB » 14 Mar 2018, 14:05

I have the same problem with this release.

karl222
Normal user
Posts: 88
Joined: 23 Aug 2017, 17:18
Location: Vienna

too dumb to check it

#149 Post by karl222 » 14 Mar 2018, 21:53

hi,
I am trying to get upyeasy on a esp32. after installing python, first hurdler taken, I had to install pyserial and finally got it done, but it took me some time to get there.

next hurdle: I want to start Firmware install on esp32 by:
esptool.py --port COM4 write_flash --baud 460800 --compress 0x1000 upyeasy_v021_20180218_test_esp32_2048.bin

but I get back:
usage: esptool write_flash [-h] [--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: Must be pairs of an address and the binary filename to write there

can someone help me to do it right...

lisam: you are doing a really really great Job, many thanks! but can you pleeeease create a routine like for espeasy which is really idiotic-proof... ie. for me :D

many thanks
karl

karl222
Normal user
Posts: 88
Joined: 23 Aug 2017, 17:18
Location: Vienna

Re: ESP32 boards

#150 Post by karl222 » 14 Mar 2018, 21:59

I've got it running by using this string, which I found after searching through the thread:

E:\>esptool.py -p COM4 --baud 115200 write_flash --compress 0x1000 upyeasy_v021_20180218_test_esp32_2048.bin

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests