Туя-ЛОГО

Tuya T5 Module Developer Platform

tuya-T5-Module-Developer-Platform-PRODUCT

Информация о продукте

Технические характеристики

  • Продукт: T5 Module
  • Версия: 20251022
  • Онлайн Версия

Инструкции по применению продукта

Установка

  1. Open the packaging carefully to avoid damaging the module.
  2. Locate the appropriate slot on your device for inserting the module.
  3. Gently insert the T5 Module into the slot until it is securely in place.
  4. Check that the module is properly aligned and seated.

Конфигурация

Once the T5 Module is installed, you may need to configure it for use.

Выполните следующие действия:

  1. Откройте меню настроек на вашем устройстве.
  2. Locate the network or connectivity settings.
  3. Select the T5 Module from the list of available networks.
  4. Enter any required credentials or settings as prompted.

Поиск неисправностей

If you encounter any issues with the T5 Module, consider the following troubleshooting steps.

  1. Restart your device and check if the module is recognized.
  2. Ensure that the module is properly inserted and seated in the slot.
  3. Check for any software updates that may be available for the module.

ВВЕДЕНИЕ

  • This topic is intended to provide hardware information and serve as a reference when you develop with T5-E1 modules.
  • It helps you get an overall understanding of the product specifications and assists in developing products and applications.

Надview

  • T5-E1-IPEX is a highly integrated single-antenna single-band 2.4 GHz Wi-Fi 6 (IEEE 802.11b/g/n/ax) and Bluetooth 5.4 Low Energy (LE) combo IoT module.
  • Featuring a multi-peripheral packaging and ultra-low-power chip, the T5-E1-IPEX module provides a highly integrated, efficient, secure, and lowest-power environment for IP cameras, HMI applications, smart locks, and other advanced IoT applications.
  • The T5-E1 module is embedded with an ARMv8-M Star (M33F) processor with a clock rate of up to 480 MHz, and integrates 8 MB flash memory, 16 MB PSRAM, 640 KB SRAM shared memory, and 64 KB ROM.
  • Support interfaces such as USB, UART, SDIO, SPI, I2C, I2S, and ADC, as well as external devices such as displays, cameras, microphones, speakers, and microSD cards.

Появление

tuya-T5-Module-Developer-Platform-FIG-1

Pins on the module

T5-E1 is equipped with a total of 70 pins, including 40 LCC pins and 30 LGA pins.

The pinout is as follows:tuya-T5-Module-Developer-Platform-FIG-2

Нет.ИмяТип ввода/выводаОписание
1ЗемляPКонтакт заземления
23В3PШтырь питания
3РСТIThe low-level reset pin is active high and pulled up internally
4Р20Ввод/вывод
  • GPIO20
  • I2C0_SCL
  • SWCLK
  • RGB_R6
  • I8080_D9
  • SEG10
5Р21Ввод/вывод
  • I2C0_SDA
  • СВДИО
  • АЦП6
  • RGB_R5
  • I8080_D8
  • SEG9
6Р22Ввод/вывод
  • CLK26M
  • АЦП5
  • QSPI0_SCK
  • RGB_R4
  • I8080_CSX
  • SEG8
7Р23Ввод/вывод
  • АЦП3
  • QSPI0_CS
  • RGB_R3
  • I8080_RESET
  • SEG7
8Р24Ввод/вывод
  • LPO_CLK
  • PWMG0_PWM4
  • АЦП2
  • QSPI0_IO0
  • RGB_G7
  • I8080_RSX
  • SEG6
9Р25Ввод/вывод
  • ИРДА
  • АЦП1
  • QSPI0_IO1
  • RGB_G6
  • I8080_WRX
  • SEG5
10Р26Ввод/вывод
  • QSPI0_IO2
  • RGB_G5
  • I8080_RDX
  • SEG4
11Р28Ввод/вывод
  • I2S_MCLK
  • АЦП4
  • СЕНСОРНЫЙ2
  • CLK_AUXS_CIS
  • SEG18
12P1Ввод/вывод
  • UART1_RX
  • I2C1_SDA
  • СВДИО
  • SC_CLK
  • АЦП13
  • LIN_RXD
