Automatic unlocking type electronic lock

By using the combination of electromagnets and spring components in the electronic lock, combined with the genetic algorithm to optimize parameters, the automatic unlocking and locking function is realized, which solves the problem of manual operation of existing electronic locks, improves safety and convenience, and Reduces energy consumption.

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

Patent Information

Application Number
CN202411610054.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The existing electronic lock needs to be manually operated when locking and unlocking the charging gun, which is more troublesome and lacks automatic unlocking functions, which affects the safety and convenience of use.

Method used

An automatic unlocking electronic lock is designed, using the combination of electromagnet components and spring components. The number of turns and current strength of the coil is optimized through genetic algorithm to realize the automatic unlocking and locking function. The combination of electromagnets and reset springs is used to automatically reset and push. Blocks and unlock buttons simplify operation.

Benefits of technology

The automatic unlocking and locking function of electronic locks is realized, which improves the safety and convenience of use. By optimizing the performance of the electromagnet, energy consumption is reduced and energy efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119244085A_ABST
    Figure CN119244085A_ABST
Patent Text Reader

Abstract

The automatic unlocking type electronic lock comprises a bottom shell and a face shell, the face shell is fixed to the upper end of the bottom shell, a connector is installed at the lower end of the bottom shell, an electromagnet assembly is fixedly installed on the right side in the bottom shell, and a spring assembly is installed on the right portion of the electromagnet assembly. The connector is connected with a locking mechanism to transmit a control signal to the driving device, the unlocking button is always kept in an upward state under the driving of the second reset spring, when the electromagnet assembly is electrified to work, the iron core and the push block are driven to synchronously move leftwards, the signal switch is triggered, the push rod is made to lock the unlocking button at the same time, and the unlocking button is unlocked. Meanwhile, the unlocking button upwards extrudes the mechanical switch, so that the unlocking button cannot be pressed downwards, meanwhile, a long-time closing signal of the mechanical switch is kept, as long as the electromagnet assembly works to turn off a power supply, the spring assembly drives the iron core and the push block to automatically reset rightwards, so that the push rod automatically resets, and the unlocking button can be pressed downwards at the moment for unlocking; and the electronic lock is safer and more convenient to use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic locks, in particular to an automatic unlocking electronic lock. Background Art

[0002] There are more and more new energy vehicles. In order to ensure the safety of people, vehicles and charging piles during charging, the charging gun needs to have certain protection functions. When the charging gun is plugged in, an electronic lock is needed to prevent the charging gun from being accidentally disconnected.

[0003] At present, when locking the charging gun, most electronic locks need to press a switch to start the driving device of the locking mechanism to move the lock component to lock it. When unlocking, most of them need to manually close the switch to unlock it, which is more troublesome. Summary of the invention

[0004] The purpose of the present invention is to overcome the defects of the prior art and provide an automatic unlocking electronic lock to solve the problems raised in the above background technology.

[0005] An automatic unlocking electronic lock comprises a bottom shell and a front shell, wherein the front shell is fixed to the upper end of the bottom shell, a joint is installed at the lower end of the bottom shell, an electromagnet assembly is fixedly installed on the right side of the bottom shell, a spring assembly is installed on the right part of the electromagnet assembly, a push block is slidably connected to the bottom shell, the right part of the push block is connected to the left part of the electromagnet assembly, an unlocking button is elastically connected to the left side of the bottom shell, the upper part of the push block contacts the bottom of the unlocking button, a mechanical switch is fixed to the rear end of the bottom shell, the rear part of the unlocking button contacts the lower end of the mechanical switch, a signal switch is fixed to the rear end of the bottom shell, the signal switch is located on the right side of the mechanical switch, and the rear part of the push block contacts the lower end of the signal switch.

[0006] Furthermore, the electromagnet assembly includes a coil and an iron core, the coil is fixedly mounted on the bottom shell, the iron core is slidably connected to the inner side of the coil, and the left part of the iron core is fixed to the right part of the push block.

