Powstro (sonoff) [multiple trials] - SOLVED

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff)

#11 Post by NDR008 » 16 Jan 2018, 08:31

Will do so tonight.
But it obviously looks exactly like in the PDF.

In notice many people send these switches back thinking that they are not compatible.
But we should be able to get it working.
I just wonder if the unconventional gpio LEDs is holding it from booting up at all.

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff)

#12 Post by NDR008 » 16 Jan 2018, 19:09

First update, so actually there is no device name on the chip:
Image
Image
Image
Image

Unfortunately I broke the switch. :P

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff)

#13 Post by NDR008 » 16 Jan 2018, 20:19

What memory size and SPIFF is the minimum I can compile for?

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

Re: Powstro (sonoff)

#14 Post by Shardan » 16 Jan 2018, 20:35

NDR008 wrote: 16 Jan 2018, 20:19 What memory size and SPIFF is the minimum I can compile for?
As mentioned above due to datasheet it is a ESP8266 with
1 MByte of flash.
Regards
Shardan

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff)

#15 Post by NDR008 » 16 Jan 2018, 20:39


NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff)

#16 Post by NDR008 » 16 Jan 2018, 21:14

I gave up for today.

Something seriously wrong with my Arduino setup..
I cannot get TASMOTA to compiled and upload either (even though it is running on this thing already)
It keeps asking me for IRsend.h

So I think I have to figure out what's wrong with my Arduino IDE setup first.

Maybe upgrading to ESP 2.4.0 broke it?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Powstro (sonoff)

#17 Post by TD-er » 17 Jan 2018, 00:17

If you're going to use it, don't use it with high currents.

And can you look at the used flash chip? Does it have any labels on the flash chip indicating "PUYA" ?

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff)

#18 Post by NDR008 » 17 Jan 2018, 07:23

TD-er wrote: 17 Jan 2018, 00:17 If you're going to use it, don't use it with high currents.

And can you look at the used flash chip? Does it have any labels on the flash chip indicating "PUYA" ?
I couldn't find puya.
Why low current?
I was going to power an Ikea 10W Led e24 bulb.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Powstro (sonoff)

#19 Post by TD-er » 17 Jan 2018, 19:42

NDR008 wrote: 17 Jan 2018, 07:23
TD-er wrote: 17 Jan 2018, 00:17 If you're going to use it, don't use it with high currents.

And can you look at the used flash chip? Does it have any labels on the flash chip indicating "PUYA" ?
I couldn't find puya.
Why low current?
I was going to power an Ikea 10W Led e24 bulb.
The PCB's which carry the load are quite thin and not covered with tin.
So when you will try to get like 5 - 10 A through them, their temperature will rise.
10 Watt is fine, but such devices are often sold to be able to handle 10 Amps or more and they simply cannot.

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff)

#20 Post by NDR008 » 17 Jan 2018, 21:01

Should I solder some parallel electrical cable?

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

Re: Powstro (sonoff)

#21 Post by Shardan » 17 Jan 2018, 22:09

For a 10W LED it should suffice....
For more it should be enforced.
Regards
Shardan

Zeric
Normal user
Posts: 18
Joined: 29 Mar 2017, 22:37

Re: Powstro (sonoff)

#22 Post by Zeric » 17 Jan 2018, 23:38

Agreed, I would never try to run 10A through these, 1-2A should be ok, maybe 200 watts at most (non-inductive load!!). Not only are the traces questionable, I wouldn't trust the tiny relay either.

These are great for home lighting which these days is fairly low power, but they are not for heaters, refrigerators, full size desktop computers, or pretty much anything with a motor - power tools, garage door opener, etc.

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff)

#23 Post by NDR008 » 18 Jan 2018, 09:42

I'm safe then, as i only want to use it power single 240V-10Watt LED lamps.

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff) [multiple trials]

#24 Post by NDR008 » 19 Jan 2018, 16:38

