{"id":79,"date":"2018-03-29T13:04:37","date_gmt":"2018-03-29T13:04:37","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/flasher-le-sonoff-dual-r2"},"modified":"2024-04-21T13:21:12","modified_gmt":"2024-04-21T11:21:12","slug":"flasher-le-sonoff-dual-r2","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/flasher-le-sonoff-dual-r2","title":{"rendered":"Flash the Sonoff DUAL R2 with ESP Easy"},"content":{"rendered":"<table>\n<tbody>\n<tr>\n<td>&nbsp;<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-69\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/itead-wifi-commutateur-sono.jpg\" alt=\"itead wifi sono switch\" width=\"203\" height=\"164\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/itead-wifi-commutateur-sono.jpg 393w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/itead-wifi-commutateur-sono-300x244.jpg 300w\" sizes=\"auto, (max-width: 203px) 100vw, 203px\" \/><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/02\/flechedroite.png\" alt=\"flechedroite\" width=\"64\" height=\"64\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/02\/flechedroite.png 256w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/02\/flechedroite-100x100.png 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/02\/flechedroite-150x150.png 150w\" sizes=\"auto, (max-width: 64px) 100vw, 64px\" \/><\/td>\n<td>&nbsp;<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-70\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Sonoff-dual-R2.jpg\" alt=\"Sonoff dual R2\" width=\"149\" height=\"170\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Sonoff-dual-R2.jpg 400w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Sonoff-dual-R2-263x300.jpg 263w\" sizes=\"auto, (max-width: 149px) 100vw, 149px\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Flash the <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/sonoff-basic-th10-th16-rf-dual-pow-wifi-wireless-smart-switch\" target=\"_blank\" rel=\"noopener noreferrer\">Sonoff DUAL<\/a>, for those who have tried, it is sport to go find the GPIO 0 and switch to programming mode.<!--more--><\/p>\n<p>Fortunately, the developers took users' comments into account when creating the R2 version.<\/p>\n<p>It is written there (and not outside) and it changes everything: <img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-71\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2.jpg\" alt=\"Dual R2\" width=\"161\" height=\"73\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2.jpg 1400w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2-600x274.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2-300x137.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2-1024x468.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2-768x351.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2-1200x549.jpg 1200w\" sizes=\"auto, (max-width: 161px) 100vw, 161px\" \/><\/p>\n<p><!--more--><\/p>\n<h2>Prepare the circuit board by welding male connectors:<\/h2>\n<p>Welding the classics <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/connecteurs-broches-au-pas-de-2-54mm-classique-circuit-imprime\">2.54mm connectors<\/a> on the Sonoff\u2019s printed circuit board, two pairs of 4 connectors, surrounded in red below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-72\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2-2.jpg\" alt=\"Dual R2 2\" width=\"399\" height=\"200\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2-2.jpg 399w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/Dual-R2-2-300x150.jpg 300w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/p>\n<h2>&nbsp;Prepare a small dupont cable to connect the Button 0 to GND<\/h2>\n<p>It is very simple to put this Sonoff into programming mode, just connect Button 0 to GND, it can be done with a small <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/cables-dupont\">dupont cable.<\/a><\/p>\n<p>Here is the picture demonstration:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-73\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoff-dual3.jpg\" alt=\"sonoff dual3\" width=\"598\" height=\"489\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoff-dual3.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoff-dual3-600x491.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoff-dual3-300x246.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoff-dual3-768x629.jpg 768w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/p>\n<h2>Prepare the FTDI232 before connecting it to the computer<\/h2>\n<p>The FTDI232 will allow your computer to chat via a serial port with the Sonoff.<\/p>\n<p>For the Sonoff\u2019s connection to FTDI232, an image speaks louder than a long speech:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-74\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoff-dual4.jpg\" alt=\"sonoff dual4\" width=\"600\" height=\"644\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoff-dual4.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoff-dual4-280x300.jpg 280w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Noted that I do not connect the VCC terminal (3.3V power supply) generated by the USB port and the FDTI232 because I had problems in this configuration. I will power the Sonoff with the 220v on the Lin and Nin terminals (incoming Phase and Neutral).<\/p>\n<h2>Prepare Flashing Software<\/h2>\n<p><strong>Be careful, this Sonoff is equipped with an ESP 8285 and not an ESP 8286 like most Sonoffs.<br \/>\n<\/strong><\/p>\n<p>Download page for the latest version of ESPEasy:<\/p>\n<p><a href=\"https:\/\/github.com\/letscontrolit\/ESPEasy\/releases\">https:\/\/github.com\/letscontrolit\/ESPEasy\/releases<\/a><\/p>\n<ul>\n<li>&nbsp;Save the ZIP file, unzip it in a folder and in that folder, launch <strong>FlashESP8266<\/strong>, Select the port of the FTDI232 and the file Easyxxx_normal_ESP8285_1024.bin and launch the Flash, taking care to feed the Sonoff into programming mode.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-36\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash7.jpg\" alt=\"4chpror2 flash7\" width=\"694\" height=\"385\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash7.jpg 694w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash7-600x333.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash7-300x166.jpg 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-37\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash8.jpg\" alt=\"4chpror2 flash8\" width=\"409\" height=\"215\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash8.jpg 409w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash8-300x158.jpg 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/p>\n<p>Reminder, to put it in programming mode:<\/p>\n<ul>\n<li>Plug a small <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/cables-dupont\">Dupont Cable<\/a> between Button0 and GND<\/li>\n<li>Connect the FDTI232 to the USB port of the computer<\/li>\n<li>Turn the Sonoff to 220v<\/li>\n<li>Unplug the little one <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/cables-dupont\">Dupont Cable<\/a> the Button0 or GND<\/li>\n<li>You are in programming mode (no LEDs need to be switched on until then, otherwise you have to start again).<\/li>\n<\/ul>\n<h2>Once the Sonoff is flashed, it must be connected to the WIFI network<\/h2>\n<p>For this, as the procedure is identical to all Sonoffs, you can look at this article: <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flash-sonoff-reseau-wifi-flashage\">After Flashing, connect a Sonoff to the WIFI network and link to Jeedom<\/a><\/p>\n<h2><a id=\"bonus\"><\/a>BONUS: Use the DUAL to control a heating area with a pilot wire<\/h2>\n<p>This small bonus refers to several tutorials:<\/p>\n<ul>\n<li><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/commander-chauffage-fil-pilote-avec-sonoff-4ch-pro-r2-multi-zones\" target=\"_blank\" rel=\"noopener noreferrer\">Order your heating with a Sonoff 4CH Pro R2 in multi-zones<\/a><\/li>\n<li><a href=\"http:\/\/myrfx.fr\/sonoff-dual\/\" target=\"_blank\" rel=\"noopener noreferrer\">MyRFX home automation tutorial<\/a><\/li>\n<\/ul>\n<p><strong>For GPIOs<\/strong>, should be used <strong>GPIO5 and GPIO12<\/strong> for Sonoff DUAL, here is the control screen corresponding to relay 1 and relay 2 (in analogy to <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/commander-chauffage-fil-pilote-avec-sonoff-4ch-pro-r2-multi-zones\" target=\"_blank\" rel=\"noopener noreferrer\">Tuto based on the Sonoff 4 CH Pro<\/a>)<\/p>\n<table border=\"2\">\n<tbody>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-75\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoffdualgpio.jpg\" alt=\"sonoffdualgpio\" width=\"800\" height=\"439\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoffdualgpio.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoffdualgpio-600x329.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoffdualgpio-300x165.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/sonoffdualgpio-768x421.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For the rest, I will not repeat anything, just give you some pictures of my installation<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-76\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual2.jpg\" alt=\"dual2\" width=\"800\" height=\"600\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual2.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual2-600x450.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual2-300x225.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual2-768x576.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-77\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual3.jpg\" alt=\"dual3\" width=\"800\" height=\"1067\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual3.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual3-600x800.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual3-225x300.jpg 225w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual3-768x1024.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-78\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual1.jpg\" alt=\"dual1\" width=\"800\" height=\"1067\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual1.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual1-600x800.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual1-225x300.jpg 225w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/dual1-768x1024.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; Flashing the Sonoff DUAL, for those who have tried, is sport to find the GPIO 0 and switch to programming mode.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14],"tags":[61],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-domotique","tag-esp"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}