[0007] Furthermore, the spring assembly includes a T-shaped rod and a return spring 1, wherein the T-shaped rod is fixed to the right end of the iron core, the return spring 1 is arranged on the outside of the T-shaped rod, and the return spring 1 is connected between the right part of the coil and the right part of the T-shaped rod.

[0008] Furthermore, a push rod is fixed to the left end of the push block, a guide rail is fixed to the bottom end of the bottom shell and just below the unlocking button, and the left part of the push rod extends into the guide rail and is slidably connected to the guide rail.

[0009] Furthermore, the top section and right section of the push block are both "convex" shaped structures, and the push block is provided with convex edges below the front and rear ends and the left end. The convex edge at the left end contacts the bottom of the unlocking button, and the convex edge at the rear end contacts the metal sheet at the bottom of the signal switch.

[0010] Furthermore, a second return spring is connected between the lower end of the unlocking button and the bottom end of the bottom shell.

[0011] Furthermore, a pressure plate is fixed at the lower portion of the rear end of the unlocking button, and the pressure plate contacts the button at the lower portion of the mechanical switch.

[0012] Furthermore, the matching parameters between the electromagnet assembly and the iron core are configured, including:

[0013] Determine the maximum travel L of the electromagnet assembly and the iron core max , the calculation formula is:

[0014]

[0015] Where, L max is the maximum stroke of the iron core, which is based on the design requirements of the electromagnetic lock, that is, the stroke requirements of the push block 9 and the push rod 10, D is the inner diameter of the coil, d is the diameter of the iron core, and g is the gap between the inner diameter of the coil and the diameter of the iron core, ensuring that the iron core can move freely without physical obstacles;

[0016] Configure the number of coil turns and current intensity, and the calculation formula is:

[0017]

[0018] Where F is the magnetic force generated by the electromagnet, μ0 is the magnetic permeability of vacuum (approximately 4π×10 -7 T·m / A), N is the number of turns of the coil, I is the current intensity flowing through the coil, A is the effective cross-sectional area of ​​the coil, and g is the distance from the core to the center of the coil.

[0019] The number of turns N and the current intensity I of the coil have a direct impact on the magnetic force F generated by the electromagnet. By adjusting these two parameters, the performance of the electromagnet can be optimized. The fitness function is set to reflect the optimization goal, such as minimizing energy consumption or maximizing magnetic force. Genetic algorithms can explore the solution space and find the optimal solution or a solution close to the optimal solution.

[0020] Furthermore, a genetic algorithm is used to configure the number of coil turns N and the current intensity I, including the steps of:

[0021] Define the optimization objectives, including minimizing energy consumption and maximizing magnetic force. Establish the fitness function according to the optimization objectives. The fitness function for minimizing energy consumption is:

[0022] Where P represents power consumption, P = V × I, V is voltage, I is current, and F is the magnetic force generated by the electromagnet;

[0023] Fitness force (N, I) = F;

[0024] The fitness function that maximizes the magnetic force is:

[0025] Where F is the magnetic force generated by the electromagnet;

[0026] The application of genetic algorithm includes determining the reasonable range of coil turns N and current intensity I, generating the initial population, each individual contains a set of N and I values, using fitness function to calculate the fitness of each individual, selecting the next generation of individuals according to the fitness, performing crossover operation on the selected individuals, generating new individuals, performing mutation operation on the newly generated individuals, repeating the selection, crossover and mutation operations until the termination condition is met, using the optimized parameters to build the electromagnetic lock prototype, conducting actual tests, and making necessary parameter adjustments according to the test results.

[0027] The beneficial effects of the present invention are as follows: by connecting the connector to the locking mechanism, a control signal is transmitted to the driving device, and the unlocking button is always kept in an upward shape under the drive of the reset spring 2. When the electromagnet assembly is energized, the driving iron core and the push block move to the left synchronously, triggering the signal switch while allowing the push rod to (lock) the unlocking button at the same time. At the same time, the unlocking button presses the mechanical switch upward, making it impossible for the unlocking button to be pressed down, while maintaining a long closed signal of the mechanical switch. As long as the electromagnet assembly is in the power-off state, the iron core and the push block are driven to "automatically reset" to the right through the "spring assembly", thereby realizing automatic resetting of the push rod. At this time, the unlocking button can be pressed downward to unlock, making the electronic lock safer and more convenient to use.

[0028] Furthermore, the present invention can accurately find the optimal parameter combination by using a genetic algorithm to optimize the number of coil turns N and the current intensity I. The genetic algorithm can explore a larger solution space and avoid falling into a local optimal solution, thereby finding a global optimal solution or a solution close to the global optimal solution. This precise parameter optimization helps to improve the overall performance of the electromagnetic lock. In this embodiment, the optimization objectives include minimizing energy consumption and maximizing magnetic force. By establishing different fitness functions, multiple optimization objectives can be considered at the same time. The genetic algorithm can handle multi-objective optimization problems and find a Pareto optimal solution set, that is, a solution that strikes a balance between different objectives. This allows the electromagnetic lock to reduce energy consumption and improve energy efficiency while ensuring sufficient magnetic force. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is an overall schematic diagram of the present invention;

[0030] Figure 2 This is a schematic diagram of the present invention after removing the face shell;

[0031] Figure 3 This is a schematic diagram of the present invention after the electromagnet assembly is removed;

[0032] Figure 4 This is a schematic diagram of the present invention after the bottom shell and the front shell are removed.

[0033] In the figure: 1-bottom shell, 2-face shell, 3-connector, 4-unlock button, 5-coil, 6-iron core, 7-T-bar, 8-reset spring 1, 9-push block, 10-push rod, 11-guide rail, 12-signal switch, 13-mechanical switch, 14-reset spring 2, 15-convex edge, 16-pressure plate. DETAILED DESCRIPTION

[0034] See also Figure 1-Figure 4 , an automatic unlocking electronic lock, comprising a bottom shell 1 and a front shell 2, wherein the front shell 2 is fixed to the upper end of the bottom shell 1, a connector 3 is installed at the lower end of the bottom shell 1, an electromagnet assembly is fixedly installed on the right side inside the bottom shell 1, and the electromagnet assembly comprises a coil 5 and an iron core 6, wherein the coil 5 is fixedly installed with the bottom shell 1, and the iron core 6 is slidably connected to the inner side of the coil 5, and a control signal is transmitted to the driving device by connecting the connector 3 with the locking mechanism, and the coil 5 is externally connected to a power supply, so that when the coil 5 is energized, the iron core 6 can move to the left inside the coil 5;

[0035] The right part of the electromagnet assembly is installed with a spring assembly, and the spring assembly includes a T-shaped rod 7 and a reset spring 8. The T-shaped rod 7 is fixed to the right end of the iron core 6, and the reset spring 8 is arranged on the outside of the T-shaped rod 7. The reset spring 8 is connected between the right part of the coil 5 and the right part of the T-shaped rod 7. When the iron core 6 moves to the left, the T-shaped rod 7 will be driven to move to the left, and the right part of the T-shaped rod 7 will squeeze the reset spring 8. The reset spring 8 is set to reset the iron core 6 to the right after the coil 5 is powered off.

[0036] A push block 9 is slidably connected inside the bottom shell 1, and the right part of the push block 9 is connected to the left part of the electromagnet assembly, and the left part of the iron core 6 is fixed to the right part of the push block 9. An unlocking button 4 is elastically connected to the left side of the bottom shell 1, and a return spring 14 is connected between the lower end of the unlocking button 4 and the bottom end of the bottom shell 1. A push rod 10 is fixed to the left end of the push block 9, and a guide rail 11 is fixed to the bottom end of the bottom shell 1 and directly below the unlocking button 4. The left part of the push rod 10 extends into the guide rail 11 and is slidably connected to the guide rail 11. When the iron core 6 moves to the left, it will drive the push block 9 and the push rod 10 to move to the left together, so that the push rod 10 slides along the guide rail 11, which can play a guiding role for the push block 9;

