Automatic coding circuit of battery simulator

By using the automatic coding circuit and the coding unit composed of the optocoupler chip and the MCU, the problem of tedious and erroneous manual coding in the battery simulation system is solved, the automatic identification and coding of the module is realized, and the accuracy and safety of the circuit are improved.

CN223309847UActive Publication Date: 2025-09-05SHANGHAI CICHENG-TECH LTD CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422642188.1
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-09-05
Estimated Expiration
2034-10-31

AI Technical Summary

Technical Problem

In a battery simulation system, when multiple simulator modules are used in series, manual coding is tedious and error-prone, leading to confusing assembly and difficulty in replacement.

Method used

It adopts automatic encoding circuit and automatic encoding unit composed of optocoupler chip and MCU, realizes automatic identification and encoding of modules through PWM signal and square wave signal, and uses optocoupler for signal isolation to ensure circuit safety and stability.

Benefits of technology

Reduce human resource waste, improve coding accuracy, reduce error rate, improve circuit safety and stability, and realize flexible automatic coding of modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223309847U_ABST
    Figure CN223309847U_ABST
Patent Text Reader

Abstract

The utility model aims to provide an automatic coding circuit of a battery simulator, which belongs to the field of circuits and comprises a first automatic coding unit, a second automatic coding unit, a third automatic coding unit... an nth automatic coding unit, a POWER + and a POWER-. And connecting according to the composition and connection mode of the first automatic coding unit, the second coding unit and the third coding unit until connecting to the nth automatic coding unit. According to the utility model, the waste of human resources can be reduced, the cost is saved, errors caused by manual coding can be reduced, and the coding accuracy is improved. And an isolation circuit is completely adopted, and the input end and the output end of the photoelectric coupler are mutually isolated, so that the safety and the stability of the circuit are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to a circuit, in particular to a battery simulator circuit. Background Art

[0002] In a battery simulation system, when multiple battery simulator modules are used in series, each individual module must be coded and identified. Manually dialing or software-coding the product IDs individually is labor-intensive and can lead to errors in the order of the numbers, potentially causing assembly confusion. Furthermore, if a module fails, replacement is difficult because the products are identical, requiring coding before replacement. Summary of the Invention

[0003] The purpose of the utility model is to provide a battery simulator automatic encoding circuit which can not only reduce the waste of human resources and save costs, but also reduce errors caused by manual encoding and improve encoding accuracy.

[0004] The purpose of this utility model is achieved in this way:

[0005] The utility model provides a battery simulator automatic encoding circuit, which is characterized by comprising a first automatic encoding unit, a second automatic encoding unit, a third automatic encoding unit ... an nth automatic encoding unit, POWER+, POWER-;

[0006] The first automatic encoding unit includes MCU1, optocoupler chip U1, optocoupler chip U2, data signal input port DI-1, R1, R2, R3, R4, DI-IN, DI-OUT, POWER-OUT1, POWER+ is connected to the data signal input port DI-1 and connected to U1 through R1, U1 is connected to POWER0OUT1, DI-1 is connected to U2 through R3, MCU1's DI-IN recognizes a low-level signal through R4, and MCU1's DI-OUT is connected to U1 through R2;

[0007] The second encoding unit includes MCU2, optocoupler chip U3, optocoupler chip U4, R5, R6, R7, R8, DI-IN, DI-OUT, and POWER-OUT2. POWER+ is connected to U3 through R5, U3 is connected to POWER-OUT2, POWER-OUT1 is connected to U4 through R7, MCU2's DI-IN recognizes low-level signals through R8, and MCU2's DI-OUT is connected to U3 through R6.

[0008] The third encoding unit includes MCU3 optocoupler chip U5, optocoupler chip U6, R9, R10, R11, R12, DI-IN, DI-OUT, and POWER-OUT3. POWER+ is connected to U5 through R9, U5 is connected to POWER-OUT3, and POWER-OUT2 is connected to U6 through R11. MCU3's DI-IN recognizes low-level signals through R12, and MCU3's DI-OUT is connected to U5 through R10.

[0009] Connect according to the composition and connection mode of the first automatic encoding unit, the second encoding unit, and the third encoding unit until they are connected to the nth automatic encoding unit.

[0010] The utility model may also include:

