Intelligent socket and intelligent device
By integrating an energy metering module, an infrared receiving circuit, an infrared transmitting circuit, and a communication module into a smart socket, the power consumption of home appliances can be detected and infrared learning can be achieved. This solves the problem of existing smart sockets lacking infrared control capabilities and improves the level of intelligence and security.
Patent Information
- Application Number
- CN202423302295.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2034-12-31
AI Technical Summary
Existing smart sockets are mostly limited to basic remote control and power detection, lacking the ability to learn and control infrared signals from different home appliances.
A smart socket was designed, comprising an energy metering module, an infrared receiving circuit, an infrared transmitting circuit, a communication module, and a control module. It can detect power consumption, analyze infrared control signals, acquire and store encoding rules, and upload them to a server through the communication module to achieve infrared control of specific electronic devices.
It enables the detection of power consumption and infrared learning functions of home appliances, improves the intelligence level of smart sockets, allows for infrared device control, ensures user information security, reduces the risk of information leakage, and meets the privacy protection requirements of smart homes.
Smart Images

Figure CN223858592U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to intelligent socket technical field, especially intelligent socket and intelligent device. BACKGROUND
[0002] With the popularization of smart home, the user's demand for the intelligentization of household appliances is increasing, and the traditional electric appliances gradually develop in the direction of supporting remote control and intelligent management. As one of the core devices of smart home, the intelligent socket can not only realize remote on-off control, but also can monitor the power consumption and provide power consumption data for the user. However, the functions of the existing intelligent socket are mostly limited to basic remote control and power detection, and lack of infrared learning and control ability for different household appliances. SUMMARY
[0003] The utility model discloses a kind of intelligent sockets, to provide a kind of intelligent socket for realizing power consumption detection and infrared learning function.
[0004] To achieve the above object, the intelligent socket provided by the utility model, the intelligent socket includes:
[0005] Electric energy metering module, infrared receiving circuit, infrared transmitting circuit, communication module and control module;
[0006] The control module is connected with the electric energy metering module, the infrared receiving circuit, the infrared transmitting circuit and the communication module respectively;
[0007] The electric energy metering module is used to detect the power consumption of the electronic device connected to the intelligent socket, and output it to the control module.
[0008] The infrared receiving circuit is used to receive infrared control signals and transmit the received infrared control signals to the control module.
[0009] The control module is used to analyze the infrared control signals, obtain and store the encoding rules of the infrared control signals;The control module is also used to upload the power consumption of the device and the encoding rules of the infrared control signals to the server through the communication module.
[0010] The control module is also used to control the infrared transmitting circuit to send corresponding infrared signals to the electronic device corresponding to the user control instruction after receiving the user control instruction
[0011] Optionally, the intelligent socket further includes:
[0012] Power supply circuit, for output after rectification of commercial power;
[0013] The input end of the power supply circuit is connected to the mains, and the output end is connected to the electric energy metering module, the infrared receiving circuit, the infrared transmitting circuit, the communication module and the control module respectively.
[0014] Optionally, the smart socket further comprises:
[0015] An indicator light circuit connected to the control module and the power supply circuit respectively; the indicator light circuit comprises at least two light-emitting beads emitting different colors of light;
[0016] The power supply circuit provides a first direct current voltage for the indicator light circuit.
[0017] The control module is further configured to indicate the working state of the smart socket by controlling the on / off of the light-emitting beads in the indicator light circuit.
[0018] Optionally, the indicator light circuit comprises:
[0019] A first resistor, a second resistor, a third resistor, a first LED light, a second LED light, a first capacitor and a first triode;
[0020] The anodes of the first LED light and the second LED light are connected to the first direct current voltage respectively; the first end of the first resistor is connected to the cathode of the first LED light, and the second end is connected to the control module; the first end of the second resistor is connected to the cathode of the second LED light, and the second end is connected to the collector of the first triode; the emitter of the first triode is grounded, and the base is connected to the first end of the first capacitor and the second end of the third resistor; the second end of the first capacitor is grounded, and the first end of the third resistor is connected to the control module.
[0021] Optionally, the smart socket further comprises:
[0022] A relay control circuit connected to the control module;
[0023] The first end of the relay control circuit is connected to the mains, and the second end is connected to the jack for connecting the electronic device; the relay control circuit is configured to turn on / off the path between the first end of the relay control circuit and the second end of the relay control circuit according to the control instruction of the control module.
[0024] Optionally, the smart socket further comprises:
[0025] A trigger input circuit connected to the control module; the trigger input circuit comprises at least one trigger;
[0026] The trigger input circuit is configured to output the user control instruction corresponding to the triggered trigger to the control module when the trigger is triggered.
[0027] Optionally, the electric energy metering module comprises:
[0028] a voltage dividing circuit, a current measuring unit and a processing unit;
[0029] a first end of the voltage dividing circuit is connected to a live wire, a second end is grounded, and a third end is connected to the processing unit; the voltage dividing circuit is configured to divide the voltage of the input power and output the divided voltage to the first end of the processing unit;
[0030] the current measuring unit comprises a fourth resistor, a fifth resistor, a sixth resistor, a second capacitor and a third capacitor;
[0031] the fourth resistor is connected in parallel to a neutral wire; one end of the fifth resistor is connected to a first end of the fourth resistor, and the other end is connected to a second end of the processing unit and a first end of the second capacitor; one end of the sixth resistor is connected to a second end of the fourth resistor, and the other end is connected to a third end of the processing unit and a first end of the third capacitor; a second end of the second capacitor and a second end of the third capacitor are grounded;
[0032] the power supply circuit is connected to the processing unit and configured to provide a first direct current voltage to the processing unit as the working voltage of the processing unit;
[0033] the processing unit is configured to process the voltage values of the first end of the processing unit, the second end of the processing unit and the third end of the processing unit, and obtain the power and the power consumption of the device connected to the smart socket by calculating the working current and the voltage of the device.
[0034] Optionally, the infrared receiving circuit comprises:
[0035] an infrared receiving head, a seventh resistor, an eighth resistor and a fourth capacitor;
[0036] the first ends of the seventh resistor, the eighth resistor and the fourth capacitor are connected to the first direct current voltage provided by the power supply circuit, the second end of the seventh resistor is connected to the power supply end of the infrared receiving head; the second end of the fourth capacitor is grounded and connected to the ground end of the infrared receiving head; the second end of the eighth resistor is connected to the output end of the infrared receiving head and the control module.
[0037] Optionally, the infrared transmitting circuit comprises:
[0038] a ninth resistor, a tenth resistor, an eleventh resistor, a third LED lamp and a switching device;
[0039] One end of the ninth resistor is connected to a first direct current voltage provided by the power supply circuit, and the other end is connected to an anode of the third LED lamp; a first end of the switching device is connected to a cathode of the third LED lamp, a second end is grounded, and a controlled end is connected to a second end of the tenth resistor and a first end of the eleventh resistor; a first end of the tenth resistor is connected to the control module, and a second end of the eleventh resistor is connected to the second end of the switching device.
[0040] The utility model discloses an intelligent device, the intelligent device includes the intelligent socket.
[0041] The utility model discloses an intelligent socket, the intelligent socket includes: electric energy metering module, infrared receiving circuit, infrared emission circuit, communication module and control module, control module connects electric energy metering module, infrared receiving circuit, infrared emission circuit and communication module respectively, electric energy metering module is used for detecting the power consumption of the device connected to the intelligent socket, and its output is to control module, infrared receiving circuit is used for receiving infrared control signal, and the received infrared control signal is transmitted to control module, control module is used for parsing infrared control signal, obtains and stores the encoding rule of this infrared control signal, control module is used for outputting the power consumption of the device and the encoding rule of infrared control signal to the server through communication module, control module is used for controlling infrared emission circuit to send corresponding infrared signal to the electronic device corresponding to the user control instruction after receiving the user control instruction. BRIEF DESCRIPTION OF DRAWINGS
[0042] In order to more clearly illustrate the technical scheme in the embodiments of the utility model or prior art, below will be to the drawing needed to be used in the embodiment or prior art description simple introduction, obviously, below description's drawing only some embodiments of the utility model, for the ordinary skilled person in the art comes, under the premise of not paying the creative labor, can also obtain other drawings according to the structure shown in these drawings.
[0043] Figure 1 It is the structural schematic diagram of an embodiment of the utility model intelligent socket;
[0044] Figure 2 It is the structural schematic diagram of another embodiment of the utility model intelligent socket;
[0045] Figure 3 It is the structural schematic diagram of still another embodiment of the utility model intelligent socket;
[0046] Figure 4 Figure 2 is a structural schematic diagram of another embodiment of the intelligent socket of the present application;
[0047] Figure 5 Figure 3 is a structural schematic diagram of still another embodiment of the intelligent socket of the present application;
[0048] Figure 6 Figure 4 is a structural schematic diagram of yet another embodiment of the intelligent socket of the present application;
[0049] Figure 7 Figure 5 is a structural schematic diagram of still another embodiment of the intelligent socket of the present application.
[0050] Brief Description of the Drawings
[0051]
[0052] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0053] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0054] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present application are only used to explain the relative positional relationship, movement condition, etc. between components in a certain specific posture (as shown in the drawings), and if the specific posture changes, the directional indications will also change accordingly.
[0055] In the present application, unless otherwise explicitly specified and limited, the terms "connection", "fixing", etc. should be understood in a broad sense, for example, "fixing" can be fixed connection, or detachable connection, or integral; can be mechanical connection, or electrical connection; can be direct connection, or indirect connection through an intermediate medium; can be internal connection of two elements or interaction relationship between two elements, unless otherwise explicitly limited. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0056] In addition, the description of "first", "second" and the like in the present application is only for the purpose of description, and cannot be understood as indicating or implying the relative importance of the technical features or implicitly indicating the number of the technical features. Therefore, the features limited by "first", "second" can be explicitly or implicitly included at least one of the features. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the realization of ordinary skilled in the art, when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, also not within the scope of protection required by the present application.
[0057] The utility model provides a kind of intelligent socket, as shown in Figure 1 The intelligent socket includes:
[0058] Electric energy measurement module 20, infrared receiving circuit 50, infrared transmitting circuit 40, communication module 30 and control module 10;
[0059] The control module 10 is connected with the electric energy measurement module 20, the infrared receiving circuit 50, the infrared transmitting circuit 40 and the communication module 30 respectively;
[0060] The electric energy measurement module 20 is used to detect the power consumption of the electronic device connected to the intelligent socket, and output it to the control module 10;
[0061] The infrared receiving circuit 50 is used to receive the infrared control signal and transmit the received infrared control signal to the control module 10;
[0062] The control module 10 is used to analyze the infrared control signal, obtain and store the coding rule of the infrared control signal;The control module 10 is also used to upload the power consumption of the device and the coding rule of the infrared control signal to the server through the communication module 30.
[0063] The control module 10 is also used to control the infrared transmitting circuit 40 to send the corresponding infrared signal to the electronic device corresponding to the user control instruction after receiving the user control instruction.
[0064] It should be noted that the smart socket has a socket for inserting an electronic device, thereby providing power for the electronic device. The power metering module 20 is used to detect the power consumption of the device connected to the smart socket, i.e. the power metering module 20 detects the power consumption of the electronic device inserted into the socket of the smart socket. It is easy to understand that the power metering module 20 can calculate the power and power consumption of the electronic device by detecting the working voltage and working current of the electronic device. The power metering module 20 can include a voltage detection circuit and a current detection circuit. The power metering module 20 is connected to the control module 10, and is used to output the detected power consumption message of the device to the control module 10.
[0065] The infrared receiving circuit 50 is used to receive an infrared control signal and transmit the received infrared control signal to the control module 10, and the control module 10 analyzes the infrared control signal to obtain and store the encoding rule of the infrared control signal. Specifically, when the infrared receiving circuit 50 receives an infrared control signal, it converts the infrared control signal into an electrical signal and outputs it to the control module 10, and the control module 10 decodes the electrical signal to identify the instruction information contained in the signal. This process is based on an infrared communication protocol, such as the commonly used NEC protocol, which specifies the pulse width, carrier frequency, etc. of the signal, and the smart socket determines the corresponding instructions in the infrared control signal by analyzing these parameters. The control module 10 obtains the encoding rule of the infrared control signal by learning the electrical signal corresponding to the infrared control signal.
[0066] In an embodiment, the control module 10 analyzes the electrical signal according to a preset infrared encoding protocol (such as the NEC protocol, the RC-5 protocol, etc.). For example, in the NEC protocol, a frame of data contains a leading code, a user code, a user code inverse code, a data code, and a data code inverse code. The control module 10 identifies the pulse characteristics of these different parts and extracts the infrared code corresponding to the infrared control signal.
[0067] The control module 10 is further configured to output the power consumption of the device and the encoding rule of the infrared control signal to a server through the communication module 30. A user can obtain the power consumption of the device and the infrared code stored on the server through a user terminal. Then, the user can customize the function of the infrared code on the APP of the user terminal. For example, the electronic device corresponding to the infrared control signal is defined. In an example, when the smart socket starts the infrared learning function, the smart socket receives the infrared control signal of the air conditioner controller, the control module 10 analyzes the infrared control signal, obtains the corresponding infrared code, and uploads it to the server. It should be noted that the infrared code is the encoding information contained in the infrared remote control signal. When controlling an electrical device through a remote controller, the remote controller will emit infrared light pulse signals, and these signals are encoded according to specific rules and formats. This encoding is the infrared code. The infrared code is the encoding rule of the infrared control signal.
[0068] It should be noted that the smart socket provided by the utility model can realize power consumption detection and infrared learning function, and can also control infrared devices. When the socket transmits the power consumption and the encoding rule of the infrared control signal, AES encryption and Base64 encoding are used to ensure that user information is not leaked during transmission. The data security is improved, which meets the requirements of smart home devices for user privacy protection and reduces the risk of information interception.
[0069] In an embodiment, a user selects a corresponding electronic device and a control option on the APP of the user terminal, and sends a user control instruction to the smart socket through a network; the control module 10 controls the infrared emission circuit 40 to send a corresponding infrared signal to the electronic device corresponding to the user control instruction after receiving the user control instruction. It is easy to understand that different electronic devices correspond to different infrared codes, and the user can select the electronic device corresponding to the learned and stored infrared code or the electronic device corresponding to the infrared code database provided by the operation and maintenance personnel in the APP; after selecting the electronic device, the control option is determined, for example, turning on, turning off or changing the operation mode, etc. The APP forms a corresponding user control instruction according to the electronic device and the control option selected by the user, and transmits the smart socket through the network parameter value. The control module 10 is configured to control the infrared emission circuit 40 to send a corresponding infrared signal to the electronic device corresponding to the user control instruction by using the corresponding infrared code after receiving the user control instruction through the communication module 30.
[0070] In another embodiment, a user can send a user control command to the smart socket after selecting the electronic device and control options using a user terminal with infrared transmission capability. Upon receiving the user control command, the control module 10, which is not in infrared learning mode, controls the infrared transmission circuit 40 to send a corresponding infrared signal to the electronic device corresponding to the user control command. It is readily understood that the control module 10, in addition to uploading the encoding rules of the infrared control signal to the server, also locally stores the encoding rules of the infrared control signal.
[0071] In another embodiment, the smart socket is provided with a trigger input circuit, which is connected to the control module 10; the user can output user control commands to the control module 10 through the trigger element in the trigger input circuit.
[0072] The control module 10 may include controllers such as MCU, FPGA, CPU, SOC, or DSP. The communication module 30 may include WiFi module, Bluetooth module, ZigBee module, NB-IoT module, LTE module, or TPUNB module.
[0073] This utility model discloses a smart socket, which includes: an energy metering module 20, an infrared receiving circuit 50, an infrared transmitting circuit 40, a communication module 30, and a control module 10. The control module 10 is connected to the energy metering module 20, the infrared receiving circuit 50, the infrared transmitting circuit 40, and the communication module 30. The energy metering module 20 is used to detect the power consumption of the device connected to the smart socket and output it to the control module 10. The infrared receiving circuit 50 is used to receive infrared control signals and transmit the received infrared control signals to the control module 10. The control module 10 is used to parse the infrared control signals, obtain and store the encoding rules of the infrared control signals. The control module 10 is also used to output the power consumption of the device and the encoding rules of the infrared control signals to a server through the communication module 30. The control module 10 is also used to control the infrared transmitting circuit 40 to send corresponding infrared signals to the electronic device corresponding to the user control command after receiving a user control command. This invention not only obtains the power consumption of the smart socket connected devices through the power metering module 20, but also obtains the encoding rules of the infrared control signals of electronic devices through infrared learning, uploads and stores them to the server, and realizes infrared control of specific electronic devices after receiving user control commands.
[0074] The smart socket also includes:
[0075] The power supply circuit is used to rectify the mains power and output it.
[0076] The input terminal of the power supply circuit is connected to the mains power, and the output terminal is connected to the power metering module 20, the infrared receiving circuit 50, the infrared transmitting circuit 40, the communication module 30 and the control module 10 respectively.
[0077] It is easy to understand that the smart socket needs to receive user commands; the user needs to determine and output commands based on the smart socket's operating status. Therefore, the smart socket needs to display its own operating status so that the user can make decisions.
[0078] In one embodiment, the smart socket further includes:
[0079] An indicator light circuit is connected to the control module 10 and the power supply circuit respectively; the indicator light circuit includes at least two LEDs that emit light of different colors;
[0080] The power supply circuit provides a first DC voltage to the indicator light circuit;
[0081] The control module 10 is also used to indicate the working status of the smart socket by controlling the on / off state of the LED beads in the indicator circuit.
[0082] In this embodiment, the indicator light current includes multiple LED beads. It should be noted that this solution does not limit the number of LED beads / indicator lights. In order to more clearly display the status of the smart socket, the multiple LED beads can emit at least two different colors of light.
[0083] The control module 10 indicates the working status of the smart socket by controlling the on / off state of the LEDs in the indicator circuit. In one example, the first DC voltage provides the working voltage for the LEDs, and the control module 10 controls the on / off state of the LEDs by controlling the connection / disconnection of the path between the LEDs and ground.
[0084] In one example, the indicator light circuit controls the on / off status of each indicator light through the control module 10 to display the current status of the socket, such as Wi-Fi connection status, infrared learning status, and power alarm. Different colored LEDs (such as red and blue LEDs) can be used to achieve phenomena such as breathing lights, fast flashing, and slow flashing to indicate different operating states.
[0085] like Figure 2 As shown, the indicator circuit includes: a first resistor R1, a second resistor R2, a third resistor R3, a first LED LED1, a second LED LED2, a first capacitor C1, and a first transistor Q1;
[0086] Anodes of the first LED lamp LED1 and the second LED lamp LED2 are connected to a first direct current voltage respectively; a first end of the first resistor R1 is connected to a cathode of the first LED lamp LED1, and a second end of the first resistor R1 is connected to the control module 10; a first end of the second resistor R2 is connected to a cathode of the second LED lamp LED2, and a second end of the second resistor R2 is connected to a collector of the first triode Q1; an emitter of the first triode Q1 is grounded, and a base of the first triode Q1 is connected to a first end of the first capacitor C1 and a second end of the third resistor R3; a second end of the first capacitor C1 is grounded, and a first end of the third resistor R3 is connected to the control module 10.
[0087] It should be noted that the present scheme does not limit the color of the light of the first LED lamp LED1 and the second LED lamp LED2, and only needs the color of the light of the first LED lamp LED1 and the second LED lamp LED2 to be different. In an example, the first LED lamp LED1 emits blue light, and the second LED lamp LED2 emits red light.
[0088] The first LED lamp LED1 can be used to indicate the working state of the communication module 30, and the second LED lamp LED2 can be used to indicate the power state.
[0089] The first resistor R1 is a current-limiting resistor, which is used to protect the IO port of the control module 10 from being damaged by a large current. The second resistor R2 is a current-limiting resistor. The first triode Q1 is used as a switch to control the on-off of the second LED lamp LED2. When the base of the first triode Q1 receives a sufficient forward voltage through the third resistor R3, the first triode Q1 is turned on, so that the current flows through the second resistor R2 and the second LED lamp LED2, and the second LED lamp LED2 is turned on. The first capacitor C1 is used to filter noise and smooth voltage fluctuations, so as to prevent the transistor from being triggered by the rapid change of the control signal. Figure 2 In an example, LED-B and LED-R are different IO ports of the control module 10. In an example, the first direct current voltage can be 3.3V, the value of the first resistor R1 is 10KΩ, and the value of the second resistor R2 is 10KΩ. The value of the first capacitor C1 is 100nF.
[0090] Reference Figure 3 In an example, the power supply circuit comprises a seventeenth resistor R17, an eighteenth resistor R18, a nineteenth resistor R19, a twentieth resistor R20, a sixth capacitor C6, a seventh capacitor C7, an eighth capacitor C8, a ninth capacitor C9, a tenth capacitor C10, an eleventh capacitor C11, a fuse F1, a first diode D1, a second diode D2, a third diode D3, a fourth diode D4, a first inductor L1, a first processing chip, and a second processing chip.
[0091] It should be noted that this module circuit converts the input power (220V AC) into low-voltage DC and provides stable 3.3V and 12V voltage outputs for different modules through stabilizers and other elements. The module includes filter capacitors and protection diodes to ensure the stability and safety of the power supply.
[0092] One end of the fuse F1 is connected to the live wire of the mains, and the other end is connected to the first end of the seventeenth resistor R17; the second end of the seventeenth resistor R17 is connected to the anode of the first diode D1; the cathode of the first diode D1 is connected to the fourth end of the first processing chip and the first end of the sixth capacitor C6; the second end of the sixth capacitor C6 is connected to the anode of the second diode D2, the anode of the fourth diode D4, and the second end of the ninth capacitor C9; the cathode of the second diode D2 is connected to the zero line of the mains; the seventh capacitor C7 is connected in parallel between the first end and the fifth end of the first processing chip; the nineteenth resistor R19 is connected in parallel between the second end and the fifth end of the first processing chip; the first end of the eighteenth resistor R18 is connected to the second end of the first processing chip, and the second end is connected to the first end of the eighth capacitor C8 and the cathode of the third diode D3. The second end of the eighth capacitor C8 is connected to the first end of the first inductor L1 and the cathode of the fourth diode D4; the anode of the third diode D3 is connected to the second end of the first inductor L1, the first end of the ninth capacitor C9, the first end of the twentieth resistor R20, and the third end of the second processing chip. The second end of the twentieth resistor R20 is grounded. The tenth capacitor C10 and the eleventh capacitor C11 are connected in parallel between the first end and the second end of the second processing chip.
[0093] The fuse F1 is used to provide overcurrent protection and fuse when the current exceeds the rated value of the fuse F1, protecting the entire circuit. The seventeenth resistor R17 is a pressure-sensitive resistor used to suppress input voltage surges or spikes (such as lightning surges) to protect the subsequent circuit.
[0094] The first diode D1 and the second diode D2 are used to form a full-wave rectifier bridge to convert AC input voltage to pulsating DC voltage. The sixth capacitor C6 is used to filter out high-frequency components in the pulsating DC after rectification, forming a smooth DC voltage. The first processing chip is an integrated switching regulator IC used to provide efficient power conversion. It controls energy conversion in the circuit to ensure the stability of the output voltage. Among them, pin 1 (BP) and pin 2 (FB) are bypass and feedback pins, respectively, used to adjust and control the output voltage.
[0095] The seventh capacitor C7 and the eighth capacitor C8 are used to further filter the voltage, improve the stability and response speed of the power supply. The eighteenth resistor R18 and the nineteenth resistor R19 work together with the feedback pin of U5 to set and maintain the required output voltage. The first inductor L1 and the fourth diode D4 form a filter to further smooth the output voltage, reduce high-frequency noise and voltage spikes.
[0096] The third diode D3 acts as a self-resetting fuse F1 in the circuit, mainly for overcurrent protection. When the current flowing through the third diode D3 exceeds the safe range, its internal temperature rises, causing the resistance to increase, thereby automatically limiting the current and protecting the circuit from damage. Once the abnormal state is eliminated, the resistance of the third diode D3 will return to normal, allowing the current to flow again, achieving automatic reset.
[0097] The fourth diode D4 is a Schottky diode used to rectify the high-frequency pulse signal from the transformer secondary into direct current. The second processing chip is a low-voltage stabilizing chip that outputs 3.3V, which stabilizes the input 12VDC to a precise 3.3V for subsequent circuit use. Protecting downstream low-voltage components from voltage fluctuations.
[0098] The twentieth resistor R20 is used to provide a bias voltage for the voltage regulator or other control circuit. The tenth capacitor C10 and the eleventh capacitor C11 are used to provide decoupling voltage stabilization on the 3.3V output side, ensuring that devices connected to this power supply can receive clean and stable voltage. It should be noted that the power supply circuit can output a first direct current and a second direct current; wherein the second direct current is output through the first end of the twentieth resistor R10, and the first direct current is output through the output end of the second processing chip. In this example, the first direct current is 3.3V, and the second direct current is 12V.
[0099] The smart socket further comprises:
[0100] The relay U1 control circuit connected with the control module 10;
[0101] The first end of the relay U1 control circuit is connected to the mains, and the second end is connected to the jack for connecting the electronic device; the relay U1 control circuit is used to turn on / off the path between the first end of the relay U1 control circuit and the second end of the relay U1 control circuit according to the control instruction of the control module 10.
[0102] It is easy to understand that the user can send a control command to the smart socket through the mobile phone APP, and the control module 10 sends a control instruction to the switching circuit according to the control command to realize the conduction / shutoff of the path between the first end of the relay U1 control circuit and the second end of the relay U1 control circuit, thereby controlling the power conduction of the electronic device inserted into the smart socket.
[0103] In an example, as shown in Figure 4 The relay U1 circuit includes a twenty-first resistor R21, a twenty-second resistor R22, a second triode Q3, a fifth diode D5, and a relay U1. The fifth diode D5 is connected in parallel between the first end of the relay U1 and the fifth end of the relay U1, wherein the cathode of the fifth diode D5 is connected to the second DC voltage output by the power supply circuit, and the anode is connected to the collector of the second triode and the fifth end of the relay U1; the base of the second triode Q3 is connected to the first end of the twenty-first resistor R21 and the first end of the twenty-second resistor R22, and the emitter is grounded; the second end of the twenty-first resistor R21 is connected to the control module, and the second end of the twenty-second resistor R22 is grounded. The fourth end of the relay U1 and the second end of the relay U1 are connected to the live wire. It is easy to understand that the control module controls the conduction / shutoff of the second triode Q3 to determine whether the coil in the relay U1 is energized, thereby changing the closure of the single-pole double-break switch in the relay U1. The fifth diode D5 is used to provide a discharge channel. The twenty-first resistor R21 and the twenty-second resistor R22 are used to form a resistor voltage dividing circuit.
[0104] The smart socket further comprises:
[0105] A trigger input circuit connected to the control module 10 and the power supply circuit, respectively; the trigger input circuit comprises at least one trigger;
[0106] The power supply circuit provides a second DC voltage for the trigger input circuit;
[0107] The trigger input circuit is configured to output a user control instruction corresponding to the triggered trigger to the control module 10 when the trigger is triggered.
[0108] It should be noted that the trigger can be a key or a dial switch, etc. Different combinations of the trigger can output multiple user control instructions to the control module 10 to complete the user input function.
[0109] As shown in Figure 5 The power metering module 20 comprises:
[0110] A voltage dividing circuit, a current measurement unit, and a processing unit.
[0111] The first end of the voltage dividing circuit is connected to a live wire, the second end is grounded, and the third end is connected to the processing unit; the voltage dividing circuit is configured to divide the input mains voltage and output the divided voltage to the first end of the processing unit;
[0112] The current measuring unit comprises a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a second capacitor C2, and a third capacitor C3.
[0113] The fourth resistor R4 is connected in parallel with a neutral wire; one end of the fifth resistor R5 is connected to the first end of the fourth resistor R4, and the other end is connected to the second end of the processing unit and the first end of the second capacitor C2; one end of the sixth resistor R6 is connected to the second end of the fourth resistor R4, and the other end is connected to the third end of the processing unit and the first end of the third capacitor C3; the second end of the second capacitor C2 and the second end of the third capacitor C3 are grounded.
[0114] The power supply circuit is connected to the processing unit and configured to provide a first direct current voltage to the processing unit as the working voltage of the processing unit.
[0115] The processing unit is configured to process the voltage values of the first end of the processing unit, the second end of the processing unit, and the third end of the processing unit, and obtain the power and power consumption of the device connected to the smart socket by calculating the working current and voltage of the device.
[0116] It should be noted that the electric energy metering circuit is configured to detect the power consumption of the device connected to the socket in real time and transmit the data to the control module 10 for processing. The processing unit can be a metering chip (HLW8012), which can accurately detect the current, voltage, and power. The collected data is transmitted to the control module 10 through the S-VI, CF1-VI, and CF-P interfaces, and after data processing, it is uploaded to the platform through the communication module 30 for user monitoring. The voltage dividing circuit can comprise a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15, and a sixteenth resistor R16; these high resistance resistors are connected in series for voltage division, mainly used to reduce the voltage at the measurement point to a safe level, suitable for the input range of microcontrollers or other detection ICs. The series configuration also helps to limit the current in fault conditions and improve the safety of the circuit. The voltage dividing circuit can further comprise a fifth capacitor C5, which is connected in parallel with the sixteenth resistor R16, configured for decoupling and filtering in the signal path, helping to smooth the voltage and current signals, reducing high-frequency noise, and improving the accuracy of the measurement.
[0117] The fifth resistor R5 and the sixth resistor R6 are used in the voltage measurement path to balance and stabilize the signal while limiting the current to protect the circuit. The fourth resistor R4 is a low- value shunt resistor used for current measurement. The voltage drop across this resistor can be used to calculate the current flowing through it, and the key is that the resistance value is very low, so it does not significantly affect the total power consumption or voltage level of the circuit.
[0118] The first capacitor C1 and the second capacitor C2 are used for decoupling and filtering in the signal path, helping to smooth the voltage and current signals, reducing high-frequency noise, and improving the accuracy of the measurement. The processing unit also includes a fourth capacitor C4 connected to the power supply pin of the IC for decoupling of the power supply line, ensuring the stability of the IC power supply and reducing power supply noise.
[0119] Figure 5 In the middle, the processing unit (HLWB012) is the core power monitoring IC, which is used to process the measured voltage and current data, calculate power, etc. The pin description is as follows:
[0120] VDD and GND are power inputs. VIN is the voltage input connected from the voltage divider circuit. VIP and V2P are current measurement input terminals connected to the shunt resistor R4 for current detection.
[0121] Analog-to-digital conversion: The VIN pin receives the voltage from the voltage divider circuit. The processing unit contains an analog-to-digital converter (ADC) inside, which converts the analog voltage signal into a digital value to provide further processing and analysis for the host chip.
[0122] Current measurement; the fourth resistor R4 is a low- value shunt resistor used to measure the current passing through it. When current passes through the fourth resistor R4, according to Ohm's law (V = IR), a small voltage drop will occur across the resistor. The VIP and V1N pins are connected to the two ends of the shunt resistor, respectively, to detect the voltage drop across the shunt resistor. This voltage drop reflects the size of the current passing through, and the processing unit converts this analog voltage into a digital signal through the built-in ADC, and calculates the current accordingly. With accurate measurement of voltage and current, the processing unit can calculate the power in real time. The power calculation formula is P = V x I, where P is the power, V is the voltage, and I is the current.
[0123] As Figure 6 shown, the infrared receiving circuit 50 includes:
[0124] an infrared receiving head, a seventh resistor R7, an eighth resistor R8, and a fourth capacitor C4;
[0125] The first end of the seventh resistor R7, the eighth resistor R8 and the fourth capacitor C4 is connected to the first DC voltage provided by the voltage circuit respectively, the second end of the seventh resistor R7 is connected to the power supply end of the infrared receiver; the second end of the fourth capacitor C4 is grounded and connected to the ground end of the infrared receiver; the second end of the eighth resistor R8 is connected to the output end of the infrared receiver and the control module 10.
[0126] It should be noted that the infrared receiving circuit 50 is responsible for receiving infrared control signals for infrared learning function. This circuit contains infrared receiver (VS1838B), filter capacitor and current limiting resistor, etc. The received signal will be transmitted to the control module 10 for analysis after processing, so as to learn the infrared encoding of different household appliances to realize the control of different devices.
[0127] The seventh resistor R7 is a current limiting protection resistor. The fourth capacitor C4 is connected between VCC and GND, which is used to stabilize the power supply and reduce noise. The eighth resistor R8 is connected between OUT and VCC, which is a pull-up resistor, used to keep the output high when there is no signal. When the infrared receiver detects an infrared signal, it will decode the signal and output a low level through the OUT pin. Without signal, OUT remains high due to the pull-up effect of the eighth resistor R8.
[0128] As shown in Figure 7 The infrared transmitting circuit 40 includes:
[0129] The ninth resistor R9, the tenth resistor R10, the eleventh resistor R11, the third LED lamp LED3 and the switching device Q2;
[0130] One end of the ninth resistor R9 is connected to the first DC voltage provided by the power supply circuit, and the other end is connected to the anode of the third LED lamp LED3; the first end of the switching device Q2 is connected to the cathode of the third LED lamp LED3, the second end is grounded, and the controlled end is connected to the second end of the tenth resistor R10 and the first end of the eleventh resistor R11; the first end of the tenth resistor R10 is connected to the control module 10, and the second end of the eleventh resistor R11 is connected to the second end of the switching device Q2.
[0131] When current passes through the third LED lamp LED3, the third LED lamp LED3 emits infrared light signal for communication or remote control.
[0132] The ninth resistor R9 is a current limiting resistor, which is used for limiting the current flowing through the LED, and ensures that the LED works in a safe current range. The tenth resistor R10 is used for limiting the current value of the controlled end of the switching device Q2, and prevents the control signal from being overloaded. The eleventh resistor R11 is a pull-down resistor, which is used for pulling down the voltage value of the controlled end of the switching device Q2, and avoids the control module 10 from being mis-triggered when there is no signal. The switching device Q2 can be a MOS tube or a triode.
[0133] The utility model discloses still a kind of intelligent equipment, the intelligent equipment includes the intelligent socket of the described.The specific structure of intelligent socket refers to above-mentioned embodiment, since the present intelligent equipment has adopted all technical solutions of above-mentioned all embodiments, therefore at least have all beneficial effects brought by the technical scheme of above-mentioned embodiment, here no longer one by one elaboration.The above-mentioned only for optional embodiment of the utility model, and not therefore limit the patent range of the utility model, all equivalent structural transformation in the invention concept of the utility model, using the utility model specification and attached drawing contents are made, or directly / indirectly applied in other related technical field are included in the patent protection range of the utility model.
Claims
1. An intelligent socket, characterized in that, The intelligent socket comprises: an electric energy metering module, an infrared receiving circuit, an infrared transmitting circuit, a communication module and a control module; the control module is connected with the electric energy metering module, the infrared receiving circuit, the infrared transmitting circuit and the communication module respectively; the electric energy metering module is used for detecting the power consumption of the electronic device connected with the intelligent socket and outputting the power consumption to the control module; the infrared receiving circuit is used for receiving an infrared control signal and transmitting the received infrared control signal to the control module; the control module is used for analyzing the infrared control signal, obtaining and storing the coding rule of the infrared control signal; the control module is also used for uploading the power consumption of the device and the coding rule of the infrared control signal to a server through the communication module; the control module is also used for controlling the infrared transmitting circuit to send a corresponding infrared signal to the electronic device corresponding to the user control instruction after receiving the user control instruction.
2. The smart socket of claim 1, wherein, The intelligent socket further comprises: a power supply circuit used for outputting after rectifying commercial power; the input end of the power supply circuit is connected with commercial power, and the output end is connected with the electric energy metering module, the infrared receiving circuit, the infrared transmitting circuit, the communication module and the control module respectively.
3. The smart socket of claim 2, wherein, The intelligent socket further comprises: an indicating lamp circuit connected with the control module and the power supply circuit respectively; the indicating lamp circuit comprises at least two lamp beads emitting different color lights; the power supply circuit provides a first direct current voltage for the indicating lamp circuit; the control module is also used for indicating the working state of the intelligent socket by controlling the on / off of the lamp beads in the indicating lamp circuit.
4. The smart socket of claim 3, wherein, The indicating lamp circuit comprises: a first resistor, a second resistor, a third resistor, a first LED lamp, a second LED lamp, a first capacitor and a first triode; the anodes of the first LED lamp and the second LED lamp are connected with a first direct current voltage respectively; the first end of the first resistor is connected with the cathode of the first LED lamp, and the second end is connected with the control module; the first end of the second resistor is connected with the cathode of the second LED lamp, and the second end is connected with the collector of the first triode; the emitter of the first triode is grounded, and the base is connected with the first end of the first capacitor and the second end of the third resistor; the second end of the first capacitor is grounded, and the first end of the third resistor is connected with the control module.
5. The smart socket of claim 2, wherein, The intelligent socket further comprises: a relay control circuit connected with the control module; the first end of the relay control circuit is connected with commercial power, and the second end is connected with a jack for connecting the electronic device; the relay control circuit is used for turning on / off the path between the first end of the relay control circuit and the second end according to the control instruction of the control module.
6. The smart socket of claim 2, wherein, The intelligent socket further comprises: a trigger input circuit connected with the control module and the power supply circuit respectively; the trigger input circuit comprises at least one trigger piece; the power supply circuit provides a second direct current voltage for the trigger input circuit; The trigger input circuit is configured to output a user control instruction corresponding to the triggered trigger to the control module when the trigger is triggered.
7. The smart socket of any one of claims 2 to 6, wherein, The electric energy metering module comprises: a voltage dividing circuit, a current measuring unit and a processing unit; a first end of the voltage dividing circuit is connected to a live wire, a second end is grounded, and a third end is connected to the processing unit; the voltage dividing circuit is configured to divide the voltage of the accessed mains and output the divided voltage to the first end of the processing unit; the current measuring unit comprises a fourth resistor, a fifth resistor, a sixth resistor, a second capacitor and a third capacitor; the fourth resistor is connected in parallel with a neutral wire; one end of the fifth resistor is connected to a first end of the fourth resistor, and the other end is connected to a second end of the processing unit and a first end of the second capacitor; one end of the sixth resistor is connected to a second end of the fourth resistor, and the other end is connected to a third end of the processing unit and a first end of the third capacitor; a second end of the second capacitor and a second end of the third capacitor are grounded; the power supply circuit is connected to the processing unit and configured to provide a first direct current voltage to the processing unit as a working voltage of the processing unit; the processing unit is configured to process voltage values of the first end of the processing unit, the second end of the processing unit and the third end of the processing unit, and obtain power and power consumption of a device connected to the smart socket by calculating working current and voltage of the device.
8. The smart socket of any one of claims 2 to 6, wherein, The infrared receiving circuit comprises: an infrared receiving head, a seventh resistor, an eighth resistor and a fourth capacitor; first ends of the seventh resistor, the eighth resistor and the fourth capacitor are connected to the first direct current voltage provided by the power supply circuit, a second end of the seventh resistor is connected to a power supply end of the infrared receiving head; a second end of the fourth capacitor is grounded and connected to a ground end of the infrared receiving head; a second end of the eighth resistor is connected to an output end of the infrared receiving head and the control module.
9. The intelligent socket of any one of claims 2 to 6, wherein, The infrared transmitting circuit comprises: a ninth resistor, a tenth resistor, an eleventh resistor, a third LED lamp and a switching device; one end of the ninth resistor is connected to the first direct current voltage provided by the power supply circuit, and the other end is connected to an anode of the third LED lamp; a first end of the switching device is connected to a cathode of the third LED lamp, a second end is grounded, and a controlled end is connected to a second end of the tenth resistor and a first end of the eleventh resistor; a first end of the tenth resistor is connected to the control module, and a second end of the eleventh resistor is connected to the second end of the switching device.
10. A smart device, comprising: The smart device comprises the smart socket according to any one of claims 1 to 9.