So I need to re-try to flash myself (I tried again, but I now noticed that my GPIO0 was soldered incorrectly second time around).

Over on the openhab community someone failed to flash it via a linux flashtool, but managed to flash TASMOTA from Arduino (as I did).
From TASMOTA, they made an OTA update of the ESP_EASY.bin (Version 120, 1MB size).
ESP_EASY could then run.
They then tried to OTA the latest ESP_EASY, but that fails.

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Powstro (sonoff) [multiple trials]

#25 Post by enesbcs » 19 Jan 2018, 17:08

NDR008 wrote: 19 Jan 2018, 16:38 From TASMOTA, they made an OTA update of the ESP_EASY.bin (Version 120, 1MB size).
ESP_EASY could then run.
They then tried to OTA the latest ESP_EASY, but that fails.
I am not familiar with ESPEasy 120, only using Mega versions... but as i know, Tasmota 5.9 did not use SPIFFS, but ESPEasy uses it, so it can be a little problem.
On 1MB module did you use the intermediate ESPEasy OTA binary, or the v120 is small enough to fit in 400k?

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff) [multiple trials]

#26 Post by NDR008 » 19 Jan 2018, 17:19

Hmmm, but TASMOTA saves user settings, is that not SPIFF?

Not possible to flash ESP_EASY SPIFF-less anyway?
When I flashed TASMOTA I selected 1M(64K SPIFF).

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Powstro (sonoff) [multiple trials]

#27 Post by NDR008 » 19 Jan 2018, 21:26

I finally got it to work.

I do not know why, but it seems I hard to start the flash within a short window of powering it on:

python esptool.py -p /dev/ttyUSB0 write_flash --flash_mode dout -ff 20m 0x0 ESP_Easy_v2.0-20180116_normal_ESP8266_1024.bin
esptool.py v2.3-dev
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Flash params set to 0x0322
Compressed 574976 bytes to 378527...
Wrote 574976 bytes (378527 compressed) at 0x00000000 in 33.5 seconds (effective 137.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...




When I waited a couple of seconds, this happened:
python esptool.py -p /dev/ttyUSB0 write_flash --flash_mode dout -ff 20m 0x0 ESP_Easy_v2.0-20180116_normal_ESP8266_1024.bin
esptool.py v2.3-dev
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Powstro (sonoff) [multiple trials]

#28 Post by enesbcs » 31 Jan 2018, 20:54

NDR008 wrote: 19 Jan 2018, 17:19 Hmmm, but TASMOTA saves user settings, is that not SPIFF?

Not possible to flash ESP_EASY SPIFF-less anyway?
When I flashed TASMOTA I selected 1M(64K SPIFF).
In the official Arduino compilation FAQ it is clearly stated that: "1M (no SPIFFS)"
https://github.com/arendst/Sonoff-Tasmo ... rduino-IDE
It is also described here:
https://github.com/arendst/Sonoff-Tasmo ... smota-Tips

At ESPEasy i found this on behalf the Mega version:
https://www.letscontrolit.com/wiki/inde ... SPEasyMega
"It will use native SPIFFS support and all older custom flash access routines will be dropped"
I did not found any other documentation about SPIFF usage in ESPEasy.. but
1/ The deployed platformio.ini only contains lines with SPIFFS only setups
2/ And ESPEasy.ino contains the following error message string:
"No (or too small) SPIFFS area..\nSystem Halted\nPlease reflash with 128k SPIFFS minimum!""

So i guess that you are correct and latest ESPEasy versions can not be compiled in SPIFF-less.

Zeric
Normal user
Posts: 18
Joined: 29 Mar 2017, 22:37

Re: Powstro (sonoff) [multiple trials] - SOLVED

#29 Post by Zeric » 03 Feb 2018, 08:59

Flaky issues when writing, and odd required timing would qualify, could be related to the power supply. Adding a capacitor can help. Since I last responded on this thread, I was having some flakey writes on a device that was solved by adding a 470uf low voltage cap at the power output of my serial board.

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests