A kind of WIFI magnetic force lock control circuit
Technical field
The utility model is related to circuitry field, more particularly to a kind of WIFI magnetic force lock control circuit.
Background technology
Scientific development, social progress, various equipment all develop therewith in life, especially door latch device, and door lock is used instantly
Key unlocking is bothered, while door lock security performance is low instantly, it is impossible to effectively play anti-theft function, invents a kind of WIFI magnetic key operated locks
It can conveniently unlock, effectively ensure property safety, while convenient operation.
Utility model content
The purpose of this utility model is to provide a kind of WIFI magnetic force lock control circuit, to solve above-mentioned technical problem, is
Realize that above-mentioned purpose the utility model uses following technical scheme:
A kind of WIFI magnetic force lock control circuit, it is mono- that magnetic force lock control circuit mainly includes power circuit, STM32M107VCT6
Piece machine, ESP8266WIFI circuits, CH340G telecommunication circuits and SPI-FLASH storage circuits, the power circuit with
STM32M107VCT6 single-chip microcomputers are connected, and pass through electricity of the STM32M107VCT6 single-chip microcomputers for magnetic force lock control circuit with stable
Source is inputted, and the STM32M107VCT6 single-chip microcomputers are connected with ESP8266WIFI circuits, and are received by ESP8266WIFI circuits
Wireless signal, the STM32M107VCT6 single-chip microcomputers are connected with CH340G telecommunication circuits, and are fed back by CH340G telecommunication circuits
Signal, the SPI-FLASH storage circuits are connected with STM32M107VCT6 single-chip microcomputers, the pre- reading of STM32M107VCT6 single-chip microcomputers
According to being stored in SPI-FLASH storage circuits.
On the basis of above-mentioned technical proposal, input terminating resistor NTC, resistance the NTC warp of 24V voltages 2 of the power circuit
Capacity earth, resistance NTC meets inductance L1 through diode D1, and inductance L1 is grounded through electric capacity C6, and inductance L1 is grounded through electric capacity C2, inductance
L1 is grounded through diode D3, while inductance L1 connects the VIN ports of chip IC 1, the ON/OFF ports of chip IC 1, GND ports and
PAD ports are grounded, and the FB ports of chip IC 1 are grounded through electric capacity C7, and the FB ports of chip IC 1 are grounded through electric capacity C3, chip IC 1
FB ports connect OUT terminal mouthful through inductance L4, and the FB ports of chip IC 1 connect the DC5V output ends of power circuit, while the FB of chip IC 1
Port meets diode D2 through inductance L2, and diode D2 connects the VDD5V output ports of power circuit, and diode D2 connects electricity through electric capacity C5
Hold C4, the OUT terminal mouthful of chip IC 1 is grounded through diode D6, and 1 port of power circuit is grounded through resistance MOV, while resistance MOV
Diode D5 is met through electric capacity C4, diode D5 connects the VDD5V output ports of power circuit through resistance R4.
On the basis of above-mentioned technical proposal, the VSSA ports ground connection of the STM32M107VCT6 single-chip microcomputers,
The VDDA ports of STM32M107VCT6 single-chip microcomputers are connected with the resistance R30 and resistance R32 of ESP8266WIFI circuits simultaneously,
The VREF- ports of STM32M107VCT6 single-chip microcomputers are grounded through resistance R22, the VREF+ ports of STM32M107VCT6 single-chip microcomputers
The VCC ports and HOLD ports of storage chip in SPI-FLASH-E2ROM storage circuits, STM32M107VCT6 are connect through resistance R23
The VBAT ports of single-chip microcomputer are grounded through electric capacity C26, and the VBAT ports of STM32M107VCT6 single-chip microcomputers meet SPI- through diode D11
The WP ports of storage chip in FLASH-E2ROM storage circuits, the VBAT ports of STM32M107VCT6 single-chip microcomputers are through diode
D13 connects battery E positive pole, battery E negative poles ground connection, while the VBAT ports of STM32M107VCT6 single-chip microcomputers connect through electric capacity C26
Ground, the NRST ports of STM32M107VCT6 single-chip microcomputers are grounded through electric capacity C27, the NRST ports warp of STM32M107VCT6 single-chip microcomputers
S1 ground connection is switched, the NRST ports of STM32M107VCT6 single-chip microcomputers meet transistor Q3 in CH340G telecommunication circuits through resistance R25
Emitter stage.
On the basis of above-mentioned technical proposal, WIFI control chips ESP8266 GND ends in the ESP8266WIFI circuits
Mouth ground connection, WIFI control chips ESP8266 GPIO0 ports are grounded through resistance R33, WIFI control chips ESP8266 TXD ends
Mouth connecting resistance 36, WIFI control chips ESP8266 RXD ports connecting resistance R37,.
On the basis of above-mentioned technical proposal, the CH340G telecommunication circuits resistance R27 connects transistor Q2 colelctor electrode, simultaneously
Transistor Q2 colelctor electrode meets diode D14, and transistor Q2 emitter stage connects transistor Q3 base stage through resistance R31, while brilliant
Body pipe Q2 emitter stage connects the DTR ports of chip IC 2, and transistor Q2 base stage connects the RTS ports of chip IC 2 through resistance R28, brilliant
Body pipe Q3 colelctor electrode is with regard to that resistance R38 connecting resistance R41, while transistor Q3 colelctor electrode connects STM32M107VCT6 monolithics
The BOOT0 ports of machine, resistance R41 connects multi-functional port JP4 3 ports, multi-functional port JP4 1 and 2 port, many work(
Energy port JP4 4 port connecting resistance R42, while multi-functional port JP4 5 ports and 6 ports connect 3.3V inputs, chip IC 2
VCC ports are grounded through electric capacity C28 and electric capacity C29 respectively, while VCC ports connect the DC5V output ports of power circuit, chip IC 2
GND ports ground connection, the V3 ports of chip IC 2 are grounded through electric capacity C30, connect brilliant between the XI ports and XO ports of chip IC 2
Shaken Y3, and the XI ports of chip IC 2 are grounded through electric capacity C34, and the XO ports of chip IC 2 are grounded through electric capacity C33.
On the basis of above-mentioned technical proposal, the VCC ports of the chip IC 3 in the SPI-FLASH storage circuits are through electric capacity
C12 is grounded, the GND ground connection of chip IC 3.
On the basis of above-mentioned technical proposal, the chip IC 1 is using LM2576 type output buck switching modes integrated voltage-stabilized electricity
Road, the chip IC 2 uses CH340G type communication chips, and the chip IC 3 is using the serial FLASH memories of W25X16.
The circuit of the utility model design is passed through by setting power circuit to provide stable power input for magnetic key operated lock
STM32M107VCT6 single-chip microcomputers are set to carry out the finishing analysis of data, the output signal that can effectively stablize can be controlled effectively
The adhesive of magnetic key operated lock processed, so as to reach antitheft purpose.
Brief description of the drawings
Fig. 1 is power circuit diagram.
Fig. 2 is STM32M107VCT6 single chip circuit figures.
Fig. 3 is ESP8266WIFI circuit diagrams.
Fig. 4 is CH340G telecommunication circuit figures.
Fig. 5 is SPI-FLASH storage circuit figures.
Embodiment
The utility model is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
A kind of WIFI magnetic force lock control circuit, it is mono- that magnetic force lock control circuit mainly includes power circuit, STM32M107VCT6
Piece machine, ESP8266WIFI circuits, CH340G telecommunication circuits and SPI-FLASH storage circuits, the power circuit with
STM32M107VCT6 single-chip microcomputers are connected, and pass through electricity of the STM32M107VCT6 single-chip microcomputers for magnetic force lock control circuit with stable
Source is inputted, and the STM32M107VCT6 single-chip microcomputers are connected with ESP8266WIFI circuits, and are received by ESP8266WIFI circuits
Wireless signal, the STM32M107VCT6 single-chip microcomputers are connected with CH340G telecommunication circuits, and are fed back by CH340G telecommunication circuits
Signal, the SPI-FLASH storage circuits are connected with STM32M107VCT6 single-chip microcomputers, the pre- reading of STM32M107VCT6 single-chip microcomputers
According to being stored in SPI-FLASH storage circuits.
The input terminating resistor NTC of 24V voltages 2 of the power circuit, resistance NTC is through capacity earth, and resistance NTC is through two poles
Pipe D1 meets inductance L1, and inductance L1 is grounded through electric capacity C6, and inductance L1 is grounded through electric capacity C2, and inductance L1 is grounded through diode D3, simultaneously
Inductance L1 connects the VIN ports of chip IC 1, ON/OFF ports, GND ports and the PAD ports ground connection of chip IC 1, the FB of chip IC 1
Port is grounded through electric capacity C7, and the FB ports of chip IC 1 are grounded through electric capacity C3, and the FB ports of chip IC 1 connect OUT terminal through inductance L4
Mouthful, the FB ports of chip IC 1 connect the DC5V output ends of power circuit, while the FB ports of chip IC 1 connect diode through inductance L2
D2, diode D2 connect the VDD5V output ports of power circuit, and diode D2 meets electric capacity C4, the OUT terminal of chip IC 1 through electric capacity C5
Mouth is grounded through diode D6, and 1 port of power circuit is grounded through resistance MOV, while resistance MOV meets diode D5 through electric capacity C4,
Diode D5 connects the VDD5V output ports of power circuit through resistance R4.
The VSSA ports ground connection of the STM32M107VCT6 single-chip microcomputers, the VDDA ports of STM32M107VCT6 single-chip microcomputers are same
When be connected with the resistance R30 and resistance R32 of ESP8266WIFI circuits, the VREF- ports of STM32M107VCT6 single-chip microcomputers are through electricity
R22 ground connection is hindered, the VREF+ ports of STM32M107VCT6 single-chip microcomputers connect SPI-FLASH-E2ROM storage circuits through resistance R23
The VCC ports and HOLD ports of middle storage chip, the VBAT ports of STM32M107VCT6 single-chip microcomputers are grounded through electric capacity C26,
The VBAT ports of STM32M107VCT6 single-chip microcomputers connect storage chip in SPI-FLASH-E2ROM storage circuits through diode D11
WP ports, the VBAT ports of STM32M107VCT6 single-chip microcomputers connect battery E positive pole through diode D13, and battery E negative poles are grounded, together
When STM32M107VCT6 single-chip microcomputers VBAT ports be grounded through electric capacity C26, the NRST ports of STM32M107VCT6 single-chip microcomputers warp
Electric capacity C27 is grounded, and the NRST ports of STM32M107VCT6 single-chip microcomputers are grounded through switching S1, STM32M107VCT6 single-chip microcomputers
NRST ports connect the emitter stage of transistor Q3 in CH340G telecommunication circuits through resistance R25.
WIFI control chips ESP8266 GND ports ground connection, WIFI control chips in the ESP8266WIFI circuits
ESP8266 GPIO0 ports are grounded through resistance R33, WIFI control chips ESP8266 TXD ports connecting resistance 36, WIFI controls
Chip ESP8266 RXD ports connecting resistance R37,.
The CH340G telecommunication circuits resistance R27 connects transistor Q2 colelctor electrode, while transistor Q2 colelctor electrode connects two
Pole pipe D14, transistor Q2 emitter stage connects transistor Q3 base stage through resistance R31, while transistor Q2 emitter stage connects chip
IC2 DTR ports, transistor Q2 base stage connects the RTS ports of chip IC 2 through resistance R28, and transistor Q3 colelctor electrode is with regard to that
Resistance R38 connecting resistance R41, while transistor Q3 colelctor electrode connects the BOOT0 ports of STM32M107VCT6 single-chip microcomputers, resistance R41
Connect multi-functional port JP4 3 ports, multi-functional port JP4 1 and 2 port, multi-functional port JP4 4 port connecting resistances
R42, while multi-functional port JP4 5 ports and 6 ports connect 3.3V inputs, the VCC ports of chip IC 2 respectively through electric capacity C28 and
Electric capacity C29 is grounded, while VCC ports connect the DC5V output ports of power circuit, the GND ports ground connection of chip IC 2, chip IC 2
V3 ports through electric capacity C30 be grounded, between the XI ports and XO ports of chip IC 2 connect crystal oscillator Y3, chip IC 2 XI ports warp
Electric capacity C34 is grounded, and the XO ports of chip IC 2 are grounded through electric capacity C33.
The VCC ports of chip IC 3 in the SPI-FLASH storage circuits are grounded through electric capacity C12, and the GND of chip IC 3 connects
Ground.
The chip IC 1 uses LM2576 type output buck switching mode integrated stable voltage circuits, and the chip IC 2 is used
CH340G type communication chips, the chip IC 3 is using the serial FLASH memories of W25X16.
The circuit of the utility model design is steady by setting power circuit to be connected progress with STM32M107VCT6 single-chip microcomputers
Fixed power input, wireless signal is received by ESP8266WIFI circuits, and logic point is carried out by STM32M107VCT6 single-chip microcomputers
Analysis, and then signal output is carried out by CH340G telecommunication circuits, pass through the temporary transient storage of SPI-FLASH storage circuit data.
Described above is the utility model preferred embodiment, for the ordinary skill in the art, according to this reality
With new teaching, in the case where not departing from principle of the present utility model and spirit, the change that is carried out to embodiment, repair
Change, replace and modification is still fallen within protection domain of the present utility model.