[0037] The upper part of the push block 9 contacts the bottom of the unlock button 4, a mechanical switch 13 is fixed to the rear end of the bottom shell 1, the rear part of the unlock button 4 contacts the lower end of the mechanical switch 13, a pressure plate 16 is fixed to the lower part of the rear end of the unlock button 4, the pressure plate 16 contacts the button at the lower part of the mechanical switch 13, a signal switch 12 is fixed to the rear end of the bottom shell 1, the signal switch 12 is located on the right side of the mechanical switch 13, the rear part of the push block 9 contacts the lower end of the signal switch 12, the top section and the right section of the push block 9 are both "convex" shaped structures, and the push The block 9 is provided with convex edges 15 at the lower part of the front and rear ends and the left end. The convex edge 15 at the left end contacts the bottom of the unlocking button 4, and the convex edge 15 at the rear end contacts the metal sheet at the bottom of the signal switch 12. The mechanical switch 13 is connected to the driving device through the PCB, which is used to control the driving device to drive the mechanical lock rod to retract, and the signal switch 12 is connected to the driving device and the mechanical switch 13 through the PCB, which is used to control the driving device to drive the mechanical lock rod to extend and the mechanical switch 13 to close the signal. When the unlocking button 4 moves down, the pressure plate 16 is driven to move down and no longer squeeze the machine. The button at the bottom of the mechanical switch 13 is pressed, and the signal switch 12 is not triggered. At this time, the mechanical switch 13 is in the on state. When the unlocking button 4 needs to be locked, the electromagnet assembly is energized to work, and the driving iron core 6 and the push block 9 move to the left synchronously. The convex edge 15 at the rear of the push block 9 triggers the signal switch 12. At this time, the driving device drives the mechanical lock rod to extend to lock the charging gun, and then the push block 9 moves one end to the left from the convex edge 15 on the left to push the unlocking button 4 upwards. At the same time, the unlocking button 4 presses the mechanical switch 13 upwards, so that the unlocking button 4 cannot be pressed down, and the machine is kept locked. The mechanical switch 13 long closes the signal, and as long as the electromagnet assembly works in the power-off state, the reset spring 1 8 drives the iron core 6 and the push block 9 to reset to the right. In this way, when the signal switch 12 is turned off, the unlocking button 4 automatically moves down because the reset spring 2 14 is pulled down to achieve automatic unlocking. At this time, the mechanical switch 13 is not pressed, and the driving device drives the mechanical locking rod to retract to unlock the charging gun. In this way, when the unlocking button 4 triggers the signal switch 12, the mechanical locking rod of the charging gun extends, and the charging gun realizes the locking function, and then the unlocking button 4 is locked, which is more convenient to use.

[0038] In a preferred embodiment, the matching parameters between the electromagnet assembly and the iron core are configured, including:

[0039] Determine the maximum travel L of the electromagnet assembly and the iron core max , the calculation formula is:

[0040]

[0041] Where, L maxis the maximum stroke of the iron core, which is based on the design requirements of the electromagnetic lock, that is, the stroke requirements of the push block 9 and the push rod 10, D is the inner diameter of the coil, d is the diameter of the iron core, and g is the gap between the inner diameter of the coil and the diameter of the iron core, ensuring that the iron core can move freely without physical obstacles;

[0042] Configure the number of coil turns and current intensity, and the calculation formula is:

[0043]

[0044] Where F is the magnetic force generated by the electromagnet, μ0 is the magnetic permeability of vacuum (approximately 4π×10 -7 T·m / A), N is the number of turns of the coil, I is the current intensity flowing through the coil, A is the effective cross-sectional area of ​​the coil, and g is the distance from the core to the center of the coil.

[0045] The number of turns N and the current intensity I of the coil have a direct impact on the magnetic force F generated by the electromagnet. By adjusting these two parameters, the performance of the electromagnet can be optimized. The fitness function is set to reflect the optimization goal, such as minimizing energy consumption or maximizing magnetic force. Genetic algorithms can explore the solution space and find the optimal solution or a solution close to the optimal solution.

[0046] The genetic algorithm is used to configure the number of coil turns N and the current intensity I, including the steps:

[0047] Define the optimization objectives, including minimizing energy consumption and maximizing magnetic force. Establish the fitness function according to the optimization objectives. The fitness function for minimizing energy consumption is:

