Electronic lock for charging gun and charging gun

By designing a charging gun electronic lock using a motor -driven automatic lock and unlocking mechanism, the problem of complex mechanical structures in existing technologies cannot safely unplug the charging gun under the emergency situation, and achieve efficient, safe and convenient charging charging. Gun lock and unlock operation.

CN119381838APending Publication Date: 2025-01-28DONGGUAN SOUTHEAST NEW ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411591876.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The mechanical structure of the existing charging gun electronic lock is complex, and the charging gun cannot be safely pulled out in an emergency, which poses a safety hazard.

Method used

A charging gun is designed with an electronic lock, using an automatic lock and unlocking mechanism with a motor. The coordination of the planetary gear box and the rotation block can be achieved to achieve efficient and stable locking operations. At the same time, the signal switch is combined with the mechanical switch, real -time detection and feedback locking and unlocking status, and an emergency unlocked button can be designed to manually unlock the power failure or system failure.

Benefits of technology

Ensure that the charging gun will not occur during use or unlocked unauthorized to ensure the security and reliability of the charging process, especially for high -power charging scenarios. Through the automatic locking and unlocking mechanism, the convenience of user operation is enhanced, and emergency unlocking functions are provided in emergency situations, which enhances the emergency reliability of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119381838A_ABST
    Figure CN119381838A_ABST
Patent Text Reader

Abstract

The charging gun comprises a charging gun body, a charging gun surface cover and a charging gun lock hook, a cavity for containing the electronic lock is formed in the charging gun body, and the electronic lock comprises an electronic lock shell, a rotating block, a motor, a signal switch, a mechanical switch, a PCB, an unlocking block and an unlocking button. The electronic lock shell is fixed by the electronic lock surface cover and the electronic lock bottom cover through fasteners, and the motor drives the rotating block to rotate through the planetary gearbox, so that the unlocking block is driven to move transversely, and unlocking and locking are achieved. The unlocking button is located above the unlocking block and connected with the unlocking block through a spring, at least one sliding block is arranged on the unlocking button, and a sliding groove matched with the sliding block is formed in the unlocking block. In addition, the emergency unlocking button is further included and used for conducting manual unlocking under the emergency situation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention discloses the technical field of charging guns, and more specifically, relates to an electronic lock for a charging gun and a charging gun. Background Art

[0002] With the popularity of electric vehicles, the demand for charging infrastructure is growing. As a key device connecting electric vehicles and charging piles, the frequency and importance of charging guns have greatly increased. In order to prevent accidental power outages or malicious unplugging of the charging gun during charging, a mechanical or electronic locking device is usually designed on the charging gun to ensure the stability and safety of the charging process.

[0003] The existing charging gun locking devices are mainly divided into two categories: mechanical locking devices and electronic locking devices. Mechanical locks mainly rely on physical hooks or mechanical structures to complete locking. Although the structure is simple and the cost is low, it is easily damaged by external forces during use, and the locking and unlocking process is relatively cumbersome and lacks intelligent control capabilities. Electronic locks control the locking and unlocking actions through motors or electromagnets. Compared with mechanical locks, electronic locks are more intelligent and can cooperate with charging pile systems to achieve remote control and status feedback. However, there are still many shortcomings in existing electronic lock devices. The mechanical structure of many electronic locks is relatively complex, which increases the manufacturing difficulty and volume, and is not suitable for installation in charging gun equipment in limited spaces. In the event of power failure or system failure, the existing electronic locks cannot be mechanically unlocked in an emergency, resulting in the inability to safely pull out the charging gun in an emergency, posing a potential safety hazard. Due to design problems, some electronic lock devices may not work properly in harsh environments (such as high temperature and humidity), affecting the service life and stability of the charging gun. Summary of the invention

[0004] The object of the present invention is to provide an electronic lock for a charging gun and a charging gun, so as to solve the problem that the mechanical structure of the electronic lock in the prior art is relatively complex and the charging gun cannot be safely pulled out in an emergency.

[0005] In order to solve the above problems, the electronic lock for the charging gun and the charging gun involved in the present invention adopt the following technical solutions:

