1. Product Overview
The XY-DJ module is an intelligent battery charge and discharge control board designed to manage battery voltage within specified limits. It features undervoltage and overvoltage protection, automatic cut-off, and time control for charging and discharging cycles. This module also includes serial communication capabilities for real-time monitoring and control, making it suitable for various battery management applications.

Figure 1: XY-DJ DC 6-40V Battery Charger Discharger Board Module.
2. Safety & Warnings
Read all instructions before use. Failure to follow these instructions may result in damage to the product or personal injury.
- Warning: Keep the device and its cord out of reach of children under 3 years old.
- Keep away from children unless supervised by an adult.
- Do not use this product for purposes other than its intended use.
- Inspect the product before each use; do not use if damaged.
- Follow installation and operation guidelines to avoid injury.
- Do not expose to water or moisture.
3. Specifications
| Parameter | Value |
| Model | XY-DJ |
| Power Supply Voltage | DC 6-40V |
| Voltage Detection Range | DC 0-60V |
| Voltage Measurement Error | ± 0.1V |
| Charge/Discharge Time (OP) Range | 0 - 999 minutes |
| Dissipation Power | Low |
| Application | Computer (Control Systems) |
| Type | Voltage Regulator |
| Operating Temperature | Normal |
| Dimensions | 64mm x 40mm |

Figure 2: XY-DJ Module with dimensions.
4. Package Contents
- 1x XY-DJ DC 6-40V Battery Charger Discharger Board Module
5. Module Layout & Components
The XY-DJ module features a 3-digit LED display, a relay, input/output terminals, and four control buttons: STOP, SET, UP, and DOWN. It also has serial communication pins (GND, RX, TX) and a relay closing indicator.