[0011] 1. The GPIO_DI-IN port of MCU1 in the first automatic encoding unit recognizes the low-level signal through R4, and adopts the PWM pulse width modulation output mode. The GPIO_DI-OUT of MCU1 outputs PWM, which is turned on by R2 to the optocoupler isolation chip U1. The electrical signal passes through the POWER-OUT1 port and R7 to turn on U4. The GPIO_DI-IN port of MCU2 in the second encoding unit recognizes the low-level signal through R8, and delays to determine whether it is the pulse width signal specified by PWM. In this way, the second encoding unit is confirmed, the GPIO_DI-OUT of MCU2 outputs PWM, which is turned on by R3 to U3. The electrical signal passes through the POWER-OUT2 port, R11, U6, and R12 and is recognized by the GPIO port of MCU3. The GPIO_DI-OUT of MCU3 continues to output PWM; and so on, until the signal is transmitted to MCUn of the nth automatic encoding unit.

[0012] 2. Turn on U2 through R3, and the DI-IN port of MCU1 in the first automatic encoding unit recognizes the low-level signal through R4. MCU1 outputs a 1Hz square wave and is set as the first automatic encoding unit; turn on U1 through R2, and finally transmit it to MCU2 through the POWER-OUT1 port, R7, U4, and R8. MCU2 outputs a 2Hz square wave and is set as the second automatic encoding unit; in the same way, until MCUn outputs a square wave of nHz, it is set as the nth automatic encoding unit. If no new device receiving the square wave signal is detected within the specified time, the nth automatic encoding unit is the last device, and the automatic encoding process of the battery simulator is completed.

[0013] The advantages of this utility model include: it not only reduces human resource waste and saves costs, but also reduces errors caused by manual coding and improves coding accuracy. Furthermore, it fully utilizes an isolated circuit, using a photoelectric coupler to isolate the input and output terminals from each other, improving circuit safety and stability. The use of multiple software automatic coding solutions increases the flexibility of the battery simulator's automatic coding. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A wiring diagram for the circuit;

[0015] Figure 2 This is a circuit diagram of the utility model. DETAILED DESCRIPTION

[0016] The present invention is described in more detail below with reference to the accompanying drawings:

[0017] Combine Figure 1-2 , Figure 1 This is the actual wiring diagram of the circuit. Multiple simulator modules are connected in series. The POWER+ in the wiring diagram is connected to the DI-1 data signal input port. DO-1 is the data signal control output port and is connected to the DI-2 of the next machine. Figure 2 This is the schematic diagram of the automatic encoding circuit. POWER+ is connected to DI-1, powering the optocoupler chip U2 through current-limiting resistor R3. MCU1's GPIO_DI-IN port on board 1 detects a low-level signal through pull-up resistor R4. After a delay, the signal remains low, and the host computer software displays the default setting as board 1. PWM (pulse width modulation) is also used. MCU1's GPIO_DI-OUT outputs a PWM signal with a specific duty cycle (for example, 95%). This signal passes through current-limiting resistor R2 to the optocoupler isolation chip U1, turning it on. The signal then passes through POWER-OUT1 and current-limiting resistor R7, turning on the optocoupler chip U4. MCU2's GPIO_DI-IN port on board 2 detects a low-level signal through pull-up resistor R8. After a delay, it determines whether the signal is the specified pulse width. This confirms board 2 and is displayed on the host computer. MCU2's GPIO_DI-OUT outputs a PWM with a certain duty cycle (for example, 90%), which is then passed through the current-limiting resistor R3 to the optocoupler chip U3, causing it to conduct. The electrical signal is recognized by the GPIO port of MCU3 through the POWER-OUT2 port, the current-limiting resistor R11, the optocoupler chip U6, and the pull-up resistor R12. The upper computer software displays the setting as board number 3, and MCU3's GPIO_DI-OUT continues to output a PWM with a certain duty cycle. Similarly, the battery simulators are numbered and automatically encoded. Until the signal is transmitted to MCUn, the software cannot detect a new receiving board within a certain period of time. The encoding process is terminated, and only one encoding pass is required for long-term use. This completes the automatic encoding process of the battery simulator.