[0006] An electronic lock for a charging gun, comprising an electronic lock housing, a rotating block, a motor, a signal switch, a mechanical switch, a PCB board, an unlocking block and an unlocking button, wherein:

[0007] The electronic lock housing comprises an electronic lock face cover and an electronic lock bottom cover, and the electronic lock face cover and the electronic lock bottom cover are fixed by fasteners;

[0008] The motor is provided with a planetary gearbox, and the rotating block is connected to the motor through the planetary gearbox. When the rotating block rotates, the unlocking block is driven to rotate horizontally and trigger the signal switch;

[0009] The unlocking button is located above the unlocking block and passes through the electronic lock face cover, the unlocking block is formed with a mounting groove, a first spring is arranged in the mounting groove, the upper end of the first spring abuts against the slider, and the lower end abuts against the unlocking block, at least one slider is arranged on the unlocking button, and the unlocking block is provided with a slide groove for facilitating the slider to slide up and down, there is a gap between the lower surface of the slider and the upper surface of the unlocking block, and the mechanical switch is triggered when the unlocking button moves downward;

[0010] The mechanical switch is located on one side of the unlocking block, and outputs a switch signal to the PCB board by contacting the unlocking button;

[0011] The signal switch is located on one side of the rotating block, and detects the position of the rotating block by contacting the rotating block and outputs a normally closed switch signal to the PCB board;

[0012] The PCB board is used to receive the switch signal of the mechanical switch and the normally closed switch signal of the signal switch, and drive the motor according to the signal and the current power information.

[0013] Preferably, a connector is also included, and the motor, the signal switch, the mechanical switch and the connector are all electrically connected to the PCB board.

[0014] Preferably, it also includes an emergency unlocking button, which is provided with a connecting rod, and the connecting rod is sleeved with a second spring. The emergency unlocking button is located on the other side of the rotating block and passes through the electronic lock surface cover, and is resisted against the rotating block through the second spring. The emergency unlocking button is used to push the rotating block to rotate.

[0015] Preferably, the proportional relationship between the motor speed and the moving speed of the rotating block is configured, and the motor speed is adjusted or the gear ratio is modified to ensure that the rotating block completes the required moving distance within a predetermined time, specifically:

[0016] Test the motor speed at different voltages through experiments and record the motor speed under typical working conditions;

[0017] Measuring the moving distance of the rotating block: measuring the distance the rotating block needs to move in a complete locking or unlocking process;

[0018] Determine the time it takes the rotating block to complete one full move;

[0019] Adjust motor speed or modify gear ratio;

[0020] After selecting the motor speed and gear ratio, conduct preliminary tests to see if the rotating block moves smoothly and within the expected time. Based on the test results, fine-tune the motor speed or gear ratio to ensure that the rotating block moves at the expected speed.

[0021] Preferably, the speed of the rotating block with the best user experience is counted, and then the speed of the rotating block is configured according to the relationship between the motor speed and the moving speed of the rotating block, so that the speed of the rotating block reaches the speed of the rotating block with the best user experience;

[0022] Optimize S by adjusting the motor speed and / or the gearbox reduction ratio 旋转块 ;

[0023] The relationship between the motor speed and the moving speed of the rotating block is:

[0024]

[0025] V 电机 is the motor speed, unit: revolutions per minute;

[0026] R 齿轮箱 is the reduction ratio of the planetary gearbox;

[0027] D 旋转块 is the diameter of the rotating block, unit: mm;

[0028] S 旋转块 It is the linear speed of the rotating block per revolution, unit: mm / s.

[0029] The present invention also provides a charging gun, based on the aforementioned electronic lock for the charging gun, comprising a charging gun body, a charging gun face cover and a charging gun lock hook, a cavity for accommodating the electronic lock for the charging gun being formed in the charging gun body, the middle part of the charging gun lock hook is connected to the charging gun body for limited rotation, the unlocking button abuts against the lower end of the rear side of the charging gun lock hook, the charging gun face cover is used to close the cavity of the charging gun body, and the charging gun face cover is provided with a button abutting against the upper end of the rear side of the charging gun lock hook.

