Shared charger power supply line detection system and shared charger power supply line detection method

文档序号:1286011 发布日期:2020-08-28 浏览:18次 中文

阅读说明:本技术 共享充电宝供电线检测系统及共享充电宝供电线检测方法 (Shared charger power supply line detection system and shared charger power supply line detection method ) 是由 佘飞翔 蔡光渊 李晓炜 徐培峰 张耀榆 叶新福 柏赢 周晨 于 2020-05-06 设计创作,主要内容包括:本发明提供了一种共享充电宝供电线检测系统及共享充电宝供电线检测方法,包括如下任一种或任多种供电线检测系统:Micro-USB供电线检测系统,Type-C供电线检测系统,Lightning供电线检测系统;还包括Micro-USB供电线检测方法,Type-C供电线检测方法,Lightning供电线检测方法。本发明结构简单合理,采用充电宝供电线检测系统,通过MCU芯片检测电压和电平高低来检测供电线是否损坏,解决了共享充电宝由于供电线损坏导致租借出去后无法使用的问题。(The invention provides a shared charger baby power supply line detection system and a shared charger baby power supply line detection method, which comprise any one or more of the following power supply line detection systems: the system comprises a Micro-USB power supply line detection system, a Type-C power supply line detection system and a Lightning power supply line detection system; the method also comprises a Micro-USB power supply line detection method, a Type-C power supply line detection method and a Lightning power supply line detection method. The power supply line detection system for the charge pal is simple and reasonable in structure, the MCU chip is adopted to detect voltage and level, so that whether the power supply line is damaged or not is detected, and the problem that the shared charge pal cannot be used after being rented due to the damage of the power supply line is solved.)

1. A shared charger baby Micro-USB power supply line detection system is characterized by comprising a Micro-USB power supply line and an MCU (Micro control unit), wherein the MCU is connected with a charging cabinet, the charging cabinet can accommodate a charger baby, and the Micro-USB power supply line comprises a first positive line, a first negative line and a first detection line;

a resistor R2 is connected between one end of the first positive wire and one end of the first detection wire, and a resistor R3 is connected between one end of the first detection wire and one end of the first negative wire;

the other end of the first positive wire is connected with the positive output of the charger, the other end of the first detection wire is respectively connected with a first pin of the MCU, one polar plate of the capacitor C29 and one end of the resistor R36, and the other end of the first negative wire is respectively connected with the GND2, the other polar plate of the capacitor C29 and the other end of the resistor R36;

GND2 is connected to the drain of MOS transistor Q3, the source of MOS transistor Q3 is connected to GND, and the gate of MOS transistor Q3 is connected to the second pin of MCU and ground GND, respectively.

2. The shared charger Micro-USB power supply line detection system as claimed in claim 1, wherein the MCU employs HT32F50230, the first pin of the MCU is PA7 pin, and the second pin of the MCU is PA15 pin.

3. The shared charger Type-C power supply line detection system is characterized by comprising a Type-C power supply line and an MCU (microprogrammed control unit), wherein the MCU is connected with a charging cabinet, the charging cabinet can accommodate a charger, and the Type-C power supply line comprises a second positive electrode line, a second negative electrode line and a second detection line;

a resistor R4 is connected between one end of the second positive wire and one end of the second detection wire, and a resistor R5 is connected between one end of the second detection wire and one end of the second negative wire;

the other end of the second positive wire is connected with the positive output of the charger, the other end of the second detection wire is respectively connected with a third pin of the MCU, one polar plate of the capacitor C30 and one end of the resistor R17, and the other end of the second negative wire is respectively connected with the GND2, the other polar plate of the capacitor C30 and the other end of the resistor R17;

the GND2 is connected with the drain electrode of the MOS tube Q3, the source electrode of the MOS tube Q3 is connected with the GND, and the grid electrode of the MOS tube Q3 is respectively connected with the second pin of the MCU and the ground wire GND;

the MCU adopts HT32F50230, a third pin of the MCU is a PA6 pin, and a second pin of the MCU is a PA15 pin.

