Updated info with GPIO map and formatting

digiblur 2018-10-26 07:49:05 -05:00
parent 343d8b42f0
commit 0200aed547
1 changed files with 17 additions and 14 deletions

@ -1,32 +1,35 @@
These Wi-Fi Smart Light Switches are essentually a sonoff basic in a decora wall switch
These Wi-Fi Smart Light Switches are essentially a sonoff basic in a decora wall switch.
[Amazon Link](https://www.amazon.com/gp/product/B079N83NS9/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1)
## GPIO Map
GPIO 0 - Button1 - Button
Unboxing:
GPIO 12 - Relay1 - Red LED and Relay
GPIO 13 - Led1 (not Led1i like the Sonoff Basic) Green LED
## Product Links
[Amazon Link](https://www.amazon.com/gp/product/B079N83NS9)
[Amazon Link of KULED Branded Switches](https://www.amazon.com/Required-Wireless-Requires-Schedule-Compatible/dp/B079FDTG7T)
## Unboxing
![](https://github.com/lvgeek/KS-602S/blob/master/images/IMG_0282.jpg)
![](https://github.com/lvgeek/KS-602S/blob/master/images/IMG_0285.jpg)
![](https://github.com/lvgeek/KS-602S/blob/master/images/IMG_0286.jpg)
![](https://github.com/lvgeek/KS-602S/blob/master/images/IMG_0287.jpg)
Header is marked GND, RXD, TXD, 3V3.
Some revisions of the switch have the header marked GND, RXD, TXD, 3V3. Some revisions do not. It has been reported that some boxes have mixed revisions. If you are ever in doubt, double check with a meter to determine your pins. Flashing process and hardware revision without the labels can be seen on the following [video link](https://www.youtube.com/watch?v=4nX90vhAniQ).
RXD is connected to Transmit on your programmer
TXD is connected to Receive on your programmer
Ground and 3.3vdc to power unit during flash.
Of course Ground and 3.3vdc to power unit during flash.
I did not solder the header to the board
I was able to hold pressure while it flashed
You do not need to solder a header to flash the board, an empty 4 pin header connected to 4 dupont jumper wires held into the empty header location works fine with a little pressure to ensure connectivity.
![](https://github.com/lvgeek/KS-602S/blob/master/images/IMG_0289.jpg)
Hold the button and plug in programmer.
Hold the button(GPIO0) and plug in programmer.
I flashed with Arduino IDE and Tasmota 6.2.1.
Device works perfectly as a Sonoff Basic
Device works perfectly as a Sonoff Basic but the LED will be backwards as designed. The Red LED is hardwired to the relay and the green is controllable over GPIO pins. If you wish to change the functionality to have the green LED when the device is off, you can utilize or change the template to a generic device type and map the suggested names except you will choose Led1 instead of Led1i.
![](https://github.com/lvgeek/KS-602S/blob/master/images/IMG_0298.jpg)