[0030] The beneficial effects of the present invention are as follows: when the user inserts the charging gun, since the unlock button is against the hook of the charging gun, it is necessary to press the unlock button down to lift the hook. Pressing the unlock button down triggers the mechanical switch. After the charging gun hook is connected to the charging pile, the first spring in the unlock block pushes the unlock button upward to reset the unlock button. At this time, the mechanical switch feeds back a switch signal to the PCB board. The PCB board detects that the power is insufficient, and then starts the motor. The motor drives the rotating block to rotate through the planetary gear box, and the rotation of the rotating block drives the unlock block to rotate horizontally. During the rotation process, the rotating block disengages from the signal switch and drives the unlock block to rotate, so that the slider on the unlock button and the slide groove on the unlock block are staggered, fixing the unlock button in the locked position, and the unlock button cannot be pressed down, reaching a locked state. During the locking process, the signal switch will detect the position of the rotating block by disengaging from the rotating block, and feed back a locking signal to the PCB board to ensure that the electronic lock has entered a locked state.

[0031] When the PCB board detects that the battery is fully charged and needs to be unlocked, the motor runs in the reverse direction, and the rotating block is driven to rotate in the reverse direction through the planetary gearbox. The reverse rotation of the rotating block drives the unlocking block to move horizontally. When the unlocking block moves, the first spring is compressed, causing the unlocking button to be pressed down, and the slider on the unlocking button and the slide groove on the unlocking block are located on the same vertical line, so that the unlocking button can be pressed to achieve the unlocking operation. At this time, the signal switch detects that the rotating block is in contact with the rotating block, and feeds back an unlocking signal to the PCB board to confirm that the electronic lock has been unlocked. When the unlocking button is pressed, the mechanical switch is triggered, and the mechanical switch sends a switch signal to the PCB board. Since the light is fully charged at this time, the PCB board will not start the motor.

[0032] In the event of a power failure or system failure, the user can unlock the door by pressing the emergency unlock button. The emergency unlock button drives the rotating block to rotate in the opposite direction through the connecting rod, thereby driving the unlocking block to move, thereby achieving the same mechanical unlocking process as electric unlocking.

[0033] The present invention ensures that the charging gun will not be misoperated or unlocked without authorization during use through the automatic locking and unlocking mechanism of the electronic lock, thereby ensuring the safety of the charging process, and is particularly suitable for high-power charging scenarios. The dual feedback design of the mechanical switch and the signal switch ensures that the locking and unlocking status of the electronic lock is monitored and fed back in real time, thereby increasing the reliability of the device. The automatic locking and unlocking operation is driven by a motor, and the user only needs to insert or unplug the charging gun to complete the operation without manual locking or unlocking, thereby improving the user's operational convenience. Even when the electronic system fails, the user can still unlock the device through the emergency unlock button, thereby increasing the emergency reliability of the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following briefly introduces the drawings required for use in the embodiment:

[0035] Figure 1 This is an exploded structural diagram of an electronic lock for a charging gun according to a preferred embodiment of the present invention;

[0036] Figure 2 This is an overall structural diagram of an electronic lock for a charging gun according to a preferred embodiment of the present invention;

[0037] Figure 3 This is a coverless structural diagram of an electronic lock for a charging gun according to a preferred embodiment of the present invention;

[0038] Figure 4 This is a diagram of the explosion structure of a charging gun according to another preferred embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the technical purpose, technical solution and beneficial effects of the present invention clearer, the technical solution of the present invention is further described below in conjunction with the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0040] The electronic lock for the charging gun of the preferred embodiment of the present invention is as follows Figure 1 As shown, see Figure 2-3 , including an electronic lock housing 10, a rotating block 20, a motor 30, a signal switch 40, a mechanical switch 50, a PCB board 60, an unlocking block 70 and an unlocking button 80, wherein:

[0041] The electronic lock housing 10 includes an electronic lock face cover 11 and an electronic lock bottom cover 12, and the electronic lock face cover 11 and the electronic lock bottom cover 12 are fixed by fasteners;