4. A shared charger Lightning power supply line detection system is characterized by comprising a Lightning power supply line and an MCU (micro control unit), wherein the MCU is connected with a charging cabinet, the charging cabinet can accommodate a charger, and the Lightning power supply line comprises a third positive line and a third negative line;

a resistor R1 is connected between one end of a third positive wire and one end of a third negative wire, the other end of the third positive wire is connected with the positive output of the charger, the other end of the third negative wire is respectively connected with a resistor R38, a fourth pin of the MCU and a drain electrode of the MOS tube Q7, the resistor R38 is connected with a ground wire GND, a source electrode of the MOS tube Q7 is connected with a GND2, and a grid electrode of the MOS tube Q7 is respectively connected with a fifth pin of the MCU and the GND 2;

GND2 is connected to the drain of MOS transistor Q3, the source of MOS transistor Q3 is connected to GND, and the gate of MOS transistor Q3 is connected to the second pin of MCU and ground GND, respectively.

5. The system as claimed in claim 4, wherein the MCU employs HT32F50230, the fourth pin of the MCU is PB4 pin, the fifth pin of the MCU is PB3 pin, and the second pin of the MCU is PA15 pin;

the resistance of the resistor R38 can enable the voltage detected by the fourth pin PB4 of the MCU to be higher than the high level of the MCU when the power supply line is intact and the MOS transistor Q7 is not conducted.

6. A sharing treasured power supply line detecting system that charges, includes any following multiple power supply line detecting system:

-the Micro-USB power supply line detection system of claim 2;

-the Type-C supply line detection system of claim 3;

-the Lightning supply line detection system of claim 5.

7. A shared charger baby Micro-USB power supply line detection method is characterized in that the shared charger baby Micro-USB power supply line detection system of claim 2 is adopted, and the method comprises the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure;

step 2: the second pin PA15 of the MCU outputs high level to turn on the MOS transistor Q3, so that the negative wire is connected with the ground wire GND;

and step 3: the first pin PA7 of the MCU collects voltage, and when the collected voltage is between A and B, the Micro-USB power supply line is judged to be intact; when the collected voltage is not between A and B, judging that the Micro-USB power supply line is damaged; wherein:

VDDminthe minimum value of the power supply voltage for the MCU;

and 4, step 4: if the MCU judges that the Micro-USB power supply line is intact, a signal that the charger can borrow outside is sent to the charging cabinet; if the MCU judges that the Micro-USB power supply line is damaged, a signal that the charger cannot be lent is sent to the charging cabinet.

8. A method for detecting a shared charger Type-C power supply line, which is characterized in that the shared charger Type-C power supply line detection system of claim 3 is adopted, and comprises the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure;

step 2: the second pin PA15 of the MCU outputs high level to turn on the MOS transistor Q3, so that the negative wire is connected with the ground wire GND;

and step 3: the first pin PA6 of the MCU collects voltage, and when the collected voltage is between C-D, the Type-C power supply line is judged to be intact; when the collected voltage is not between C and D, judging that the Type-C power supply line is damaged; wherein:

VDDminthe minimum value of the power supply voltage for the MCU;

and 4, step 4: if the MCU judges that the Type-C power supply line is intact, a signal that the charger can borrow the power supply outside is sent to the charging cabinet; if MCU judges Type-C power supply line and damages, then send the precious signal that can not lend outside of charging to the cabinet that charges.

9. A method for detecting a shared charger Lightning power supply line, which is characterized by using the system for detecting a shared charger Lightning power supply line of claim 5, comprising the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure;

step 2: before the charging cabinet charges the charger baby, the MOS tube Q7 is in a conducting state, and when the charging cabinet charges the charger baby, the MCU fifth pin PB3 outputs a low level to close the MOS tube Q7;

and step 3: the fourth pin PB4 of the MCU collects voltage, and when high level is collected, the Lightning power supply line is judged to be intact; when the low level is collected, judging that the Lightning power supply line is damaged;

