Beginner problems

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
luto65
Normal user
Posts: 6
Joined: 22 Dec 2019, 15:57
Location: Hemsbach

Beginner problems

#1 Post by luto65 » 22 Dec 2019, 16:58

Dear all,
I purchased a set of "ESP8266 relays V3" (https://www.banggood.com/ESP8266-5V-WiF ... 26605.html) from LC Technology and have tried few hours to install ESPEasy, using an USB2TTL adapter (SDS011_USB2TTL_004).
I am using a PowerMac Book and therefore I've installed esptool.py (version 2.6b1) using brew, in order to flash the ESP.

For firmware I've been using ESPEasy_R120_1024.bin (https://www.letscontrolit.com/downloads ... y_R120.zip) since i understood it be the latest release version.

By doing

Code: Select all

esptool.py  --port /dev/tty.usbserial-1420 write_flash -fm dio -fs 32m 0x00000 ESPEasy_R120_1024.bin
I got the following output

Code: Select all

WARNING: Flash size arguments in megabits like '32m' are deprecated.
Please use the equivalent size '4MB'.
Megabit arguments may be removed in a future release.
esptool.py v2.6-beta1
Serial port /dev/tty.usbserial-1420
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:07:86:2d
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash params set to 0x0240
Compressed 411264 bytes to 278756...
Wrote 411264 bytes (278756 compressed) at 0x00000000 in 27.2 seconds (effective 121.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
I've then disconnected the USB2TTL and then plugged the ESP in the relay. Powered up, the red LED of the ESP remains on, a blu mini led lights up and closes immediately but then nothing else happens.

User avatar
grovkillen
Core team member
Posts: 3606
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Beginner problems

#2 Post by grovkillen » 22 Dec 2019, 17:01

I know we're stating that R120 is the official stable. But in reality we have made huge progress since then and we will soon officially release a new stable.

So you can safely download latest versions and run.

https://github.com/letscontrolit/ESPEasy/releases

And soon after that we'll release the new GUI, read more about that here:

http://grovkillen.dribbble.com/
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

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

Re: Beginner problems

#3 Post by Shardan » 22 Dec 2019, 19:50

According to the picture the board below the ESP-board contains a 8-pin chip.
It seems this is a STC15F104, a mcrocontroller unit (mcu) made by ST Micro.

I don't have such a module at hand so I just can guess...
These mcu's are often used as a serial relay controller located between the
ESP and the relay. If that is correct the usual ways to switch a relay from
ESP and ESPeasy won't work.

There is a thread about serial controlled relays in the forum, please refer to

viewtopic.php?f=6&t=3245

Alternatively a board without such a serial mcu can be used...
They can even be made by yourself, it's no rocket science..
I've created a 4 relay board with ESP and power supply a while ago.

Last but not least a word of warning:
The relay board you bought does not comply with the security rules of most EU countries,
definitely it does not comply with german security rules (VDE etc).
It is not suitable to switch mains voltage.

Any questions? send a pm if you want, I'm german too.

Have a merry chrsitmas, all of you.
Regards
Shardan

luto65
Normal user
Posts: 6
Joined: 22 Dec 2019, 15:57
Location: Hemsbach

Re: Beginner problems

#4 Post by luto65 » 22 Dec 2019, 21:17

Dear Shardan,
thank you so much for your so fast reply and for the advice you gave me.
I am planning to use it to switch on/of part of a circuit powered with 6 V.
The board where the Relais is connected has (beyond a voltage regulator) the following IC:
- NUVOTON N76E003AT20 812HDFA
The N76E003 is an embedded flash type, 8-bit high performance 1T 8051-based microcontroller.
The instruction set is fully compatible with the standard 80C51 and performance enhanced.
https://www.nuvoton.com/resource-files/ ... ev1.04.pdf

Do you think that it could work with ESPEasy ?

luto65
Normal user
Posts: 6
Joined: 22 Dec 2019, 15:57
Location: Hemsbach

Re: Beginner problems

#5 Post by luto65 » 22 Dec 2019, 21:43

I have now uploaded the latest version

Code: Select all

esptool.py  --port /dev/tty.usbserial-1420 write_flash -fm dio -fs 4MB 0x00000 ESP_Easy_mega-20191208_normal_ESP8266_1M.bin
esptool.py v2.6-beta1
Serial port /dev/tty.usbserial-1420
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:07:86:2d
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash params set to 0x0240
Compressed 851856 bytes to 556861...
Wrote 851856 bytes (556861 compressed) at 0x00000000 in 54.0 seconds (effective 126.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
and then plugged into the relayboard. Few seconds later a WIFI zone called ESP_Easy_0 is shown, and after connecting to it with a browser
I see the various WIFI connectivities available at my place. I then select one of them, providing the required password and then a new page is shown with a countdown.
The countdown runs down to 0 and then after few second an error message appears "sorry the page cannot be shown" and that's it.

Upon poweroff/poweron the WIFI ESP_Easy_0 does not show up anymore.

User avatar
ThomasB
Normal user
Posts: 696
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Beginner problems

#6 Post by ThomasB » 22 Dec 2019, 22:37

The countdown runs down to 0 and then after few second an error message appears "sorry the page cannot be shown" and that's it.
Upon poweroff/poweron the WIFI ESP_Easy_0 does not show up anymore.
Sounds like you're nearly done. That is to say, it appears STA mode has been successfully enabled.

The IP address is reassigned after the AP connection's countdown. If you entered a fixed WiFi Station IP then point your browser to it. If DNS is being used then one practical way to find the assigned IP is to use the serial log output and watch the messages during boot.

- Thomas

luto65
Normal user
Posts: 6
Joined: 22 Dec 2019, 15:57
Location: Hemsbach

Re: Beginner problems

#7 Post by luto65 » 23 Dec 2019, 08:43

Thank you now it works !
Now the next step is to learn how to use it with the relais.
Thank you 🙏!
Merry Christmas to all!

User avatar
ThomasB
Normal user
Posts: 696
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Beginner problems

#8 Post by ThomasB » 23 Dec 2019, 16:52

That's very good news. Thanks for reporting you resolved the problem.

- Thomas

luto65
Normal user
Posts: 6
Joined: 22 Dec 2019, 15:57
Location: Hemsbach

Re: Beginner problems

#9 Post by luto65 » 23 Dec 2019, 19:11

Dear all,
thank you so much. The relais control now works perfectly well.
So, summarizing : if one wants to have a WiFi controlled low cost relay system:
(0. purchase ESP8266 5V WiFi relay (http://www.chinalctech.com/cpzx/1/333.html )
1. Download ESPEasy_1M_128kSPIFFS_PUYA.zip from download/file.php?id=2409
2. uncompress it into ESPEasy_1M_128kSPIFFS_PUYA.bin
3. unplug the ESP01 miniboard from the "ESP8266 5V WiFi relay"
4. plug the ESP01 miniboard to an USB2TTL adapter and plug the adapter in the computer (in my case MacBook Pro)
5. figure out the port of the computer in which the USB2TTL is connected (in my case /dev/tty.usbserial-1420)
6. have "esptool" installed (

Code: Select all

brew install esptool
)
7.

Code: Select all

esptool.py  --port /dev/tty.usbserial-1420 write_flash -fm dio -fs 4MB 0x00000 ESPEasy_1M_128kSPIFFS_PUYA.bin
8. eject the USB2TTL adapter from the computer
9. unplug the ESP01 from the USB2TTL and plug it into the ESP8266 5V WiFi relay.
10. power the ESP8266 5V WiFi relay with appropriate power
11. from the computer connect your WIFI to the ESP_Easy_0 Accesss point, if requested use as username "admin" and password "configesp"
12. follow the video instruction from https://youtu.be/i_CnBcQgdGk?t=335
13. to switch off the relais simply do a HTTP GET to http://192.168.178.22/control?cmd=relay,0,0
14. to switch on the relays simply do a HTTP GET to http://192.168.178.22/control?cmd=relay,0,1

RobertBurton45
Normal user
Posts: 11
Joined: 28 Feb 2020, 02:46

Re: Beginner problems

#10 Post by RobertBurton45 » 28 Feb 2020, 21:36

luto65 wrote:
22 Dec 2019, 21:17
Dear Shardan,
thank you so much for your so fast reply and for the advice you gave me.
I am planning to use it to switch on/of part of a circuit powered with 6 V.
The board where the Relais is connected has (beyond a voltage regulator) the following IC:
- NUVOTON N76E003AT20 812HDFA
The N76E003 is an embedded flash type, 8-bit high performance 1T 8051-based microcontroller.
The instruction set is fully compatible with the standard 80C51 and performance enhanced.
https://gradesfixer.com/free-essay-exam ... eflection/

Do you think that it could work with ESPEasy ?
Me too, I'll use it to switch on of part of a circuit powered with 6 V, so thank you very much for this information, it's relevant for me now

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests