Comments on: Reprogram Sonoff Smart Switch with Web Server https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 25 Feb 2025 10:39:02 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: eee https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-1010867 Tue, 25 Feb 2025 10:39:02 +0000 http://randomnerdtutorials.com/?p=29642#comment-1010867 Hi,Rui,
can we design the smart switch new and reprogram the esp ,can our new HW and SW work with ewelink and our new server.
thank you
best regards

]]>
By: David https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-797419 Mon, 14 Nov 2022 10:07:02 +0000 http://randomnerdtutorials.com/?p=29642#comment-797419 In reply to Jeff in Texas.

Hi Jeff, thanks for the pointers. I will take a look at both Arduino-flavor C++ and Tasmota.

]]>
By: Jeff in Texas https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-797389 Mon, 14 Nov 2022 03:51:19 +0000 http://randomnerdtutorials.com/?p=29642#comment-797389 In reply to David.

I have repurposed Sonoff Basics both with Arduino-flavor C++ and Tasmota. I assume that Tasmota is written in C++ as well. If you want to use Micropython, you’ll need to flash it with Micropython first and at least for starters, do your programming via the serial port. Doesn’t really sound like a project I’d want to do. Probably too resource-constrained.

]]>
By: David https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-796620 Tue, 08 Nov 2022 21:01:38 +0000 http://randomnerdtutorials.com/?p=29642#comment-796620 Hi I’m also trying to get this working. I have a Sonoff BASIC, the motherboard is v1.3, with an ESP8285.

I connected the board via FTDI as described. On this version of the motherboard, in order to boot in flashing mode, it’s necessary to ground the “key” (by connecting 2 of the 4 solder points under the fat mains wire traversing the board).

I seem to have flashed the chip sucessfully, but cannot get any response from the web server.

Is this script written in C? I was expecting to write some micropython with this board.

Thanks for the great tutorial, and to anyone who can help with the updated boards.

]]>
By: Jan https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-736050 Tue, 05 Apr 2022 09:26:41 +0000 http://randomnerdtutorials.com/?p=29642#comment-736050 Hi .super thanks.
I’m looking for an e-stop feature for safety. HTML Button which quickly ends ,break the action on wifi, server,client. Is there such a function in the libraries <ESP8266WiFi.h> <WiFiClient.h> <ESP8266WebServer.h> ????

]]>
By: Greg Baker https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-731869 Mon, 14 Mar 2022 14:28:35 +0000 http://randomnerdtutorials.com/?p=29642#comment-731869 *** Sorry, that was to be ESP8285. ***

]]>
By: Greg Baker https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-731868 Mon, 14 Mar 2022 14:26:40 +0000 http://randomnerdtutorials.com/?p=29642#comment-731868 In reply to zhekaus.

I always use:
board = sonoff_basic
instead of ESP8265. Seems to work well. …greg

]]>
By: Greg Baker https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-731866 Mon, 14 Mar 2022 14:19:10 +0000 http://randomnerdtutorials.com/?p=29642#comment-731866 In reply to zhekaus.

Two guesses: First, swap Rx and Tx on one end, and second, dry solder in header; that is bad soldering of one or more pins. Let us know. …greg

]]>
By: zhekaus https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-731865 Mon, 14 Mar 2022 13:56:10 +0000 http://randomnerdtutorials.com/?p=29642#comment-731865 Hi! I successfully flashed Sonoff 220V Esp8266 relay module. Thank you.
But I need to flash another version of Sonoff relay – 5V, based on Esp8285.
And I’ve got problem here.
I am trying the same process:
– Solder pin 3V3, GND, RX, TX
– Connect pins, to the same FTDI adapter
– Choose the right board – in this case, Generic Esp8285
– Initialize flash mode with a button
– Upload Blink sketch

And nothing – «Connecting…….._____….._____…..»
I tried different options of Uploader. In wane.
Can you help or give an advice?

]]>
By: zhekaus https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/#comment-731864 Mon, 14 Mar 2022 13:55:43 +0000 http://randomnerdtutorials.com/?p=29642#comment-731864 In reply to Maurizio Bazzoni.

Have you found a way to program Esp8285 version?

]]>