and 4, step 4: if the MCU judges that the Lightning power supply line is intact, a signal that the charger can be lent is sent to the charging cabinet; if MCU judges the Lightning power supply line to damage, then send the signal that the treasured of charging can not borrow outside to the cabinet that charges.

10. A shared charger baby power supply line detection method is characterized in that the shared charger baby power supply line detection system of claim 6 is adopted,

the Micro-USB power supply line detection system adopts the shared charger Micro-USB power supply line detection method of claim 7 for detection,

the Type-C power supply line detection system adopts the shared charger Type-C power supply line detection method of claim 8,

the Lightning power line detection system adopts the Lightning power line detection method of claim 9,

the plurality of power supply line detection systems detect simultaneously, and can borrow the power supply line only when the plurality of power supply line detection systems all judge that corresponding power supply line is intact, all send the signal that can borrow outward to the cabinet that charges.

Technical Field

The invention relates to the technical field of shared power banks, in particular to a shared power bank power supply line detection system and a shared power bank power supply line detection method.

Background

The mobile power supply is also called as a charger, and is mainly used for charging electronic equipment such as mobile phones and tablet computers, and mobile and portable charging of the electronic equipment is achieved. However, when people go out, not everyone can carry the treasured that charges, therefore the sharing treasured that charges is suitable for fortune comes to borrow the people that need. Because the sharing treasured that charges is used for the user to borrow, therefore for the convenience of customers borrows, generally will install the power supply line on the sharing treasured that charges. However, if the power supply line damages, then can't realize charging when the treasured that charges is borrowed to the user, so it is necessary to detect the precious power supply line that charges, ensures that the treasured that charges that the user borrowed can normal use.

Patent document with publication number CN107393177A discloses a treasured sharing system charges, including sharing the treasured that charges, treasured shared rack that charges and remote server, be equipped with on the sharing the treasured that charges and be used for sending the charging wire to treasured shared rack that charges and receive the detection mechanism of the confirmation information in this sharing treasured's of charging accomodate chamber, be equipped with the confirmation information that is used for monitoring detection mechanism in the treasured shared rack that charges in order to confirm the sharing that inserts in the holding chamber that charges and charge on the treasured and receive the decision-making circuit in accomodating the chamber. According to the invention, the detection mechanism is arranged on the shared charger bank, and the confirmation circuit is arranged in the shared charger cabinet of the charger bank; when the sharing treasured that charges inserts in the holding chamber of precious shared rack that charges, can monitor detection mechanism through the affirmation circuit to confirm whether the precious charging wire of male sharing that charges is received in its chamber of accomodating, thereby confirm whether the sharing treasured that charges correctly retrieves, prevent to steal to charge. But this scheme does not design treasured power supply line detecting system that charges, can't guarantee that the user borrows treasured's that charges normal use.

Disclosure of Invention

Aiming at the defects in the prior art, the invention aims to provide a shared charger power supply line detection system and a shared charger power supply line detection method.

The shared charger Micro-USB power supply line detection system comprises a Micro-USB power supply line and an MCU (Micro control unit), wherein the MCU is connected with a charging cabinet, the charging cabinet can accommodate a charger, and the Micro-USB power supply line comprises a first positive line, a first negative line and a first detection line;

a resistor R2 is connected between one end of the first positive wire and one end of the first detection wire, and a resistor R3 is connected between one end of the first detection wire and one end of the first negative wire;

the other end of the first positive wire is connected with the positive output of the charger, the other end of the first detection wire is respectively connected with a first pin of the MCU, one polar plate of the capacitor C29 and one end of the resistor R36, and the other end of the first negative wire is respectively connected with the GND2, the other polar plate of the capacitor C29 and the other end of the resistor R36;

GND2 is connected to the drain of MOS transistor Q3, the source of MOS transistor Q3 is connected to GND, and the gate of MOS transistor Q3 is connected to the second pin of MCU and ground GND, respectively.

Preferably, the MCU adopts HT32F50230, a first pin of the MCU is a PA7 pin, and a second pin of the MCU is a PA15 pin.

The shared charger Type-C power supply line detection system comprises a Type-C power supply line and an MCU (microprogrammed control unit), wherein the MCU is connected with a charging cabinet, the charging cabinet can accommodate a charger, and the Type-C power supply line comprises a second positive electrode line, a second negative electrode line and a second detection line;

a resistor R4 is connected between one end of the second positive wire and one end of the second detection wire, and a resistor R5 is connected between one end of the second detection wire and one end of the second negative wire;

the other end of the second positive wire is connected with the positive output of the charger, the other end of the second detection wire is respectively connected with a third pin of the MCU, one polar plate of the capacitor C30 and one end of the resistor R17, and the other end of the second negative wire is respectively connected with the GND2, the other polar plate of the capacitor C30 and the other end of the resistor R17;

the GND2 is connected with the drain electrode of the MOS tube Q3, the source electrode of the MOS tube Q3 is connected with the GND, and the grid electrode of the MOS tube Q3 is respectively connected with the second pin of the MCU and the ground wire GND;

the MCU adopts HT32F50230, a third pin of the MCU is a PA6 pin, and a second pin of the MCU is a PA15 pin.

The shared charger Lightning power supply line detection system comprises a Lightning power supply line and an MCU (micro control unit), wherein the MCU is connected with a charging cabinet, the charging cabinet can accommodate a charger, and the Lightning power supply line comprises a third positive line and a third negative line;

a resistor R1 is connected between one end of a third positive wire and one end of a third negative wire, the other end of the third positive wire is connected with the positive output of the charger, the other end of the third negative wire is respectively connected with a resistor R38, a fourth pin of the MCU and a drain electrode of the MOS tube Q7, the resistor R38 is connected with a ground wire GND, a source electrode of the MOS tube Q7 is connected with a GND2, and a grid electrode of the MOS tube Q7 is respectively connected with a fifth pin of the MCU and the GND 2;

GND2 is connected to the drain of MOS transistor Q3, the source of MOS transistor Q3 is connected to GND, and the gate of MOS transistor Q3 is connected to the second pin of MCU and ground GND, respectively.

Preferably, the MCU adopts HT32F50230, a fourth pin of the MCU is a PB4 pin, a fifth pin of the MCU is a PB3 pin, and a second pin of the MCU is a PA15 pin;

the resistance of the resistor R38 can enable the voltage detected by the fourth pin PB4 of the MCU to be higher than the high level of the MCU when the power supply line is intact and the MOS transistor Q7 is not conducted.

The shared charger power supply line detection system provided by the invention comprises any one of the following power supply line detection systems:

-said Micro-USB power supply line detection system;

-said Type-C feeder line detection system;

-said Lightning supply line detection system.

According to the detection method of the shared charger baby Micro-USB power supply line, the detection system of the shared charger baby Micro-USB power supply line comprises the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure;

step 2: the second pin PA15 of the MCU outputs high level to turn on the MOS transistor Q3, so that the negative wire is connected with the ground wire GND;

and step 3: the first pin PA7 of the MCU collects voltage, and when the collected voltage is between A and B, the Micro-USB power supply line is judged to be intact; when the collected voltage is not between A and B, judging that the Micro-USB power supply line is damaged; wherein:

VDDminthe minimum value of the power supply voltage for the MCU;

and 4, step 4: if the MCU judges that the Micro-USB power supply line is intact, a signal that the charger can borrow outside is sent to the charging cabinet; if the MCU judges that the Micro-USB power supply line is damaged, a signal that the charger cannot be lent is sent to the charging cabinet.

According to the shared charger Type-C power supply line detection method provided by the invention, the shared charger Type-C power supply line detection system comprises the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure;

step 2: the second pin PA15 of the MCU outputs high level to turn on the MOS transistor Q3, so that the negative wire is connected with the ground wire GND;

and step 3: the first pin PA6 of the MCU collects voltage, and when the collected voltage is between C-D, the Type-C power supply line is judged to be intact; when the collected voltage is not between C and D, judging that the Type-C power supply line is damaged; wherein:

VDDminthe minimum value of the power supply voltage for the MCU;

and 4, step 4: if the MCU judges that the Type-C power supply line is intact, a signal that the charger can borrow the power supply outside is sent to the charging cabinet; if MCU judges Type-C power supply line and damages, then send the precious signal that can not lend outside of charging to the cabinet that charges.

According to the detection method for the shared charger Lightning power supply line provided by the invention, the detection system for the shared charger Lightning power supply line comprises the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure;

step 2: before the charging cabinet charges the charger baby, the MOS tube Q7 is in a conducting state, and when the charging cabinet charges the charger baby, the MCU fifth pin PB3 outputs a low level to close the MOS tube Q7;

and step 3: the fourth pin PB4 of the MCU collects voltage, and when high level is collected, the Lightning power supply line is judged to be intact; when the low level is collected, judging that the Lightning power supply line is damaged;

and 4, step 4: if the MCU judges that the Lightning power supply line is intact, a signal that the charger can be lent is sent to the charging cabinet; if MCU judges the Lightning power supply line to damage, then send the signal that the treasured of charging can not borrow outside to the cabinet that charges.

According to the detection method of the shared power supply line for the charger baby provided by the invention, by adopting the detection system of the shared power supply line for the charger baby,

the Micro-USB power supply line detection system adopts the shared charger Micro-USB power supply line detection method to detect,

the Type-C power supply line detection system adopts the shared charger Type-C power supply line detection method for detection,

the Lightning power supply line detection system adopts the method for detecting the shared charger Lightning power supply line,

the plurality of power supply line detection systems detect simultaneously, and can borrow the power supply line only when the plurality of power supply line detection systems all judge that corresponding power supply line is intact, all send the signal that can borrow outward to the cabinet that charges.

Compared with the prior art, the invention has the following beneficial effects:

the power supply line detection system for the charge pal is simple and reasonable in structure, the MCU chip is adopted to detect voltage and level, so that whether the power supply line is damaged or not is detected, and the problem that the shared charge pal cannot be used after being rented due to the damage of the power supply line is solved.

Drawings

Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:

FIG. 1 is a partial schematic view of a charger baby Micro-USB power supply line detection system and a Type-C power supply line detection system according to the present invention;

FIG. 2 is a schematic diagram of a portion of a charger Lightning power supply line detection system according to the present invention;

FIG. 3 is a schematic diagram of a ground connection portion of the power supply line detection system of the charger of the present invention;

fig. 4 is a schematic diagram of a part of an MCU of the power supply line detection system of the charger baby according to the present invention.

The figures show that:

virtual frame 1: Micro-USB power supply line

Virtual frame 2: Type-C power supply line

Virtual frame 3 Lightning supply line

Virtual frame 4: Micro-USB and Type-C wire detection line

Virtual frame 5 Lightning wire detection line

Detailed Description

The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.

In the description of the present application, it is to be understood that the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present application and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present application.

According to the detection system for the shared charger baby Micro-USB power supply line, as shown in FIGS. 1, 3 and 4, the detection system comprises the Micro-USB power supply line and an MCU, wherein the MCU is connected with a charging cabinet, the charging cabinet can accommodate a charger baby, and the Micro-USB power supply line comprises a first positive line, a first negative line and a first detection line; a resistor R2 is connected between one end of the first positive wire and one end of the first detection wire, and a resistor R3 is connected between one end of the first detection wire and one end of the first negative wire; the other end of the first positive wire is connected with the positive output of the charger, the other end of the first detection wire is respectively connected with a first pin of the MCU, one polar plate of the capacitor C29 and one end of the resistor R36, and the other end of the first negative wire is respectively connected with the GND2, the other polar plate of the capacitor C29 and the other end of the resistor R36; GND2 is connected to the drain of MOS transistor Q3, the source of MOS transistor Q3 is connected to GND, and the gate of MOS transistor Q3 is connected to the second pin of MCU and ground GND, respectively. Preferably, the MCU adopts HT32F50230, a first pin of the MCU is a PA7 pin, and a second pin of the MCU is a PA15 pin. Preferably, the resistance value of R36 is fixed to 100K Ω, the resistance value determines the wire detection voltage threshold of the Micro-USB power supply wire, the resistance value of R2 is 200K Ω, and the resistance value of R3 is 100K Ω. Preferably, the positive pole of the charger outputs +5V voltage, and the positive pole of the charger is connected with the ground wire GND through a one-way diode to prevent short circuit.