13DNВвод/выводUSB-D-
14DPВвод/выводUSB D +
15P0Ввод/вывод
  • UART1_TX
  • I2C1_SCL
  • SWCLK
  • SC_IO
  • АЦП12
  • LIN_TXD
16P9Ввод/вывод
  • I2S0_DOUT
  • DMIC_DAT
  • 32К_XI
17P8Ввод/вывод
  • I2S0_DIN
  • ДМИЦ_CLK
  • АЦП10
  • 32К_ХО
18P7Ввод/вывод
  • I2S0_SYNC
  • QSPI1_IO3
19P6Ввод/вывод
  • I2S0_SCK
  • QSPI1_IO2
20P5Ввод/вывод
  • SPI1_MISO
  • SDIO_DATA1
  • КОМ7
  • QSPI1_IO1
  • SEG31
21P4Ввод/вывод
  • SPI1_MOSI
  • SDIO_DATA0
  • КОМ6
  • QSPI1_IO0
  • SEG30
22P3Ввод/вывод
  • SPI1_CSN
  • SDIO_CMD
  • SC_VCC
  • QSPI1_CS
23P2Ввод/вывод
  • SPI1_SCK
  • SDIO_CLK
  • SC_RSTN
  • LIN_SLEEP
  • QSPI1_SCK
24Р12Ввод/вывод
  • UART0_RTS
  • СЕНСОРНЫЙ0
  • АЦП14
25Р13Ввод/вывод
  • UART0_CTS
  • СЕНСОРНЫЙ1
  • АЦП15
26Р15Ввод/вывод
  • SDIO_CMD
  • SPI0_CSN
  • I2C1_SDA
  • RGB_DISP
  • I8080_D14
  • SEG15
27Р14Ввод/вывод
  • SDIO_CLK
  • SPI0_SCK
  • I2C1_SCL
  • RGB_DCLK
  • I8080_D15
  • SEG16
28Р16Ввод/вывод
  • SDIO_DATA0
  • SPI0_MOSI
  • RGB_DE
  • I8080_D13
  • SEG14
29Р17Ввод/вывод
  • SDIO_DATA1
  • SPI0_MISO
  • RGB_HSYNC
  • I8080_D12
  • SEG13
30Р18Ввод/вывод
  • SDIO_DATA2
  • PWMG0_PWM0
  • RGB_VSYNC
  • I8080_D11
  • SEG12
31Р19Ввод/вывод
  • SDIO_DATA3
  • RGB_R7
  • I8080_D10
  • SEG11
32Р47Ввод/вывод
  • SPI0_MISO
  • ENET_MDC
  • СЕНСОРНЫЙ15
  • RGB_B3
  • I8080_D0
  • КОМ0
  • I2S2_DOUT
33Р46Ввод/вывод
  • CAN_STBY
  • SPI0_MOSI
  • ENET_PHY_INT
  • СЕНСОРНЫЙ14
  • RGB_B4
  • I8080_D1
  • КОМ1
  • I2S2_DIN
34Р45Ввод/вывод
  • CAN_RX
  • SPI0_CSN
  • RGB_B5
  • I8080_D2
  • КОМ2
  • I2S2_SYNC
35Р44Ввод/вывод
  • CAN_TX
  • SPI0_SCK
  • RGB_B6
  • I8080_D3
  • КОМ3
  • I2S2_SCK
36RXDВвод/вывод
  • DL_UART_RX
  • SDIO_DATA2
  • CLK_AUXS_CIS
  • UART0_RX
  • Flash firmware and authorize modules
37TXDВвод/вывод
  • DL_UART_TX
  • UART0_TX
  • SDIO_DATA3
  • Flash firmware and authorize modules
38Р43Ввод/вывод
  • I2C1_SDA
  • I2S1_DOUT
  • SC_VCC
  • RGB_B7
  • I8080_D4
  • SEG0
39Р42Ввод/вывод
  • I2C1_SCL
  • I2S1_DIN
  • LIN_SLEEP
  • SC_RSTN
  • RGB_G2
  • I8080_D5
  • SEG1