[0042] The motor 30 is provided with a planetary gearbox 31, and the rotating block 20 is connected to the motor 31 through the planetary gearbox 31. When the rotating block 20 rotates, the unlocking block 70 is driven to rotate horizontally and trigger the signal switch 40;

[0043] The unlocking button 80 is located above the unlocking block 70 and passes through the electronic lock cover 11. The unlocking block 70 is formed with a mounting groove 72. A first spring 71 is arranged in the mounting groove 72. The first spring 71 is sleeved on the unlocking button 80. The upper end of the first spring 71 abuts against the slider 81, and the lower end abuts against the unlocking block 70. The unlocking button 80 is provided with at least one slider 81. The unlocking block 70 is provided with a slide groove 73 for facilitating the slider 81 to slide up and down. There is a gap between the lower surface of the slider 81 and the upper surface of the unlocking block 70. When the unlocking button 80 moves downward, the mechanical switch 50 is triggered.

[0044] The mechanical switch 50 is located on one side of the unlocking block 70 and outputs a switch signal to the PCB board 60 by contacting the unlocking button 80;

[0045] The signal switch 40 is located on one side of the rotating block 20, and detects the position of the rotating block 20 by contacting the rotating block 20 and outputs a switch normally closed signal to the PCB board 60;

[0046] The PCB board 60 is used to receive the switch signal of the mechanical switch 50 and the normally closed switch signal of the signal switch 40, and drive the motor 30 according to the signal and the current power information.

[0047] When the user inserts the charging gun, since the unlock button is against the hook of the charging gun, it is necessary to press the unlock button down to lift the hook. Pressing the unlock button down triggers the mechanical switch. After the charging gun hook is connected to the charging pile, the first spring in the unlock block pushes the unlock button upward to reset the unlock button. At this time, the mechanical switch feeds back the switch signal to the PCB board. The PCB board detects that the power is insufficient, and then starts the motor. The motor drives the rotating block to rotate through the planetary gear box, and the rotation of the rotating block drives the unlock block to rotate horizontally. During the rotation process, the rotating block disengages from the signal switch and drives the unlock block to rotate, so that the slider on the unlock button and the slide groove on the unlock block are staggered, fixing the unlock button in the locked position, and the unlock button cannot be pressed down, reaching the locked state. During the locking process, the signal switch will detect the position of the rotating block by disengaging from the rotating block, and feed back the locking signal to the PCB board to ensure that the electronic lock has entered the locked state.

[0048] When the PCB board detects that the battery is fully charged and needs to be unlocked, the motor runs in the reverse direction, and the planetary gearbox drives the rotating block to rotate in the reverse direction. The reverse rotation of the rotating block drives the unlocking block to move laterally. When the unlocking block moves, the first spring is compressed, causing the unlocking button to be pressed down, and the slider on the unlocking button and the slide groove on the unlocking block are located on the same vertical line, so that the unlocking button can be pressed to achieve the unlocking operation. At this time, the signal switch detects the contact between the rotating block and the rotating block, and feeds back the unlocking signal to the PCB board to confirm that the electronic lock has been unlocked. When the unlocking button is pressed, the mechanical switch is triggered, and the mechanical switch sends a switch signal to the PCB board. Since it has been separated from the charging pile at this time, the PCB board will not start the motor.

[0049] The present invention ensures that the charging gun will not be misoperated or unlocked without authorization during use through the automatic locking and unlocking mechanism of the electronic lock, thereby ensuring the safety of the charging process, and is particularly suitable for high-power charging scenarios. The dual feedback design of the mechanical switch and the signal switch ensures that the locking and unlocking status of the electronic lock is monitored and fed back in real time, thereby increasing the reliability of the equipment. The automatic locking and unlocking operation is driven by a motor, and the user only needs to insert or unplug the charging gun to complete the operation, without the need for manual locking or unlocking, thereby improving the user's convenience of operation.