According to the detection system for the shared charger Type-C power supply line, as shown in FIGS. 1, 3 and 4, the detection system comprises a Type-C power supply line and an MCU (microprogrammed control unit), wherein the MCU is connected with a charging cabinet, the charging cabinet can accommodate a charger, and the Type-C power supply line comprises a second positive electrode line, a second negative electrode line and a second detection line; a resistor R4 is connected between one end of the second positive wire and one end of the second detection wire, and a resistor R5 is connected between one end of the second detection wire and one end of the second negative wire; the other end of the second positive wire is connected with the positive output of the charger, the other end of the second detection wire is respectively connected with a third pin of the MCU, one polar plate of the capacitor C30 and one end of the resistor R17, and the other end of the second negative wire is respectively connected with the GND2, the other polar plate of the capacitor C30 and the other end of the resistor R17; the GND2 is connected with the drain electrode of the MOS tube Q3, the source electrode of the MOS tube Q3 is connected with the GND, and the grid electrode of the MOS tube Q3 is respectively connected with the second pin of the MCU and the ground wire GND; the MCU adopts HT32F50230, a third pin of the MCU is a PA6 pin, and a second pin of the MCU is a PA15 pin. Preferably, the resistance value of R17 is fixed to 100K Ω, the resistance value determines the detection voltage threshold of the Type-C power supply line, the resistance value of R4 is 200K Ω, and the resistance value of R5 is 100K Ω. Preferably, the positive pole of the charger outputs +5V voltage, and the positive pole of the charger is connected with the ground wire GND through a one-way diode to prevent short circuit.

According to the system for detecting the shared Lightning power supply line of the charger baby, as shown in fig. 2, 3 and 4, the system comprises the Lightning power supply line and an MCU, wherein the MCU is connected to a charging cabinet, the charging cabinet can accommodate the charger baby, and the Lightning power supply line comprises a third positive line and a third negative line; a resistor R1 is connected between one end of a third positive wire and one end of a third negative wire, the other end of the third positive wire is connected with the positive output of the charger, the other end of the third negative wire is respectively connected with a resistor R38, a fourth pin of the MCU and a drain electrode of the MOS tube Q7, the resistor R38 is connected with a ground wire GND, a source electrode of the MOS tube Q7 is connected with a GND2, and a grid electrode of the MOS tube Q7 is respectively connected with a fifth pin of the MCU and the GND 2; GND2 is connected to the drain of MOS transistor Q3, the source of MOS transistor Q3 is connected to GND, and the gate of MOS transistor Q3 is connected to the second pin of MCU and ground GND, respectively. Preferably, the MCU adopts HT32F50230, a fourth pin of the MCU is a PB4 pin, a fifth pin of the MCU is a PB3 pin, and a second pin of the MCU is a PA15 pin; the resistance of the resistor R38 can enable the voltage detected by the fourth pin PB4 of the MCU to be higher than the high level of the MCU when the power supply line is intact and the MOS transistor Q7 is not conducted. Preferably, the resistance of the R38 is fixed to 10M Ω, the resistance of the R1 is 10K Ω, and the resistance of the R38 is much larger than the resistance of the R1 between the positive and negative electrodes inside the Lightning power supply line to 10K Ω, so as to ensure that the detection pin PB4 of the MCU detects a high level when the Lightning power line is intact. Preferably, the MOS transistor Q3 and the MOS transistor Q7 are N-type MOS transistors, which determine the logic of the MCU pin controlling the MOS transistors, and the MOS transistors are turned on at high level and turned off at low level. Preferably, the positive pole of the charger outputs +5V voltage, and the positive pole of the charger is connected with the ground wire GND through a one-way diode to prevent short circuit. Since there is no detection line, we use the node of the third negative line connected to the charger circuit as a detection point, and connect it to the PB4 pin of the HT32F50230 chip, and when the line is broken, the PB4 pin will detect a low level, and when the line is intact, the PB4 pin will detect a high level. The high level and the low level are determined by the MCU chip characteristics, and the I/0 port characteristics of the HT32F50230 chip are as follows:

