IFREEQ Docs
  • Introduction
  • Update Log
  • General Knowledge
    • About IoT
    • Electricity
      • Plug & socket types around the world
        • Power plug & outlet Types A & B
        • Power plug & outlet Type C
        • Power plug & outlet Type D
        • Power plug & outlet Type E
        • Power plug & outlet Type F (Schuko)
        • Power plug & outlet Type G
        • Power plug & outlet Type H
        • Power plug & outlet Type I
        • Power plug & outlet Type J
        • Power plug & outlet Type K
        • Power plug & outlet Type L
        • Power plug & outlet Type M
        • Power plug & outlet Type N
        • Power plug & outlet Type O
      • Full list: Plug, socket & voltage by country
      • Map showing the spread of the different plug types worldwide
      • Useful information for travellers
      • History of domestic electricity
        • Why isn’t there a universal standard electric plug?
        • Why isn’t there a standard voltage around the world?
      • Three-phase electric power (industrial applications only)
    • Certifications
    • Home Automation Brand
    • Home Automation Catalog
    • Industry Term
    • Network Term
    • The Third-party Control
      • AliGenie
      • Amazon Alexa
        • FAQs About Amazon Alexa
      • DuerOS
        • FAQs About DuerOS
      • Google Assistant
        • FAQs About Google Assistant
      • Home Assistant
        • FAQs About Home Assistant
      • HomeKit
        • FAQs About Homekit
      • IFTTT
      • Xiao AI
      • Yandex Alice
        • FAQs About Yandex Alice
  • Developer
    • Introduction
      • What is Tuya Smart?
      • What does Tuya do?
      • Tuya Smart Cloud Platform Overview
      • Advantages
      • Terms
      • Limits
    • Quick Start
    • Configure in Platform
      • Create Products
      • Function Definition
        • Overview
        • Standard Functions
        • Custom Functions
        • Cloud Functions
      • Design App UI
      • Configure Hardware
      • Cloud Configuration
        • Introduction
        • Upgrade Firmwares
        • Set up Multilingual UI
        • Manage Alarms
        • Configure Network for Devices
        • Enable Toggles on App
        • Automate the Smart Devices
      • Mass Production
    • Device Development
      • Access Mode MCU
        • MCU Access Guide
        • Wi-Fi General Solution
          • Wi-Fi Module MCU Development Overview
          • Hardware Design Reference Wi-Fi
          • Software Reference Wi-Fi
            • Tuya Cloud Universal Serial Port Access Protocol
            • Overview of migrating Tuya's MCU SDK
        • Wi-Fi Power Off Fast Connect Device Solution
          • Overview
        • Zigbee General Solution
          • Overview
          • Software development
            • Tuya Zigbee module UART communication protocol
          • Hardware Design
        • BLE General Solution
          • BLE Module MCU Development Overview
          • BLE Hardware Design
        • NB-IoT General Solution
          • NB-IoT Development Guide
          • Introduction to NB Module - NM1
      • Access Mode SoC
        • SoC Development Overview
        • Lighting
          • Guidance
          • Design
          • Test
        • Electrician
          • Guidance
          • Design
          • Test
      • Access Mode Link
        • Wi-Fi Chip SDK
          • Tuya Wi-Fi SDK Reference
          • Development Environment Setup When Using Tuya Wi-Fi SDK
        • BLE Chip SDK
          • TUYA BLE SDK User Guide
        • Zigbee Chip SDK
          • TUYA Zigbee SDK Document
      • Cloud Mode
        • Wi-Fi&BT Dual Mode Module
        • Wi-Fi Module
        • Bluetooth Module
        • Zigbee Module
        • Sub-G Module
      • Tuya Development Boards
      • Access Mode Simmulator
        • Module Debugging Assistant Instruction
      • Embedded License
        • Embedded open source license
    • Smart Product Solution
      • Gateway
        • MCU Access
        • Link SDK Access
        • PCB Details
      • HouseHold
        • Cleaner Robot
        • Air Conditioner
      • IPC
      • Lock
        • BLE Lock
        • Wi-Fi Lock
        • Zigbee Lock
      • Remote Control
      • Voice Product
        • Domestic Voice Speaker Solution
        • Domestic Voice Infrared SoC Solution
        • Overseas Voice Solution
        • Design Reference Materials - Alexa Module
        • Design Reference Materials - Domestic Voice Module
    • Firmware
      • S8E
  • FAQs
    • Device Development
      • Cloud Module
        • Wi-Fi Module
        • Zigbee Module
        • BLE Module
        • GPRS Module
        • NB-IoT Module
        • Dual-mode Module
        • Other Module Issues
      • Access Mode SoC
      • MCU Access Mode
        • Wi-Fi General Solution
        • Zigbee General Solution
        • BLE General Solution
          • BLE Single-point Solution
          • BLE Mesh General Solution
          • Other Issues of BLE Solution
        • NB-IoT General Solution
        • Other Issues of MCU Access Mode
      • Module SDK Development
        • BLE Chip SDK(single point)
        • Linux General SDK
        • NB-IoT Chip SDK
        • Wi-Fi Chip SDK
        • Others about Module SDK
      • Other Issues of Device Development
    • Smart Product Solution
      • Electrical
        • Outlet
        • Scenario Switch
        • Switch
      • Lighting
        • Wi-Fi Lighting
        • Zigbee Lighting
        • Bluetooth Lighting
        • Other Issues of Lighting
      • Lock
        • BLE Lock
        • NB-IoT Lock
        • Wi-Fi Lock
        • Zigbee Lock
        • Other Issues of Lock
      • Sensor
      • Gateway
        • BLE Gateway
        • Wireless Gateway
        • Zigbee Gateway
        • Other Issues of Gateway
      • IPC
      • Infrared Products
        • Infrared remote control
        • Infrared Capability Introduction
        • Infrared Code Library
      • Sweeper
      • Household Appliances
      • Pet Supplier
      • BLE Mesh Typical Solution
        • BLE Mesh Lighting Solution
        • BLE Mesh Electrical Solution
        • BLE Mesh Sensor Solution
        • BLE Mesh General Solution
    • Products
      • Electric
        • Smart Switch
        • Smart Plug
        • Curtain Controller
      • Lighting
      • Security
        • E202/203 Smart Lock
    • More
  • Links
    • ifreeq.cn
    • ifreeq.com
    • AIoT Expo
    • Official Store