40ЗемляPКонтакт заземления
41Р27Ввод/вывод
  • CIS_MCLK
  • CLK_AUXS_CIS
  • ENET_PHY_INT
  • QSPI0_IO3
  • SEG17
42Р29Ввод/вывод
  • CIS_PCLK
  • ENET_MDC
  • СЕНСОРНЫЙ3
  • SEG19
43ЗемляPКонтакт заземления
44ЗемляPКонтакт заземления
45Р41Ввод/вывод
  • UART2_TX
  • I2S1_SYNC
  • LIN_TXD
  • SC_IO
  • RGB_G3
  • I8080_D6
  • SEG2
46Р31Ввод/вывод
  • CIS_VSYNC
  • UART2_TX
  • LIN_TXD
  • СЕНСОРНЫЙ5
  • SC_IO
  • SEG21
47Р30Ввод/вывод
  • CIS_HSYNC
  • UART2_RX
  • LIN_RXD
  • СЕНСОРНЫЙ4
  • SC_CLK
  • SEG20
48Р33Ввод/вывод
  • CIS_PXD1
  • ENET_RXD0
  • СЕНСОРНЫЙ7
  • SEG23
49Р32Ввод/вывод
  • CIS_PXD0
  • PWMG1_PWM0
  • ENET_MDIO
  • СЕНСОРНЫЙ6
  • SC_RSTN
  • SEG22
50ЗемляPКонтакт заземления
51Р34Ввод/вывод
  • CIS_PXD2
  • PWMG1_PWM2
  • ENET_RXD1
  • СЕНСОРНЫЙ8
  • SPI0_CSN
  • SEG24
52Р35Ввод/вывод
  • CIS_PXD3
  • ENET_RXDV
  • СЕНСОРНЫЙ9
  • SPI0_MOSI
  • SEG25
53ЗемляPКонтакт заземления
54ЗемляPКонтакт заземления
55ЗемляPКонтакт заземления
56Р36Ввод/вывод
  • CIS_PXD4
  • PWMG1_PWM4
  • ENET_TXD0
  • СЕНСОРНЫЙ10
  • SPI0_MISO
  • SEG26
57Р37Ввод/вывод
  • CIS_PXD5
  • ENET_TXD1
  • СЕНСОРНЫЙ11
  • SEG27
58ЗемляPКонтакт заземления
59ЗемляPКонтакт заземления
60ВИОAOGPIO LDO output
61LNAOAudio left channel negative output
62LPAOПоложительный выход аудио левого канала
63Р38Ввод/вывод
  • CIS_PXD6
  • I2C1_SCL
  • ENET_TXEN
  • СЕНСОРНЫЙ12
  • КОМ4
  • SEG28
64Р39Ввод/вывод
  • CIS_PXD7
  • I2C1_SDA
  • ENET_REF_CLK
  • СЕНСОРНЫЙ13
  • КОМ5
  • SEG29
65Р40Ввод/вывод
  • UART2_RX
  • I2S1_SCK
  • LIN_RXD
  • SC_CLK
  • RGB_G4
  • I8080_D7
  • SEG3
66МП1AOMicrophone 1 positive input
67MN1AOMicrophone 1 negative input
68MN2AOMicrophone 2 negative input
69МП2AOMicrophone 2 positive input
70МБСAOВыход смещения микрофона

ПРИМЕЧАНИЕ:

  • The maximum input level for the ADC pin is 1.1V. It is recommended to use MΩ-level external voltage divider resistors and place a 100nF capacitor close to the ADC pin for grounding and filtering.
  • P indicates the power pin.
  • I/O indicates the input and output pins.
  • AI indicates the analog signal input pin.
  • AO indicates the analog signal output pin.

Pin configuration and features

УАПП Описание штифта

The module provides three UART interfaces:

  • UART 0: used to connect to your MCU. The serial data transmission follows Tuya’s protocol. The baud rate is 115200 bps by default.
  • UART 1: used to connect to peripheral devices.
  • UART 2: used to connect to peripheral devices.