when the PB4 pin detects 0.65 times of the chip supply voltage VDDHigh when it is time to go.

According to the present invention, as shown in fig. 1 to 4, the shared charger service line detection system includes any one of the following service line detection systems:

-said Micro-USB power supply line detection system;

-said Type-C feeder line detection system;

-said Lightning supply line detection system.

According to the detection method of the shared charger baby Micro-USB power supply line, the detection system of the shared charger baby Micro-USB power supply line comprises the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure; the wire detection is only carried out when the shared charger is in a state from a non-charging state to a charging state, and the MCU executes the action;

step 2: the second pin PA15 of the MCU outputs high level to turn on the MOS transistor Q3, so that the negative wire is connected with the ground wire GND; preferably, the HT32F50230 chip detects whether the input level of the PA15 pin is high, and if so, the MOS transistor Q3 does not need to be turned on; if not, the MOS transistor Q3 needs to be turned on by outputting a high level, so that the GND2 needs to be conducted with the ground GND, so that the wire detection circuit can form a loop, note that the GND2 does not represent the ground, but is only connected with a node before the ground GND, and the MOS transistor Q3 needs to be turned on to conduct the GND2 with the ground GND;

and step 3: the first pin PA7 of the MCU collects voltage, and when the collected voltage is between A and B, the Micro-USB power supply line is judged to be intact; when the collected voltage is not between A and B, judging that the Micro-USB power supply line is damaged; wherein:

VDDminthe method comprises the steps that the minimum value of power supply voltage of an MCU is preferably determined, when the acquired voltage is between 0.7 and 1.3V (the power supply voltage of the MCU is between 3.6 and 4.6V), the wire is judged to be intact, the wire is not in the range and the wire is judged to be damaged, attention is paid to the fact that the MCU acquires a value converted by the ADC, the ADC reference voltage of an HT32F50230 chip is the power supply voltage of the MCU, the number V of the power supply voltage at the moment is required to be considered when the ADC threshold value of the detected voltage is calculated, the power supply voltage of the MCU is set to be between 3.6 and 4.6V in the circuit design, the finally determined ADC threshold value of the wire detection is set to be 623 to 1480, the program judges according to the acquired ADC value and the threshold value range, the wire is intact within the range, the wire is damaged within the range, 623 is 0.7 4095/4.6, 1480.3.3 × is 4095/3.6, the HT32F 30 is the maximum value of ADC 5025, and the ADC is the maximum value of the ADC pin 4095 to 4095;

and 4, step 4: if the MCU judges that the Micro-USB power supply line is intact, a signal that the charger can borrow outside is sent to the charging cabinet; if the MCU judges that the Micro-USB power supply line is damaged, a signal that the charger cannot be lent is sent to the charging cabinet.

According to the shared charger Type-C power supply line detection method provided by the invention, the shared charger Type-C power supply line detection system comprises the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure;

step 2: the second pin PA15 of the MCU outputs high level to turn on the MOS transistor Q3, so that the negative wire is connected with the ground wire GND; preferably, the HT32F50230 chip detects whether the input level of the PA15 pin is high, and if so, the MOS transistor Q3 does not need to be turned on; if not, the MOS transistor Q3 needs to be turned on by outputting a high level, so that the GND2 needs to be conducted with the ground GND, so that the wire detection circuit can form a loop, note that the GND2 does not represent the ground, but is only connected with a node before the ground GND, and the MOS transistor Q3 needs to be turned on to conduct the GND2 with the ground GND;

