ZS24-U Module

Last Updated on : 2024-06-18 02:01:35download

This topic describes information about implementing serial communication between ZS24-U modules and MCUs.

Overview

ZS24-U module is the Zigbee module developed by Tuya. It consists of a highly integrated wireless SoC EFR32MG24 and a few peripheral components, with a built-in 802.15.4 MAC/PHY protocol stack and various library functions.

The following table lists the current and voltage specification.

Model Input voltage
(TYP)
Average current in continuous TX
(250 kbps/+10 dBm)
Average current in continuous RX
(250 kbps)
Average current in deep sleep mode
ZS24-U 3.3V 20.6 mA 7.9 mA 3.54 μA

For more information, see ZS24-U Module Datasheet.

Serial communication protocol

For more information, see Zigbee Serial Protocol.

Serial communication between module and MCU

  • Connection between a module and a 3.3V MCU

    ZS24-U Module
  • 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.

    ZS24-U Module

Level translator

  • N-channel MOSFET level translator

    In the following circuit diagram, an N-channel MOSFET and a built-in body diode are used to implement two-way communication.

    ZS24-U Module
  • NPN triode level translator

    In the following circuit diagram, an NPN triode is used to implement one-way communication.

    ZS24-U Module

Design specification

Power supply

  • 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.
  • The module and MCU communicates with I/O pins so you cannot power off the module individually. Otherwise, the current from the MCU might flow into the power management system of the module, which causes the module to be stuck.

Control pins

  • The reset pin or enable 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 SWS pin of the module is used for firmware flashing. It is not recommended to use it as GPIO. You can leave it floating or add a pull-up resistor.
  • Other unused pins can float.
  • For more information, see ZS24-U Module Datasheet.

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 efficiency.

  • 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.

  • Try to increase the distance from the top shell to the antenna to minimize the impact on antenna performance.

    ZS24-U Module
  • Try to increase the distance from the upper and bottom shells to the antenna to minimize the impact on antenna performance.

    ZS24-U Module
  • Keep the module away from speakers, power switches, cameras, HDMI, USB, and other high-speed signals to avoid interference.

Antenna placement

  • Horizontal placement: We recommend that you place the module at the edge of the backplane with the antenna facing outward.

    Flush the module’s GND terminal with the backplane’s GND terminal. Both terminals are fully connected.

    ZS24-U Module
  • Embedded placement: Embed the module into the backplane through a slot.

    • The slot is flushed with or deeper than the module’s GND terminal.

    • The side of the slot must be 15 mm or farther from the module’s board edge.

      A wider slot can achieve better performance that is still weaker than that of horizontal placement.

      ZS24-U Module
  • Vertical placement: Insert the module vertically into the backplane slot with the antenna facing upward. The module’s GND terminal and the backplane’s GND terminal must be fully connected. We recommend that you keep a clearance distance of 15 mm or more around the antenna.

    If the RF antenna of the module is traced along the ANT pin and backplane (the PCB board on which the module is mounted) to connect to the antenna, the RF trace (ANT pin is broken out) on the backplane should be surrounded with ground and designed to provide 50Ω impedance matching. The bottom layer under the RF trace should not be traced to ensure a complete ground plane. If you do not use the companion antenna of the module, you can reserve the π network for antenna matching.