[0050] like Figure 1As shown, an emergency unlocking button 90 is also included. A connecting rod 91 is provided on the emergency unlocking button 90. A second spring 92 is sleeved on the connecting rod 91. The emergency unlocking button 90 is located on the other side of the rotating block 20 and passes through the electronic lock face cover 11. The second spring 92 is used to abut against the rotating block 20. The emergency unlocking button 90 is used to push the rotating block 20 to rotate. In the event of a power failure or system failure, the user can unlock the door by pressing the emergency unlocking button 90. The emergency unlocking button 90 drives the rotating block 20 to rotate in the opposite direction through the connecting rod 91. At the same time, the unlocking block 70 is driven to move, thereby realizing the same mechanical unlocking process as the electric unlocking.

[0051] The design of the emergency unlocking button allows the device to be unlocked mechanically when a power or electronic system failure occurs, greatly improving the safety and reliability of the device and making it suitable for a variety of complex charging environments.

[0052] Also included is an embodiment of a charging gun, based on the previous embodiment, such as Figure 4 As shown, it includes a charging gun body 100, a charging gun face cover 101 and a charging gun lock hook 102. A cavity for accommodating an electronic lock for the charging gun is formed in the charging gun body 100. The middle part of the charging gun lock hook 102 is connected to the charging gun body 100 for limited rotation. The unlocking button 80 abuts against the lower rear end of the charging gun lock hook 102. The charging gun face cover 101 is used to close the cavity of the charging gun body 100. The charging gun face cover 101 is provided with a button abutting against the upper rear end of the charging gun lock hook 102.

[0053] A cavity for accommodating an electronic lock is formed in the gun body of the charging gun, which makes reasonable use of the limited space inside the charging gun. By integrating the electronic lock in the gun body, the exposure of external components is effectively reduced, making the overall structure of the charging gun more compact, convenient to carry and operate, and also enhancing the aesthetics of the charging gun. The charging gun lock hook is connected to the middle part of the gun body through limited rotation to ensure the stability and reliability of the lock hook during the locking and unlocking process. The limited rotation design avoids the locking failure caused by excessive rotation of the lock hook, improves the accuracy of the locking, and ensures a tight fit when inserted into the charging pile. The unlocking button 80 is located at the lower end of the rear side of the charging gun lock hook 102, which is convenient for the user to press during use to unlock the charging gun. This design simplifies the user operation process. The user only needs to press the unlocking button to easily unlock the charging gun, which greatly improves the user experience. The unlocking button 80 is against the lower end of the rear side of the charging gun lock hook 102. When the unlocking button 80 is locked, the charging gun lock hook 102 is also restricted and cannot rotate.

[0054] In order to ensure that the motor speed matches the moving speed of the rotating block in the implementation, so as to achieve a fast and smooth locking / unlocking action, the following specific measures can be taken to calculate the proportional relationship between the motor speed (RPM) and the moving speed of the rotating block, adjust the motor speed or select the appropriate gear ratio to ensure that the rotating block completes the required moving distance within the predetermined time:

[0055] 1. Determine the proportional relationship between the motor speed and the moving speed of the rotating block

[0056] Test the motor speed: First, test the motor speed (RPM) at different voltages through experiments and record the motor speed under typical working conditions.

[0057] Measure the distance the rotating block moves: Measure the distance the rotating block needs to move in a complete locking or unlocking process (for example, the distance from the fully unlocked position to the fully locked position).

[0058] Determine the time required: Determine how long it takes for the rotating block to complete one full move. For example, you want the rotating block to complete the process from unlocked to locked in 1 second.

[0059] 2. Adjust the motor speed or choose a suitable gear ratio

[0060] Adjust the motor speed: If the motor speed is too fast, you can slow it down by reducing the motor supply voltage or using a speed regulator. Conversely, if the motor speed is too slow, you can increase the speed by increasing the motor supply voltage or using a higher performance motor. Choose the right gear ratio: By choosing the right gear ratio of the planetary gearbox, you can adjust the movement speed of the rotating block. For example, if the motor speed is 1000RPM and the rotating block needs to move 10 mm in 1 second, this can be achieved by choosing the appropriate gear ratio. Common gear ratios range from 1:1 to 10:1, and the appropriate ratio can be selected according to actual needs.

[0061] 3. Experimental Verification

