logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

WiFi light switches NAS-SC01W-1/NAS-SC01W-3 [ESP8266][Pinout].

p.kaczmarek2  2 2325 Cool? (+4)
📢 Listen (AI):

TL;DR

  • Teardown and pinout of NAS-SC01W-1/NAS-SC01W-2/NAS-SC01W-3 WiFi touch light switches based on ESP8266.
  • Shows the internal wiring, UART and IO0 access points, and which ESP8266 GPIOs handle buttons, relays, and the Wi‑Fi LED.
  • The single-gang unit uses an ESP8266-MZ-V1 dated 20180702, a BS813A touch controller, and the switches measure 86 mm x 86 mm x 34 mm.
  • UART lines are free and flashing needs only 3.3V, GND, TX, RX, and IO0, but the module lacks TYWE3S/ESP12E-compatible pins.
  • Tasmota can be uploaded, and SetOption13 1 may enable instant touch response instead of switching only after lifting a finger.

Here I will present a short flashing guide for ESP8266 light switches series, which can be bought easily in our country. I have discussed changing the firmware of such gadgets many times, so I will just show here how they are built and where the UART, IO0 signals are brought out and which pins have which roles (buttons, relays).
The switches come in three versions, for one, two or three gang. Their model names are: NAS-SC01W-1, NAS-SC01W-2, NAS-SC01W-3 and so on. I create the topic informatively for people who are looking for something on ESP8266.

Buying NAS-SC01 /02/03 series
There are several Polish mail order stores, where you can buy these products. They are quite expensive, even up to 100 PLN (25$) in recent times per item. Seemingly from China would be cheaper, but it's up to whoever prefers. Here are screenshots from one of the offers:


According to information, they are manufactured by Shenzhen Neo Electronic Co., LTD.
They offer:
Quote:

- Touch panel made of tempered glass
- Wireless operation on WIFI network
- No delay in operation
- Control of one circuit
- Range up to 40m from router
- LED indication of channel status
- Free TUYA app for iOS and Android
-. Ability to create scenes with the switch
- Ability to set a schedule
- Ability to work with GOOGLE assistant
- Ability to work with AMAZON ALEXA
- Compact shape and excellent workmanship

This range from the router is not likely to be true or even an authoritative approach, It depends on many factors. Of course, only 2.4GHz WiFi is supported.

The dimensions of the product are 86mm x 86mm x 34mm.

Real photo of the box:

This is the contents of the purchased set:

They didn't even give screws for mounting? Well tough, others generally include them.

Instructions:
Interior NAS-.SC01W-1 We remove the cover and see the ESP8266-MZ-V1 dated 20180702. You can upload Tasmota, although I don't know what is in the same switches but produced after 2018 or, for example, in 2022....
Only now a note - this module has no leads compatible with TYWE3S, or there with ESP12F, ESP12E .
BS813A is a touch button controller, production of Holtek.
8cb911fbb
A few more photos:

Now most importantly - a connection spread for you. Both ESP pins and physically where the signals go. For programming, use 3.3V, GND and TX, RX and IO0 marked on the picture! All as, among others. here:
QTouch WiFi switch plugged into L-wire only - test, interior, schematic [tr] [/td]
Role [td] Pin ESP
Button 1 [td] MTDI/GPIO12 (10)
Button 2 GPIO5 (24)
Button 3 MTMS/GPIO14 (24)
Transmitter 1 MTCK/GPIO13 (12)
Transmitter 2 MTDO/GPIO15 (13)
Transmitter 3 GPIO4 (16)
LED WiFi XDP-.DCDC/GPIO16 (8)
Tasmot settings for the triple version (although I'm not sure, if I didn't swap the order of the relays):



A few more pics of the relay board:
From what I can see, the power supply here is on ASZCNB (decipher anyone?) in SOIC8, the relay turns on Y1, and the 3.3V is provided by S47B9BB.
Interesting fact: this is the first switch in which I've encountered a 3.3V regulator on the backplane, rather than the one on the front.
Interior NAS-.SC01W-3 The interior of the three-relay version looks similar. No unnecessary commentary:


Summary
These switches are based on ESP8266, are simple to change the firmware, UART lines are not busy, nothing needs to be cut or soldered. If you are looking for something to upload Tasmota, you can consider buying them. I have given you the ESP leads, so anyone can now conveniently change the firmware. In the queue I still have to work out the dimmer of this series (to check whether it operates on TuyaMCU and what dpID have specific variables), but about that later.
For details about the programming of the module with ESP8266 I refer, among others. here:
QTouch WiFi switch plugged into L wire only - test, interior, schematic This has been discussed many, many times already. In this topic, I just wanted to provide information on what is inside these switches and which IOs are used. I hope this will be useful to someone, especially since the WiFi module present here does not have TYWE3S/ESP12E-compatible outputs.
PS: For Tasmota, it may be worth considering activating the instantaneous touch response via SetOption13 1 . Otherwise, the relay only switches its state when you "let go" of the touch. .[/td][/tr]

About Author
p.kaczmarek2
p.kaczmarek2 wrote 14232 posts with rating 12129 , helped 647 times. Been with us since 2014 year.

Comments

oskar777 14 Nov 2022 11:54

Out of curiosity, would it give to upload this regular arduino and e.g. use some unused pin e.g. for temp measurement? [Read more]

p.kaczmarek2 14 Nov 2022 12:25

You can easily program it through a regular Arduino or PlatformIO and that with a bootloader over WiFi and do whatever you want with the pins. I once even described it with Arduino IDE: https://www.elektroda.pl/rtvforum/topic3749207.html... [Read more]

FAQ

TL;DR: NAS-SC01W touch switches cost about 100 PLN (~25 USD) and claim "up to 40 m Wi-Fi range" [Elektroda, p.kaczmarek2, post #20280388] "UART lines are not busy" for easy flashing [Elektroda, p.kaczmarek2, post #20280388] Why it matters: You can re-use these ESP8266-based wall switches for custom smart-home projects without soldering.

Quick Facts

• MCU: ESP8266-MZ-V1, 2 MB flash [Elektroda, p.kaczmarek2, post #20280388] • Supply: 100–240 VAC input; on-board 3.3 V LDO (S47B9BB) [Elektroda, p.kaczmarek2, post #20280388] • Dimensions: 86 × 86 × 34 mm [Elektroda, p.kaczmarek2, post #20280388] • Claimed Wi-Fi range: ≤40 m @ 2.4 GHz [Elektroda, p.kaczmarek2, post #20280388] • Street price: ~25 USD per gang [Elektroda, p.kaczmarek2, post #20280388]

Where are the UART and IO0 pins located for flashing?

3.3 V, GND, TX, RX and IO0 are clearly silk-screened on the front PCB near the ESP module, so no cutting or soldering is needed [Elektroda, p.kaczmarek2, post #20280388]

How realistic is the 40 m Wi-Fi range claim?

Range depends on walls and router gain; expect roughly 10-20 m indoors—an 50 % drop from the spec is common [Cisco, 2021].

What happens if the 3.3 V regulator fails?

The ESP reboots or locks up; Relays may chatter. Replace the SOIC-8 LDO or add an external AMS1117-3.3 regulator.

What is an edge case during flashing?

If GPIO15 floats high, the ESP will not boot; always keep GPIO15 pulled low via its onboard resistor [Espressif, 2020].

Why are these switches interesting for makers?

They provide exposed UART, cheap price, tempered-glass look, and ESP8266 flexibility—"perfect hackable hardware" [Elektroda, p.kaczmarek2, post #20280388]
%}