Automatic charging device based on single-chip microcomputer measurement and control cluster
By designing an automatic charging device based on a microcontroller, the problem of irregular charging safety and management of electric bicycles is solved, and the standardized management and safety improvement of electric bicycle charging is achieved, reducing fire risks and resource waste.
Patent Information
- Application Number
- CN202420875232.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The charging safety problems of electric bicycles are serious, the existing charging equipment is not managed properly, and the lack of effective safety monitoring and fire protection leads to high fire risk, and there are many charger manufacturers and uneven quality, which makes resources waste serious.
Design a cluster automatic charging device based on microcontroller measurement and control, including a main controller, wiring bar and charging cable. The main controller consists of a front-end protection circuit, an AC/DC conversion circuit, a back-end control circuit, a microcontroller control unit and a display unit. Lightning protection, leakage, overcurrent, overvoltage protection and fire detection functions can uniformly manage the charging of electric bicycles and improve safety.
The standardized management of electric bicycle charging has been realized, the fire risk has been reduced, the problem of uneven charger quality has been avoided, the charging safety and resource utilization have been improved, and the safety monitoring of the power grid and battery has been improved through unified charging form and location. Strength.
Smart Images

Figure CN222040272U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of automatic charging equipment, and specifically relates to an automatic charging device based on a single-chip microcomputer measurement and control cluster. Background Art
[0002] Electric bicycles are one of the most widely used means of transportation in the country, covering rural areas, towns and cities.
[0003] Judging from the usage of electric bicycles in recent years, the charging safety of electric bicycles is the most concerned issue, especially in residential areas where electric bicycles are difficult to manage. Due to technical or environmental reasons, the owners park their vehicles densely in a pile, with charging lines crisscrossed. Sudden spontaneous combustion of individual electric bicycles can easily spread to the entire carport and even endanger the community.
[0004] At present, it is believed that the factors that may cause spontaneous combustion can be summarized into three categories: first, management factors, such as private wiring, line modification, chaotic lines, no fire warning, and no line protection. Second, manufacturer factors, the charger has no overcharge, overcurrent, overheating, leakage protection, nor trickle charging or full power-off functions. Third, force majeure factors, such as aging lines, aging chargers, and aging batteries.
[0005] There are three characteristics of the power demand of electric bicycles: mobility, diversity and time-sharing. Mobility refers to the real-time mobility of electric bicycles as a means of transportation; diversity is how the value is applied to different electric bicycles, because the charging requirements of each brand may change from time to time; time-sharing refers to the impact of people on charging stations with different charging needs at different times. In the traditional rechargeable battery market, rechargeable batteries are mainly moved together with electric bicycles and chargers, and these rechargeable batteries are usually scattered in scattered corners of residential areas and streets in very small quantities, which can no longer meet the high charging demand of current electric vehicles.
[0006] One charger for one bike has the advantage that each bike has a charger, but this charging method has many disadvantages: currently, electric bikes and chargers are often from different manufacturers, which leads to confusion among charger manufacturers and uneven quality. Most chargers for electric bikes do not have full auto-stop protection or trickle charge protection, and do not fully consider the charging habits of electric bike owners, nor do they consider adapting to the current charging requirements of electric bikes. Each bike has a different charger, resulting in a large number of charger models and manufacturers, which wastes social resources and does not guarantee safety performance.
[0007] As far as China is concerned, many residential communities and landlords have introduced various centralized charging methods to cope with the current charging conditions of electric bicycles. The most common form is billed charging, which is: a main controller controls a row of 220V sockets, and temporarily opens the 220V power supply of a certain socket through scanning or coin insertion.
[0008] However, this model only provides a centralized charging platform, which does not fundamentally solve the many problems of chargers; the safety monitoring of the power grid and batteries is not strong enough; and it is not connected to the fire protection system.
[0009] There are many centralized charger manufacturers in China, but their main focus is on efficiency, billing, and port expansion. They do not delve into the fundamentals and lack a firm determination to innovate charging methods. Utility Model Content
[0010] The purpose of the utility model is to provide an automatic charging device based on a single-chip microcomputer control cluster to address the deficiencies of the prior art. The utility model can unify the charging form and charging location, standardize the charging management of electric bicycles in residential areas, and improve safety.
[0011] In order to achieve the above purpose, the utility model adopts the following technical solutions:
[0012] A single-chip microcomputer-based cluster automatic charging device comprises a main controller, a wiring bar, a storage port and a charging cable; a plurality of power cables connected to the main controller are arranged inside the wiring bar; the storage port and the charging cable are arranged in a matching manner, and the storage port is fixedly mounted on the wiring bar, one end of the charging cable extends into the wiring bar and is connected to the power cable, and the other end is a cross-connection; the shape of the storage port matches the shape of the cross-connection of the charging cable; the main controller is mainly composed of a front-end protection circuit, an AC / DC conversion circuit, a back-end control circuit, a single-chip microcomputer control unit and a display unit; the front-end protection circuit, the AC / DC conversion circuit and the back-end control circuit are electrically connected in sequence; the front-end protection circuit is also externally connected to a power grid, and the back-end control circuit is electrically connected to the power cable of the wiring bar; the front-end protection circuit, the back-end control circuit and the display unit are also respectively connected to the single-chip microcomputer control unit.
[0013] In the utility model, the main controller serves as the main control unit, responsible for charging control, signal acquisition, safety protection, human-computer interaction and the like; the outside of the wiring bar serves as a structural member for fixing the storage port and the charging cable, and the inside serves as a wiring space; the charging cable is a zigzag cable, one end of which is fixed on the wiring bar, and the other end is a zigzag connector, which can be inserted into the charging terminal of the electric bicycle; the storage port serves as the storage port for the charging cable, and the zigzag connector can be fixed on the wiring bar (similar to the installation structure of the current charging gun of electric vehicles).
[0014] In the utility model, the main controller is designed with five functional circuit parts, among which:
[0015] (1) The front-end protection circuit is connected to the power grid and is mainly responsible for monitoring the voltage and current on the AC side and calculating the power on the AC side in real time. Once an abnormal power is found, the power supply can be cut off in time. At the same time, this part also has the function of lightning protection and surge protection. It is an indispensable and important part and can effectively reduce the damage to equipment caused by power grid factors.
[0016] (2) AC / DC conversion circuit, which is mainly responsible for converting AC power into DC power and providing the charging power required by the system and users; it can communicate with the microcontroller control unit through 485 communication method, and also has its own over-current and over-voltage protection current.
[0017] (3) The back-end control circuit is connected to the user end and monitors the output current and voltage in real time. Once overcurrent, overvoltage or overtemperature occurs, the power can be cut off in time.
[0018] (4) The single-chip microcomputer control unit is mainly responsible for signal acquisition, charging control, safety protection, human-computer interaction and other functions, and is the core part.
[0019] (5) Display unit, which mainly has human-computer interaction functions, displays information, and user button control functions.
[0020] As a further explanation of the present utility model, the front-end protection circuit includes a lightning surge protection module, a leakage detection module, a current and voltage detection module and a relay I which are connected in sequence; the lightning surge protection module, the leakage detection module, the current and voltage detection module and the relay I are also respectively connected to the single-chip microcomputer control unit.
[0021] In the utility model, the electric energy on the grid side passes through the lightning surge protection module, the leakage detection module, the current and voltage detection module, and the relay I respectively before being output to the back end; and in this process, the single chip will read the leakage, electricity, and current conditions in the circuit in real time to ensure that no abnormality occurs in the back end circuit; when an abnormality is detected, the single chip will immediately disconnect the relay I and output the alarm information to the display unit.
[0022] As a further preferred description of the utility model, the lightning surge protection module includes a fuse F1, a varistor R30, a discharge tube T2, a safety X capacitor C18, a safety X capacitor C19, a common mode inductor L1, a safety Y capacitor C20 and a safety Y capacitor C21.
[0023] Fuse F1: The fuse is the last line of defense for equipment safety. Once an unexpected failure occurs, the fuse can prevent the worst situation from happening. Generally, the fuse takes 150% of the rated current to ensure timely and safe melting.
[0024] Varistor R30 and discharge tube T2: Lightning strikes and surges are one of the important factors that often endanger equipment safety. Their main feature is instantaneous overvoltage. To address this problem, varistors and discharge tubes are connected to the neutral and live wires. Under the condition of excessive voltage, varistors and discharge tubes are equivalent to resistors with very small resistance values. The high voltage on the line is released along the varistor and discharge tube, ensuring the safety of the back-end circuit. In addition, considering that the varistor has a relatively large leakage current, using it together with the discharge tube can reduce unnecessary losses and can have a certain protective effect on the varistor.
[0025] Safety X capacitors C18 and C19: Safety X capacitors are mainly used to meet EMC requirements, eliminate some differential mode interference, and improve equipment reliability.
[0026] Common mode inductor L1: Common mode inductor is mainly used to meet EMC requirements, eliminate some differential mode interference, reduce radiation and improve equipment reliability.
[0027] Safety Y capacitors C20 and C21: Safety Y capacitors are mainly used to meet EMC requirements, eliminate some common-mode interference, and improve equipment reliability.
[0028] As a further preferred description of the present invention, the leakage detection module includes a current transformer P3, a rectifier bridge D4, a resistor R9, a capacitor C13, a resistor R6, a capacitor C12, a diode D3 and a resistor R7.
[0029] The leakage detection module adopts a current detection circuit design, passing the neutral and live wires through the same sensor. Under normal circumstances, the input current of the neutral and live wires is equal to the output current. Once leakage occurs, the input and output are not equal, the sensor can obtain a signal, and convert it into a voltage signal through a resistor.
[0030] As a further description of the present invention, the current and voltage detection module is composed of a voltage detection circuit and a current detection circuit.
[0031] Preferably, the voltage detection circuit includes a voltage transformer P13, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a rectifier bridge D2, a resistor R4, a capacitor C2, a resistor R1, a capacitor C1, a diode D1 and a resistor R2.
[0032] The voltage transformer P13 uses the ZMPT107 voltage sensor; the neutral and live wires are input to the primary side 1 and 2 pins of the ZMPT107 through four 30KΩ 0805 package resistors (R20, R21, R22 and R23). The four 0805 package resistors just meet the voltage and power consumption requirements. The secondary side of the ZMPT107 is connected to the rectifier bridge, converted into a voltage signal through resistor R4, and then filtered by capacitors C2 and C1 to become a relatively smooth sine wave, which is convenient for the single-chip microcomputer to read the effective value of the voltage on the grid side.
[0033] Preferably, the current detection circuit includes a current transformer P4, a rectifier bridge D7, a resistor R31, a capacitor C23, a resistor R27, a capacitor C22, a diode D6 and a resistor R28.
[0034] The current transformer P4 uses a ZMCT102 current sensor; P4 is the sensor input terminal, which is converted into voltage through the rectifier bridge D7 and the resistor R31, and at the same time, it is filtered by two stages of RC of capacitors C23 and C22 to obtain a smooth sine wave.
[0035] As a further description of the present invention, the back-end control circuit includes several DC / DC power supply modules, current sampling and protection modules and relay II; the DC / DC power supply modules, current sampling and protection modules and relay II are also respectively connected to the single-chip microcomputer control unit.
[0036] As a further description of the present invention, the DC / DC power supply module is composed of an input enabling circuit and a BUCK topology circuit.
[0037] Preferably, the input enabling circuit includes a switch tube Q1, a switch tube Q4 and a switch tube Q5.
[0038] The input enable circuit composed of Q1, Q4, and Q5 is controlled by the PA11 pin of the MCU IO. When PA11 is high, Q4 is turned on, the voltage of Q1's pin 3 is greater than the voltage of Q1's pin 1, and Q1 meets the on-condition; if PA11 is low, Q4 is turned off, the voltage of Q1's pin 3 is equal to the voltage of Q1's pin 1, and Q1 does not meet the on-condition. Q5 is controlled by the back-end overcurrent protection signal. Once the current protection is triggered, Q5 is turned on and Q4 will be forcibly turned off.
[0039] Preferably, the BUCK topology circuit includes a switch tube Q3, a switch tube Q6, an electrolytic capacitor C5, an electrolytic capacitor C6 and an inductor L1.
[0040] Q3 and Q6 are used as switching devices, and C5, C6 and L1 are used as energy storage filter elements to achieve the purpose of controlling voltage and current, satisfying the transformation of each battery voltage level and the realization of a three-stage charging method.
[0041] As a further illustration of the present invention, the current sampling and protection module is composed of a DC current sampling circuit and a DC current protection circuit.
[0042] As a further description of the utility model, the single-chip microcomputer control unit includes a single-chip microcomputer system and a bootstrap drive circuit; the single-chip microcomputer system adopts the Stm32f103c8t6 single-chip microcomputer as the core control chip; and the bootstrap drive circuit adopts the domestically produced bootstrap chip EG2104.
[0043] The utility model adopts the most commonly used bootstrap drive circuit, which is currently widely used in small and medium power switching power supply occasions, with few objects, simple circuit and low cost. The domestic bootstrap chip EG2104 has an operating frequency of up to 500Khz, a driving capacity of 2 / 2.5A, and a dead zone control of 100 to 300ns, which meets the use requirements of the utility model.
[0044] The utility model adopts the Stm32f103c8t6 single-chip microcomputer as the core control chip. The Stm32f103c8t6 is a 32-bit microcontroller chip with an ARMCortex-M core, running at a main frequency of 72M or, having 12 channels of ADC sampling channels and 4 timers, which meets the working requirements of the utility model.
[0045] As a further explanation of the present utility model, the main controller also includes a fire detection module; the fire detection module is mainly composed of a fire detection sensor, a relay III and a buzzer; the fire detection sensor and relay III are respectively connected to the single-chip control unit; the relay III is connected in series in the control loop of the external fire protection system.
[0046] Adding a fire detection module can better connect to the fire protection system. If a fire is detected, the buzzer alarm will be activated. If the fire lasts for more than 1 minute, the microcontroller can determine it as a fire accident. In order to better connect to the fire protection system, through market research, it is found that the passive relay interface is the most widely adaptable. Therefore, the microcontroller immediately opens relay III, the knife switch of relay III is closed, and the fire protection system receives a signal.
[0047] Compared with the prior art, the utility model has the following beneficial effects:
[0048] 1. The utility model has a simple structure, low production and maintenance costs, safety and reliability, and standardizes the charging management of electric bicycles in residential areas.
[0049] 2. The utility model is equipped with a charging cable with a standard pin-shaped interface, which eliminates the need for users to prepare a separate charger. The output voltage is uniformly managed, effectively avoiding safety accidents that may be caused by uneven chargers.
[0050] 3. The utility model designs a lightning surge protection module in the front-end protection circuit, and performs multi-level surge protection at the input end of the power grid to prevent lightning, surges and other factors that may occur in the power grid from causing damage to the user's charging circuit or even battery damage.
[0051] 4. The utility model adds a fire detection module and is connected to the fire protection system. When a fire is detected within the range, an alarm will sound and the power will be cut off; at the same time, a signal will be output to the fire protection system.
[0052] 5. The utility model adopts varistors, discharge tubes, common mode inductors, safety capacitors and other measures for lightning surge safety protection, and designs multi-level sensors for voltage, current, leakage and surge protection detection. Once undervoltage, overvoltage, overcurrent, leakage and surge occur, the grid power supply can be immediately disconnected to ensure the safety of electric vehicle charging piles and electric bicycles.
[0053] 6. The utility model is provided with a display unit, and relevant personnel can observe and control the charging voltage, charging current and charging time through the main screen. When the host has faults such as undervoltage, overvoltage, overcurrent, leakage, etc., the screen can remind maintenance.
[0054] 7. The utility model adopts the STM32 single-chip microcomputer, which can aggregate and control information of multiple functional modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a structural schematic diagram of an embodiment of the utility model.
[0056] Figure 2 This is a schematic diagram of the circuit module composition of an embodiment of the utility model.
[0057] Figure 3 The figure is a schematic diagram of the circuit module composition of the front-end protection circuit in one embodiment of the utility model.
[0058] Figure 4 The figure is a schematic diagram of the circuit module composition of the back-end control circuit in one embodiment of the utility model.
[0059] Figure 5 The figure is a circuit design diagram of a lightning surge protection circuit in one embodiment of the utility model.
[0060] Figure 6 The figure is a circuit design diagram of a voltage detection circuit in one embodiment of the utility model.
[0061] Figure 7 This is a circuit design diagram of a current detection circuit in one embodiment of the utility model.
[0062] Figure 8 The figure is a circuit design diagram of a leakage detection circuit in one embodiment of the utility model.
[0063] Fig. 9 The figure is a circuit design diagram of a DC / DC power supply module in one embodiment of the utility model.
[0064] Fig.10 The figure is a circuit design diagram of a DC current sampling circuit in one embodiment of the utility model.
[0065] Fig.11 The figure is a circuit design diagram of a DC current protection circuit in one embodiment of the utility model.
[0066] Fig.12 The figure is a circuit design diagram of a bootstrap driving circuit in one embodiment of the utility model.
[0067] Fig.13 This is a circuit design diagram of a single-chip microcomputer system in one embodiment of the utility model.
[0068] Figure numerals: 1-main controller, 2-wiring bar, 3-charging cable, 4-storage port. DETAILED DESCRIPTION
[0069] The utility model is further described below in conjunction with the accompanying drawings. Example
[0070] like Figure 1 As shown, an automatic charging device based on a single-chip microcomputer measurement and control cluster includes a main controller 1, a wiring bar 2, a storage port 4 and a charging cable 3; a plurality of power cables connected to the main controller 1 are arranged inside the wiring bar 2; the storage port 4 and the charging cable 3 are matched and arranged, and the storage port 4 is fixedly installed on the wiring bar 2, one end of the charging cable 3 extends into the wiring bar 2 and is connected to the power cable, and the other end is a herringbone connector; the shape of the storage port 4 matches the shape of the herringbone connector of the charging cable 3.
[0071] like Figure 2 As shown, the main controller 1 is mainly composed of a front-end protection circuit, an AC / DC conversion circuit, a back-end control circuit, a single-chip microcomputer control unit and a display unit; the front-end protection circuit, the AC / DC conversion circuit and the back-end control circuit are electrically connected in sequence; the front-end protection circuit is also externally connected to the power grid, and the back-end control circuit is electrically connected to the power line of the wiring bar; the front-end protection circuit, the back-end control circuit and the display unit are also respectively connected to the single-chip microcomputer control unit.
[0072] This embodiment further illustrates that Figure 3 As shown, the front-end protection circuit includes a lightning surge protection module, a leakage detection module, a current and voltage detection module and a relay I which are connected in sequence; the lightning surge protection module, the leakage detection module, the current and voltage detection module and the relay I are also respectively connected to the single-chip microcomputer control unit.
[0073] As a preferred solution of this embodiment, the circuit design diagram of the lightning surge protection module is as follows: Figure 5 As shown, it includes fuse F1, varistor R30, discharge tube T2, safety X capacitor C18, safety X capacitor C19, common mode inductor L1, safety Y capacitor C20 and safety Y capacitor C21. Each component is according to Figure 5 Make the connections as shown.
[0074] Fuse F1: The fuse is the last line of defense for equipment safety. Once an unexpected failure occurs, the fuse can prevent the worst situation from happening. Generally, the fuse takes 150% of the rated current to ensure timely and safe melting.
[0075] Varistor R30 and discharge tube T2: Lightning strikes and surges are one of the important factors that often endanger equipment safety. Their main feature is instantaneous overvoltage. To address this problem, varistors and discharge tubes are connected to the neutral and live wires. Under the condition of excessive voltage, varistors and discharge tubes are equivalent to resistors with very small resistance values. The high voltage on the line is released along the varistor and discharge tube, ensuring the safety of the back-end circuit. In addition, considering that the varistor has a relatively large leakage current, using it together with the discharge tube can reduce unnecessary losses and can have a certain protective effect on the varistor.
[0076] Safety X capacitors C18 and C19: Safety X capacitors are mainly used to meet EMC requirements, eliminate some differential mode interference, and improve equipment reliability.
[0077] Common mode inductor L1: Common mode inductor is mainly used to meet EMC requirements, eliminate some differential mode interference, reduce radiation and improve equipment reliability.
[0078] Safety Y capacitors C20 and C21: Safety Y capacitors are mainly used to meet EMC requirements, eliminate some common-mode interference, and improve equipment reliability.
[0079] As a preferred solution of this embodiment, the leakage detection module is as follows: Figure 8 As shown, it includes current transformer P3, rectifier bridge D4, resistor R9, capacitor C13, resistor R6, capacitor C12, diode D3 and resistor R7. Figure 8 Make the connections as shown.
[0080] The leakage detection module adopts a current detection circuit design, passing the neutral and live wires through the same sensor. Under normal circumstances, the input current of the neutral and live wires is equal to the output current. Once leakage occurs, the input and output are not equal, the sensor can obtain a signal, and convert it into a voltage signal through a resistor.
[0081] As a further illustration of this embodiment, the current and voltage detection module is composed of a voltage detection circuit and a current detection circuit.
[0082] Preferably, the voltage detection circuit is as follows Figure 6 As shown, it includes a voltage transformer P13, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a rectifier bridge D2, a resistor R4, a capacitor C2, a resistor R1, a capacitor C1, a diode D1 and a resistor R2. Each component is according to Figure 6 Make the connections as shown.
[0083] The voltage transformer P13 uses the ZMPT107 voltage sensor; the neutral and live wires are input to the primary side 1 and 2 pins of the ZMPT107 through four 30KΩ 0805 package resistors (R20, R21, R22 and R23). The four 0805 package resistors just meet the voltage and power consumption requirements. The secondary side of the ZMPT107 is connected to the rectifier bridge, converted into a voltage signal through resistor R4, and then filtered by capacitors C2 and C1 to become a relatively smooth sine wave, which is convenient for the single-chip microcomputer to read the effective value of the voltage on the grid side.
[0084] Preferably, the current detection circuit is as follows Figure 7 As shown, it includes current transformer P4, rectifier bridge D7, resistor R31, capacitor C23, resistor R27, capacitor C22, diode D6 and resistor R28. Figure 7 Make the connections as shown.
[0085] The current transformer P4 uses a ZMCT102 current sensor; P4 is the sensor input terminal, which is converted into voltage through the rectifier bridge D7 and the resistor R31, and at the same time, it is filtered by two stages of RC of capacitors C23 and C22 to obtain a smooth sine wave.
[0086] As further illustrated in this embodiment, Figure 4 As shown, the back-end control circuit includes several DC / DC power supply modules, current sampling and protection modules and relay II; the DC / DC power supply modules, current sampling and protection modules and relay II are also respectively connected to the single-chip microcomputer control unit.
[0087] As a further illustration of this embodiment, the DC / DC power supply module is composed of an input enabling circuit and a BUCK topology circuit.
[0088] Preferred circuit design, such as Fig. 9 As shown, the input enabling circuit includes switch tubes Q1, Q4 and Q5 and peripheral circuit components (such as resistors R1, R3, R7, R9, capacitors C3, C4, etc.). Fig. 9 Make the connections as shown.
[0089] The input enable circuit composed of Q1, Q4, and Q5 is controlled by the PA11 pin of the MCU IO. When PA11 is high, Q4 is turned on, the voltage of Q1's pin 3 is greater than the voltage of Q1's pin 1, and Q1 meets the on-condition; if PA11 is low, Q4 is turned off, the voltage of Q1's pin 3 is equal to the voltage of Q1's pin 1, and Q1 does not meet the on-condition. Q5 is controlled by the back-end overcurrent protection signal. Once the current protection is triggered, Q5 is turned on and Q4 will be forcibly turned off.
[0090] Preferred circuit design, such as Fig. 9As shown, the BUCK topology circuit includes switch tube Q3, switch tube Q6, electrolytic capacitor C5, electrolytic capacitor C6 and inductor L1 and its peripheral circuit components (such as resistors R4, R5, R6, R10, R12, diodes D2, D3, D6, D7, capacitors C2, C7, etc.). Each electronic component is in accordance with Fig. 9 Make the connections as shown.
[0091] Q3 and Q6 are used as switching devices, and C5, C6 and L1 are used as energy storage filter elements to achieve the purpose of controlling voltage and current, satisfying the transformation of each battery voltage level and the realization of a three-stage charging method.
[0092] As a further illustration of this embodiment, the current sampling and protection module is composed of a DC current sampling circuit and a DC current protection circuit.
[0093] The preferred circuit design scheme is that the DC current sampling circuit is as follows Fig.10 As shown, the precision op amp COS8552 is used as the core signal conditioning element. The 5th pin of the op amp is connected to the GND2 terminal of R13 in the DC / DC circuit diagram through the resistor R19; the 6th pin of the op amp is connected to the GND terminal of R13 through the resistor R15. The connection is made nearby on the PCB. In this way, the accuracy of the signal can be well ensured. At the same time, the signal is set to 50 times amplification through the R16 of the op amp to realize the conversion of weak signals into strong signals that are easy to read by the microcontroller.
[0094] The preferred circuit design scheme is that the DC current protection circuit is as follows Fig.11 As shown, Fig.10 The DC circuit output signal LA2 is input to Fig.11 In the current protection circuit shown, pin 2 of the op amp is the reference protection voltage input, and a relatively stable 1.5V voltage is obtained through a 3.3V power supply, resistors R36, R31 and capacitor C30. Once LA2 exceeds 3V, the voltage on R24 will be greater than R26, and pin 1 of the op amp outputs a high level. The high level is divided into three paths, one of which is transmitted to pin PA2 of the microcontroller to inform the protection information; the second path is input to the input enable circuit to turn off the input; the third path is positively fed back to pin 3 through R21 and D8, so that pin 3 is continuously high and reaches an interlocked state with pin 1.
[0095] The microcontroller controls the PA3 pin to reset the protection circuit. When PA3 is high, Q7 is turned on, the op amp 3 pin is pulled low, and the op amp 1 pin outputs a low level to release the interlock state; when PA3 is low, Q7 is turned off, and the op amp waits for the next protection signal.
[0096] As a further illustration of this embodiment, the single-chip microcomputer control unit includes a single-chip microcomputer system and a bootstrap drive circuit; the single-chip microcomputer system uses the Stm32f103c8t6 single-chip microcomputer as the core control chip; and the bootstrap drive circuit uses the domestically produced bootstrap chip EG2104.
[0097] This embodiment adopts the most commonly used bootstrap drive circuit (circuit design as shown in Fig.12 As shown in the figure, this circuit is currently widely used in small and medium power switching power supply occasions, with few objects, simple circuit and low cost. The domestic bootstrap chip EG2104 has an operating frequency of up to 500Khz, a driving capacity of 2 / 2.5A, and a dead zone control of 100 to 300ns, which meets the use requirements of the utility model.
[0098] This embodiment uses the Stm32f103c8t6 microcontroller as the core control chip (such as Fig.13 As shown), Stm32f103c8t6 is a 32-bit microcontroller chip with an ARMCortex-M core, running at a main frequency of 72M or, with 12 channels of ADC sampling channels and 4 timers, which meets the working requirements of the utility model.
[0099] As a further optimization description of this embodiment, the main controller also includes a fire detection module; the fire detection module is mainly composed of a fire detection sensor, a relay III and a buzzer; the fire detection sensor and relay III are respectively connected to the single-chip microcomputer control unit; the relay III is connected in series in the control loop of the external fire protection system.
[0100] Adding a fire detection module can better connect to the fire protection system. If a fire is detected, the buzzer alarm will be activated. If the fire lasts for more than 1 minute, the microcontroller can determine it as a fire accident. In order to better connect to the fire protection system, through market research, it is found that the passive relay interface is the most widely adaptable. Therefore, the microcontroller immediately opens relay III, the knife switch of relay III is closed, and the fire protection system receives a signal.
[0101] Obviously, the above embodiments are only examples for clearly explaining the present invention, and are not intended to limit the implementation of the present invention. For ordinary technicians in the relevant technical field, other different forms of changes or modifications can be made based on the above description; it is not necessary and impossible to list all the implementation methods here; and the obvious changes or modifications derived from them are still within the scope of protection of the present invention.
Claims
1. An automatic charging device based on a single-chip microcomputer control cluster, characterized in that: It comprises a main controller (1), a wiring bar (2), a storage port (4) and a charging cable (3); The wiring bar (2) is provided with a plurality of power lines connected to the main controller (1); The storage opening (4) and the charging cable (3) are arranged in a matching manner, and the storage opening (4) is fixedly mounted on the wiring bar (2); one end of the charging cable (3) extends into the wiring bar (2) to be connected to the power cable, and the other end is a herringbone connector; The shape of the storage opening (4) matches the shape of the herringbone connector of the charging cable (3); The main controller (1) is mainly composed of a front-end protection circuit, an AC / DC conversion circuit, a back-end control circuit, a single-chip microcomputer control unit and a display unit; the front-end protection circuit, the AC / DC conversion circuit and the back-end control circuit are electrically connected in sequence; the front-end protection circuit is also externally connected to a power grid, and the back-end control circuit is electrically connected to a power line of a wiring bar (2); the front-end protection circuit, the back-end control circuit and the display unit are also respectively connected to the single-chip microcomputer control unit.
2. According to claim 1, the automatic charging device based on single-chip microcomputer control cluster is characterized in that: The front-end protection circuit includes a lightning surge protection module, a leakage detection module, a current and voltage detection module and a relay I which are connected in sequence; the lightning surge protection module, the leakage detection module, the current and voltage detection module and the relay I are also respectively connected to the single-chip microcomputer control unit.
3. The automatic charging device based on single-chip microcomputer control cluster according to claim 2 is characterized in that: The lightning surge protection module includes a fuse F1, a varistor R30, a discharge tube T2, a safety X capacitor C18, a safety X capacitor C19, a common mode inductor L1, a safety Y capacitor C20 and a safety Y capacitor C21.
4. The automatic charging device based on single-chip microcomputer control cluster according to claim 2 is characterized in that: The leakage detection module includes a current transformer P3, a rectifier bridge D4, a resistor R9, a capacitor C13, a resistor R6, a capacitor C12, a diode D3 and a resistor R7.
5. The automatic charging device based on single-chip microcomputer control cluster according to claim 2 is characterized in that: The current and voltage detection module is composed of a voltage detection circuit and a current detection circuit.
6. The automatic charging device based on single-chip microcomputer control cluster according to claim 1 is characterized in that: The back-end control circuit includes several DC / DC power supply modules, current sampling and protection modules and relay II; the DC / DC power supply modules, current sampling and protection modules and relay II are also connected to the single-chip microcomputer control unit respectively.
7. The automatic charging device based on single-chip microcomputer control cluster according to claim 6 is characterized in that: The DC / DC power supply module consists of an input enabling circuit and a BUCK topology circuit.
8. The automatic charging device based on single-chip microcomputer control cluster according to claim 6 is characterized in that: The current sampling and protection module consists of a DC current sampling circuit and a DC current protection circuit.
9. The automatic charging device based on single-chip microcomputer control cluster according to claim 1 is characterized in that: The single-chip microcomputer control unit includes a single-chip microcomputer system and a bootstrap drive circuit; the single-chip microcomputer system adopts the Stm32f103c8t6 single-chip microcomputer as the core control chip; the bootstrap drive circuit adopts the domestic bootstrap chip EG2104.
10. The automatic charging device based on single-chip microcomputer control cluster according to claim 1 is characterized in that: The main controller also includes a fire detection module; the fire detection module is mainly composed of a fire detection sensor, a relay III and a buzzer; the fire detection sensor and relay III are respectively connected to the single-chip control unit; the relay III is connected in series in the control loop of the external fire protection system.
