CN108258540A - A kind of application method of the intelligent socket with voice prompting function - Google Patents

A kind of application method of the intelligent socket with voice prompting function Download PDF

Info

Publication number
CN108258540A
CN108258540A CN201810012469.5A CN201810012469A CN108258540A CN 108258540 A CN108258540 A CN 108258540A CN 201810012469 A CN201810012469 A CN 201810012469A CN 108258540 A CN108258540 A CN 108258540A
Authority
CN
China
Prior art keywords
power
microcontroller
circuit
detection circuit
resistance
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.)
Withdrawn
Application number
CN201810012469.5A
Other languages
Chinese (zh)
Inventor
杨桢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU BOSHENG INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHENGDU BOSHENG INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CHENGDU BOSHENG INFORMATION TECHNOLOGY Co Ltd filed Critical CHENGDU BOSHENG INFORMATION TECHNOLOGY Co Ltd
Priority to CN201810012469.5A priority Critical patent/CN108258540A/en
Publication of CN108258540A publication Critical patent/CN108258540A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • H01R13/6683Structural association with built-in electrical component with built-in electronic circuit with built-in sensor
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/68Structural association with built-in electrical component with built-in fuse
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/70Structural association with built-in electrical component with built-in switch
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/717Structural association with built-in electrical component with built-in light source
    • H01R13/7175Light emitting diodes (LEDs)
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R27/00Coupling parts adapted for co-operation with two or more dissimilar counterparts

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a kind of application methods of the intelligent socket with voice prompting function, intelligent socket includes external shell and internal circuit, and light emitting diode D1, light emitting diode D2, light emitting diode D8, light emitting diode D9, pyroelectric sensor, photodiode D6 and loud speaker are additionally provided on external shell;Internal circuit includes heat source detection circuit, electrical work detection circuit, light source detection circuit, microcontroller, power driving circuit, light source driving circuit and power-switching circuit, the output terminal of heat source detection circuit, electrical work detection circuit and light source detection circuit is connect with microcontroller, the control output end of microcontroller is connect respectively with power driving circuit and power driving circuit, and the speech output end of microcontroller is connect with loud speaker.The present invention can be detected according to human testing, service condition detection and light, automatically control the opening and closing between load and load power source, brightness and voice reminder around plug-in unit are answered according to actual conditions Perceived control.

Description

