{"id":1002,"date":"2017-12-28T01:29:12","date_gmt":"2017-12-28T00:29:12","guid":{"rendered":"http:\/\/EvertDekker.com\/?p=1002"},"modified":"2022-12-31T14:58:35","modified_gmt":"2022-12-31T13:58:35","slug":"sonoff-touch-led-mod","status":"publish","type":"post","link":"https:\/\/evertdekker.com\/wp\/?p=1002","title":{"rendered":"Sonoff Touch Led Mod"},"content":{"rendered":"<hr \/>\n<p>Just like in all other Sonoff products one of the leds is hardwired to the relay and will lit up when the relay is switched on.<br \/>\nIn my post over the<a href=\"http:\/\/evertdekker.com\/?p=789\"> Sonoff Wifi powerline switch mod<\/a> I described how to put the led on a seperate IO pin of the Esp8266 so you can get full control over the led.<br \/>\nThis post will do the same for the Sonoff touch led that&#8217;s behind the touch sensor.<\/p>\n<p>The Sonoff touch has an <a href=\"https:\/\/www.itead.cc\/wiki\/PSF-A85\">Psf-a85<\/a> module on board from Itead, this module has the esp8285 inside. With the pinout and schematic available of the psf-a85 it&#8217;s easy to find the required pins.<\/p>\n<p>You need to scratch the pcb track that&#8217;s going to the 1K resistor (see picture below). After that you need solder a thin wire between the 1K resistor and one of the free IO pins on the psf-a module, in the picture I choose pin 3 <strong>IO4.<\/strong><\/p>\n<p>Now you have full control over both (wifi and touch) led.<br \/>\nMy idea was to let the touch led glow so you can find the touch button easy in the dark.<\/p>\n<p>If you don&#8217;t know how to flash the esp8285 have a <a href=\"https:\/\/github.com\/davidmpye\/Sonoff-Touch-MQTT\/wiki\/How-to-flash\">look at this<\/a>.<br \/>\nPersonally I add to all my ESPxx programs the OTA (over the air) flash capability&#8217;s so you can remove the usb to serial convertor and close up the housing for safety purpose and flash new firmware ota.<\/p>\n<p><b>Arduino ide settings:<\/b><br \/>\nGeneric Esp8285 Module<br \/>\nCPU Frequency: 80MHz<br \/>\nFlash Size: 1M (64K SPIFFS)<br \/>\nUpload Speed: 115200<\/p>\n<p><a href=\"https:\/\/github.com\/EvertDekker\/SonoffGlowLed\">Demo\/test Sketch at Github<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/evertdekker.com\/wp\/wp-content\/uploads\/2022\/12\/led_mod.jpg\" alt=\"\" width=\"500\" height=\"398\" \/><\/p>\n<p>&nbsp;<\/p>\n<div class=\"lyte-wrapper\" title=\"Sonoff Touch, Touch led glow\" style=\"width:420px;max-width: 100%;margin:5px;\"><div class=\"lyMe hidef\" id=\"WYL_y7m3B_y4C4Y\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\"><div><meta itemprop=\"thumbnailUrl\" content=\"https:\/\/i.ytimg.com\/vi\/y7m3B_y4C4Y\/maxresdefault.jpg\" \/><meta itemprop=\"embedURL\" content=\"https:\/\/www.youtube.com\/embed\/y7m3B_y4C4Y\" \/><meta itemprop=\"uploadDate\" content=\"2017-12-28T01:37:50.000Z\" \/><\/div><div id=\"lyte_y7m3B_y4C4Y\" data-src=\"https:\/\/i.ytimg.com\/vi\/y7m3B_y4C4Y\/maxresdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\" itemprop=\"name\">Sonoff Touch, Touch led glow<\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/y7m3B_y4C4Y\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi\/y7m3B_y4C4Y\/0.jpg\" alt=\"\" width=\"420\" height=\"216\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><meta itemprop=\"description\" content=\"Sonoff touch led mod to get full control of you touch led, for instance Let It Glow. More info: http:\/\/evertdekker.com\/?p=1002\"><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:420px;margin:5px;\"><\/div><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just like in all other Sonoff products one of the leds is hardwired to the relay and will lit up when the relay is switched on. In my post over the Sonoff Wifi powerline switch mod I described how to put the led on a seperate IO pin of the Esp8266 so you can get [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[163,174,134,173],"class_list":["post-1002","post","type-post","status-publish","format-standard","hentry","category-esp8266","tag-esp8285","tag-led-mod","tag-sonoff","tag-touch"],"_links":{"self":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1002"}],"version-history":[{"count":11,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1002\/revisions"}],"predecessor-version":[{"id":1680,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1002\/revisions\/1680"}],"wp:attachment":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}