Control method for electronic lock and control circuitTechnical field
The present invention relates to electric vehicle fields, in particular to a kind of control method for electronic lock and control circuit.
Background technology
In electric vehicle charging field, many occasions need electronic lock to lock two connection equipment, prevent two connectionsIt is arbitrarily detached between equipment, however the control circuit too complex of electronic lock in the prior art, cost are too high.
Invention content
The object of the present invention is to provide a kind of control method for electronic lock and control circuits, to be controlled by only changing voltageThe purpose of electronic lock processed.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
An embodiment of the present invention provides a kind of control method for electronic lock, including:The control method for electronic lock is entered by changingThe voltage of electronic lock controls the state of electronic lock.
In preferred embodiments of the present invention, the method changed into the voltage of electronic lock includes:
Voltage of the control into two supply lines of electronic lock;
When the voltage one positive one of two supply lines is negative, electronic lock work;
When the voltage of two supply lines just or is together born together, electronic lock keeps current working status.
In preferred embodiments of the present invention, the voltage of the control into two supply lines of electronic lock is switched by twoIt realizes.
In preferred embodiments of the present invention, the switch is single-pole double-throw switch (SPDT).
In preferred embodiments of the present invention, the electronic lock is that positive and negative transition electronic lock or coil obtain electric maintenance electronicsLock.
The embodiment of the present invention additionally provides a kind of electronic lock control circuit, and the electronic lock control circuit is suitable for passing through changeThe state of electronic lock is controlled into the voltage of electronic lock.
In preferred embodiments of the present invention, the electronic lock control circuit includes:
Electronic lock, switch and power supply;
Two supply lines of the power supply are electrically connected by switching with electronic lock;And
When the voltage one positive one of two supply lines is negative, electronic lock work;
When the voltage of two supply lines just or is together born together, electronic lock keeps current working status.
In preferred embodiments of the present invention, the quantity of the switch is two.
In preferred embodiments of the present invention, the switch is single-pole double-throw switch (SPDT);
The single-pole double-throw switch (SPDT) is suitable for switching the positive and negative of the power supply line voltage of the power supply.
In preferred embodiments of the present invention, the electronic lock is that positive and negative transition electronic lock or coil obtain electric maintenance electronicsLock.
Compared with the existing technology, the embodiment of the present invention has the advantages that:
An embodiment of the present invention provides a kind of control method for electronic lock and control circuits, wherein control method for electronic lock is by changingBecome the voltage into electronic lock to control the state of electronic lock.Only by changing into the positive and negative of the voltage of electronic lock, come realNow the state of electronic lock is controlled, electronic lock control circuit is optimized, reduces cost.
Description of the drawings
Present invention will be further explained below with reference to the attached drawings and examples.
Fig. 1 shows the control method for electronic lock flow chart that the embodiment of the present invention is provided.
Fig. 2 shows the circuit diagrams for the electronic lock control circuit that the embodiment of the present invention is provided.
Specific implementation mode
In conjunction with the accompanying drawings, the present invention is further explained in detail.These attached drawings are simplified schematic diagram, only withIllustration illustrates the basic structure of the present invention, therefore it only shows the composition relevant to the invention.
Embodiment
An embodiment of the present invention provides a kind of control method for electronic lock.The control method for electronic lock enters electricity by changingThe voltage of son lock controls the state of electronic lock.By change into the positive and negative of electronic lock voltage, to realize the control to electronic lockSystem, optimizes the structure of electronic lock control circuit, reduces cost.
Wherein, electronic lock is that transition electronic lock or coil obtain electric maintenance electronic lock.
Referring to Fig. 1, the method changed into the voltage of electronic lock includes:
S110:Voltage of the control into two supply lines of electronic lock.
Wherein, the voltage of the control into two supply lines of electronic lock is realized by two switches.Switch is that hilted broadsword is doubleThrow switch.
S120:When the voltage one positive one of two supply lines is negative, electronic lock work.
S130:When the voltage of two supply lines just or is together born together, electronic lock keeps current working status.
Referring to Fig. 2, the embodiment of the present invention additionally provides a kind of electronic lock control circuit.
The electronic lock control circuit is suitable for controlling the state of electronic lock by changing the voltage into electronic lock.
Specifically, the electronic lock control circuit includes:Electronic lock, switch and power supply;Two power supplies of the power supplyLine is electrically connected by switching with electronic lock;And two supply lines voltage one positive one it is negative when, electronic lock work;Two supply linesWhen voltage just or is together born together, electronic lock keeps current working status.
Wherein, DC-, DC+ are the voltage of supply lines, when DC- is connect by switch with electronic lock, expression supply lines at this timeVoltage is negative, when DC+ is connect by switch with electronic lock, indicates that the voltage of supply lines at this time is just.
Wherein, the quantity of switch is two, and the switch is single-pole double-throw switch (SPDT), and the single-pole double-throw switch (SPDT) is suitable for switchingThe power supply line voltage of the power supply it is positive and negative.That is, switch K1 connects positive voltage, switch K2 connects positive voltage, and electronic lock keeps currentWorking condition;Switch K1 connects negative voltage, and switch K2 connects positive voltage, electronic lock is lockked;Switch K1 connects negative voltage, and switch K2 connects negativeVoltage, electronic lock keep current working condition;Switch K1 connects positive voltage, and switch K2 connects negative voltage, electronic lock is opened.At itIn his embodiment, the positive and negative state of voltage of switch K1 and switch K2 can be replaced.
In the present embodiment, the working time of electronic lock is controlled by the closing time of switch, and switch can be delaySwitch, prevents electronic lock from damaging.In other embodiments, the working time of electronic lock can be determined by position sensor.
In conclusion an embodiment of the present invention provides a kind of control method for electronic lock and control circuits, wherein electronic lock controlledMethod processed controls the state of electronic lock by changing the voltage into electronic lock.Only by the voltage changed into electronic lockIt is positive and negative, to realize to the control of the state of electronic lock, optimize electronic lock control circuit, reduce cost.
In the description of the present invention, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting "," installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or oneConnect to body;It can be mechanical connection, can also be electrical connection;It can be directly connected, it can also be indirect by intermediaryIt is connected, can is the connection inside two elements.For the ordinary skill in the art, on being understood with concrete conditionState the concrete meaning of term in the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang YiIt is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this fieldFor art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repairChange, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.