A kind of application method of the intelligent socket with voice prompting function
Technical field
The present invention relates to smart home field more particularly to a kind of users of the intelligent socket with voice prompting function Method.
Background technology
Smart home(English:smart home, home automation)It is using house as platform, utilizes comprehensive wiring Technology, network communication technology, security precautions technology, automatic control technology, audio frequency and video technology are by the related facility collection of home life Into building the management systems of efficient housing facilities and family's schedule affairs, promote house security, convenience, comfort, skill Art, and realize the living environment of environmental protection and energy saving.
Smart home is the embodiment of the Thingsization under the influence of internet.Smart home will be in family by technology of Internet of things Various equipment(Such as audio & video equipment, lighting system, curtain control, airconditioning control, safety-protection system, Digital Theater System, audio-visual clothes Business device, shadow cabinet system, network home appliance etc.)It connects together, home wiring control, Lighting control, remote control using telephone, indoor and outdoor is provided The multiple functions such as remote control, burglar alarm, environmental monitoring, HVAC control, infrared forwarding and programmable Timer control and means.With Common household is compared, and smart home not only has traditional inhabitation function, has both building, network communication, information household appliances, equipment certainly Dynamicization provides comprehensive information exchange function, and even various energy expenditures save fund.
In the household of the prior art, not providing one kind can examine according to human testing, service condition detection and light The sensing plug-in unit of survey automatically controls the opening and closing between load and load power source and can not should be inserted according to actual conditions Perceived control Brightness around part;Also corresponding voice reminder can not be carried out.
Invention content
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of intelligent sockets with voice prompting function Application method.
The purpose of the present invention is achieved through the following technical solutions:A kind of intelligent socket with voice prompting function Application method, intelligent socket includes external shell and internal circuit, and the external shell is provided with multiple jacks, described to insert Hole is used to connect external loading and alternating current;
Light emitting diode D1, light emitting diode D2, light emitting diode D8, light emitting diode are additionally provided on the external shell D9, pyroelectric sensor, photodiode D6 and loud speaker;
The internal circuit includes heat source detection circuit, electrical work detection circuit, light source detection circuit, microcontroller, power supply Driving circuit, light source driving circuit and power-switching circuit, the power-switching circuit is heat source detection circuit, electrical work Detection circuit, light source detection circuit, microcontroller, power driving circuit and light source driving circuit provide power supply, heat source inspection The output terminal of slowdown monitoring circuit, electrical work detection circuit and light source detection circuit is connect with microcontroller, the control output of microcontroller End is connect respectively with power driving circuit and power driving circuit, and the speech output end of microcontroller is connect with loud speaker;
The input terminal of the power-switching circuit inputs household 220V alternating currents, the L of attaching plug P1 by attaching plug P1 End and N-terminal are connect respectively with two input terminals of transformer, and the K ends sky of attaching plug P2 connects;Two output terminals of transformer point Do not connect with two input terminals of full bridge rectifier, one of output terminal of full bridge rectifier respectively with electrolytic capacitor C1, resistance R1 are connected with the input terminal of voltage-stablizer U1, and the other end of resistance R1 is connect with the anode of light emitting diode D1, voltage stabilizing The output terminal of device U1 is connect respectively with capacitance C2 and fuse, and the output terminal of voltage-stablizer U1 also exports 5V DC power supplies;Fuse The other end turn the input terminal of 3.3V chips U2 with 5V and connect, 5V turn the output terminal of 3.3V chips U2 respectively with capacitance C3 and resistance R2 connections, the other end of resistance R2 are connect with the anode of light emitting diode D2, and the output terminal that 5V turns 3.3V chips U2 also exports 3.3V DC power supply;Another output terminal of full bridge rectifier, the other end of electrolytic capacitor C1, light emitting diode D1 Cathode, the ground terminal of voltage-stablizer U1, the other end of capacitance C2,5V turn the ground terminal of 3.3V chips U2, capacitance C3 other one The cathode of end and light emitting diode D2 are grounded;
The heat source detection circuit includes pyroelectric sensor, the VCC ends input 3.3V DC power supplies of pyroelectric sensor, and heat releases biography The ground terminal ground connection of sensor, the out ends of pyroelectric sensor are connect with the in-phase input end of operational amplifier U3, operational amplifier U3 Inverting input 5V DC power supplies are inputted by resistance R3, the output terminal of operational amplifier U3 passes through diode D3 and microcontroller Heat source detection input mouth PC0 connections;
The electrical work detection circuit includes current transformer, one of output terminal of current transformer and resistance R4 and The anode connection of diode D4, the cathode of diode D4 connect respectively with the anode of resistance R5, capacitance C4, resistance R6 and diode D5 It connects, the operation detection input port PC1 connections of the cathode and microcontroller of diode D5, another output of current transformer End, the other end of resistance R4, the other end of resistance R5, the other end of capacitance C4, resistance R6 other end be grounded;
The light source detection circuit includes photodiode D6, the anode of photodiode D6 respectively with resistance R7, resistance R8 It is connected with capacitance C5, the other end input 3.3V DC power supplies of resistance R7, the other end of resistance R8 and the light source of microcontroller The PC2 connections of detection input mouth, the cathode of photodiode D6 and the other end ground connection of capacitance C5;
The microcontroller power input port VCC input 5V DC power supplies, the power drives output port PC5 of microcontroller with Power driving circuit connects, and the light source drive output mouth PC4 of microcontroller is connect with light source driving circuit, and the voice of microcontroller is defeated Exit port PB4 is connect with loud speaker;
The power driving circuit includes triode Q1, the power drives that the base stage of triode Q1 passes through resistance R9 and microcontroller Output port PC5 connections, the emitter ground connection of triode Q1, the collector of triode Q1 respectively with relay K1 one of them Coil-end is connected with resistance R10, and another coil-end access 5V DC power supplies of relay K1, the tip side of relay K1 is set It is placed on the circuit of load and load power source, the other end of resistance R10 is connect with the cathode of light emitting diode D8, light-emitting diodes The anode of pipe D8 is connect with another coil-end of relay K1;
The light source driving circuit includes triode Q2, and the base stage of triode Q2 is driven by the light source of resistance R11 and microcontroller Dynamic output terminal PC4 connections, the emitter ground connection of triode Q2, the collector of triode Q2 and one of coil of relay K2 End connection, another coil-end access 5V DC power supplies of relay K2, the movable contact ground connection of relay K2, relay K2's One of stationary contact sky connects, and another stationary contact of relay K2 is connect with the cathode of light emitting diode D9, light-emitting diodes The anode access 3.3V DC power supplies of pipe D10;
The method includes:
Heat source detection circuit be used for detect it is multi-functional sensing plug-in unit around human body heat source it is whether close, electrical work detection circuit For detecting whether electrical work is normal, whether light source detection circuit is used for the light detected around multi-functional sensing plug-in unit bright Bright, power driving circuit is used to control load circuit according to the testing result of heat source detection circuit and electrical work detection circuit On/off, light source driving circuit are used for according to the photograph near the multi-functional sensing plug-in unit of the testing result of light source detection circuit control Bright LED light is illuminated opening/closing, and microcontroller is examined for obtaining heat source detection circuit, electrical work detection circuit and light source The testing result of slowdown monitoring circuit removes control power driving circuit and light source driving circuit;Loud speaker is used to carry out according to testing result Voice reminder;Household alternating current is converted to the DC power supply that each circuit is applicable in by power-switching circuit.
Further, the power driving circuit further includes a sustained diode 7, the anode of sustained diode 7 It is connect with the other end of resistance R10, the cathode of sustained diode 7 is connect with the anode of light emitting diode D8.
Further, the model ATmega8A of the microcontroller;No. 23 interfaces of ATmega8A detect defeated for heat source No. 24 interfaces of inbound port PC0, ATmega8A are that No. 25 interfaces of operation detection input port PC0, ATmega8A are light source inspection No. 28 interfaces for surveying input port PC0, ATmega8A are that No. 27 interfaces of power drives output port PC5, ATmega8A are light No. 7 interfaces of source drive output mouth PC4, ATmega8A are that No. 18 interfaces of power input port VCC, ATmega8A are voice Output port PB4.
Further, the model 78L05,5V of voltage-stablizer U1 turns the model AMS1117 of 3.3V chips U2.
The beneficial effects of the invention are as follows:What the present invention can be detected according to human testing, service condition detection and light Heat source induced intelligent socket, automatically controls the opening and closing between load and load power source and can not be according to actual conditions Perceived control The brightness around plug-in unit is answered, situation that is convenient and reliable, while being reminded according to the result of detection in needs carries out language using loud speaker Sound is reminded.Specifically:Heat source detection circuit be used for detect it is multi-functional sensing plug-in unit around human body heat source it is whether close, electric appliance work Make detection circuit for detecting whether electrical work is normal, light source detection circuit is used to detect the light around multi-functional sensing plug-in unit Whether line becomes clear, and power driving circuit is used to be controlled according to the testing result of heat source detection circuit and electrical work detection circuit negative The on/off in circuit is carried, light source driving circuit is used to control multi-functional sensing plug-in unit according to the testing result of light source detection circuit Neighbouring illuminating LED lamp is illuminated opening/closing, and microcontroller is used to obtain heat source detection circuit, electrical work detection circuit With the testing result of light source detection circuit, control power driving circuit and light source driving circuit are removed.In addition, power-switching circuit will Household alternating current is converted to the DC power supply that each circuit is applicable in.
Description of the drawings
Fig. 1 is the intelligent socket external shell schematic diagram that the present invention relies on;
Fig. 2 is the intelligent socket internal circuit schematic diagram that the present invention relies on;
Fig. 3 is power-switching circuit schematic diagram;
Fig. 4 is interface microcontroller schematic diagram;
In figure, 1- external shells, 2- jacks, 3- light emitting diodes D1,4- light emitting diode D2,5- light emitting diode D8,6- hair Optical diode D9,7- pyroelectric sensor, 8- photodiodes D6,9- loud speaker.
Specific embodiment
Technical scheme of the present invention is described in further detail below in conjunction with the accompanying drawings, but protection scope of the present invention is not limited to It is as described below.
A kind of application method of the intelligent socket with voice prompting function, intelligent socket include external shell 1 and inside Circuit, as shown in Figure 1, the external shell 1 is provided with multiple jacks, the jack is used to connect external loading and alternating current; The part of protrusion wall is illustrated only in Fig. 1, also partial shell and internal circuit is located inside wall.
Light emitting diode D1 3, light emitting diode D2 4, light emitting diode D8 are additionally provided on the external shell 1 5th, light emitting diode D9 6, pyroelectric sensor 7, photodiode D6 8 and loud speaker 9;
As shown in Fig. 2, the internal circuit includes heat source detection circuit, electrical work detection circuit, light source detection circuit, list The mechanical, electrical source driving circuit of piece, light source driving circuit and power-switching circuit, the power-switching circuit are heat source detection electricity Road, electrical work detection circuit, light source detection circuit, microcontroller, power driving circuit and light source driving circuit provide power supply, institute The output terminal of heat source detection circuit, electrical work detection circuit and light source detection circuit stated is connect with microcontroller, microcontroller Control output end connect respectively with power driving circuit and power driving circuit, the speech output end of microcontroller connects with loud speaker It connects.
Wherein, heat source detection circuit be used for detect it is multi-functional sensing plug-in unit around human body heat source it is whether close, electric appliance work Make detection circuit for detecting whether electrical work is normal, light source detection circuit is used to detect the light around multi-functional sensing plug-in unit Whether line becomes clear, and power driving circuit is used to be controlled according to the testing result of heat source detection circuit and electrical work detection circuit negative The on/off in circuit is carried, light source driving circuit is used to control multi-functional sensing plug-in unit according to the testing result of light source detection circuit Neighbouring illuminating LED lamp is illuminated opening/closing, and microcontroller is used to obtain heat source detection circuit, electrical work detection circuit With the testing result of light source detection circuit, control power driving circuit and light source driving circuit are removed;Loud speaker 9 is used for according to detection As a result voice reminder is carried out.In addition, household alternating current is converted to the DC power supply that each circuit is applicable in by power-switching circuit.Specifically Ground:
As shown in figure 3, the input terminal of the power-switching circuit inputs household 220V alternating currents, power supply by attaching plug P1 The L ends of plug P1 and N-terminal are connect respectively with two input terminals of transformer, and the K ends sky of attaching plug P2 connects;Two of transformer Output terminal is connect respectively with two input terminals of full bridge rectifier, one of output terminal of full bridge rectifier respectively with electricity Solution capacitance C1, resistance R1 are connected with the input terminal of voltage-stablizer U1, the other end of resistance R1 and the anode of light emitting diode D1 3 Connection, the output terminal of voltage-stablizer U1 are connect respectively with capacitance C2 and fuse, and the output terminal of voltage-stablizer U1 also exports 5V direct currents Source;The input terminal that the other end of fuse turns 3.3V chips U2 with 5V is connect, 5V turn the output terminal of 3.3V chips U2 respectively with electricity Hold C3 to connect with resistance R2, the other end of resistance R2 is connect with the anode of light emitting diode D2 4, and 5V turns 3.3V chips U2's Output terminal also exports 3.3V DC power supplies;Another output terminal of full bridge rectifier, the other end of electrolytic capacitor C1, hair The cathode of optical diode D1 3, the ground terminal of voltage-stablizer U1, the other end of capacitance C2,5V turn 3.3V chips U2 ground terminal, The other end of capacitance C3 and the cathode of light emitting diode D2 4 are grounded.
Wherein, as soon as forming a full bridge rectifier by 4 diodes behind transformer, a voltage is obtained after rectification The very big DC power supply of fluctuation, so meeting the electrolytic capacitor C1 of a 330uF/25V herein.And the 9V electricity of transformer output terminal It presses through bridge rectifier and capacitor filtering, the more voltages of 11V is about had at capacitance C1 both ends, if it is direct from capacitance both ends A load is connect, when load variation or AC power have a little fluctuation that can all make the change of the voltage generation at C1 both ends by a relatively large margin Change, therefore to obtain a more stable voltage, meet a three terminal regulator U1 herein.In the present embodiment, voltage-stablizer The model 78L05 of U1.Meet a capacitance C2 again after voltage-stablizer U1, this capacitance has filtering and damping action.It is electric at this time Power-switching circuit can provide 5V DC power supplies to the remaining circuit of multi-functional sensing plug-in unit.
A fuse is accessed after voltage-stablizer U1, if short circuit, fuse occur for transformer or circuit below Interior filament disconnects after will being dissolved because of the high temperature that high current causes.And a 5V is accessed after fuse and has turned 3.3V Chip U2 and capacitance C3;In the present embodiment, 5V turns the model AMS1117 of 3.3V chips U2.Power-switching circuit at this time 3.3V DC power supplies can be provided to the remaining circuit of multi-functional sensing plug-in unit.
In addition, light emitting diode D1 3 and D2 is used to show the working condition of two parts to user, if it is normal work Make state then bright light, otherwise turn off the light.
As shown in Fig. 2, the heat source detection circuit includes pyroelectric sensor 7, the VCC ends of pyroelectric sensor 7 input 3.3V DC power supplies, the ground terminal ground connection of pyroelectric sensor 7, the out ends of pyroelectric sensor 7 are same mutually defeated with operational amplifier U3's Enter end connection, the inverting input of operational amplifier U3 inputs 5V DC power supplies, the output of operational amplifier U3 by resistance R3 The heat source detection input mouth PC0 connections that end passes through diode D3 and microcontroller.Wherein, pyroelectric sensor 7 is close for detecting The human body of multi-functional sensing plug-in unit, when detected human body close to when, the out ends output of pyroelectric sensor 7 is higher than operation amplifier The voltage signal of device U3 inverting inputs to operational amplifier U3 in-phase input ends, the at this time output terminal of operational amplifier U3 passes through Diode D3 exports high level signal to the heat source detection input mouth PC0 of microcontroller;Otherwise low level signal is exported.In addition, The plant-grid connection of pyroelectric sensor 7 be power-switching circuit output 3.3V DC power supplies.
As shown in Fig. 2, the electrical work detection circuit includes current transformer, one of them of current transformer is defeated Outlet is connect with the anode of resistance R4 and diode D4, the cathode of diode D4 respectively with resistance R5, capacitance C4, resistance R6 and two The anode connection of pole pipe D5, the operation detection input port PC1 connections of the cathode and microcontroller of diode D5, current transformer Another output terminal, the other end of resistance R4, the other end of resistance R5, the other end of capacitance C4, resistance R6 it is another Outer one end is grounded.Wherein, the working signal of the load of current transformer acquisition access load power source, for judging that the load is The signal collected is transmitted to the operation detection input port PC1 of microcontroller by no normal work later after filtered.
As shown in Fig. 2, the light source detection circuit includes photodiode D6 8, the anode point of photodiode D6 8 It is not connect with resistance R7, resistance R8 and capacitance C5, the other end input 3.3V DC power supplies of resistance R7, other the one of resistance R8 End is connect with the light source detection input port PC2 of microcontroller, and the cathode of photodiode D6 8 and the other end of capacitance C5 connect Ground.Wherein, photodiode D6 8 acquires the light data around multi-functional sensing plug-in unit, and collected data are sent to The PC2 connections of light source detection input port.In addition, the plant-grid connection of photodiode D6 8 is that power-switching circuit exports 3.3V DC power supply.
As shown in Fig. 2, the power input port VCC input 5V DC power supplies of the microcontroller, the power supply of microcontroller drive Dynamic output port PC5 is connect with power driving circuit, and light source drive output mouth PC4 and the light source driving circuit of microcontroller connect It connects, the voice output port PB4 of microcontroller is connect with loud speaker 9.
Specifically, in the present embodiment, the model ATmega8A of microcontroller, physical interface such as Fig. 4 institutes of the microcontroller Show.And it is corresponding No. 23 interfaces of ATmega8A are heat source detection input mouth PC0 in this present embodiment, No. 24 of ATmega8A Interface is that No. 25 interfaces of operation detection input port PC0, ATmega8A are light source detection input port PC0, ATmega8A's No. 28 interfaces are that No. 27 interfaces of power drives output port PC5, ATmega8A are light source drive output mouth PC4, No. 7 interfaces of ATmega8A are that No. 18 interfaces of power input port VCC, ATmega8A are voice output port PB4.
When the PC0 ports of microcontroller receive high level signal, illustrate someone around multi-functional sensing plug-in unit at this time, this When microcontroller high level signal is sent out to power driving circuit by PC5 ports, control power driving circuit is opened;Work as microcontroller The working signal that receives of PC1 ports not within a preset range when, microcontroller is sent out by PC5 ports to power driving circuit Low level signal, control power driving circuit are closed;When the light data that the PC2 ports of microcontroller receive are less than preset value When, microcontroller sends out high level signal by PC4 ports to light source driving circuit, and control light source driving circuit is opened(It is meanwhile excellent Selection condition, when heat source detection circuit detects heat source, just control light source driving circuit is opened).And for loud speaker 9, in monolithic Transformation/high level signal that machine receives low level signal to the high level signal of PC0 ports transmission turns to low level signal Become and the working signal that receives of PC1 ports not within a preset range when, be output by voice port PB4 controlling loudspeakers 9 Voice prompt is carried out, respectively " someone enters, opening device ", " someone leaves, shutoff device " and " electrical work is abnormal ".
As shown in Fig. 2, the power driving circuit includes triode Q1, the base stage of triode Q1 passes through resistance R9 and list The power drives output port PC5 connections of piece machine, the emitter ground connection of triode Q1, the collector of triode Q1 respectively with relay One of coil-end of device K1 is connected with resistance R10, another coil-end access 5V DC power supplies of relay K1, relay The tip side of device K1 is set on the circuit of load and load power source, and the other end of resistance R10 is with light emitting diode D8's 5 Cathode connects, and the anode of light emitting diode D8 5 is connect with another coil-end of relay K1.Specifically, work as power drives When circuit receives high level signal, triode Q1 conductings, the coil-end of relay K1 has electric current to flow through, the contact of relay K1 End absorption causes the load in load circuit to be connect with load power source, starts to work after load-receipt to load power source, sends out simultaneously Optical diode D8 5 shines under the action of conducting electric current;And when power driving circuit receives low level signal, triode Q1 ends, and the coil-end of relay K1 does not have electric current to flow through, and the tip side of relay K1 does not adsorb so that the load of load circuit It is disconnected with load power source.
More preferably, in the present embodiment, as shown in Fig. 2, the power driving circuit further includes a fly-wheel diode D7, the anode of sustained diode 7 are connect with the other end of resistance R10, cathode and the light emitting diode D8 of sustained diode 7 5 anode connection.The reverse potential that the sustained diode 7 avoids relay from being generated due to opening and closing destroys circuit.
As shown in Fig. 2, the light source driving circuit includes triode Q2, the base stage of triode Q2 by resistance R11 with The light source drive output PC4 connections of microcontroller, the emitter ground connection of triode Q2, collector and the relay K2 of triode Q2 One of coil-end connection, relay K2 another coil-end access 5V DC power supplies, the movable contact of relay K2 Ground connection, one of stationary contact sky of relay K2 connect, and another stationary contact of relay K2 is with light emitting diode D9's 6 Cathode connects, the anode access 3.3V DC power supplies of light emitting diode D1 30.Specifically, when light source drive current receives height During level signal, triode Q2 conductings, the coil-end of relay K2 has electric current to flow through, and the tip side of relay K2 adsorbs so that hair Optical diode D9 6 forms access, so as to shine.In addition, light emitting diode D9 6 shine after the light that generates be radiated at it is more The value of photodiode D6 8 is less than the value that control light source driving circuit is closed in microcontroller on function sensing plug-in unit.
The present invention is described by embodiment, but is not limited the invention, with reference to description of the invention, institute Other variations of disclosed embodiment, are such as readily apparent that the professional person of this field, such variation should belong to Within the scope of the claims in the present invention limit.