[0062] Preliminary Test: After selecting the motor speed and gear ratio, perform a preliminary test to see if the movement of the rotating block is smooth and completed within the predetermined time.

[0063] Fine-tune parameters: Based on the test results, fine-tune the motor speed or gear ratio to ensure that the rotating block moves at the expected speed.

[0064] Multiple verifications: Conduct multiple tests to ensure that the moving speed and stability of the rotating block can meet the requirements under different conditions (such as different temperatures, humidity, etc.).

[0065] 4. Example Description

[0066] Assume that after testing, the motor speed is 1000RPM at 12V voltage, and the rotating block needs to complete a 10mm movement in 1 second. By selecting a planetary gearbox with a gear ratio of 5:1, the speed of the motor can be converted to 200RPM. In this way, the moving speed of the rotating block will be moderate, neither too fast to cause impact, nor too slow to affect the use experience.

[0067] Further user experience research is conducted to collect different users' feelings about the speed of the rotating block and determine a reasonable speed range. This speed range should ensure the safety and stability of the operation and meet the needs of most users for operation efficiency. Based on the survey results, a representative optimal user experience speed value S is selected. opt , as the linear speed target value of the rotating block per revolution. Next, the motor speed V needs to be calculated according to the following formula: 电机 :

[0068]

[0069] here:

[0070] V 电机 : Motor speed (unit: revolutions per minute);

[0071] R 齿轮箱 : Reduction ratio of planetary gearbox;

[0072] D 旋转块 : The diameter of the rotating block (unit: mm);

[0073] S 旋转块 : Linear speed of the rotating block per revolution (unit: mm / s);

[0074] According to the above formula, the motor speed V required to achieve the best user experience speed can be solved 电机 :

[0075]

[0076] By adjusting the supply voltage or current of the motor, the speed of the motor can be changed to meet the calculated optimal speed value.

[0077] If directly adjusting the motor speed cannot meet the requirements of the best user experience, you can also adjust the planetary gearbox reduction ratio R 齿轮箱 To indirectly change the moving speed of the rotating block.

[0078] After completing the initial adjustments, conduct multiple rounds of testing to verify whether the rotating block speed meets the expected user experience standards.

[0079] Based on the test results, further fine-tuning is done on the motor speed and gearbox deceleration until the best user experience is ultimately achieved.

[0080] In summary, the present invention provides an electronic lock system suitable for a charging gun, which integrates the automatic locking and unlocking functions driven by a motor, and realizes an efficient and stable locking operation through the cooperation of a planetary gearbox and a rotating block. In addition, the signal switch is combined with a mechanical switch to detect and feedback the locking and unlocking status in real time, ensuring the intelligence and safety of the system operation. At the same time, the present solution also specially designs an emergency unlocking button, which can be manually unlocked in the event of a power failure or system failure, thereby enhancing the emergency handling capability of the equipment. The overall structure is compact, easy to operate, has good protection and high adaptability, and is particularly suitable for applications in fields such as electric vehicle charging guns that require high reliability and convenience. The present invention effectively solves the problems of complex structure, lack of emergency unlocking function, and insufficient intelligence in the prior art, and has broad application prospects.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate but not limit the technical solutions of the present invention, and any equivalent substitutions of the present invention and any modifications or partial substitutions that do not depart from the spirit and scope of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. An electronic lock for a charging gun, characterized in that: The electronic lock comprises an electronic lock housing (10), a rotating block (20), a motor (30), a signal switch (40), a mechanical switch (50), a PCB board (60), an unlocking block (70) and an unlocking button (80), wherein: The electronic lock housing (10) comprises an electronic lock face cover (11) and an electronic lock bottom cover (12), and the electronic lock face cover (11) and the electronic lock bottom cover (12) are fixed by fasteners; The motor (30) is provided with a planetary gear box (31), and the rotating block (20) is connected to the motor (30) via the planetary gear box (31). When the rotating block (20) rotates, it drives the unlocking block (70) to rotate horizontally and triggers the signal switch (40); The unlocking button (80) is located above the unlocking block (70) and passes through the electronic lock cover (11); a mounting groove (72) is formed on the unlocking block (70); a first spring (71) is arranged in the mounting groove (72); the first spring (71) is sleeved on the unlocking button (80), and the lower end of the first spring (71) abuts against the unlocking block (70); at least one slider (81) is arranged on the unlocking button (80); the unlocking block (70) is provided with a slide groove (73) for facilitating the slider (81) to slide up and down; a gap exists between the lower surface of the slider (81) and the upper surface of the unlocking block (70); and the mechanical switch (50) is triggered when the unlocking button (80) moves downward; The mechanical switch (50) is located on one side of the unlocking block (70) and outputs a switch signal to the PCB board (60) by contacting the unlocking button (80); The signal switch (40) is located on one side of the rotating block (20), detects the position of the rotating block (20) and outputs a normally closed switch signal to the PCB board (60) by contacting the rotating block (20); The PCB board (60) is used to receive the switch signal of the mechanical switch (50) and the normally closed switch signal of the signal switch (40), and drive the motor (30) according to the signal and current power information.

