Single-line identification circuit capable of identifying charger access and realizing one-key startup
By designing a single-wire recognition circuit in E-Bike bicycles, using the circuit combination of instrument and battery, the charger access and one-click boot are realized, solving the problems of numerous wire harnesses in the existing technology and improving production efficiency.
Patent Information
- Application Number
- CN202411038875.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-06
AI Technical Summary
The battery pack of existing E-Bike bicycles needs to be turned on after each shutdown, and two identification wires are required for one-click power-on and charging signals, resulting in a large number of wire harnesses and affecting production efficiency.
Design a single-wire identification circuit, which uses a specific circuit combination of instruments, batteries and chargers, including a 3.3V power module, resistor, power tube, MCU and interrupt processing circuit, and realizes charger access and one-button boot through a signal line , reduce the use of wire harness.
The functions of charger plug-in and one-click power-on are realized, reducing the use of wire harnesses, improving production efficiency, and no need to modify the instrument and charger.
Smart Images

Figure CN119093521A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical fields of electric scooters, electric bicycles, electric power-assisted vehicles, electric motorcycles, etc., and in particular to a single-line identification circuit which can identify charger access and start the machine with one key. Background Art
[0002] Since the battery pack discharge button of the E-Bike is on the battery, you need to press the button on the battery to turn on the output every time you turn off the bike. Now, the trend of using the power button on the instrument to start the whole system with one button is becoming more and more obvious. However, the existing one-button start-up signal and the charging handshake signal each require an identification line. In actual use, two identification lines are a bit cumbersome. Summary of the invention
[0003] In order to overcome the shortcomings of the prior art, the present invention provides a single-line identification circuit that can both identify the connection of a charger and start the machine with one button. Only one signal line is required, and there is no need to change the instrument and the charger. Not only can the charger be identified, but the machine can also be started with one button, which reduces the use of wiring harnesses and improves production efficiency.
[0004] In order to achieve the above purpose, a single-line identification circuit is designed, which can identify the connection of the charger and start the machine with one key, including an instrument, a battery, and a charger, and is characterized by: The instrument is provided with a 3.3V power supply module, an internal circuit of the instrument, and a first resistor; The charger is provided with a charger internal circuit, a second resistor, a third resistor, and a first power tube; The battery is internally provided with a 3.3V power supply control circuit, an interrupt processing circuit, an internal MCU of the battery, a first capacitor, a second capacitor, a fourth resistor, a fifth resistor, and a diode; The output end of the 3.3V power module in the instrument is connected to one end of the first resistor, and the other end of the first resistor is respectively connected to the internal circuit of the instrument, the second resistor and one end of the third resistor in the charger, one end of the first capacitor in the battery and the cathode of the diode; the other end of the second resistor is connected to one end of the internal circuit of the charger, the other end of the internal circuit of the charger is connected to the gate of the first power tube, the source of the first power tube is grounded, and the drain electrode of the first power tube is connected to the other end of the third resistor; the other end of the first capacitor is grounded, the anode of the diode is respectively connected to one end of the fourth resistor, one end of the fifth resistor, and the interrupt processing circuit, the other end of the fourth resistor is connected to the 3.3V power control circuit, the other end of the fifth resistor is respectively connected to one end of the second capacitor and the internal MCU of the battery, the internal MCU of the battery is connected to the interrupt processing circuit, and the other end of the second capacitor is grounded.
[0005] The interrupt processing circuit in the battery includes a comparator, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a third capacitor, a fourth capacitor, and a fifth capacitor. One end of the fourth resistor is connected to one end of the seventh resistor, and the other end of the seventh resistor is respectively connected to one end of the fourth capacitor and the positive input end of the comparator; the reverse input end of the comparator is respectively connected to one end of the sixth resistor, one end of the ninth resistor, and one end of the third capacitor, the other end of the sixth resistor is respectively connected to the MCU_3V3 voltage, one end of the fifth capacitor, the positive power supply of the comparator, and one end of the eighth resistor, and the other end of the eighth resistor is respectively connected to the output end of the comparator and the MCU inside the battery; the negative power supply of the comparator, the other end of the third capacitor, the other end of the fourth capacitor, the other end of the fifth capacitor, and the other end of the resistor are combined and grounded.
[0006] The 3.3V power supply control circuit in the battery includes a second power tube, a third power tube, a tenth resistor, an eleventh resistor, and a twelfth resistor. The other end of the fourth resistor is connected to the source of the second power tube, the drain electrode of the second power tube is respectively connected to the MCU_3V3 voltage and one end of the tenth resistor, the other end of the tenth resistor is respectively connected to the gate of the second power tube and the drain electrode of the third power tube, the gate of the third power tube is respectively connected to one end of the eleventh resistor and one end of the twelfth resistor, the other end of the eleventh resistor is connected to the Wake_EN control signal, and the other end of the twelfth resistor and the source of the third power tube are combined and grounded.
[0007] The cathode of the diode is connected to one end of the thirteenth resistor, and the other end of the thirteenth resistor is connected to the instrument.
[0008] The other end of the fifth resistor is connected to one end of the bidirectional diode, and the other end of the bidirectional diode is grounded.
[0009] Compared with the prior art, the present invention provides a single-line identification circuit that can both identify the connection of a charger and start the machine with one button. It only requires one signal line and does not require changes to the instrument and the charger. It can not only identify the insertion of a charger, but also start the machine with one button, thereby reducing the use of wiring harnesses and improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is the overall circuit framework diagram of the present invention.
[0011] Figure 2 The circuit diagram of the 3.3V power supply control circuit and the interrupt processing circuit in the present invention. DETAILED DESCRIPTION
[0012] The present invention will be further described below with reference to the accompanying drawings.
[0013] like Figure 1 , Figure 2As shown, the instrument is provided with a 3.3V power supply module, an internal circuit of the instrument, and a first resistor R1.
[0014] The charger includes an internal charger circuit, a second resistor R2, a third resistor R3, and a first power tube Q1.
[0015] The battery is internally provided with a 3.3V power supply control circuit, an interrupt processing circuit, an internal MCU of the battery, a first capacitor C1, a second capacitor C2, a fourth resistor R4, a fifth resistor R5, and a diode D1.
[0016] The output end of the 3.3V power module in the instrument is connected to one end of the first resistor R1, and the other end of the first resistor R1 is respectively connected to the internal circuit of the instrument, one end of the second resistor R2 and the third resistor R3 in the charger, one end of the first capacitor C1 in the battery and the cathode of the diode D1; the other end of the second resistor R2 is connected to one end of the internal circuit of the charger, and the other end of the internal circuit of the charger is connected to the gate of the first power tube Q1, the source of the first power tube Q1 is grounded, and the drain electrode of the first power tube Q1 is connected to the other end of the third resistor R3; the other end of the first capacitor C1 is grounded, and the anode of the diode D1 is respectively connected to one end of the fourth resistor R4, one end of the fifth resistor R5, and the interrupt processing circuit, the other end of the fourth resistor R4 is connected to the 3.3V power control circuit, the other end of the fifth resistor R5 is respectively connected to one end of the second capacitor C2 and the internal MCU of the battery, the internal MCU of the battery is connected to the interrupt processing circuit, and the other end of the second capacitor C2 is grounded.
[0017] The interrupt processing circuit in the battery includes a comparator U1, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a third capacitor C3, a fourth capacitor C4, and a fifth capacitor C5. One end of the fourth resistor R4 is connected to one end of the seventh resistor R7, and the other end of the seventh resistor R7 is respectively connected to one end of the fourth capacitor C4 and the positive input end of the comparator U1; the reverse input end of the comparator U1 is respectively connected to one end of the sixth resistor R6, one end of the ninth resistor R9, and one end of the third capacitor C3, the other end of the sixth resistor R6 is respectively connected to the MCU_3V3 voltage, one end of the fifth capacitor C5, the positive power supply of the comparator U1, and one end of the eighth resistor R8, and the other end of the eighth resistor R8 is respectively connected to the output end of the comparator U1 and the MCU inside the battery; the negative power supply of the comparator U1, the other end of the third capacitor C3, the other end of the fourth capacitor C4, the other end of the fifth capacitor C5, and the other end of the resistor R9 are combined and grounded.
[0018] The 3.3V power supply control circuit inside the battery includes the second power transistor Q2, the third power transistor Q3, the tenth resistor R10, the eleventh resistor R11, and the twelfth resistor R12. The other end of the fourth resistor R4 is connected to the source of the second power transistor Q2. The drain electrode of the second power transistor Q2 is respectively connected to the MCU_3V3 voltage and one end of the tenth resistor R10. The other end of the tenth resistor R10 is respectively connected to the gate of the second power transistor Q2 and the drain electrode of the third power transistor Q3. The gate of the third power transistor Q3 is respectively connected to one end of the eleventh resistor R11 and one end of the twelfth resistor R12. The other end of the eleventh resistor R11 is connected to the Wake_EN control signal. The other end of the twelfth resistor R12 and the source of the third power transistor Q3 are combined and grounded.
[0019] The cathode of the diode D1 is connected to one end of the thirteenth resistor FM1, and the other end of the thirteenth resistor FM1 is connected to the instrument.
[0020] The other end of the fifth resistor R5 is connected to one end of the bidirectional diode SD1, and the other end of the bidirectional diode SD1 is grounded.
[0021] As Figure 1 shown, the button on the instrument is default connected to GND. When the button is pressed, the CHG_SIG signal is pulled low. At this time, the MCU inside the battery is activated through the interrupt processing circuit, and then through the acquisition circuit composed of the fifth resistor R5 and the second capacitor C2, it is judged whether it is a one-key startup signal or a charging signal according to the voltage of V_CS.
[0022] After the charger is connected, the internal circuit of the charger collects the voltage across the second resistor R2 to judge whether it is connected to the battery. If the charger judges that it has been connected to the battery, it turns on the first power transistor Q1. At this time, the MCU of the battery is activated through the interrupt processing circuit, and then it judges that the charger is connected according to the voltage on V_CS, thus realizing the bidirectional recognition of the charger and the battery connection.
[0023] By default, when V_CS < 0.5V, the button is pressed. When 1.4V < V_CS < 3V, the charger is connected. This value is for reference only and can be adjusted according to the resistance values of the third resistor R3 and the fourth resistor R4.
[0024] As Figure 2 shown, in the 3.3V power supply control circuit, Wake_EN controls the third power transistor Q3 to turn on, and then turns on the second power transistor Q2, and MCU_3V3 pulls up the fourth resistor R4.
[0025] When the battery is under-voltage or consumes power abnormally, Wake_EN is periodically turned on for monitoring to prevent the battery from being over-discharged and exhausted when the CHG_SIG signal at the port is shorted to GND.
[0026] In the interrupt processing circuit, the 3.3V voltage is divided by the sixth resistor R6 and the ninth resistor R9 and is given to the negative terminal of the comparator U1, which is set to 2.475V by default.
[0027] When CHG_SIG is not connected, the anode of diode D1 is pulled up, and WakeUP&CS output high level by default.
[0028] After CHG_SIG is connected, the instrument button is pressed or the first power tube Q1 in the charger is turned on. After the voltage is divided by the third resistor R3 in the charger, the anode of the diode D1 will be lower than the 2.475V set by the negative electrode of the comparator U1, and WakeUP&CS outputs a low level, recognizing that the power is on or the charger is plugged in.
Claims
1. A single-line identification circuit that can both identify the charger connection and start the device with one key, including an instrument, a battery, and a charger. Features: The instrument is provided with a 3.3V power supply module, an internal circuit of the instrument, and a first resistor (R1); The charger is provided with a charger internal circuit, a second resistor (R2), a third resistor (R3), and a first power tube (Q1); The battery is internally provided with a 3.3V power supply control circuit, an interrupt processing circuit, an internal MCU of the battery, a first capacitor (C1), a second capacitor (C2), a fourth resistor (R4), a fifth resistor (R5), and a diode (D1); The output end of the 3.3V power module in the meter is connected to one end of the first resistor (R1), and the other end of the first resistor (R1) is respectively connected to the internal circuit of the meter, one end of the second resistor (R2) and the third resistor (R3) in the charger, one end of the first capacitor (C1) in the battery and the cathode of the diode (D1); the other end of the second resistor (R2) is connected to one end of the internal circuit of the charger, and the other end of the internal circuit of the charger is connected to the gate of the first power tube (Q1), the source of the first power tube (Q1) is grounded, and the drain electrode of the first power tube (Q1) is connected to the other end of the third resistor (R3); the other end of the first capacitor (C1) is grounded, the anode of the diode (D1) is respectively connected to one end of the fourth resistor (R4), one end of the fifth resistor (R5), and the interrupt processing circuit, the other end of the fourth resistor (R4) is connected to the 3.3V power control circuit, the other end of the fifth resistor (R5) is respectively connected to one end of the second capacitor (C2) and the internal MCU of the battery, the internal MCU of the battery is connected to the interrupt processing circuit, and the other end of the second capacitor (C2) is grounded.
2. According to claim 1, a single-line identification circuit capable of both identifying charger connection and one-key startup, Features: The interrupt processing circuit in the battery comprises a comparator (U1), a sixth resistor (R6), a seventh resistor (R7), an eighth resistor (R8), a ninth resistor (R9), a third capacitor (C3), a fourth capacitor (C4), and a fifth capacitor (C5); one end of the fourth resistor (R4) is connected to one end of the seventh resistor (R7); the other end of the seventh resistor (R7) is respectively connected to one end of the fourth capacitor (C4) and the positive input end of the comparator (U1); the reverse input end of the comparator (U1) is respectively connected to one end of the sixth resistor (R6), the ninth resistor (R9), and the third capacitor (C3). One end of the battery (R9), one end of the third capacitor (C3), and the other end of the sixth resistor (R6) are respectively connected to the MCU_3V3 voltage, one end of the fifth capacitor (C5), the positive power supply of the comparator (U1), and one end of the eighth resistor (R8); the other end of the eighth resistor (R8) is respectively connected to the output end of the comparator (U1) and the MCU inside the battery; the negative power supply of the comparator (U1), the other end of the third capacitor (C3), the other end of the fourth capacitor (C4), the other end of the fifth capacitor (C5), and the other end of the resistor (R9) are combined and grounded.
3. According to claim 1, a single-line identification circuit capable of both identifying charger connection and one-key startup, Features: The 3.3V power supply control circuit in the battery comprises a second power tube (Q2), a third power tube (Q3), a tenth resistor (R10), an eleventh resistor (R11), and a twelfth resistor (R12); the other end of the fourth resistor (R4) is connected to the source of the second power tube (Q2); the drain electrode of the second power tube (Q2) is respectively connected to the MCU_3V3 voltage and one end of the tenth resistor (R10); the other end of the tenth resistor (R10) is respectively connected to the gate of the second power tube (Q2) and the drain electrode of the third power tube (Q3); the gate of the third power tube (Q3) is respectively connected to one end of the eleventh resistor (R11) and one end of the twelfth resistor (R12); the other end of the eleventh resistor (R11) is connected to the Wake_EN control signal; the other end of the twelfth resistor (R12) and the source of the third power tube (Q3) are combined and grounded.
4. According to claim 1, a single-line identification circuit capable of both identifying charger connection and one-key startup, Features: The cathode of the diode (D1) is connected to one end of the thirteenth resistor (FM1), and the other end of the thirteenth resistor (FM1) is connected to the instrument.
5. According to claim 1, a single-line identification circuit capable of both identifying charger connection and one-key startup, Features: The other end of the fifth resistor (R5) is connected to one end of the bidirectional diode (SD1), and the other end of the bidirectional diode (SD1) is grounded.