and step 3: the first pin PA6 of the MCU collects voltage, and when the collected voltage is between C-D, the Type-C power supply line is judged to be intact; when the collected voltage is not between C and D, judging that the Type-C power supply line is damaged; wherein:

VDDminthe minimum value of the power supply voltage for the MCU; preferably, when the acquired voltage is between 0.7 and 1.3V (the MCU power supply voltage is between 3.6 and 4.6V), the wire can be judged to be intact and not in the range, and the wire can be judged to be damaged, it needs to be noted that the MCU acquires the value converted by the ADC, and since the ADC reference voltage of the HT32F50230 chip is the power supply voltage of the MCU, the power supply voltage at the moment needs to be considered as V when the ADC threshold value of the detection voltage is calculated; setting the power supply voltage of the MCU to be between 3.6 and 4.6V in circuit design, and finally setting the power supply voltage of the MCU to be between 3.6 and 4.6VThe determined ADC threshold value setting range of wire detection is 623-1480, the program judges according to the acquired ADC value and the threshold value range, wires in the range are intact, wires not in the range are damaged, 623-0.7 8540983/4.6, 1480-1.3 354095/3.6, the ADC of HT32F50230 is 12-bit ADC, and 4095 is the maximum value acquired by an ADC pin;

and 4, step 4: if the MCU judges that the Type-C power supply line is intact, a signal that the charger can borrow the power supply outside is sent to the charging cabinet; if MCU judges Type-C power supply line and damages, then send the precious signal that can not lend outside of charging to the cabinet that charges.

According to the detection method for the shared charger Lightning power supply line provided by the invention, the detection system for the shared charger Lightning power supply line comprises the following steps:

step 1: the charging treasure is placed back to the charging cabinet, and when the charging cabinet charges the charging treasure, the MCU executes actions to detect a power supply line of the charging treasure;

step 2: before the charging cabinet charges the charger baby, the MOS tube Q7 is in a conducting state, and when the charging cabinet charges the charger baby, the MCU fifth pin PB3 outputs a low level to close the MOS tube Q7; preferably, the pin PB3 of the HT32F50230 chip outputs a low level, and the MOS transistor Q7 is turned off, so that the pin PB4 cannot be connected to GND, and if the pin PB4 is connected, the detected pin is always a low level, and Lightning power line detection cannot be performed;

and step 3: the fourth pin PB4 of the MCU collects voltage, and when high level is collected, the Lightning power supply line is judged to be intact; when the low level is collected, judging that the Lightning power supply line is damaged;

and 4, step 4: if the MCU judges that the Lightning power supply line is intact, a signal that the charger can be lent is sent to the charging cabinet; if MCU judges the Lightning power supply line to damage, then send the signal that the treasured of charging can not borrow outside to the cabinet that charges.

According to the method for detecting the shared charger baby power supply line, the Micro-USB power supply line detection system adopts the shared charger baby Micro-USB power supply line detection method for detection, the Type-C power supply line detection system adopts the shared charger baby Type-C power supply line detection method for detection, the Lightning power supply line detection system adopts the shared charger baby Lightning power supply line detection method for detection, the plurality of power supply line detection systems carry out detection simultaneously, and the foreign borrowing can be carried out only when the plurality of power supply line detection systems judge that the corresponding power supply line is intact and send out foreign borrowable signals to the charging cabinet.

The invention uses the shared charge pal internal management chip MCU to control the peripheral circuit so as to achieve the detectable condition, and then the MCU detects the voltage and the level to judge the quality of the power supply line. Through adopting MCU chip to detect the structure whether the wire rod damages with the level height, solved the sharing treasured that charges and can't use after leading to renting out because the wire rod damages. After the shared treasured that charges got into the cabinet that charges, whether can the self-checking detect the wire rod and damage, then the cabinet that charges reads the precious self-checking result that charges, knows whether the wire rod damages to can judge that the treasured that charges can rent or not.

Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.

The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于电压序列变点检测的户变关系校验方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类