[0048] Where P represents power consumption, P = V × I, V is voltage, I is current, and F is the magnetic force generated by the electromagnet;

[0049] The fitness function that maximizes the magnetic force is: force (N, I) = F;

[0050] Where F is the magnetic force generated by the electromagnet;

[0051] Apply genetic algorithms, including:

[0052] Initialize the population: Randomly generate a set of initial values ​​of the number of coil turns N and the current intensity I as part of the population.

[0053] Calculate fitness: Calculate the fitness of each individual using the fitness function defined above.

[0054] Selection operation: select individuals for the next generation based on fitness. Possible selection methods include roulette selection, tournament selection, etc.

[0055] Crossover operation: Randomly select two individuals to cross and generate new individuals. The crossover point can be single-point crossover or multi-point crossover.

[0056] Mutation operation: mutate an individual with a certain probability, that is, randomly change part of the individual's genes (such as the number of coil turns N or the current intensity I).

[0057] Termination Condition: Set the termination condition, such as reaching the maximum number of iterations or the fitness value no longer significantly improving.

[0058] Experimental verification: Use the optimized parameter values ​​to build an electromagnetic lock prototype and conduct actual tests to verify the optimization effect.

[0059] Feedback Adjustment: Based on the experimental results, it may be necessary to fine-tune the optimization parameters until all design requirements are met.

[0060] The specific implementation steps include:

[0061] Determine the parameter range: Determine the reasonable range of the coil turns N and the current intensity I according to the design requirements of the electromagnetic lock.

[0062] Initialize the population: Generate an initial population, each individual contains a set of N and I values.

[0063] Calculate fitness: Use the fitness function to calculate the fitness of each individual.

[0064] Selection operation: select the next generation of individuals based on fitness.

[0065] Crossover operation: Perform a crossover operation on the selected individuals to generate new individuals.

[0066] Mutation operation: Perform mutation operation on the newly generated individuals.

[0067] Repeat iteration: Repeat selection, crossover, and mutation operations until the termination condition is met.

[0068] Experimental verification: Use the optimized parameters to build an electromagnetic lock prototype and conduct actual tests.

[0069] Feedback adjustment: Make necessary parameter adjustments based on test results.

[0070] The present invention can accurately find the optimal parameter combination by using a genetic algorithm to optimize the number of coil turns N and the current intensity I. The genetic algorithm can explore a larger solution space, avoid falling into a local optimal solution, and thus find a global optimal solution or a solution close to the global optimal solution. This precise parameter optimization helps to improve the overall performance of the electromagnetic lock. In this embodiment, the optimization objectives include minimizing energy consumption and maximizing magnetic force. By establishing different fitness functions, multiple optimization objectives can be considered at the same time. The genetic algorithm can handle multi-objective optimization problems and find a Pareto optimal solution set, that is, a solution that strikes a balance between different objectives. This allows the electromagnetic lock to reduce energy consumption and improve energy efficiency while ensuring sufficient magnetic force. The fitness function can be adjusted according to specific needs. For example, if a certain application scenario pays more attention to magnetic force, a higher weight can be given to the fitness function that maximizes magnetic force; if more attention is paid to energy consumption, a higher weight can be given to the fitness function that minimizes energy consumption. This flexibility makes the optimization process more adaptable to different application scenarios and needs. The genetic algorithm can quickly converge to the optimal solution or a solution close to the optimal solution through selection, crossover and mutation operations. These operations simulate the principles of natural selection and genetics, can efficiently explore the solution space, and avoid problems such as gradient calculation in traditional optimization methods. This makes the optimization process more efficient and shortens the development cycle.

Claims

1. An automatic unlocking electronic lock, comprising a bottom shell (1) and a front shell (2), wherein the front shell (2) is fixed to the upper end of the bottom shell (1), and a joint (3) is installed at the lower end of the bottom shell (1), characterized in that: An electromagnet assembly is fixedly installed on the right side of the bottom shell (1), and a spring assembly is installed on the right side of the electromagnet assembly. A push block (9) is slidably connected to the bottom shell (1), and the right side of the push block (9) is connected to the left side of the electromagnet assembly. An unlocking button (4) is elastically connected to the left side of the bottom shell (1), and the upper part of the push block (9) contacts the bottom of the unlocking button (4). A mechanical switch (13) is fixed at the rear end of the bottom shell (1), and the rear part of the unlocking button (4) contacts the lower end of the mechanical switch (13). A signal switch (12) is fixed at the rear end of the bottom shell (1), and the signal switch (12) is located on the right side of the mechanical switch (13). The rear part of the push block (9) contacts the lower end of the signal switch (12).

