CN109755819A - A kind of intelligent socket hardware circuit based on ONENET cloud platform - Google Patents
A kind of intelligent socket hardware circuit based on ONENET cloud platform Download PDFInfo
- Publication number
- CN109755819A CN109755819A CN201910099824.1A CN201910099824A CN109755819A CN 109755819 A CN109755819 A CN 109755819A CN 201910099824 A CN201910099824 A CN 201910099824A CN 109755819 A CN109755819 A CN 109755819A
- Authority
- CN
- China
- Prior art keywords
- pin
- capacitor
- resistance
- chip
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Direct Current Feeding And Distribution (AREA)
Abstract
The invention discloses a kind of intelligent socket hardware circuit based on ONENET cloud platform, hardware circuit includes main control module, power conversion module, relay switch control module, buzzer alarm circuit module and usb circuit;Wherein power conversion module includes 5V voltage conversion circuit module electricity and 3.3V voltage conversion circuit module, and relay switch control module includes the first relay switching circuit module and the second relay switching circuit module;Product of the present invention small power consumption, measurement result is accurate, and volume is minimum, can remotely be controlled by mobile phone terminal and easy to operate, and real-time is good, the work of electrical appliance and power consumption condition accurately can be fed back to user, is shown on included OLED screen curtain.It can also be timed operation as needed, while having security alarm, the functions such as overload protection ensure that safety in use.
Description
Technical field
The invention belongs to embedded system technology fields, and in particular to a kind of intelligent socket based on ONENET cloud platform is hard
Part circuit.
Background technique
With the rapid development of society, Intelligent life will be the primary selection of the following people.Smart home is using elder generation
Into technology so that the various aspects of home life is intelligently combined, and by network implementations manage smart home device,
To achieve the purpose that whenever and wherever possible using intelligentized control method household electrical appliances and monitoring household.Intelligent socket as smart home field one
The development of a basic component, its development and smart home field is closely bound up.Present electrical equipment is greatly most without intelligence
Function can be changed, operated and its clumsy, and be unequal to every year because fire caused by security risk existing for electrical appliance is also several
Number.Existing overwhelming majority socket does not have any intelligent function, and a part of intelligent socket also only has timing open and close, can not
Detection is carried out to abnormal condition and powers off control, is difficult to meet people's lives demand.It is out of strength in global recovery, China
Economic slowdown in growth has become under true overall situation, and intelligent socket total size is by held stationary situation, the Chinese intelligence by 2018
The yield of energy hardware is estimated to reach 480,000,000,000 yuan, and global occupation rate is more than 30%.It is external then develop more relative to domestic market
For maturation, consumer is relatively high to the degree of recognition of smart home product.The socket of intelligence remotely can be monitored and control,
It can measure, control environment temperature, can be handled, be eliminated safe hidden trouble with automatic immediate with early warning, telemetering.Therefore, Neng Goushi
It now controls, communicate, detecting and the intelligent socket of other function has good market and development prospect.
Summary of the invention
In view of the deficiencies of the prior art, the present invention proposes a kind of, and the intelligent socket hardware based on ONENET cloud platform is electric
Road.In order to achieve the goal above, the technical solution adopted by the present invention are as follows:
A kind of intelligent socket hardware circuit based on ONENET cloud platform, hardware circuit include main control module, power supply conversion
Module, relay switch control module, buzzer alarm circuit module and usb circuit;Wherein power conversion module includes
5V voltage conversion circuit module electricity and 3.3V voltage conversion circuit module, relay switch control module include that the first relay is opened
Close circuit module and the second relay switching circuit module;
The main control module include master controller, the first key circuit modular circuit, the second key circuit modular circuit,
WIFI module interface circuit, energy meter modular circuit, AccessPort modular circuit, resets OLED display module interface circuit
Circuit, clock circuit module circuit, filter circuit module circuit and oscillating circuit.Wherein master controller is the first core
Piece STM32F103RCT6U1, the pin 41,42,43 of the first chip STM32F103RCT6U1 connect the correspondence pin of WIFI module;
Pin 29,30 pins of first chip STM32F103RCT6U1 meet OLED display module, the first chip STM32F103RCT6U1
Pin 46 and pin 49 connect the correspondence connection jaws of downloading wire, the pin 16,17 of the first chip STM32F103RCT6U1 connects energy
Measure the corresponding interface of metering module;Pin 1, pin 32, pin 48, the pin 64, pin of first chip STM32F103RCT6U1
19, pin 13 is connected with+3.3V, pin 31 and pin 47, pin 63, pin 18, the pipe of the first chip STM32F103RCT6U1
Foot 12 is connected and is grounded.The pin 60 of first chip STM32F103RCT6U1 is connected with one end of the 5th resistance R5, the 5th resistance
The other end of R5 is grounded, and the pin 28 of the first chip STM32F103RCT6U1 is connected with one end of second resistance R2, second resistance
The other end of R2 is grounded.The pin that first chip STM32F103RCT6U1 is not mentioned herein is all aerial.
The 5V voltage conversion circuit includes voltage transformation module HLK-PM01, the 12nd capacitor C12, the 13rd capacitor
C13, the 14th capacitor C14, the 15th capacitor C15, LED light D1, the tenth resistance R10.One end of tenth resistance R10 and the
The anode of 12 capacitor C12, the anode of the 15th capacitor C15, the anode of VOUT, the 13rd in voltage transformation module HLK-PM01
One end of capacitor C13, one end connection of the 14th capacitor C14 and as 5V power output end, the anode of LED light D1 and the
The other end of ten resistance R10 is connected, the cathode of the 12nd capacitor C12 and the other end, the 14th capacitor of the 13rd capacitor C13
The cathode connection of the other end of C14, the cathode of the 15th capacitor C15, the cathode of power conversion module VOUT, LED light D1
And it is grounded.
The 3.3V voltage conversion circuit includes the 16th capacitor C16, the 17th capacitor C17, the 18th capacitor C18 and electricity
Press conversion module AMS1117_3.3U4.One end, one end of the 17th capacitor C17, the 18th capacitor C18 of 16th capacitor C16
One end and the GND of voltage transformation module U4 be connected with ground terminal, the other end, the voltage transformation module U4 of the 17th capacitor C17
The end VIN be connected with+5V, the other end of the 18th capacitor C18 of the other end of the 16th capacitor C16 and voltage transformation module U4's
VOUT interface is connected with+3.3V.
The buzzer alarm circuit includes the 22nd resistance R22, the 24th resistance R24, triode Q3, buzzer
LS1.One end of buzzer LS1 is connected with+3.3V, the collector of another termination triode Q3 of buzzer LS1, triode Q3's
Emitter ground connection, one end of the 22nd resistance R22 are connected with the base stage of one end of the 24th resistance R24, triode Q3, the
The pin 33 of the first chip of another termination STM32F103RCT6U1 of 22 resistance R22.
First relay switching circuit includes the 4th relay K4, eleventh resistor R11, twelfth resistor R12, the
13 resistance R13, the 14th resistance R14, the second light emitting diode D2, third diode D3, the first triode Q1, the 5th optocoupler
Chip PC817U5.One end of twelfth resistor R12 is connected with+3.3V, the other end of twelfth resistor R12 and the 5th optocoupler core
The anode of optocoupler diode connects in piece PC817U5, the cathode and the first core of optocoupler diode in the 5th opto-coupler chip PC817U5
The pin 14 of piece STM32F103RCT6U1 is connected, and one end of thirteenth resistor R13, one end of the 4th relay K4, second shine
The anode of diode D2, the cathode of third diode D3 are connected with+5V, the other end and eleventh resistor of the 4th relay K4
One end of R11, the anode of third diode D3, the first triode Q1 collector be connected, the other end of eleventh resistor R11 with
The cathode of second light emitting diode D2 is connected, triode in the other end of thirteenth resistor R13 and the 5th opto-coupler chip PC817U5
Collector connection, the emitter of triode is connected with one end of the 14th resistance R14 in the 5th opto-coupler chip PC817U5, the
The base stage of one triode Q1 is connected with the other end of the 14th resistance R14, the emitter ground connection of the first triode Q1.
Second relay switching circuit includes the 5th relay K5, the 15th resistance R15, the 16th resistance R16, the
17 resistance R17, the 18th resistance R18, the 5th light emitting diode D5, the 6th diode D6, the second triode Q2, the 7th optocoupler
Chip PC817U7.One end of 16th resistance R16 is connected with+3.3V, the other end and the 7th optocoupler core of the 16th resistance R16
The anode of optocoupler diode connects in piece PC817U7, the cathode and the first core of optocoupler diode in the 7th opto-coupler chip PC817U7
The pin 15 of piece STM32F103RCT6U1 is connected, and one end of the 17th resistance R17, one end of the 5th relay K5, the 5th shine
The anode of diode D5, the 6th diode D6 cathode be connected with+5V, the other end and the 15th resistance of the 5th relay K5
One end of R15, the anode of the 6th diode D6, the second triode Q2 collector be connected, the other end of the 15th resistance R15 with
The cathode of 5th light emitting diode D5 is connected, triode in the other end and the 7th opto-coupler chip PC817U7 of the 17th resistance R17
Collector connection, the emitter of triode is connected with one end of the 18th resistance R18 in the 7th opto-coupler chip PC817U7, the
The base stage of two triode Q2 is connected with the other end of the 18th resistance R18, the emitter ground connection of the second triode Q2.
The filter circuit includes the 8th capacitor C8, the 9th capacitor C9, the tenth capacitor C10, the 11st capacitor C11.8th
One end of capacitor C8 and one end of the 9th capacitor C9, one end of the tenth capacitor C10, one end of the 11st capacitor C11 and+3.3V phase
Even, the other end and the other end of the 9th capacitor C9 of the 8th capacitor C8, the other end of the tenth capacitor C10, the 11st capacitor C11
The other end is connected and is grounded GND.
First key circuit includes first resistor R1, the first key K1KEY1, first capacitor C1.First resistor R1's
One end is connected with+3.3V, one end of the other end of one end of the first key K1KEY1 and first resistor R1, first capacitor C1, the
The pin 21 of one chip STM32F103RCT6U1 is connected, and the other end of the first key K1KEY1 is grounded GND, first capacitor C1's
The other end is grounded GND.
Second key circuit includes 3rd resistor R3, the second key K2KEY2, the 4th capacitor C4.3rd resistor R3's
One end is connected with+3.3V, one end of the other end of one end of the second key K2KEY2 and 3rd resistor R3, the 4th capacitor C4, the
The pin 22 of one chip STM32F103RCT6U1 is connected, and the other end of the second key K2KEY2 is grounded GND, the 4th capacitor C4's
The other end is grounded GND.
The clock circuit include clock chip DS1302U2, the 5th capacitor C5, the 7th capacitor C7, the second crystal oscillator Y2, can
Mobile power source BT1, the 7th resistance R7, the 8th resistance R8, the 9th resistance R9.One end of 5th capacitor C5 and the one of the 7th capacitor C7
End is connected and is grounded GND, the other end of the 5th capacitor C5 and one end of the second crystal oscillator Y2, the 2 pin phases of clock chip DS1302
Even, the other end of the 7th capacitor C7 is connected with the pin 3 of the other end of the second crystal oscillator Y2, clock chip DS1302, clock chip
The pin 1 of DS1302 meets+5V, and the pin 4 of clock chip DS1302 is grounded GND, a termination clock chip of movable power source BT1
The pin 8 of DS1302, the other end of movable power source BT1 are grounded GND, one end of the 7th resistance R7, the 8th resistance R8 one end,
One end of 9th resistance R9 is connected with+3.3v, the other end of the 7th resistance R7 and pin 7, the first core of clock chip DS1302
The pin 58 of piece STM32F103RCT6U1 is connected, the other end of the 8th resistance R8 and the pin 6, first of clock chip DS1302
The pin 59 of chip STM32F103RCT6U1 is connected, the pin 5 of the other end of the 9th resistance R9 and clock chip DS1302, the
The pin 61 of one chip STM32F103RCT6U1 is connected.
The reset circuit includes the 6th resistance R6, the 6th capacitor C6, third key K3.One end of 6th resistance R6 and the
One end of six capacitor C6, one end of third key K3 are connected, and the other end of the 6th resistance R6 is connected with+3.3V, the 6th capacitor C6
The other end be connected and be grounded with an another end of third key K3.
The oscillating circuit includes the second capacitor C2, third capacitor C3, the 4th resistance R4, the first crystal oscillator Y1.Second capacitor
One end of C2 is connected with one end of third capacitor C3 and is grounded GND, one end of the other end of the second capacitor C2 and the first crystal oscillator Y1,
One end of 4th resistance R4 is connected with the pin 5 of the first chip STM32F103RCT6U1, the other end and first of third capacitor C3
The other end of crystal oscillator Y1, the other end of the 4th resistance R4, the pin 6 of the first chip STM32F103RCT6U1 are connected.
The WIFI module interface circuit includes serial ports JP1.The pin 1 of JP1 meets+3.3V, and the pin 2 of JP1 is grounded GND,
The pin 3 of JP1 is connected with the pin 43 of the first chip STM32F103RCT6U1, and wherein the pin 3 of JP1 is WIFI module transmission
The pin 4 of interface TXD_0, JP1 are connected with the pin 42 of the first chip STM32F103RCT6U1, and wherein the pin 4 of JP1 is
The pin 5 of data receiver the interface RXD_0, JP1 of WIFI module are connected with the pin 41 of the first chip STM32F103RCT6U1,
Wherein the pin 5 of JP1 is the I/O interface that the pin 6 of the reseting interface RST_0, JP1 of WIFI module are WIFI module.
The OLED display interface circuit includes busbar JP2.The pin 1 of JP2 is grounded GND, the pin 2 and+3.3V phase of JP2
Even, the pin 3 of JP2 is connected with the pin 29 of the first chip STM32F103RCT6U1, the pin 3 and the first chip of JP2
The pin 30 of STM32F103RCT6U1 is connected.
The energy meter modular circuit includes row needle JP3.The pin 1 of JP3 connects+5V, the pin 2 and the first chip of JP3
The pin 16 of STM32F103RCT6U1 is connected, and wherein the pin 2 of JP3 is to receive pin RXD_1,3 first chip of pin of JP3
The pin 17 of STM32F103RCT6U1 is connected, and wherein the pin 3 of JP3 is data transmitting pin TXD_1, and the pin 4 of JP3 is grounded
GND。
Usb circuit includes USB-AM interface, wherein the pin 1 of USB-AM connects+5V power supply, and the pin 2 of USB-AM is
The pin 3 of data signal pin D+, USB-AM are data signal pin D-, and the pin 4 of USB-AM is grounded GND.
The AccessPort modular circuit includes row needle SWD1.The pin 1 of SWD1 meets power supply+3.3V, the pin 2 of SWD1 with
The pin 46 of first core STM32F103RCT6U1 is connected, the pin of the pin 3 of SWD1 and the first chip STM32F103RCT6U1
49 are connected, and the pin 4 of SWD1 is grounded GND.
Beneficial effects of the present invention: this product small power consumption, measurement result is accurate, and volume is minimum, can be long-range by mobile phone terminal
It controls and easy to operate, real-time is good, the work of electrical appliance and power consumption condition accurately can be fed back to user, is shown in certainly
On band OLED screen curtain.It can also be timed operation as needed, while having security alarm, the functions such as overload protection guarantee
Safety in use.
Detailed description of the invention
Fig. 1 is 5V voltage conversion circuit module circuit schematic of the invention;
Fig. 2 is 3.3V voltage conversion circuit module circuit schematic of the invention;
Fig. 3 is buzzer alarm circuit module circuit schematic of the invention;
Fig. 4 is the first relay switching circuit module circuit schematic of the invention;
Fig. 5 is the second relay switching circuit module circuit schematic of the invention;
Fig. 6 is filter circuit module circuit diagram of the invention;
Fig. 7 is the first key circuit module circuit schematic of the invention;
Fig. 8 is the second key circuit module circuit schematic of the invention;
Fig. 9 is clock circuit module circuit diagram of the invention;
Figure 10 is reset circuit module circuit schematic of the invention;
Figure 11 is oscillating circuit module circuit schematic of the invention;
Figure 12 is WIFI module interface circuit schematic diagram of the invention;
Figure 13 is OLED display interface circuit schematic diagram of the invention;
Figure 14 is energy meter module circuit schematic of the invention;
Figure 15 is usb circuit schematic diagram of the invention;
Figure 16 is AccessPort module circuit schematic of the invention.
Specific embodiment:
Specific description is done to modules in the present invention with reference to the accompanying drawing.
A kind of intelligent socket hardware circuit based on ONENET cloud platform, hardware circuit include main control module, power supply conversion
Module, relay switch control module, buzzer alarm circuit module and usb circuit;Wherein power conversion module includes
5V voltage conversion circuit module electricity and 3.3V voltage conversion circuit module, relay switch control module include that the first relay is opened
Close circuit module and the second relay switching circuit module;
Wherein power conversion module selects AC-DC microminiature smart home switch power module HLK-PM01;Electrical energy measurement
Module selects electrical energy measuring IC chip CS5460A;Relay control module selects SDR-12VDC-SL-C type relay;
Communication module selects ESP8266 wireless module.
The main control module, including master controller, the first key circuit modular circuit, the second key circuit modular circuit,
WIFI module interface circuit, energy meter modular circuit, AccessPort modular circuit, resets OLED display module interface circuit
Circuit, clock circuit module circuit, filter circuit module circuit and oscillating circuit.Wherein master controller is the first core
Piece STM32F103RCT6U1, the pin 41,42,43 of the first chip STM32F103RCT6U1 connect the correspondence pin of WIFI module;
Pin 29,30 pins of first chip STM32F103RCT6U1 meet OLED display module, the first chip STM32F103RCT6U1
Pin 46 and pin 49 connect downloading wire correspondence connection jaws;The pin 16,17 of first chip STM32F103RCT6U1 connects energy
Measure the corresponding interface of metering module, pin 1, pin 32, pin 48, the pin 64, pin of the first chip STM32F103RCT6U1
19, pin 13 is connected with+3.3V, pin 31 and pin 47, pin 63, pin 18, the pipe of the first chip STM32F103RCT6U1
Foot 12 is connected and is grounded.The pin 60 of first chip STM32F103RCT6U1 is connected with one end of the 5th resistance R5, the 5th resistance
The other end of R5 is grounded, and the pin 28 of the first chip STM32F103RCT6U1 is connected with one end of second resistance R2, second resistance
The other end of R2 is grounded.The pin that first chip STM32F103RCT6U1 is not mentioned herein is all aerial.
As shown in Figure 1,5V voltage conversion circuit includes voltage transformation module HLK-PM01, the 12nd capacitor C12, the 13rd
Capacitor C13, the 14th capacitor C14, the 15th capacitor C15, LED light D1, the tenth resistance R10.The tenth resistance R10
One end and the anode of the 12nd capacitor C12, the anode of the 15th capacitor C15, VOUT in voltage transformation module HLK-PM01
Anode, one end of the 13rd capacitor C13, the 14th capacitor C14 one end connection and as 5V power output end, LED light
The anode of D1 is connected with the other end of the tenth resistance R10, the other end of the cathode of the 12nd capacitor C12 and the 13rd capacitor C13,
The other end, the cathode of the 15th capacitor C15, the cathode of power conversion module VOUT, the LED light D1 of 14th capacitor C14
Cathode connect and ground.
As shown in Fig. 2, 3.3V voltage conversion circuit includes the 16th capacitor C16, the 17th capacitor C17, the 18th capacitor
C18 and voltage transformation module AMS1117_3.3U4.One end of 16th capacitor C16, one end of the 17th capacitor C17, the 18th
One end of capacitor C18 and the GND of voltage transformation module U4 are connected with ground terminal, the other end of the 17th capacitor C17, voltage conversion
The end VIN of module U4 is connected with+5V, the other end and voltage modulus of conversion of the 18th capacitor C18 of the other end of the 16th capacitor C16
The VOUT interface of block U4 is connected with+3.3V.
As shown in figure 3, buzzer alarm circuit include the 22nd resistance R22, the 24th resistance R24, triode Q3,
Buzzer LS1.One end of buzzer LS1 is connected with+3.3V, the collector of another termination triode Q3 of buzzer LS1, three poles
The emitter of pipe Q3 is grounded, one end and one end of the 24th resistance R24, the base stage of triode Q3 of the 22nd resistance R22
It is connected, the pin 33 of the first chip of another termination STM32F103RCT6U1 of the 22nd resistance R22.
As shown in figure 4, the first relay switching circuit includes the 4th relay K4, eleventh resistor R11, twelfth resistor
R12, thirteenth resistor R13, the 14th resistance R14, the second light emitting diode D2, third diode D3, the first triode Q1,
Five opto-coupler chip PC817U5.One end of twelfth resistor R12 is connected with+3.3V, the other end of twelfth resistor R12 and the 5th
The anode connection of optocoupler diode in opto-coupler chip PC817U5, in the 5th opto-coupler chip PC817U5 the cathode of optocoupler diode with
The pin 14 of first chip STM32F103RCT6U1 is connected, one end of thirteenth resistor R13, one end of the 4th relay K4, the
The anode of two light emitting diode D2, the cathode of third diode D3 are connected with+5V, the other end and the 11st of the 4th relay K4
One end of resistance R11, the anode of third diode D3, the collector of the first triode Q1 are connected, and eleventh resistor R11's is another
End is connected with the cathode of the second light emitting diode D2, three in the other end of thirteenth resistor R13 and the 5th opto-coupler chip PC817U5
The collector of grade pipe connects, one end phase of the emitter and the 14th resistance R14 of triode in the 5th opto-coupler chip PC817U5
Even, the base stage of the first triode Q1 is connected with the other end of the 14th resistance R14, the emitter ground connection of the first triode Q1.
As shown in figure 5, the second relay switching circuit includes the 5th relay K5, the 15th resistance R15, the 16th resistance
R16, the 17th resistance R17, the 18th resistance R18, the 5th light emitting diode D5, the 6th diode D6, the second triode Q2,
Seven opto-coupler chip PC817U7.One end of 16th resistance R16 is connected with+3.3V, the other end and the 7th of the 16th resistance R16
The anode connection of optocoupler diode in opto-coupler chip PC817U7, in the 7th opto-coupler chip PC817U7 the cathode of optocoupler diode with
The pin 15 of first chip STM32F103RCT6U1 is connected, one end of the 17th resistance R17, one end of the 5th relay K5, the
The anode of five light emitting diode D5, the cathode of the 6th diode D6 are connected with+5V, the other end and the 15th of the 5th relay K5
One end of resistance R15, the anode of the 6th diode D6, the collector of the second triode Q2 are connected, and the 15th resistance R15's is another
End is connected with the cathode of the 5th light emitting diode D5, three in the other end and the 7th opto-coupler chip PC817U7 of the 17th resistance R17
The collector of grade pipe connects, one end phase of the emitter and the 18th resistance R18 of triode in the 7th opto-coupler chip PC817U7
Even, the base stage of the second triode Q2 is connected with the other end of the 18th resistance R18, the emitter ground connection of the second triode Q2.
As shown in fig. 6, filter circuit includes the 8th capacitor C8, the 9th capacitor C9, the tenth capacitor C10, the 11st capacitor
C11.One end of 8th capacitor C8 and one end of the 9th capacitor C9, one end of the tenth capacitor C10, the 11st capacitor C11 one end
It is connected with+3.3V, the other end of the other end of the 8th capacitor C8 and the 9th capacitor C9, the other end of the tenth capacitor C10, the 11st
The other end of capacitor C11 is connected and is grounded GND.
As shown in fig. 7, the first key circuit includes first resistor R1, the first key K1KEY1, first capacitor C1.First electricity
One end of resistance R1 is connected with+3.3V, the other end of one end of the first key K1KEY1 and first resistor R1, first capacitor C1 one
End, the pin 21 of the first chip STM32F103RCT6U1 are connected, and the other end of the first key K1KEY1 is grounded GND, first capacitor
The other end of C1 is grounded GND.
As shown in figure 8, the second key circuit includes 3rd resistor R3, the second key K2KEY2, the 4th capacitor C4.Third electricity
One end of resistance R3 is connected with+3.3V, the other end of one end of the second key K2KEY2 and 3rd resistor R3, the 4th capacitor C4 one
End, the pin 22 of the first chip STM32F103RCT6U1 are connected, and the other end of the second key K2KEY2 is grounded GND, the 4th capacitor
The other end of C4 is grounded GND.
As shown in figure 9, clock circuit includes clock chip DS1302U2, the 5th capacitor C5, the 7th capacitor C7, the second crystal oscillator
Y2, movable power source BT1, the 7th resistance R7, the 8th resistance R8, the 9th resistance R9.One end of 5th capacitor C5 and the 7th capacitor
One end of C7 is connected and is grounded GND, one end of the other end of the 5th capacitor C5 and the second crystal oscillator Y2, clock chip DS1302 2
Pin is connected, and the other end of the 7th capacitor C7 is connected with the pin 3 of the other end of the second crystal oscillator Y2, clock chip DS1302, when
The pin 1 of clock chip DS1302 meets+5V, when the one of the ground connection of pin 4 GND, movable power source BT1 of clock chip DS1302 terminates
The other end of the pin 8 of clock chip DS1302, movable power source BT1 is grounded GND, one end of the 7th resistance R7, the 8th resistance R8
One end, the 9th resistance R9 one end be connected with+3.3v, the pin 7 of the other end of the 7th resistance R7 and clock chip DS1302,
The pin 58 of first chip STM32F103RCT6U1 is connected, the other end of the 8th resistance R8 and the pin of clock chip DS1302
6, the pin 59 of the first chip STM32F103RCT6U1 is connected, the other end of the 9th resistance R9 and the pipe of clock chip DS1302
Foot 5, the pin 61 of the first chip STM32F103RCT6U1 are connected.
As shown in Figure 10, reset circuit includes the 6th resistance R6, the 6th capacitor C6, third key K3.6th the 6th resistance
One end of R6 is connected with one end of one end of the 6th capacitor C6, third key K3, the other end and the+3.3V phase of the 6th resistance R6
Even, the other end of the 6th capacitor C6 is connected and is grounded with an another end of third key K3.
As shown in figure 11, oscillating circuit includes the second capacitor C2, third capacitor C3, the 4th resistance R4, the first crystal oscillator Y1.The
One end of two capacitor C2 is connected with one end of third capacitor C3 and is grounded GND, the other end of the second capacitor C2 and the first crystal oscillator Y1
One end, the 4th resistance R4 one end be connected with the pin 5 of the first chip STM32F103RCT6U1, third capacitor C3's is another
End is connected with the pin 6 of the other end of the first crystal oscillator Y1, the other end of the 4th resistance R4, the first chip STM32F103RCT6U1.
As shown in figure 12, WIFI module interface circuit includes serial ports JP1.The pin 1 of JP1 meets+3.3V, and the pin 2 of JP1 connects
The pin 3 of ground GND, JP1 are connected with the pin 43 of the first chip STM32F103RCT6U1, and wherein the pin 3 of JP1 is WIFI mould
The pin 4 of block transmission interface TXD_0, JP1 are connected with the pin 42 of the first chip STM32F103RCT6U1, wherein the pin of JP1
4 be 41 phase of pin of pin 5 and the first chip STM32F103RCT6U1 of data receiver the interface RXD_0, JP1 of WIFI module
Even, wherein the pin 5 of JP1 is the I/O interface that the pin 6 of the reseting interface RST_0, JP1 of WIFI module are WIFI module.
As shown in figure 13, OLED display interface circuit includes busbar JP2.The pin 1 of JP2 is grounded GND, the pin 2 of JP2 with
+ 3.3V is connected, and the pin 3 of JP2 is connected with the pin 29 of the first chip STM32F103RCT6U1, the pin 3 and the first core of JP2
The pin 30 of piece STM32F103RCT6U1 is connected.
As shown in figure 14, energy meter modular circuit includes row needle JP3.The pin 1 of JP3 connects+5V, the pin 2 of JP3 and
The pin 16 of one chip STM32F103RCT6U1 is connected, and wherein the pin 2 of JP3 is to receive pin RXD_1, the pin 3 of JP3 the
The pin 17 of one chip STM32F103RCT6U1 is connected, and wherein the pin 3 of JP3 is data transmitting pin TXD_1, the pin of JP3
4 ground connection GND.
As shown in figure 15, usb circuit includes USB-AM interface, wherein the pin 1 of USB-AM meets+5V power supply, USB-
The pin 2 of AM is data signal pin D+, and the pin 3 of USB-AM is data signal pin D-, and the pin 4 of USB-AM is grounded GND.
As shown in figure 16, AccessPort modular circuit includes row needle SWD1.The pin 1 of SWD1 meets power supply+3.3V, SWD1's
Pin 2 is connected with the pin 46 of the first core STM32F103RCT6U1, the pin 3 of SWD1 and the first chip STM32F103RCT6U1
Pin 49 be connected, the pin 4 of SWD1 is grounded GND.
The course of work:
Hardware effort process: access 220V AC power source, by the power conversion module HLK-PM01 added with filter circuit,
Noise jamming is eliminated, into circuit, is converted to the direct current of 5V, the direct current of 5V is converted by voltage reduction module AMS1117-3.3
For the direct current of 3.3V, after the completion of system electrification movement, the first chip STM32F103RCT6U1 executes initialization operation, relay
Device modular circuit closure, relay coil can generate the increase that electromotive force hinders electric current in coil due to self inductance, to prolong
Pickup time is grown.Electric energy metering module is started to work simultaneously, measurement voltage, electric current, active power and electric quantity parameter, clock
Circuit provides temporal information.By communication module rapid build serial ports-WIFI data transmission scheme, the Internet transmission number is used
According to showing the information such as the occurrence of voltage and power, the switch state of relay, time in OLED display screen and mobile phone.
Software work process: after intelligent socket works normally, WIFI module and serial ports 1 is initialized, it is pre- that a power is set
If value, serial ports SWD1 sends order so that energy meter module J P3 starts to acquire the numerical value of real-time power and voltage, once if
When collected data are greater than preset value, system is automatically into overload protection mode, and LED screen clear screen, all relays are all certainly
Dynamic circuit breaker is opened, while buzzer constantly pipes prompting, guarantees being perfectly safe for system.Energy when collected data are less than preset value
Metering module gives the instantaneous operating conditions data feedback of electrical appliance to master controller STM32F103RCT6U1;Finally, master control molding
Block, which has been handled, to be directly transmitted to OLED module for processing result after data and shows.Furthermore mobile phone terminal sends order, passes through cloud
Platform and WIFI module are transmitted to master controller, and master controller handles the order received, final to realize control relay
Switch and buzzer purpose.Mobile phone terminal acquires data, and WIFI module is mainly used for transferring data to ONENET cloud platform and be transmitted to
Master controller executes, and for showing the data detected, alarm module is used to guarantee display module with protective module is automatically powered off
The safety of system.
Claims (1)
1. a kind of intelligent socket hardware circuit based on ONENET cloud platform, it is characterised in that: hardware circuit include main control module,
Power conversion module, relay switch control module, buzzer alarm circuit module and usb circuit;Wherein power supply is converted
Module includes 5V voltage conversion circuit module electricity and 3.3V voltage conversion circuit module, and relay switch control module includes first
Relay switching circuit module and the second relay switching circuit module;
The main control module includes master controller, the first key circuit modular circuit, the second key circuit modular circuit, WIFI mould
Block interface circuit, OLED display module interface circuit, energy meter modular circuit, AccessPort modular circuit, reset circuit mould
Block circuit, clock circuit module circuit, filter circuit module circuit and oscillating circuit;Wherein master controller is the first chip
Pin 1, pin 32, pin 48, pin 64, pin 19, the pipe of STM32F103RCT6U1, the first chip STM32F103RCT6U1
Foot 13 is connected with+3.3V, the pin 31 and pin 47, pin 63, pin 18, pin 12 of the first chip STM32F103RCT6U1
It is connected and is grounded;The pin 60 of first chip STM32F103RCT6U1 is connected with one end of the 5th resistance R5, the 5th resistance R5's
Other end ground connection, the pin 28 of the first chip STM32F103RCT6U1 are connected with one end of second resistance R2, second resistance R2's
Other end ground connection;The pin that first chip STM32F103RCT6U1 is not mentioned herein is all aerial;
The 5V voltage conversion circuit includes voltage transformation module HLK-PM01, the 12nd capacitor C12, the 13rd capacitor C13,
14 capacitor C14, the 15th capacitor C15, LED light D1, the tenth resistance R10;One end of tenth resistance R10 and the 12nd electricity
Hold the anode of C12, the anode of the 15th capacitor C15, in voltage transformation module HLK-PM01 VOUT anode, the 13rd capacitor
One end of C13, one end connection of the 14th capacitor C14 and as 5V power output end, the anode of LED light D1 and the tenth electricity
The other end for hindering R10 is connected, the other end of the cathode of the 12nd capacitor C12 and the 13rd capacitor C13, the 14th capacitor C14
The other end, the cathode of the 15th capacitor C15, the cathode of power conversion module VOUT, LED light D1 cathode connect and connect
Ground;
The 3.3V voltage conversion circuit turns including the 16th capacitor C16, the 17th capacitor C17, the 18th capacitor C18 and voltage
Change the mold block AMS1117_3.3U4;One end of 16th capacitor C16, one end of the 17th capacitor C17, the 18th capacitor C18 one
End and the GND of voltage transformation module U4 are connected with ground terminal, the VIN of the other end of the 17th capacitor C17, voltage transformation module U4
End is connected with+5V, the other end of the 18th capacitor C18 of the other end of the 16th capacitor C16 and the VOUT of voltage transformation module U4
Interface is connected with+3.3V;
The buzzer alarm circuit includes the 22nd resistance R22, the 24th resistance R24, triode Q3, buzzer LS1;
One end of buzzer LS1 is connected with+3.3V, the collector of another termination triode Q3 of buzzer LS1, the transmitting of triode Q3
Pole ground connection, one end of the 22nd resistance R22 are connected with the base stage of one end of the 24th resistance R24, triode Q3, and the 20th
The pin 33 of the first chip of another termination STM32F103RCT6U1 of two resistance R22;
First relay switching circuit includes the 4th relay K4, eleventh resistor R11, twelfth resistor R12, the 13rd
Resistance R13, the 14th resistance R14, the second light emitting diode D2, third diode D3, the first triode Q1, the 5th opto-coupler chip
PC817U5;One end of twelfth resistor R12 is connected with+3.3V, the other end of twelfth resistor R12 and the 5th opto-coupler chip
The anode of optocoupler diode connects in PC817U5, the cathode and the first chip of optocoupler diode in the 5th opto-coupler chip PC817U5
The pin 14 of STM32F103RCT6U1 is connected, one end of thirteenth resistor R13, one end of the 4th relay K4, second luminous two
The anode of pole pipe D2, the cathode of third diode D3 are connected with+5V, the other end and eleventh resistor R11 of the 4th relay K4
One end, the anode of third diode D3, the first triode Q1 collector be connected, the other end of eleventh resistor R11 and the
The cathode of two light emitting diode D2 is connected, triode in the other end of thirteenth resistor R13 and the 5th opto-coupler chip PC817U5
Collector connects, and the emitter of triode is connected with one end of the 14th resistance R14 in the 5th opto-coupler chip PC817U5, and first
The base stage of triode Q1 is connected with the other end of the 14th resistance R14, the emitter ground connection of the first triode Q1;
Second relay switching circuit includes the 5th relay K5, the 15th resistance R15, the 16th resistance R16, the 17th
Resistance R17, the 18th resistance R18, the 5th light emitting diode D5, the 6th diode D6, the second triode Q2, the 7th opto-coupler chip
PC817U7;One end of 16th resistance R16 is connected with+3.3V, the other end and the 7th opto-coupler chip of the 16th resistance R16
The anode of optocoupler diode connects in PC817U7, the cathode and the first chip of optocoupler diode in the 7th opto-coupler chip PC817U7
The pin 15 of STM32F103RCT6U1 is connected, and one end of the 17th resistance R17, one end of the 5th relay K5, the 5th shine two
The anode of pole pipe D5, the 6th diode D6 cathode be connected with+5V, the other end and the 15th resistance R15 of the 5th relay K5
One end, the anode of the 6th diode D6, the second triode Q2 collector be connected, the other end of the 15th resistance R15 and the
The cathode of five light emitting diode D5 is connected, triode in the other end and the 7th opto-coupler chip PC817U7 of the 17th resistance R17
Collector connects, and the emitter of triode is connected with one end of the 18th resistance R18 in the 7th opto-coupler chip PC817U7, and second
The base stage of triode Q2 is connected with the other end of the 18th resistance R18, the emitter ground connection of the second triode Q2;
The filter circuit includes the 8th capacitor C8, the 9th capacitor C9, the tenth capacitor C10, the 11st capacitor C11;8th capacitor
One end of C8 is connected with one end of one end of the 9th capacitor C9, one end of the tenth capacitor C10, the 11st capacitor C11 with+3.3V,
The other end of 8th capacitor C8 and the other end of the 9th capacitor C9, the other end of the tenth capacitor C10, the 11st capacitor C11 it is another
One end is connected and is grounded GND;
First key circuit includes first resistor R1, the first key K1KEY1, first capacitor C1;One end of first resistor R1
It is connected with+3.3V, one end of the first key K1KEY1 and the other end of first resistor R1, one end of first capacitor C1, the first core
The pin 21 of piece STM32F103RCT6U1 is connected, and the other end of the first key K1KEY1 is grounded GND, and first capacitor C1's is another
End ground connection GND;
Second key circuit includes 3rd resistor R3, the second key K2KEY2, the 4th capacitor C4;One end of 3rd resistor R3
It is connected with+3.3V, one end of the second key K2KEY2 and the other end of 3rd resistor R3, one end of the 4th capacitor C4, the first core
The pin 22 of piece STM32F103RCT6U1 is connected, and the other end of the second key K2KEY2 is grounded GND, and the 4th capacitor C4's is another
End ground connection GND;
The clock circuit includes clock chip DS1302U2, the 5th capacitor C5, the 7th capacitor C7, the second crystal oscillator Y2, moves
Power supply BT1, the 7th resistance R7, the 8th resistance R8, the 9th resistance R9;One end of 5th capacitor C5 and one end phase of the 7th capacitor C7
Connecting and be grounded GND, the other end of the 5th capacitor C5 is connected with 2 pins of one end of the second crystal oscillator Y2, clock chip DS1302, the
The other end of seven capacitor C7 is connected with the pin 3 of the other end of the second crystal oscillator Y2, clock chip DS1302, clock chip DS1302
Pin 1 meet+5V, the pin 4 of clock chip DS1302 is grounded GND, a termination clock chip DS1302 of movable power source BT1
Pin 8, the other end of movable power source BT1 is grounded GND, one end of the 7th resistance R7, one end of the 8th resistance R8, the 9th electricity
One end of resistance R9 is connected with+3.3v, the other end of the 7th resistance R7 and pin 7, the first chip of clock chip DS1302
The pin 58 of STM32F103RCT6U1 is connected, the other end of the 8th resistance R8 and pin 6, the first core of clock chip DS1302
The pin 59 of piece STM32F103RCT6U1 is connected, the other end of the 9th resistance R9 and the pin 5, first of clock chip DS1302
The pin 61 of chip STM32F103RCT6U1 is connected;
The reset circuit includes the 6th resistance R6, the 6th capacitor C6, third key K3;One end of 6th resistance R6 and the 6th electricity
One end of one end, third key K3 for holding C6 is connected, and the other end of the 6th resistance R6 is connected with+3.3V, and the 6th capacitor C6's is another
One end is connected and is grounded with an another end of third key K3;
The oscillating circuit includes the second capacitor C2, third capacitor C3, the 4th resistance R4, the first crystal oscillator Y1;Second capacitor C2's
One end is connected with one end of third capacitor C3 and is grounded GND, one end of the other end of the second capacitor C2 and the first crystal oscillator Y1, the 4th
One end of resistance R4 is connected with the pin 5 of the first chip STM32F103RCT6U1, the other end and the first crystal oscillator of third capacitor C3
The other end of Y1, the other end of the 4th resistance R4, the pin 6 of the first chip STM32F103RCT6U1 are connected;
The WIFI module interface circuit includes serial ports JP1;The pin 1 of JP1 meets+3.3V, and the pin 2 of JP1 is grounded GND, JP1's
Pin 3 is connected with the pin 43 of the first chip STM32F103RCT6U1, and wherein the pin 3 of JP1 is WIFI module transmission interface
The pin 4 of TXD_0, JP1 are connected with the pin 42 of the first chip STM32F103RCT6U1, and wherein the pin 4 of JP1 is WIFI mould
The pin 5 of data receiver the interface RXD_0, JP1 of block are connected with the pin 41 of the first chip STM32F103RCT6U1, wherein JP1
Pin 5 be WIFI module reseting interface RST_0, JP1 pin 6 be WIFI module I/O interface;
The OLED display interface circuit includes busbar JP2;The pin 1 of JP2 is grounded GND, and the pin 2 of JP2 is connected with+3.3V,
The pin 3 of JP2 is connected with the pin 29 of the first chip STM32F103RCT6U1, the pin 3 and the first chip of JP2
The pin 30 of STM32F103RCT6U1 is connected;
The energy meter modular circuit includes row needle JP3;The pin 1 of JP3 connects+5V, the pin 2 and the first chip of JP3
The pin 16 of STM32F103RCT6U1 is connected, and wherein the pin 2 of JP3 is to receive pin RXD_1,3 first chip of pin of JP3
The pin 17 of STM32F103RCT6U1 is connected, and wherein the pin 3 of JP3 is data transmitting pin TXD_1, and the pin 4 of JP3 is grounded
GND;
Usb circuit includes USB-AM interface, wherein the pin 1 of USB-AM connects+5V power supply, and the pin 2 of USB-AM is data
The pin 3 of signal pins D+, USB-AM are data signal pin D-, and the pin 4 of USB-AM is grounded GND;
The AccessPort modular circuit includes row needle SWD1;The pin 1 of SWD1 connects power supply+3.3V, the pin 2 of SWD1 and first
The pin 46 of core STM32F103RCT6U1 is connected, 49 phase of pin of the pin 3 of SWD1 and the first chip STM32F103RCT6U1
Even, the pin 4 of SWD1 is grounded GND.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099824.1A CN109755819A (en) | 2019-01-31 | 2019-01-31 | A kind of intelligent socket hardware circuit based on ONENET cloud platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099824.1A CN109755819A (en) | 2019-01-31 | 2019-01-31 | A kind of intelligent socket hardware circuit based on ONENET cloud platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109755819A true CN109755819A (en) | 2019-05-14 |
Family
ID=66406532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910099824.1A Pending CN109755819A (en) | 2019-01-31 | 2019-01-31 | A kind of intelligent socket hardware circuit based on ONENET cloud platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109755819A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111030737A (en) * | 2019-11-12 | 2020-04-17 | 浙江威星智能仪表股份有限公司 | Bluetooth-to-infrared tooling circuit |
CN113741284A (en) * | 2021-09-06 | 2021-12-03 | 深圳市蓝丝腾科技有限公司 | Household intelligent supervision system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203289393U (en) * | 2013-06-05 | 2013-11-13 | 青岛歌尔声学科技有限公司 | Key switch circuit with hardware delay function |
CN205920424U (en) * | 2016-04-20 | 2017-02-01 | 杭州电子科技大学 | Electric blanket controller based on remote control |
CN106938123A (en) * | 2017-04-28 | 2017-07-11 | 广州美琳美健医疗科技有限公司 | A kind of intelligent phototherapy radiation instrument of batch (-type) |
-
2019
- 2019-01-31 CN CN201910099824.1A patent/CN109755819A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203289393U (en) * | 2013-06-05 | 2013-11-13 | 青岛歌尔声学科技有限公司 | Key switch circuit with hardware delay function |
CN205920424U (en) * | 2016-04-20 | 2017-02-01 | 杭州电子科技大学 | Electric blanket controller based on remote control |
CN106938123A (en) * | 2017-04-28 | 2017-07-11 | 广州美琳美健医疗科技有限公司 | A kind of intelligent phototherapy radiation instrument of batch (-type) |
Non-Patent Citations (4)
Title |
---|
李光飞: "DS1302数据操作原理", 《单片机课程设计指导(第2版)》 * |
李朝青等: "电量计量芯片电路", 《新型电源IC技术手册》 * |
段朝勃等: "基于ONNET云平台的智能插座设计", 《环球市场信息导报》 * |
王江明等: "串口调试模块电路", 《全国大学生电子设计竞赛获奖作品选编》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111030737A (en) * | 2019-11-12 | 2020-04-17 | 浙江威星智能仪表股份有限公司 | Bluetooth-to-infrared tooling circuit |
CN113741284A (en) * | 2021-09-06 | 2021-12-03 | 深圳市蓝丝腾科技有限公司 | Household intelligent supervision system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203287770U (en) | Power consumption monitoring and control management system for household electrical appliance | |
CN208537974U (en) | Smart home energy management system | |
CN104916998A (en) | Intelligent household socket based on transmission via Wi-Fi technology | |
CN202939450U (en) | Household electricity quantity monitoring system | |
CN105914535A (en) | Intelligent socket and interactive terminal device | |
CN109755819A (en) | A kind of intelligent socket hardware circuit based on ONENET cloud platform | |
CN104916997A (en) | Intelligent household socket based on transmission via ZigBee technology | |
CN205178188U (en) | Safety socket | |
CN202906131U (en) | General-type electricity-saving socket capable of being induced power-on and standby automatic power-off | |
CN103257267B (en) | Built-in electric energy collection module of household appliance | |
CN205790754U (en) | Smart jack and interactive terminal facility | |
CN201289989Y (en) | Intelligent device for monitoring and managing household power utilization | |
CN110444970A (en) | A kind of domestic intelligent principal and subordinate linkage socket controlling system | |
CN203734073U (en) | Intelligent de-energizing energy-saving socket | |
CN204088777U (en) | A kind of household electricity monitoring intelligent socket | |
CN203504304U (en) | Electric energy monitoring system based on ZigBee | |
CN203312920U (en) | Intelligent integrated system of PT cabinet | |
CN209311606U (en) | A kind of multifunctional electric meter | |
CN106451780A (en) | Intelligent miniature circuit breaker based on Zigbee wireless communication | |
CN209627396U (en) | A kind of Intelligent home gateway equipment based on WiFi and bluetooth | |
CN207473330U (en) | A kind of wisdom home energy source central controller | |
CN208368860U (en) | Intelligent charge socket | |
CN208939661U (en) | A kind of power supply box monitoring system | |
CN102904123A (en) | Long-distance remote energy-saving socket based on infrared rays | |
CN206640059U (en) | The Intelligent metering socket of energy remote control pressing manual key |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190514 |
|
RJ01 | Rejection of invention patent application after publication |