[0018] In addition to using PWM, this circuit can also achieve automatic encoding by varying the output frequency. Taking board 1 as an example, power is supplied to the circuit, and optocoupler chip U2 is turned on via current-limiting resistor R3. The DI-IN port of MCU1 on board 1 detects a low-level signal through pull-up resistor R4. The software is programmed to cause MCU1 to output a 1Hz square wave, setting it as board 1. Current-limiting resistor R2 turns on optocoupler chip U1, which is ultimately transmitted to MCU2 via POWER-OUT1, current-limiting resistor R7, optocoupler chip U4, and pull-up resistor R8. The software is programmed to cause MCU2 to output a 2Hz square wave, setting it as board 2. This process continues until MCUn outputs a square wave of nHz, setting it as board n. If the software detects no new device receiving the square wave signal within a certain period of time, it assumes that board n is the last device, completing the automatic encoding process for the battery simulator.

Claims

1. A battery simulator automatic encoding circuit, characterized by: including a first automatic encoding unit, a second automatic encoding unit, a third automatic encoding unit ... an nth automatic encoding unit, POWER+, and POWER-; The first automatic encoding unit includes MCU1, optocoupler chip U1, optocoupler chip U2, data signal input port DI-1, R1, R2, R3, R4, DI-IN, DI-OUT, POWER-OUT1, POWER+ is connected to the data signal input port DI-1 and connected to U1 through R1, U1 is connected to POWER0OUT1, DI-1 is connected to U2 through R3, MCU1's DI-IN recognizes a low-level signal through R4, and MCU1's DI-OUT is connected to U1 through R2; The second encoding unit includes MCU2, optocoupler chip U3, optocoupler chip U4, R5, R6, R7, R8, DI-IN, DI-OUT, and POWER-OUT2. POWER+ is connected to U3 through R5, U3 is connected to POWER-OUT2, POWER-OUT1 is connected to U4 through R7, MCU2's DI-IN recognizes low-level signals through R8, and MCU2's DI-OUT is connected to U3 through R6. The third encoding unit includes MCU3 optocoupler chip U5, optocoupler chip U6, R9, R10, R11, R12, DI-IN, DI-OUT, and POWER-OUT3. POWER+ is connected to U5 through R9, U5 is connected to POWER-OUT3, and POWER-OUT2 is connected to U6 through R11. MCU3's DI-IN recognizes low-level signals through R12, and MCU3's DI-OUT is connected to U5 through R10. Connect according to the composition and connection mode of the first automatic encoding unit, the second encoding unit, and the third encoding unit until they are connected to the nth automatic encoding unit.

2. The battery simulator automatic encoding circuit according to claim 1, characterized in that: The GPIO_DI-IN port of MCU1 in the first automatic encoding unit recognizes the low-level signal through R4, and adopts the PWM pulse width modulation output mode. The GPIO_DI-OUT of MCU1 outputs PWM, which is turned on by R2 to the optocoupler isolation chip U1. The electrical signal passes through the POWER-OUT1 port and R7 to turn on U4. The GPIO_DI-IN port of MCU2 in the second encoding unit recognizes the low-level signal through R8, and delays to determine whether it is the pulse width signal specified by PWM. In this way, the second encoding unit is confirmed, the GPIO_DI-OUT of MCU2 outputs PWM, which is turned on by R3 to U3, and the electrical signal is recognized by the GPIO port of MCU3 through the POWER-OUT2 port, R11, U6, and R12. The GPIO_DI-OUT of MCU3 continues to output PWM; and so on, until the signal is transmitted to MCUn of the nth automatic encoding unit.

3. The battery simulator automatic encoding circuit according to claim 1, characterized in that: U2 is turned on through R3, and the DI-IN port of MCU1 in the first automatic encoding unit recognizes the low-level signal through R4. MCU1 outputs a 1Hz square wave and is set as the first automatic encoding unit; U1 is turned on through R2, and finally transmitted to MCU2 through the POWER-OUT1 port, R7, U4, and R8. MCU2 outputs a 2Hz square wave and is set as the second automatic encoding unit; in the same way, until MCUn outputs a square wave of nHz, it is set as the nth automatic encoding unit. If no new device receiving the square wave signal is detected within the specified time, the nth automatic encoding unit is the last device, and the automatic encoding process of the battery simulator is completed.