Номер контактаСигналОсобенность
36DL_UART_RXUART 0. It can be used as a download port to receive data.
37DL_UART_TXUART 0. It can be used as a download port to transmit data.
12UART1_RXUART 1 to receive data.
15UART1_TXUART 1 to transmit data.
45UART2_TXUART 2 to transmit data.
65UART2_RXUART 2 to receive data.

Serial communication between the module and the MCU

  • Connection between a module and a 3.3V MCUtuya-T5-Module-Developer-Platform-FIG-3
  • Connection between a module and a 5V MCU
  • In the following circuit diagram, voltage level translation can be implemented with a bidirectional voltage-level translator, a MOS transistor, or a triode.tuya-T5-Module-Developer-Platform-FIG-4

Level translator reference

  • N-channel MOSFET level translator: An N-channel MOSFET and a built-in body diode are used to implement two-way communication.tuya-T5-Module-Developer-Platform-FIG-5
  • NPN triode level translator: An NPN triode is used to implement one-way communication.tuya-T5-Module-Developer-Platform-FIG-6
  • See the circuit diagram above for how UART 1, UART 2, and UART 0 are connected.

Конструкция контура

The UART trace should be as short as possible. Add ground vias around the UART and keep away from RF and periodic signal lines.

USB

Описание пина

  • The USB interface conforms to USB 2.0 specifications.
  • It is recommended to reserve a USB port for program download and debugging.
Номер контактаСигналОсобенность
13USB_DNUSB high-speed differential transceiver (negative). It can be used to download code to the module.
14USB_DPUSB high-speed differential transceiver (positive). It can be used to download code to the module.

Приложения

  • MCU solutionstuya-T5-Module-Developer-Platform-FIG-7
  • Кабель Micro-USBtuya-T5-Module-Developer-Platform-FIG-8

Конструкция контура

  • Make sure to route the USB signal traces as differential pairs with total grounding, keeping them parallel and of equal length. The impedance of the USB differential trace is 90Ω.
  • Do not route signal traces under the power supply, RF signal traces, and other sensitive signal traces.
  • It is important to route the USB differential traces in the inner layer with ground shielding on not only the upper and lower layers but also the right and left sides.
  • Connect a common-mode choke between the MCU and the module in series to improve EMI suppression.
  • Considering the connection to micro-USB devices, place the TVS diode as close to the USB port as possible with a parasitic capacitance of less than 2 pF.

СПИ

  • The T5-E1 module has two sets of SPI interfaces, and the following table details the pins.
Номер контактаСигналОсобенность
26SPI0_CSNGPIO15, SPI0 chip select signal
28SPI0_MOSIGPIO16, SPI0 controller out and agent in
29SPI0_MISOGPIO17, SPI0 controller in and agent out
27SPI0_SCKGPIO14, SPI0 clock signal
22SPI1_CSNGPIO3, SPI1 chip select signal
21SPI1_MOSIGPIO4, SPI1 controller out and agent in
20SPI1_MISOGPIO5, SPI1 controller in and agent out
23SPI1_SCKGPIO2, SPI1 clock signal

Electrical specifications and applications

Объемtage level of the SPI interface on this module is 3.3V. A level translator should be used if the application is equipped with a 5V UART interface. A level translator for SPI is recommended.

The reference circuit is shown in the figure below:tuya-T5-Module-Developer-Platform-FIG-9

QSPI

The T5-E1 module has two sets of QSPI interfaces, and the following table details the pins.

Номер контактаСигналОсобенность
6QSPI0_SCKGPIO22, QSPI0 clock signal
7QSPI0_CSGPIO23, QSPI0 enable signal
8QSPI0_IO0GPIO24, QSPI0 data bit 0
9QSPI0_IO1GPIO25, QSPI0 data bit 1
10QSPI0_IO2GPIO26, QSPI0 data bit 2
41QSPI0_IO3GPIO27, QSPI0 data bit 3
18QSPI1_IO3GPIO7, QSPI1 data bit 3
19QSPI1_IO2GPIO6, QSPI1 data bit 2
20QSPI1_IO1GPIO5, QSPI1 data bit 1
21QSPI1_IO0GPIO4, QSPI1 data bit 0
22QSPI1_CSGPIO3, QSPI1 enable signal
23QSPI1_SCKGPIO2, QSPI1 clock signal

