{"id":542,"date":"2019-01-23T08:58:42","date_gmt":"2019-01-23T13:58:42","guid":{"rendered":"http:\/\/www.thesmarthomehookup.com\/test_install\/?p=542"},"modified":"2023-02-08T16:37:49","modified_gmt":"2023-02-08T21:37:49","slug":"new-sonoff-basic-wires-inside-sonoff-basic-rf-r2","status":"publish","type":"post","link":"https:\/\/www.thesmarthomehookup.com\/test_install\/new-sonoff-basic-wires-inside-sonoff-basic-rf-r2\/","title":{"rendered":"New Sonoff Basic? Wires Inside? Is it better or worse? The Sonoff Basic RF R2 Power V1.0"},"content":{"rendered":"<p><iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/yavDqDzRdUk\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe><\/p>\n<p>Today on the hookup we\u2019re going to take a look at the new revision of the sonoff basic, figure out if it\u2019s still useful and talk a little bit about circuit board design.<\/p>\n<p>This is an old sonoff basic, the one that you\u2019ve probably seen in countless youtube videos, but if you purchased your sonoff within the last 2 months, you probably received this, the Sonoff RF r2 power V1.0.&nbsp; Today we\u2019re going to figure out how to use this new version of the sonoff basic, and talk a little bit about why itead may have made this revision.<\/p>\n<p>First lets talk about what hasn\u2019t changed: In the middle of the board you still have all of the pin holes that you need to flash your device with custom firmware, RX, TX, Ground and 3.3V.&nbsp; GPIO-0 is still tied to the push button, so you can just hold it down during power on to enter flash mode, and in that sense the process of flashing your sonoff hasn\u2019t really changed at all.<\/p>\n<p>But if you\u2019re looking to do anything more advanced with your sonoff, you\u2019ll quickly notice that instead of 5 pin holes like the old sonoff basic, the new version only has four.&nbsp; That\u2019s because GPIO14 is no longer broken out.&nbsp; Instead, people have been setting up their external devices using the solder pad labeled \u201cKey\u201d, which corresponds to GPIO2.&nbsp; In this video, I\u2019m going to advise against that, since GPIO2 is one of the most troublesome pins on the ESP8266.<\/p>\n<p>Last summer I made a video about the quirks of the GPIO pins on the ESP8266, and as you can see, GPIO2 has two problems:&nbsp; First, the pin goes high during the boot process, so if you have a device that turns on\/off when voltage is applied, it will kick on for about 400 milliseconds when your sonoff reboots.&nbsp; Second, you can see that if that pin is pulled low on boot (meaning it is attached to ground), the ESP8266 will go into one of it\u2019s alternate boot modes, which won\u2019t run the main program on your sonoff, and will therefore result in a non-working device.<\/p>\n<p>The fix for this is pretty simple. &nbsp;We know the other two pins that are available to us are TX and RX, and you can see on my diagram that TX corresponds to GPIO1 and RX corresponds to GPIO3.&nbsp; Both of these pins are also high on boot, which is unfortunate, but you can see that GPIO3 won\u2019t cause boot failure when pulled low.&nbsp; That means that the best option for hooking up an external switch or sensor is going to be GPIO3, the RX pin.&nbsp; The only downside is that the serial connection isn\u2019t going to work anymore in this configuration, but you won\u2019t need that after you\u2019ve flashed your sonoff anyways.<\/p>\n<p>If you run into any other issues using the new version of the sonoff basic, post them down in the comments and I\u2019ll try to help you out.&nbsp; If you\u2019re interested in the reasons itead made this revision, keep on watching.<\/p>\n<p>Sonoff seemed to be a pretty good product at an impossible price before, so why did itead do a complete board revision? Some possible motivations could be: electrical certificate compliance, cheaper production costs, discouraging hacking and modification, and maybe just safety for safety\u2019s sake.<\/p>\n<p>I don\u2019t work for Itead, so I can\u2019t be sure of the exact reason, but there\u2019s no doubt in my mind that the Sonoff RF r2 power is a more thoughtfully designed circuit board than the original sonoff basic.<\/p>\n<p>The most obvious change is the shift from using circuit board traces to wires for carrying mains voltage from the relay to the terminal.&nbsp; Most people don\u2019t put enough load on their sonoff basics to cause and overcurrent situation, but the length of the traces on the basic were unusually long for carrying mains voltage and to alleviate this issue Itead used to add extra solder to these traces to decrease their resistance.&nbsp; The problem using globs of solder is that they aren\u2019t always a uniform thickness and that can lead to hotspots on the trace that can ultimately lead to failure.<\/p>\n<p>The wires on the new r2 version of the sonoff basic are a far better solution for carrying current, but they also have the added benefit of increasing the separation between high and low voltage, which is another place that this board shows thoughtful redesign.&nbsp; On the old sonoff basic there was separation between AC mains voltage and DC voltage, but the rectified high voltage DC passed pretty close to the low voltage area.&nbsp; I\u2019ve never had a problem with my old sonoff basics, but it would be theoretically possible for a surge of power to cause an arc between the traces in these areas sending high voltage to the low voltage outputs.<\/p>\n<p>It\u2019s possible that itead did this redesign to comply with a specific certification agency, but it would likely still fail most major safety certifications due to the fact that the sonoff basic is intended to be used where the end user is likely come in direct contact with it.&nbsp; There\u2019s even a button on top for the end user to interact with.&nbsp; By having this button itead adds a slew of extra safety requirements related to voltage division and also grounding, which the sonoff basic famously lacks.<\/p>\n<p>Another major upside to the new redesign is the fact that the ESP chip, which is actually and ESP8285 instead of an ESP8266, on a huge ground plane with a bunch of small holes called via\u2019s punched in it to connect the top ground plane to the bottom one.&nbsp; This helps significantly with heat dissipation and should allow the ESP chip to run a bit cooler than on the previous sonoff basic.<\/p>\n<p>Using the ESP8285 also saves itead a few cents per unit, since it has 1 megabyte of built in flash memory, rather than having to include an external flash chip like the previous sonoff basic.<\/p>\n<p>The last thing, and the thing that I just can\u2019t seem to understand at all, is why they chose to breakout GPIO2 instead of any of the other pins that don\u2019t have boot problems.&nbsp; Part of me is wondering if it was to discourage modification of their devices.&nbsp; That would be a bummer since the DIY community is largely responsible for the success of the sonoff basic in the first place, but also understandable since every picture I\u2019ve ever seen of a melted sonoff was the result of improper modification or blatant misuse.<\/p>\n<p>If I missed any obvious changes to this board, let me know down in the comments section.&nbsp; If you found this video helpful give it a thumbs up so youtube will suggest it to other makers and DIYers.<\/p>\n<p>Thank you to all of my patrons over at patreon for your continued support of my channel.<\/p>\n<p>If you\u2019d like to pick up one of these new sonoff basics, I can confirm that the amazon listing that I have in the description is shipping the new version only.&nbsp; If you enjoyed this video, please consider subscribing, and as always, thanks for watching the hookup.<\/p>\n<h5>New Sonoff Basic: <a href=\"https:\/\/amzn.to\/2RHBnf7\">https:\/\/amzn.to\/2RHBnf7<\/a><\/h5>\n<h5><\/h5>\n<h5>Follow me on Twitter: @TheHookUp1<\/h5>\n<h5><\/h5>\n<h5>Support my channel:<\/h5>\n<h5>Patreon: <a href=\"https:\/\/www.patreon.com\/thehookup\">https:\/\/www.patreon.com\/thehookup<\/a><\/h5>\n<h5><\/h5>\n<h5>Music by www.BenSound.com<\/h5>\n","protected":false},"excerpt":{"rendered":"<p>Today on the hookup we\u2019re going to take a look at the new revision of the sonoff basic, figure out if it\u2019s still useful and talk a little bit about circuit board design. This is an old sonoff basic, the one that you\u2019ve probably seen in countless youtube videos, but if you purchased your sonoff [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2578,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-542","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-reviews"],"acf":[],"mb":[],"mfb_rest_fields":["title","gutenberg_elementor_mode"],"_links":{"self":[{"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/comments?post=542"}],"version-history":[{"count":5,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/542\/revisions"}],"predecessor-version":[{"id":2333,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/542\/revisions\/2333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/media\/2578"}],"wp:attachment":[{"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/media?parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/categories?post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/tags?post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}