Claims (4)

1. a kind of application method of the intelligent socket with voice prompting function, intelligent socket includes external shell and inside electricity Road, the external shell are provided with multiple jacks, and the jack is used to connect external loading and alternating current;
It is characterized in that:Light emitting diode D1, light emitting diode D2, light emitting diode are additionally provided on the external shell D8, light emitting diode D9, pyroelectric sensor, photodiode D6 and loud speaker;
The internal circuit includes heat source detection circuit, electrical work detection circuit, light source detection circuit, microcontroller, power supply Driving circuit, light source driving circuit, power-switching circuit and loud speaker, the power-switching circuit for heat source detection circuit, Light source detection circuit, microcontroller, power driving circuit and light source driving circuit provide power supply, the heat source detection circuit, electricity The output terminal of device operation detection circuit and light source detection circuit is connect with microcontroller, the control output end of microcontroller respectively with electricity Source driving circuit is connected with power driving circuit, and the speech output end of microcontroller is connect with loud speaker;
The input terminal of the power-switching circuit inputs household 220V alternating currents, the L of attaching plug P1 by attaching plug P1 End and N-terminal are connect respectively with two input terminals of transformer, and the K ends sky of attaching plug P2 connects;Two output terminals of transformer point Do not connect with two input terminals of full bridge rectifier, one of output terminal of full bridge rectifier respectively with electrolytic capacitor C1, resistance R1 are connected with the input terminal of voltage-stablizer U1, and the other end of resistance R1 is connect with the anode of light emitting diode D1, voltage stabilizing The output terminal of device U1 is connect respectively with capacitance C2 and fuse, and the output terminal of voltage-stablizer U1 also exports 5V DC power supplies;Fuse The other end turn the input terminal of 3.3V chips U2 with 5V and connect, 5V turn the output terminal of 3.3V chips U2 respectively with capacitance C3 and resistance R2 connections, the other end of resistance R2 are connect with the anode of light emitting diode D2, and the output terminal that 5V turns 3.3V chips U2 also exports 3.3V DC power supply;Another output terminal of full bridge rectifier, the other end of electrolytic capacitor C1, light emitting diode D1 Cathode, the ground terminal of voltage-stablizer U1, the other end of capacitance C2,5V turn the ground terminal of 3.3V chips U2, capacitance C3 other one The cathode of end and light emitting diode D2 are grounded;
The heat source detection circuit includes pyroelectric sensor, the VCC ends input 3.3V DC power supplies of pyroelectric sensor, and heat releases biography The ground terminal ground connection of sensor, the out ends of pyroelectric sensor are connect with the in-phase input end of operational amplifier U3, operational amplifier U3 Inverting input 5V DC power supplies are inputted by resistance R3, the output terminal of operational amplifier U3 passes through diode D3 and microcontroller Heat source detection input mouth PC0 connections;
The electrical work detection circuit includes current transformer, one of output terminal of current transformer and resistance R4 and The anode connection of diode D4, the cathode of diode D4 connect respectively with the anode of resistance R5, capacitance C4, resistance R6 and diode D5 It connects, the operation detection input port PC1 connections of the cathode and microcontroller of diode D5, another output of current transformer End, the other end of resistance R4, the other end of resistance R5, the other end of capacitance C4, resistance R6 other end be grounded;
The light source detection circuit includes photodiode D6, the anode of photodiode D6 respectively with resistance R7, resistance R8 It is connected with capacitance C5, the other end input 3.3V DC power supplies of resistance R7, the other end of resistance R8 and the light source of microcontroller The PC2 connections of detection input mouth, the cathode of photodiode D6 and the other end ground connection of capacitance C5;
The microcontroller power input port VCC input 5V DC power supplies, the power drives output port PC5 of microcontroller with Power driving circuit connects, and the light source drive output mouth PC4 of microcontroller is connect with light source driving circuit, and the voice of microcontroller is defeated Exit port PB4 is connect with loud speaker;
The power driving circuit includes triode Q1, the power drives that the base stage of triode Q1 passes through resistance R9 and microcontroller Output port PC5 connections, the emitter ground connection of triode Q1, the collector of triode Q1 respectively with relay K1 one of them Coil-end is connected with resistance R10, and another coil-end access 5V DC power supplies of relay K1, the tip side of relay K1 is set It is placed on the circuit of load and load power source, the other end of resistance R10 is connect with the cathode of light emitting diode D8, light-emitting diodes The anode of pipe D8 is connect with another coil-end of relay K1;
The light source driving circuit includes triode Q2, and the base stage of triode Q2 is driven by the light source of resistance R11 and microcontroller Dynamic output terminal PC4 connections, the emitter ground connection of triode Q2, the collector of triode Q2 and one of coil of relay K2 End connection, another coil-end access 5V DC power supplies of relay K2, the movable contact ground connection of relay K2, relay K2's One of stationary contact sky connects, and another stationary contact of relay K2 is connect with the cathode of light emitting diode D9, light-emitting diodes The anode access 3.3V DC power supplies of pipe D10;
The method includes:
Heat source detection circuit be used for detect it is multi-functional sensing plug-in unit around human body heat source it is whether close, electrical work detection circuit For detecting whether electrical work is normal, whether light source detection circuit is used for the light detected around multi-functional sensing plug-in unit bright Bright, power driving circuit is used to control load circuit according to the testing result of heat source detection circuit and electrical work detection circuit On/off, light source driving circuit are used for according to the photograph near the multi-functional sensing plug-in unit of the testing result of light source detection circuit control Bright LED light is illuminated opening/closing, and microcontroller is examined for obtaining heat source detection circuit, electrical work detection circuit and light source The testing result of slowdown monitoring circuit removes control power driving circuit and light source driving circuit;Loud speaker is used to carry out according to testing result Voice reminder;Household alternating current is converted to the DC power supply that each circuit is applicable in by power-switching circuit.
2. a kind of application method of intelligent socket with voice prompting function according to claim 1, it is characterised in that: The power driving circuit further includes a sustained diode 7, the anode of sustained diode 7 and other the one of resistance R10 End connection, the cathode of sustained diode 7 are connect with the anode of light emitting diode D8.
3. a kind of application method of intelligent socket with voice prompting function according to claim 1, it is characterised in that: The model ATmega8A of the microcontroller;No. 23 interfaces of ATmega8A are heat source detection input mouth PC0, ATmega8A No. 24 interfaces be No. 25 interfaces of operation detection input port PC0, ATmega8A be light source detection input port PC0, No. 28 interfaces of ATmega8A are that No. 27 interfaces of power drives output port PC5, ATmega8A are light source drive output mouth No. 7 interfaces of PC4, ATmega8A are that No. 18 interfaces of power input port VCC, ATmega8A are voice output port PB4.
4. a kind of application method of intelligent socket with voice prompting function according to claim 1, it is characterised in that: The model 78L05,5V of voltage-stablizer U1 turns the model AMS1117 of 3.3V chips U2.
CN201810012469.5A 2018-01-05 2018-01-05 A kind of application method of the intelligent socket with voice prompting function Withdrawn CN108258540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810012469.5A CN108258540A (en) 2018-01-05 2018-01-05 A kind of application method of the intelligent socket with voice prompting function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810012469.5A CN108258540A (en) 2018-01-05 2018-01-05 A kind of application method of the intelligent socket with voice prompting function