I2C

The T5-E1 module has two sets of I2C interfaces, and the following table details the pins.

Номер контактаСигналОсобенность
4I2C0_SCLGPIO20, I2C0 clock signal
5I2C0_SDAGPIO21, I2C0 data signal
15I2C1_SCLGPIO0, I2C1 clock signal
12I2C1_SDAGPIO1, I2C1 data signal
  • I2C is a simple serial communication bus protocol that uses just two bus wires, a serial data wire (SDA) and a serial clock wire (SCL).
  • I2C is integrated into many ICs and allows devices to communicate directly with each other.
  • Each device is recognized by a unique address to differentiate from other devices on the same I2C bus and can operate either as a transmitter or a receiver, depending on its function.

Приложения

The I2C bus must be pulled up on the device.tuya-T5-Module-Developer-Platform-FIG-10

I2S

The T5-E1 module has three sets of I2S interfaces, and the following table details the pins.

Номер контактаСигналОсобенность
11I2S_MCLKGPIO28, main clock signal
16I2S0_DOUTGPIO9, I2S0 output signal
17I2S0_DINGPIO8, I2S0 input signal
18I2S0_SYNCGPIO7, I2S0 sync signal
19I2S0_SCKGPIO6, I2S0 clock signal
32I2S2_DOUTGPIO47, I2S2 output signal
33I2S2_DINGPIO46, I2S2 input signal
34I2S2_SYNCGPIO45, I2S2 sync signal
35I2S2_SCKGPIO44, I2S2 clock signal
38I2S1_DOUTGPIO43, I2S1 output signal
39I2S1_DINGPIO42, I2S1 input signal
45I2S1_SYNCGPIO41, I2S1 sync signal
65I2S1_SCKGPIO40, I2S1 clock signal

СДИО

The T5-E1 module has one set of SDIO interfaces, and the following table details the pins.

Номер контактаСигналОсобенность
20/29SDIO_DATA1GPIO5/GPIO17, SDIO data bit 1
21/28SDIO_DATA0GPIO4/GPIO16, SDIO data bit 0
22/26SDIO_CMDGPIO3/GPIO15, SDIO command
23/27SDIO_CLKGPIO2/GPIO14, SDIO clock
36/30SDIO_DATA2UART0_RX/GPIO18, SDIO data bit 2
37/31SDIO_DATA3UART0_TX/GPIO19, SDIO data bit 3

Приложенияtuya-T5-Module-Developer-Platform-FIG-11

Конструкция контура

  • Reserve a 22Ω resistor between the SD_CLK and the SD signal trace in series to reduce RF interference.
  • Reserve a pad for a 0201 33 pF capacitor on the SD signal trace.
  • SD_DATA[0:3] и SD_CMD have reserved pull-up resistors to increase bus stability.
  • The SD_CLK The signal trace needs ground shielding individually. Its length should be as short as possible, within 2,500 mil, preferably within 2,000 mil.
  • Surround SD signal traces with total grounding to prevent any possible crosstalk and noise coupling from other signal sources.
  • It is recommended to keep the same trace length for SD_CLKSD_DATA[0:3], и SD_CMD, with a length difference of less than 1 mm. The total length should not exceed 50 mm.
  • In order to offer good ESD protection, it is recommended to add an ESD diode array with a parasitic capacitance of less than 15 pF.
  • The ESD protection device should be placed as close as possible to the SIM card connector 3V3. SD_CLKSD_DATA[0:3], и SD_CMD. Make sure the SIM card signal lines go through the ESD protection device first and then to the module.

Камера

Описание пина