2. The electronic lock for a charging gun according to claim 1, characterized in that: It also includes a connector (100), and the motor (30), the signal switch (40), the mechanical switch (50) and the connector (100) are all electrically connected to the PCB board (60).

3. The electronic lock for a charging gun according to claim 1, characterized in that: The electronic lock also includes an emergency unlocking button (90) arranged transversely, a connecting rod (91) being provided on the emergency unlocking button (90), a second spring (92) being sleeved on the connecting rod (91), the emergency unlocking button (90) being located on the other side of the rotating block (20) and passing through the electronic lock face cover (11), and being abutted against the rotating block (20) by the second spring (92), and the emergency unlocking button (90) being used to push the rotating block (20) to rotate.

4. The electronic lock for a charging gun according to claim 1, characterized in that: Configure the proportional relationship between the motor speed and the moving speed of the rotating block, adjust the motor speed or modify the gear ratio to ensure that the rotating block completes the required moving distance within the predetermined time, specifically: Test the motor speed at different voltages through experiments and record the motor speed under typical working conditions; Measuring the moving distance of the rotating block: measuring the distance the rotating block needs to move in a complete locking or unlocking process; Determine the time it takes the rotating block to complete one full move; Adjust motor speed or modify gear ratio; After selecting the motor speed and gear ratio, conduct preliminary tests to see if the movement of the rotating block is smooth and completed within the predetermined time; Based on the test results, fine-tune the motor speed or gear ratio to ensure that the rotating block moves at the expected speed.

5. The electronic lock for a charging gun according to claim 1, characterized in that: The speed of the rotating block with the best user experience is counted, and then the speed of the rotating block is configured according to the relationship between the motor speed and the moving speed of the rotating block, so that the speed of the rotating block reaches the speed of the rotating block with the best user experience; Optimize S by adjusting the motor speed and / or the gearbox reduction ratio 旋转块 ; The relationship between the motor speed and the moving speed of the rotating block is: V 电机 is the motor speed, unit: revolutions per minute; R 齿轮箱 is the reduction ratio of the planetary gearbox; D 旋转块 is the diameter of the rotating block, unit: mm; S 旋转块 It is the linear speed of the rotating block per revolution, unit: mm / s.

6. A charging gun, based on the electronic lock for a charging gun according to any one of claims 1 to 3, characterized in that: The invention comprises a charging gun body (100), a charging gun cover (101) and a charging gun lock hook (102), wherein a cavity for accommodating an electronic lock for the charging gun is formed in the charging gun body (100), the middle part of the charging gun lock hook (102) is connected to the charging gun body (100) in a limited rotational manner, the unlocking button (80) abuts against the lower end of the rear side of the charging gun lock hook (102), and the charging gun cover (101) is connected to the charging gun body (100) in a limited rotational manner, and the unlocking button (80) abuts against the lower end of the rear side of the charging gun lock hook (102). The charging gun cover (101) is used to seal the cavity of the charging gun body (100), and a button is provided on the charging gun cover (101) to abut against the upper end of the rear side of the charging gun lock hook (102).