2. The automatic unlocking electronic lock according to claim 1, characterized in that: The electromagnet assembly comprises a coil (5) and an iron core (6); the coil (5) is fixedly mounted on the bottom shell (1); the iron core (6) is slidably connected to the inner side of the coil (5); and the left part of the iron core (6) is fixed to the right part of the push block (9).

3. The automatic unlocking electronic lock according to claim 2, characterized in that: The spring assembly comprises a T-shaped rod (7) and a return spring (8), wherein the T-shaped rod (7) is fixed to the right end of the iron core (6), the return spring (8) is arranged outside the T-shaped rod (7), and the return spring (8) is connected between the right part of the coil (5) and the right part of the T-shaped rod (7).

4. The automatic unlocking electronic lock according to claim 1, characterized in that: A push rod (10) is fixed to the left end of the push block (9), a guide rail (11) is fixed to the bottom end of the bottom shell (1) and directly below the unlocking button (4), and the left part of the push rod (10) extends into the guide rail (11) and is slidably connected to the guide rail (11).

5. The automatic unlocking electronic lock according to claim 1, characterized in that: The top section and right section of the push block (9) are both in a "convex" shape. The push block (9) is provided with convex edges (15) below the front and rear ends and at the left end. The convex edge (15) at the left end contacts the bottom of the unlocking button (4), and the convex edge (15) at the rear end contacts the metal sheet at the bottom of the signal switch (12).

6. The automatic unlocking electronic lock according to claim 1, characterized in that: A second return spring (14) is connected between the lower end of the unlocking button (4) and the bottom end of the bottom shell (1).

7. The automatic unlocking electronic lock according to claim 1, characterized in that: A pressing plate (16) is fixed to the lower rear end of the unlocking button (4), and the pressing plate (16) contacts the button at the lower part of the mechanical switch (13).

8. The automatic unlocking electronic lock according to claim 1, characterized in that: Configure the matching parameters between the electromagnet assembly and the iron core, including: Determine the maximum travel L of the electromagnet assembly and the iron core max , the calculation formula is: Where, L max is the maximum stroke of the core, D is the inner diameter of the coil, d is the diameter of the core, and g is the gap between the inner diameter of the coil and the diameter of the core; Configure the number of coil turns and current intensity, and the calculation formula is: Where F is the magnetic force generated by the electromagnet, μ0 is the magnetic permeability of vacuum, N is the number of turns of the coil, I is the current intensity flowing through the coil, A is the effective cross-sectional area of ​​the coil, and g is the distance from the core to the center of the coil.

9. The automatic unlocking electronic lock according to claim 8, characterized in that: The genetic algorithm is used to configure the number of coil turns N and the current intensity I, including the steps: Define the optimization objectives, including minimizing energy consumption and maximizing magnetic force. Establish the fitness function according to the optimization objectives. The fitness function for minimizing energy consumption is: Where P represents power consumption, P = V × I, V is voltage, I is current, and F is the magnetic force generated by the electromagnet; The fitness function that maximizes the magnetic force is: force (N, I) = F; Where F is the magnetic force generated by the electromagnet; The application of genetic algorithm includes determining the reasonable range of coil turns N and current intensity I, generating the initial population, each individual contains a set of N and I values, using fitness function to calculate the fitness of each individual, selecting the next generation of individuals according to the fitness, performing crossover operation on the selected individuals, generating new individuals, performing mutation operation on the newly generated individuals, repeating the selection, crossover and mutation operations until the termination conditions are met, using the optimized parameters to build the electromagnetic lock prototype, conducting actual tests, and adjusting the parameters according to the test results.