Номер контактаСигналОсобенность
41CIS_MCLKGPIO27, driver clock that is output to the sensor
42CIS_PCLKGPIO29, pixel clock
46CIS_VSYNCGPIO31, frame sync signal
47CIS_HSYNCGPIO30, horizontal sync signal
48CIS_PXD1GPIO33, pixel data, data bit 1
49CIS_PXD0GPIO32, pixel data, data bit 0
51CIS_PXD2GPIO34, pixel data, data bit 2
52CIS_PXD3GPIO35, pixel data, data bit 3
56CIS_PXD4GPIO36, pixel data, data bit 4
57CIS_PXD5GPIO37, pixel data, data bit 5
63CIS_PXD6GPIO38, pixel data, data bit 6
64CIS_PXD7GPIO39, pixel data, data bit 7

DVP requires a set of I2C interfaces to configure the sensor.

Приложенияtuya-T5-Module-Developer-Platform-FIG-12

RGB565

Описание пина

Номер контактаСигналОсобенность
31RGB_R7GPIO19, RGB red component, data bit 7
4RGB_R6GPIO20, RGB red component, data bit 6
5RGB_R5GPIO21, RGB red component, data bit 5
6RGB_R4GPIO22, RGB red component, data bit 4
7RGB_R3GPIO23, RGB red component, data bit 3
8RGB_G7GPIO24, RGB green component, data bit 7
9RGB_G6GPIO25, RGB green component, data bit 6
10RGB_G5GPIO26, RGB green component, data bit 5
65RGB_G4GPIO40, RGB green component, data bit 4
45RGB_G3GPIO41, RGB green component, data bit 3
39RGB_G2GPIO42, RGB green component, data bit 2
38RGB_B7GPIO43, RGB blue component, data bit 7
35RGB_B6GPIO44, RGB blue component, data bit 6
34RGB_B5GPIO45, RGB blue component, data bit 5
33RGB_B4GPIO46, RGB blue component, data bit 4
32RGB_B3GPIO47, RGB blue component, data bit 3
27RGB_DCLKGPIO14, clock signal
26RGB_DISPGPIO15, display on/off
29RGB_HSYNCGPIO17, horizontal sync signal
30RGB_VSYNCGPIO18, vertical sync signal
28RGB_DEGPIO16, data enable signal

Ethernet

Описание пина

Номер контактаСигналОсобенность
41ENET_PHY_INTGPIO27, interrupt signal
42ENET_MDCGPIO29, bus clock signal
48ENET_RXD0GPIO33, data receiving signal, bit 0
49ENET_MDIOGPIO32, management data input and output signals
51ENET_RXD1GPIO34, data receiving signal, bit 1
52ENET_RXDVGPIO35, data receiving a valid signal
56ENET_TXD0GPIO36, data sending signal, bit 0
57ENET_TXD1GPIO37, data sending signal, bit 1
63ENET_TXENGPIO38, data sending enable signal
64ENET_REF_CLKGPIO39, reference clock signal

Приложенияtuya-T5-Module-Developer-Platform-FIG-13

Трогать

The T5-E1 module provides 16 capacitive sensing GPIOs, and the following table details the pins.

Номер контактаСигналОсобенность
11Р28СЕНСОРНЫЙ2
24Р12СЕНСОРНЫЙ0
25Р13СЕНСОРНЫЙ1
32Р47СЕНСОРНЫЙ15
33Р46СЕНСОРНЫЙ14
42Р29СЕНСОРНЫЙ3
46Р31СЕНСОРНЫЙ5
47Р30СЕНСОРНЫЙ4
48Р33СЕНСОРНЫЙ7
49Р32СЕНСОРНЫЙ6
51Р34СЕНСОРНЫЙ8
52Р35СЕНСОРНЫЙ9
56Р36СЕНСОРНЫЙ10
57Р37СЕНСОРНЫЙ11
63Р38СЕНСОРНЫЙ12
64Р39СЕНСОРНЫЙ13
  • When using the touch feature, it is recommended to reserve a series resistor close to the module to reduce coupling noise and interference on the line and to enhance ESD protection.
  • The recommended resistance value is 470 Ω to 2 kΩ, with 510 Ω preferred. The specific value depends on the actual test results of the product.
  • The traces should be as short and thin as possible, with a length less than 300 mm, a width no greater than 0.18 mm, and a trace angle greater than or equal to 90°.
  • The spacing between different touch channels should be as far as possible, and they should be away from RF, I2C, SPI, and high-speed signal lines.
  • The touch electrodes and traces are surrounded by a grid ground, and the trace clearance from the ground ranges from 0.5 mm to 1 mm.
  • The diameter of the touch electrodes ranges from 8 mm to 15 mm.tuya-T5-Module-Developer-Platform-FIG-14