Powered by GitBook
On this page
  • TYWE2S Module outlet general procedure circuit instructions
  • 1.Typical Application diagram
  • 2.Design specification
  • 3.Packaging instructions
  • TYWE3S Module outlet general procedure circuit instructions
  • Typical Application diagram
  • Design specification
  • Packaging instructions
  • Using the TYLC4 Module on a Socket with a USB Port
  • Typical Application Diagram
  • Design Description
  • I/O Port Design Description

Was this helpful?

  1. Developer
  2. Device Development
  3. Access Mode SoC
  4. Electrician

Design

PreviousGuidanceNextTest

Last updated 4 years ago

Was this helpful?

TYWE2S Module outlet general procedure circuit instructions

1.Typical Application diagram

Diagram 1 TYWE2S Module outlet typical circuit

TYWE2S Module outlet general procedure circuit instructions

2.Design specification

  1. Module power supply consumption:3.3V/100mA, instantaneous current(5us) 450mA. Proposed supply current≥300mA.

  2. Power filter capacitor C1 & C2 should be distributed as close to the 3.3V power pin as possible.

  3. Serial port TXD0 & RXD0 are user interface. Default setting Baud rate: 9600, Data level: 8 bit, Stop bit: 1 bit, No check bit, No flow control. If you need to use serial port as a common IO port, please contact with the technician.

  4. TOUT pin is ADC pin, can't be used as an ordinary IO port. If idle, plesase suspend.

  5. RST pin is module reset pin, effective under the low level. It can be suspended processing as it has contained a pull-up resistor.

  6. LED2 pin is the relay status indicator, when IO port output is the low level, the indicator light is on.

  7. LED1 pin is the Wi-Fi status indicator, when IO port output is the low level, the indicator light is on.

  8. Reset is button, effective under the low level. The button is effective to switch the relay when pressed in short time. The button is effective to clear the Wi-Fi configuration function when pressed in long time(5s).

  9. RELAY control coil of the relay, module IO port drive capacity is 12mA, please pay attention to the difference between module IO drive capability and the relay required drive current.

  10. Other idle pins can be used for suspended processing.

  11. Module defaults to in-line mode, in order to ensure the optimization of Wi-Fi performance. It is recommended that the distance between antenna section and other metal parts should be at least 15mm in the module.

3.Packaging instructions

Diagram 2 TYWE2S plug-in mode recommended packaging

TYWE3S Module outlet general procedure circuit instructions

Typical Application diagram

Diagram 1 TYWE3S Module outlet typical circuit

In Diagram 1,S1 represents Wi-Fi module reset button, D2 represents Wi-Fi module status indicator. The relationship between D2 status(default by Tuya) and Wi-Fi module working status is as below.