Figure 3: XY-DJ Module component layout and connection points.
- VIN: Power Input Positive (DC 6-40V)
- GND: Power Input Negative
- STOP Button: Emergency stop, mode toggle
- SET Button: Enter/exit parameter setting, confirm selection
- UP Button: Increase value, navigate up
- DOWN Button: Decrease value, navigate down, switch display
- NC: Relay Normally Closed terminal
- COM: Relay Common terminal
- NO: Relay Normally Open terminal
- V+: Voltage Detection Input Positive (DC 0-60V)
- V-: Voltage Detection Input Negative
- Relay Closing Indicator: LED illuminates when relay is active.
- GND, RX, TX: Serial Communication Pins
- Out Gnd: High-level output (5.0V/100mA) for peripheral control.
6. Setup
6.1. Pre-Installation Considerations
Prior to integration, ensure that the operational environment aligns with specified technical parameters. It is recommended to verify compatibility with existing systems to facilitate seamless implementation.
6.2. Wiring Diagram
Refer to Figure 3 for the module's connection points. Connect the power supply (DC 6-40V) to the VIN (+) and GND (-) terminals. Connect the battery or device to be monitored/controlled to the V+ and V- terminals for voltage detection (DC 0-60V). The relay output (NC, COM, NO) can be used to control external loads based on the set voltage conditions.
6.3. Installation Process
Follow established procedures for component placement and connection. Proper handling is essential to maintain integrity and prevent potential performance degradation.
7. Operating Instructions
7.1. Module Highlights
- Intelligent battery charge and discharge control.
- Configurable charge and discharge time.
- Serial communication for real-time monitoring of relay status.
- Additional signal output (high when relay conditions are met) for controlling other equipment.
- One-key emergency stop function (STOP button) with reverse protection.
7.2. Operating Modes
The module operates based on a voltage upper limit (UL1) and a voltage lower limit (nL1), where UL1 must be greater than nL1.
- U-1: Charging Measurement: The relay pulls (activates) when the measured voltage is lower than nL1 and disconnects when the voltage exceeds UL1.
- U-2: Charge Measurement Time Control: Set a charging time (OP). The relay pulls when voltage is below nL1, then starts the OP countdown. The relay turns off after OP time or if the voltage exceeds UL1.
- U-3: Discharge Detection: The relay turns off when the measured voltage is lower than nL1 and pulls when the voltage is above UL1.
- U-4: Discharge Detection Time Control: Set a discharge time (OP). The relay pulls when voltage is above UL1, then starts the OP countdown. The relay turns off after OP time or if the voltage drops below nL1.
- U-5: Voltage In Range (Relay Pulls): The relay pulls when the measured voltage is between nL1 and UL1. It remains open (off) in other circumstances.
- U-6: Voltage Outside Interval (Relay Pulls): The relay pulls when the measured voltage is below nL1 or higher than UL1. It remains off otherwise.
7.3. Parameter Setting
- First, determine the required operating mode based on your application.
- From the main interface (after power-on, the module briefly flashes the current mode, default U-1), press and hold the SET button for 2 seconds, then release to enter the mode selection interface. Use the UP and DOWN buttons to select the desired mode (U-1 to U-6).
- After selecting the mode, press the SET button to configure its parameters. The parameter to be set (UL1 voltage upper limit, nL1 voltage lower limit, OP conduction time) will flash. Use the UP and DOWN buttons to increase or decrease the value. You can hold the buttons for rapid adjustment. Press SET again to move to the next parameter for the current mode.
- Once all parameters are set, press and hold the SET button for 2 seconds to save the settings. The current setting mode will flash, and the module will return to the main interface.
- In the main interface, press the DOWN button to switch the display between voltage and time.
7.4. Additional Features
- Data Upload: Through the serial port, the module can upload voltage and run time data every 1 second for post-analysis.
- Serial Port Parameter Settings: Modes and parameters can be conveniently set via the serial port.
- Extra Signal Output: An additional signal output pin provides a high signal when the relay conditions are met, and a low signal otherwise.
7.5. Serial Communication (TTL Level)
Communication Standard:
- Baud Rate: 115200 bps
- Data Bits: 8
- Stop Bit: 1
- Parity: None
- Flow Control: None
Serial Commands:
"U-X": Set Operating mode (X from 1 to 6)"000": Timing function (0 = disable, 001-999 = enable timing in minutes)"DwXX.X": Set lower limit voltage (e.g.,"Dw02.9"for 2.9V)"UpXX.X": Set upper limit voltage (e.g.,"Up10.1"for 10.1V)"Get": Request current settings"On": Force relay to turn on"Off": Force relay to turn off"Start": Begin uploading data"Stop": Halt data upload
Commands can be combined by separating them with a comma (e.g., "Dw02.9,Up10.1" sets lower limit to 2.9V and upper limit to 10.1V).
Upload Status Format:
"XX.XV, HH:MM:SS, STATUS\r\n"
XX.XV: Measured voltageHH:MM:SS: Relay on timeSTATUS:OP(relay on),CL(relay off)
7.6. STOP Key Function Expansion
Relay Enable Mode:
- ON: The relay is allowed to conduct during the set OP (conduction) time.
- OFF: The relay is disabled and remains off, regardless of voltage conditions.
Press the STOP button on the main interface to switch between ON and OFF. The current status will flash, then return to the main interface. This acts as an emergency stop to quickly disconnect the relay.
7.7. Sleep Mode
- C-P Sleep Mode: If no operation occurs within five minutes, the digital display automatically shuts off, but the program continues to operate normally.
- O-d Normal Mode: The digital display remains continuously on.
Press and hold the STOP button for 2 seconds to toggle between C-P and O-d states. The current state will flash, then return to the main interface.
Video 1: Product demonstration of the XY-DJ module.
8. Maintenance & Care
Implement routine maintenance protocols to uphold product standards. Periodic inspections are encouraged to ensure ongoing compliance with quality expectations. Store the module in a dry place. Keep away from children.
9. Troubleshooting
- Module Not Powering On: Ensure correct DC 6-40V input voltage and polarity.
- Relay Not Actuating: Verify that the voltage limits (UL1, nL1) and operating mode are correctly configured. Check if the relay enable mode is set to ON.
- Incorrect Voltage Readings: Ensure proper connection to V+ and V- terminals. Verify the battery voltage is within the DC 0-60V detection range.
- Serial Communication Issues: Check baud rate, data bits, stop bits, and parity settings. Ensure correct RX/TX connections.
10. User Tips
- For critical applications, always test the module's behavior with a dummy load before connecting to the final system.
- When setting voltage limits, allow for a small hysteresis (difference between turn-on and turn-off points) to prevent rapid relay switching near the threshold.
11. Compliance Information
CE Marking
This product conforms to the following EU Directives:
- 2014/35/EU (Low Voltage Directive)
- 2014/30/EU (Electromagnetic Compatibility Directive)
RoHS Declaration
This product is in compliance with Directive 2011/65/EU and its amendment (EU) 2015/863, concerning the restriction of hazardous substances (Pb, Cd, Hg, etc.) in electrical and electronic equipment.
12. Manufacturer & Support
Manufacturer
Company Name: Shenzhen Zheng Yi Electronic Technology Co., Ltd
Full Address: Jia An Road XA 41 D3-6F, Bao An District, ShenZhen, Guangdong Province, China
Email: 1020636662@qq.com
EU Authorized Representative
Company Name: eVatmaster Consulting GmbH
Full Address: Raiffeisen Street2 B11,63110 Rodgau, Hessen, Germany
Email: contact@evatmaster.com
For further details, consult the official documentation or contact our support team.