Спикер

Описание пина

Номер контактаСигналОсобенность
61LNAUDL_N, audio negative output
62LPAUDL_P, audio positive output

Приложенияtuya-T5-Module-Developer-Platform-FIG-15

МИК

Описание пина

Номер контактаСигналОсобенность
66МП1MIC1_P, positive input of microphone 1
67MN1MIC1_N, negative input of microphone 1
68MN2MIC2_N, negative input of microphone 2
69МП2MIC2_P, positive input of microphone 2
70МБСMICBIAS, microphone bias voltage

Приложенияtuya-T5-Module-Developer-Platform-FIG-16

If only one MIC is used, MIC1 must be used.

Источник питания

  • Рабочий объемtage range of the T5-E1 module is 2.0V to 3.6V, with a typical value of 3.3V. The supply current for 3.3V modules must be greater than the maximum input current. The total capacity of the external filter capacitor should be greater than 10 μF.
  • Place the filter capacitors C1 and C2 near the power pin of the module.

Pins of the module

  • The GPIO might experience an uncontrollable high level within five milliseconds of starting the module (before the program startup). Place a 4.7 kΩ pull-down resistor if needed.
  • The RST pin of the module is a hardware reset pin. The module has internal weak pull-up resistors configured. If the pin is not used, it can float. If a module has been paired, this pin cannot be used to clear pairing information.
  • The TX1 pin on the module is used to select a mode. Pulling TX1 down before the module is powered on will start the test firmware, while floating it or pulling it up will start the application firmware. In normal use, this pin is used as a log printing port.
  • Other unused pins can be left floating.
  • For more information about pin configuration, see the module datasheet.

Power-on sequence of the module

  • Suppose that the high-level voltage settling time of the module’s GPIO is t2 и томtage settling time of the module’s power pin is t1. Every time the module is powered on, t2 it must be greater than or equal to t1.

Как показано на следующем рисунке:tuya-T5-Module-Developer-Platform-FIG-17

  • If t2 меньше чем t1The module might fail to start.
    • To return the module to its normal state, pull down the module reset pin (RST) for one millisecond and pull up to restart the module.
    • Repeatedly power-cycling the module power pin will not restore it to its normal state.

Конструкция с низким энергопотреблением

Option 1: Control the module power pin on/off

  • This circuit design can achieve overall low power consumption.tuya-T5-Module-Developer-Platform-FIG-18
  • Как это работает: As shown in the circuit diagram, the MCU can control the switch S1 with the GPIO pin to power on/off the module.
  • When the MCU has data to report to the cloud, it turns it S1 on. Then, the module can receive data from the MCU and report data to the cloud and the mobile app.
  • When data reporting is completed, the module will be powered off and consume no power.

Disadvantages:

  1. Current sinking occurs. When the switch S1 is turned off, the TXD and RXD pins on the module are still connected to the RXD and TXD pins on the MCU.
  2. Therefore, the current from the MCU can flow into the VCC pin of the module through the UART pin.
  3. The TXD and RXD pins of the module are high, so the current sinking will increase the consumption of the module.
  4. Когда переключатель S1 is turned on next time, t2 it will be less than t1, which can cause the module to freeze.

Решение 1: Optimize the software of the MCU without hardware modification. When the MCU detects that the data reporting is completed, the program proceeds with the following steps.

  1. Set the TXD and RXD pins of the MCU as GPIO pins that are configured as the open-drain or weak pull-down mode.
  2. Поверните переключатель. S1 off to power off the module.
  3. This way, when the MCU has data to report, it turns  S1 на первом.
  4. Then, it configures the TXD and RXD pins as the UART to establish communication with the module for data transmission.