Publications (1)

Publication Number Publication Date
CN108258540A true CN108258540A (en) 2018-07-06

Family

ID=62725767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810012469.5A Withdrawn CN108258540A (en) 2018-01-05 2018-01-05 A kind of application method of the intelligent socket with voice prompting function

Country Status (1)

Country Link
CN (1) CN108258540A (en)

Similar Documents

Publication Publication Date Title
CN103226347B (en) Personalized switchgear and control method thereof
CN102265481A (en) Intuitive electronic circuit
CN108471160B (en) Charging control circuit and method of single-live-wire switch and intelligent household system
CN106765918A (en) Intelligent air condition based on Internet of Things
CN106562572A (en) Intelligent desk
CN107995755A (en) Indoor intelligent light control system and its control method
CN105657938A (en) Lamp control system of smart home
CN104216309B (en) A kind of devices and methods therefor with intelligent standby power on/off function
CN108109362A (en) A kind of application method of the sensing plug-in unit with wireless communication function
CN108271289A (en) A kind of application method of the sensing plug-in system with wireless communication function
CN108258540A (en) A kind of application method of the intelligent socket with voice prompting function
CN207037356U (en) A kind of smart home Centralized Controller of a variety of power supply modes of compatibility
CN108258539A (en) A kind of application method of heat source induced intelligent socket
CN107544297A (en) A kind of intelligent power source management method
CN108255103A (en) A kind of application method of multi-functional sensing plug-in unit
CN205336612U (en) Lamps and lanterns with radar scan function
CN207037357U (en) A kind of the intelligent domestic appliance controller
CN208175075U (en) Intelligent illuminating switch
CN204423459U (en) LED illumination device
CN209928252U (en) Wireless control panel with voice recognition interaction capability
CN207976763U (en) A kind of intelligent household control terminal device
CN208016063U (en) A kind of lamp system
CN106054649A (en) Smart induction household towel preheating system
CN208190766U (en) A kind of cell phone intelligent remote controler for identification function of taking pictures
TWM408659U (en) LED lamp having the emergency illumination effect

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180706

WW01 Invention patent application withdrawn after publication