D2 status

D2 display

Wi-Fi module working status

Rapid flashing

Bright extinguishing interval 250ms

Quick connection mode (Smartconfig)

Slow flashing

Bright extinguishing interval 1500ms

Compatibility mode (AP distribution network mode)

Be bright

Be bright

Wi-Fi module connects to the router

Be extinguishing

Be extinguishing

Wi-Fi module is disconnected from the router

Design specification

  1. Module power supply consumption:3.3V/100mA, instantaneous current(5us) 450mA. Proposed supply current≥300mA.

  2. Power filter capacitor C21 & C20 should be distributed as close to VCC pin as possible.

  3. Serial port TXD & RXD defalut to serial port mode. If you need to use serial port as a common IO port, please contact with the technician.

  4. ADC pin is voltage collection pin, can't be used as normal IO function. If idle, it needs to be suspended.

  5. IO 0 participates in the module for normal startup, when the power is on, this pin's level needs the high level for normal startup. For the export, a pull-up resistor is recommended. For the import, the input level should be considered. If idle, it can be suspended processing.

  6. IO 2 participates in the module for normal startup, when the power is on, this pin's level needs the high level for normal startup. The default mode is module debugging port, and data output is available on the upper current. If idle, it can be suspended processing.

  7. IO 15 participates in the module for normal startup, When the power is on, the pin's level needs the low level for normal startup. You need to add a pull-down resistor to your pin.

  8. RST pin is module hardware reset pin, reset under the low level.

  9. Please note that there is no pull-up resistor inside of IO16 when used.

  10. LED2 pin is the relay status indicator.

  11. LED1 pin is Wi-Fi status indicator.

  12. Reset is button, effective under the low level. The button is effective to switch the relay when pressed in short time. The button is effective to clear the Wi-Fi configuration function when pressed in long time(5s).

  13. RELAY control coil of the relay, module IO port drive capacity is 12mA, please pay attention to the difference between module IO drive capability and the relay required drive current.

  14. The pins 9-14 need to be suspended, and other idle pins also need to be suspended.

  15. Diagram 2 the ANTENNA part is the position of antenna, which is forbidden to cover the copper & wire. It's better to empty this area of PCB, so as not to affect the antenna performance.

Packaging instructions

Diagram 2 TYWE3S boundary dimension

Note:if need recommended packaging, download from Internet or contact with the business.

Using the TYLC4 Module on a Socket with a USB Port

Typical Application Diagram

Figure 1-1 shows how to use the TYLC4 module on a socket with a USB port.

S1 indicates the Wi-Fi module reset button, and D2 indicates the Wi-Fi module status indicator. The following table lists the default mAppings between the D2 status and working status of the Wi-Fi module.

Figure 1-1 Typical application diagram

Design Description

  1. The voltage and current for the Wi-Fi module to work properly are 3.3 V and 100 mA, respectively. It is recommended that the current be 300 mA or higher and that the total capacitance of external filter capacitors be more than 10 μF when the voltage is 3.3 V. When the Wi-Fi module is transmitting or receiving RF signals at 3.3 V, the current is increased by over 50%.

  2. When designing the PCB layout, ensure that the filter capacitors C1 and C2 are as close to the VCC pin as possible.

  3. By default, TXD and RXD work in serial port mode. To use them as common I/O ports, contact a business manager.

  4. The RST pin resets the module at low level. To use the RST pin, connect it to the I/O port of the MCU and low level input.

  5. To use the module, you need a button and Wi-Fi status indicator.

    To power the module on or off, press the button. To reset Wi-Fi configuration information, press and hold the button.

    The indicator (D2 in Figure 1-1) indicates the working status of the Wi-Fi module or smart product.

  6. Connect the relay drive pin to the ground with a 3300 ohm resistor, so that the relay will not start unexpectedly when the module is powered on and the program has not started yet.

  7. Other idle pins can be vacant.

I/O Port Design Description

Function

I/O Port

Description

Relay drive

IO12

High level, and the relay is connected

USB switch

IO14

High level, and the USB port is available

Button

IO13

Low level, and the button is effective

Wi-Fi status indicator

IO4

Low level, and the indicator is on

Relay status indicator

IO5

Low level, and the indicator is on

To obtain the Wi-Fi module in the demo solution, contact a Tuya business manager.

TYWE2S Module outlet general procedure circuit instructions
TYWE3S Module outlet general procedure circuit instructions
TYWE3S Module outlet general procedure circuit instructions
Using the TYLC4 Module on a Socket with a USB Port