Важный

  1. This solution does not apply to MCUs whose UART pin cannot be configured as the open-drain or weak pull-up mode.
  2. If the UART circuit has a pull-up resistor, one terminal of the resistor must be connected to the VCC pin of the module, or you can directly remove this resistor.
    • Решение 2: Add a level translator to the circuit without software modification.
    • See the circuit diagram in the preceding sections, Level translator reference, and Connection between a module and a 3.3V MCU, and embed a level translator in the UART circuit.

Option 2: Reduce power usage in the idle state

  • Pull down the module’s RST pin to reduce idle consumption.tuya-T5-Module-Developer-Platform-FIG-19
  • Как это работает: As shown in the circuit diagram, the MCU can control the RST pin with the GPIO pin to power on/off the module.
  • When the MCU has data to report to the cloud, the GPIO outputs high to power on the module. Then, the module can receive data from the MCU and report data to the cloud and the mobile app.
  • When data reporting is completed, the GPIO outputs low and the module runs in reset mode with low power consumption.
  • Disadvantage: The RST pin has a 10 kΩ internal pull-up resistor, so the module has an input current of 330 μA in the reset mode.

Radio frequency RF test

The antenna is susceptible to the distance from the shell to the surrounding components. We recommend that you test the RF performance after the final test.
The RF test items and metrics are listed in the following table.

Тестовый элементTest metric
Увеличениеasing indoor distance≥ 50м
Увеличениеasing outdoor distance≥ 75м
Total radiated power (TRP) in the signaling mode of end devices (test mode of 11B 11 Mbit/s).≥ 10 дБм
Total isotropic sensitivity (TIS) in the signaling mode of end devices (test mode of 11B 11 Mbit/s).≤ -83 дБм
  • TRP and TIS must be tested in a dark chamber of the antenna manufacturers or certified organizations.
  • The test items apply to most Wi-Fi products, excluding certain special products.

Антенна

Antenna clearance

  • Do not use metal shells or plastic shells with metallic paint or coating in the direction of the antenna radiation. Do not use metal objects such as screws and rivets near the antenna, which might affect the antenna’s efficiency.
  • The distance between the antenna and other mental components should be at least 15 mm.
  • Try to increase the distance from the top shell to the antenna to minimize the impact on antenna performance.tuya-T5-Module-Developer-Platform-FIG-20
  • Try to increase the distance from the upper and bottom shells to the antenna to minimize the impact on antenna performance.tuya-T5-Module-Developer-Platform-FIG-21
  • Keep the module away from speakers, power switches, cameras, HDMI, USB, and other high-speed signals to avoid interference.
  • Avoid metal shielding near the antenna. If co-channel interference occurs, you must evaluate the impact on the antenna performance and ensure isolation from interference.
  • According to the antenna shape of the T5-E1 module, you can choose Position 3 or Position 4 (optimal) when using the module.
  • That is to say, the antenna feed point should be as close to the edge of the board as possible. The position marked with a red dot in the figure below shows where the T5-E1 antenna feed point is.tuya-T5-Module-Developer-Platform-FIG-22

Packing and manufacturing

Mechanical dimensions and backside pad dimensionstuya-T5-Module-Developer-Platform-FIG-23 tuya-T5-Module-Developer-Platform-FIG-24

SMT packagetuya-T5-Module-Developer-Platform-FIG-25

The tolerances for dimensions of length and width, height, and PCB thickness are ±0.35 mm, ±0.15 mm, and ±0.1 mm, respectively.

Часто задаваемые вопросы

How do I know if the T5 Module is compatible with my device?

The T5 Module is compatible with devices that have a compatible slot for insertion. Refer to your device's specifications or consult with the manufacturer for compatibility information.

Can I use the T5 Module with multiple devices?

The T5 Module can typically be moved between compatible devices, but ensure that each device recognizes and configures the module properly before use.

Документы/Ресурсы

tuya T5 Module Developer Platform [pdf] Инструкции
T5-E1, T5-E1-IPEX, T5 Module Developer Platform, T5, Module Developer Platform, Developer Platform, Platform

Ссылки

Оставьте комментарий

Ваш адрес электронной почты не будет опубликован. Обязательные поля отмечены *