We still deliver orders as usual. Due to current covid-19 situation, all shipment may experience slight delay.

Compile and Upload the firmware to the ESP-01

Eerst moet je de firmware broncode van github downloaden naar je lokale computer. Start een terminal / command venster en ga naar de map waar al je Arduino-projecten zich bevinden.
$ cd <ArduinoProjectsDir>

Maak nu een map aan met de naam “DONOFF”
$ mkdir DONOFF

en cd naar deze map
$ cd DONOFF


Ga nu met je browser naar de DONOFF github page en klik op de groene knop.
Kopieer de URL (https://github.com/mrWheel/DONOFF.git) naar het clipboard.
Start vervolgens een terminal/command venster en voer in:
    $ git clone https://github.com/mrWheel/DONOFF.git . 

Vergeet niet om aan het einde van het commando een “.” (punt) ​​te plaatsen. 

Start nu de Arduino IDE en open de DONOFF-sketch. Merk op dat de sketch enkele tabbladen bevat waarin zich specifieke delen van de code bevindt.
Voordat je de firmware compileert en uploadt naar de ESP-01, moet je ervoor zorgen dat je het juiste bord met de juiste opties hebt geselecteerd !!
**
** DONOFF:  Generic ESP8266 Flash Size 1M (128KB SPIFFS)
**      LED_BUILTIN pin 1
**      PWM out     pin 3
**
** NODEMCU: Flash Size 4M (1MB SPIFFS)
**      LED_BUILTIN pin 16 (D0)
**      PWM out (any pin available)
**
** SONOFF : Generic ESP8266 Flash Size 1M (128KB SPIFFS)
**      LED_BUILTIN pin 13
**      PWM out     pin 12 (not actualy PWM but only On/Off)
**
** Arduino-IDE settings for ESP-01 (black):
**
**       - Board: "Generic ESP8266 Module"
**       - Flash mode: "DOUT"
**       - Flash size: "1M (128K SPIFFS)"
**       - Debug port: "Disabled"
**       - Debug Level: "None"
**       - IwIP Variant: "v2 Lower Memory"
**       - Reset Method: "nodemcu"   // but will depend on the programmer!
**       - Crystal Frequency: "26 MHz"
**       - VTables: "Flash"
**       - Flash Frequency: "40MHz"
**       - CPU Frequency: "80 MHz"
**       - Buildin Led: "1"  // "1" for ESP-01, ”16” for NodeMCU, “13” for SONOFF
**       - Upload Speed: "115200"
**       - Erase Flash: "Only Sketch"
**       - Port: "DONOFF at <-- IP address -->"
**

Upload de data map naar de ESP-01

Nadat je de firmware hebt gecompileerd en geüpload naar de ESP8266, moet je ook de bestanden in de data-map uploaden naar de ESP8266.
 
Nadat je de ESP8266 Sketch Data Uploader (URL) hebt geïnstalleerd, klik je eenvoudig op deze tool om het uploaden te starten. Let op: als je het Serial-Monitor venster open hebt staan, krijg je een foutmelding. Je moet het Serial-Monitor venster eerst sluiten!
Afhankelijk van de ESP8266 die je gebruikt, duurt het uploaden van de data naar SPIFFS enkele seconden (ESP-01 SPIFFS 128KB) tot een paar minuten (NODEMCU SPIFFS 1MB).
Je bent nu klaar om de ESP-01 in de DONOFF-hardware te steken en de lichtdimmer te gaan gebruiken!

Comments

Belgium
Nice module, very easy to use and quick support in case of problems!
Placed on 
1
Belgium
Very nice site Willem! I personally find the Donoff dimmer very beautiful and interesting!
Placed on 
11
The Netherlands
Nice module! Is there a way to control it with an http request? and to get him to Domoticz.
Placed on 
1
The Netherlands
I have installed 2 Wemos D1 minis with version 0.3.6, 1 as a master and 1 as a slave but it is not added to the master. I did remove the dummies in Arduino but I cannot find where the slave to master coupling takes place.
Placed on 
@Roelof, The connection takes place completely automatically. If the master is active and you switch on a slave, then it broadcasts its data, which is then received by the master, after which it creates a slider / switch for it. It is, however, necessary that mDNS "works" on the network and that you change the "newDonoff" name of each device to something else. You did not have to remove the Dummies because they will disappear after a while. It gives an indication that everything "works". Good luck!
Placed on 
*** It is necessary that mDNS on the network "works" **** This explains eea I have my mobile temporarily as a hotspot / router in between that has no mDNS. Will test on the WiFi network at home this evening. Thanks for your quick response.
Placed on 
The Netherlands
Just a brief information. Tasmota is irrespective of what the various protocols are about. You can use HTTP, mqtt, knx, domoticz and more. Can be adjusted in the configuration or online on the web page. You can connect a large number of sensors yourself via serial, SPI or I2C. I myself have 20 different sensors related to health issues. A heart sensor is also included. The improvement with a DOnOff is a super idea I must say. We / I will test it with certainty. I first have to order a module and then I will start using it.
Placed on 
1



Upload photos
Add photo

Address