Intelligent socket driving circuit
By introducing the Bluetooth control module and output status detection circuit into the smart socket, the problem of accurate control when the relay is short-circuited or broken is solved, the port status is maintained during reset, ensuring load safety, and reducing resource waste and replacement costs.
Patent Information
- Application Number
- CN202210172085.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-24
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-02-24
AI Technical Summary
Existing smart sockets cannot accurately sense the switching action when the relay is short-circuited or open-circuited, causing the load to be shut down abnormally, which may cause data loss or device abnormalities. In addition, resets caused by firmware upgrades or grid interference may cause abnormal output states.
Design a smart socket drive circuit, including a power supply circuit, a Bluetooth control module, a relay drive circuit and an output status detection circuit. The relay control is realized through the Bluetooth control module and the port status is maintained for a certain period of time during reset. The output status detection circuit detects the actual Output status to ensure load safety.
It avoids abnormal load shutdown due to short-term reset, notifies users immediately, prevents accidents such as fires, reduces the replacement cost of load appliances, and expands the control methods of sockets.
Smart Images

Figure CN114563967B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart sockets, and in particular relates to a smart socket driving circuit. Background Art
[0002] Traditional sockets generally control the power supply of load electrical appliances by plugging and unplugging or by pressing a button on the socket. In recent years, with the development of wireless intelligent technology, smart socket products have also been applied. This smart socket controls the on / off of the load by changing the presence or absence of AC power supply to the load by switching the AC output on and off. It can be remotely controlled by wireless methods such as Bluetooth and WIFI, or it can be controlled on-site by plugging and unplugging or pressing a button on the traditional socket. This smart socket has an additional wireless control module inside, which is added between the power supply and the load.
[0003] There are many types of smart sockets on the market, but the following problems are common: 1. When the circuit in the smart socket fails, such as the relay is short-circuited or open-circuited, it is impossible to sense whether the physical opening or closing action is actually done; 2. When the firmware of the smart socket itself completes the OTA upgrade, it automatically resets to run the new firmware (mostly automatic silent and forced updates in the background that the user is not aware of) or the MCU software runs away due to temporary strong interference on the power grid. The watchdog reset, etc., the MCU's relay control port will become the default high-impedance state when the chip is reset (for several to tens of milliseconds) and will be pulled to the default state (generally the closed state) by the external hardware circuit. If the load is powered on and used before, the reset time is greater than the release time of the relay, which will inevitably cause the output relay to shut down abnormally, which will lead to risks such as desktop computer data not being saved and abnormal operating position of power tools. Summary of the invention
[0004] The present invention mainly solves the technical problems existing in the above-mentioned prior art and provides a smart socket driving circuit.
[0005] The above technical problems of the present invention are mainly solved by the following technical solutions: a smart socket drive circuit, connected between the mains and the load, including a power supply circuit, a Bluetooth control module, a relay drive circuit and an output state detection circuit, wherein the power supply circuit is connected to the mains to provide working voltage for the Bluetooth control module and the relay drive circuit; the Bluetooth control module is respectively connected to the relay drive circuit and the output state detection circuit to control the relay drive circuit and the output state detection circuit; the relay drive circuit is connected to the live wire of the mains, and when the circuit is reset, the port preservation function is realized for a certain period of time, and the relay control signal generated by the Bluetooth control module is converted into an actual relay contact state output; the output state detection circuit is connected to the live wire of the load input end, and whether the actual output state is correct is comprehensively judged based on whether the output live wire signal actually detected is fed back to the Bluetooth control module.
[0006] Preferably, it also includes a button, which is connected to the Bluetooth control module.
[0007] Preferably, it also includes a dual-color indicator light for indicating various states, and the dual-color indicator light is connected to the Bluetooth control module.
[0008] Preferably, it also includes an NTC temperature detection circuit for detecting temperature, the NTC temperature detection circuit includes an NTC resistor RT1 and a resistor R12, one end of the NTC resistor RT1 is respectively connected to the output end of the power supply circuit and the Bluetooth control module, the other end of the NTC resistor RT1 is respectively connected to one end of the resistor R12 and the Bluetooth control module, the other end of the resistor R12 is connected to the Bluetooth control module, and the common end thereof is grounded.
[0009] Preferably, the Bluetooth control module includes a Bluetooth chip M1, which is provided with 8 pins. The first pin of the Bluetooth chip M1 is connected to the relay drive circuit, the second pin of the Bluetooth chip M1 is connected to the output status detection circuit, the third and fourth pins of the Bluetooth chip M1 are both connected to the two-color indicator lights, the fifth pin of the Bluetooth chip M1 is connected to a button, the sixth pin of the Bluetooth chip M1 is grounded, the seventh pin of the Bluetooth chip M1 is connected to the output end of the power supply circuit, and the eighth pin of the Bluetooth chip M1 is connected to the output end of the NTC temperature detection circuit.
[0010] Preferably, the relay drive circuit includes a relay JK1, an N-type MOS tube Q1, a diode D4, a capacitor C2, a resistor R8 and a resistor R9, the control anode of the relay JK1 is connected to the cathode of the diode D4, and the common end thereof is connected to the output end of the power supply circuit, the control cathode of the relay JK1 is respectively connected to the anode of the diode D4 and the drain of the N-type MOS tube Q1, one output end of the relay JK1 is connected to the output end of the mains live wire, the other output end of the relay JK1 is connected to the input end of the mains live wire, the gate of the N-type MOS tube Q1 is respectively connected to one end of the resistor R9, one end of the capacitor C2 and one end of the resistor R8, and the common end thereof is connected to the output end of the power supply circuit, the source of the N-type MOS tube Q1 is respectively connected to the other end of the resistor R9 and the other end of the capacitor C2, and the common end thereof is grounded, and the other end of the resistor R8 is connected to the Bluetooth control module.
[0011] Preferably, the resistance of the resistor R9 is 100 times or more than the resistance of the resistor R8.
[0012] Preferably, a diode D7 is further included, wherein the positive electrode of the diode D7 is connected to one end of the capacitor C2, and the negative electrode of the diode D7 is connected to the output end of the power supply circuit.
[0013] Preferably, the output state detection circuit includes a resistor R10, a resistor R11, a capacitor C6, a diode D5 and a diode D6, one end of the resistor R11 is connected to the output end of the AC live wire, the other end of the resistor R11 is respectively connected to one end of the capacitor C6, the positive electrode of the diode D5, the negative electrode of the diode D6, one end of the resistor R10 and the Bluetooth control module, the other end of the capacitor C6, the positive electrode of the diode D6 and the other end of the resistor R10 are grounded, and the negative electrode of the diode D5 is connected to the output end of the power supply circuit.
[0014] Preferably, the power supply circuit includes a varistor RV1, a temperature fuse TF1, a fuse resistor RF1, and a half-wave rectifier non-isolated AC-DC circuit, one end of the fuse resistor RF1 is connected to the AC live wire, the other end of the fuse resistor RF1 is connected to one end of the temperature fuse TF1, the other end of the temperature fuse TF1 is connected to the half-wave rectifier non-isolated AC-DC circuit, the half-wave rectifier non-isolated AC-DC circuit is a neutral line common signal ground structure, one end of the varistor RV1 is connected to the AC neutral line, and the other end of the varistor RV1 is connected to the other end of the temperature fuse TF1.
[0015] The present invention has the following beneficial effects: the present invention sets a Bluetooth control module, a relay drive circuit and an output state detection circuit between the mains and the load, the socket is intelligently adjusted through the Bluetooth control module, and the port retention function within a certain period of time is realized through the relay drive circuit, so as to avoid abnormal shutdown of the load during a short-term reset of the circuit, which causes the load to be abnormal. At the same time, the output state detection circuit detects the real output state, and notifies the user immediately in case of a fault, so as to prevent accidents such as fire caused by long-term abnormal power-on of the output load. The present invention provides a manual adjustment function for the socket by setting a button, thereby expanding the on-off mode of the socket. The intelligent socket of the present invention is not only easy to install, but also reduces the replacement cost of load electrical appliances, thus avoiding waste of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a circuit block diagram of the present invention;
[0017] Figure 2 It is a connection circuit diagram of the NTC temperature detection circuit and the Bluetooth control module of the present invention;
[0018] Figure 3 It is a circuit diagram of a relay driving circuit of the present invention;
[0019] Figure 4 It is a circuit diagram of the output state detection circuit of the present invention;
[0020] Figure 5 is a circuit diagram of a power supply circuit of the present invention;
[0021] Figure 6 The invention discloses a connection circuit diagram of a double-color indicator light and a key.
[0022] In the figure: 1. Power supply circuit; 2. Bluetooth control module; 3. Relay drive circuit; 4. Output status detection circuit; 5. Button; 6. Dual-color indicator light; 7. NTC temperature detection circuit. DETAILED DESCRIPTION
[0023] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.
[0024] Embodiment: A smart socket driving circuit, such as Figure 1-Figure 6As shown, it is connected between the mains and the load, including a power supply circuit 1, a Bluetooth control module 2, a relay drive circuit 3 and an output state detection circuit 4, the input end of the power supply circuit 1 is connected to the mains, and the output end of the power supply circuit 1 is respectively connected to the Bluetooth control module 2 and the relay drive circuit 3 to provide working voltage for the Bluetooth control module 2 and the relay drive circuit 3; the Bluetooth control module 2 is respectively connected to the relay drive circuit 3 and the output state detection circuit 4 to control the relay drive circuit 3 and the output state detection circuit 4; the relay drive circuit 3 is connected to the live wire of the mains, and realizes the port preservation function within a certain period of time when the circuit is reset, and at the same time converts the relay control signal generated by the Bluetooth control module 2 into an actual relay contact state output; the output state detection circuit 4 is connected to the live wire of the load input end, and is fed back to the Bluetooth control module 2 according to whether the output live wire signal actually detected is fed back to the Bluetooth control module 2, so as to make a comprehensive judgment on whether the actual output state is correct.
[0025] The smart socket driving circuit further includes a button 5 , which is connected to the Bluetooth control module 2 and is used for network configuration, Bluetooth platform switching, and controlling the on and off of the load.
[0026] The smart socket drive circuit also includes a two-color indicator light 6 for indicating various states, and the two-color indicator light 6 is connected to the Bluetooth control module 2. The two-color indicator light 6 can be used to indicate the connection to a cloud platform with one color, such as a red indicator light corresponding to the Amazon platform and a green indicator light corresponding to the Google platform; it can be used to correspond to the two states of on and off with light on and off respectively; it can use fast and slow flashes of different frequencies to indicate various states in the network distribution process; it can use two colors to flash alternately to indicate information such as actual output state errors.
[0027] The above-mentioned smart socket driving circuit also includes an NTC temperature detection circuit 7 for detecting temperature. The NTC temperature detection circuit 7 includes an NTC resistor RT1 and a resistor R12. One end of the NTC resistor RT1 is respectively connected to the output end (3.3V) of the power supply circuit 1 and the seventh pin of the Bluetooth chip M1 in the Bluetooth control module 2, and the other end of the NTC resistor RT1 is respectively connected to one end of the resistor R12 and the eighth pin of the Bluetooth chip M1 in the Bluetooth control module 2. The other end of the resistor R12 is connected to the sixth pin of the Bluetooth chip M1 in the Bluetooth control module 2, and the common end thereof is grounded.
[0028] The resistance of NTC resistor RT1 decreases as the temperature increases. The voltage obtained by dividing NTC resistor RT1 and resistor R12 increases as the temperature on NTC resistor RT1 increases. Bluetooth control module 2 can obtain the corresponding temperature value by continuously sampling the voltage on the eighth pin (ADC) of Bluetooth chip M1. When the temperature reaches a certain set value, such as exceeding 70°C for 3 consecutive times, Bluetooth control module 2 will actively cut off the relay output to achieve over-temperature protection, which is a primary recoverable over-temperature protection under the condition of abnormal temperature rising slowly. In order to prevent abnormal long-term high current over-temperature of the load, when the personnel are not present, the cut-off load temperature will automatically turn on the output after the temperature is restored, causing the switch to be repeatedly turned on and off, causing damage to the load or even fire and other dangers. The over-temperature protection in the above situation can be set to not be automatically restored. The smart socket must be unplugged to cut off the input power and then plugged in, or the output can be restored after control by key 5, voice, APP, etc.
[0029] The Bluetooth control module 2 includes a Bluetooth chip M1, and the Bluetooth chip M1 has 8 pins. The first pin of the Bluetooth chip M1 is connected to the other end of the resistor R8 in the relay drive circuit 3, the second pin of the Bluetooth chip M1 is connected to the other end of the resistor R11 in the output state detection circuit 4, and the third and fourth pins of the Bluetooth chip M1 are connected to the two-color indicator light 6, that is, respectively connected to Figure 6 One end of the resistor R5 and one end of the resistor R6, the fifth pin of the Bluetooth chip M1 is connected to the button 5, that is, Figure 6 The middle resistor R4 and the switch K1 are connected to a common end, the sixth pin of the Bluetooth chip M1 is grounded, the seventh pin of the Bluetooth chip M1 is connected to the output end (3.3V) of the power supply circuit 1, and the eighth pin of the Bluetooth chip M1 is connected to the output end of the NTC temperature detection circuit 7 (the other end of the NTC resistor RT1).
[0030] The relay drive circuit 3 includes a relay JK1, an N-type MOS tube Q1, a diode D4, a capacitor C2, a resistor R8 and a resistor R9. The control positive electrode (one end of the coil) of the relay JK1 is connected to the negative electrode of the diode D4, and its common end is connected to the output end (5V) of the power supply circuit 1. The control negative electrode (the other end of the coil) of the relay JK1 is connected to the positive electrode of the diode D4 and the drain of the N-type MOS tube Q1. One output end (one contact) of the relay JK1 is connected to the output end of the mains live wire, and the other output end (another contact) of the relay JK1 is connected to the input end of the mains live wire. The gate of the N-type MOS tube Q1 is respectively connected to one end of the resistor R9, one end of the capacitor C2 and one end of the resistor R8, and its common end is connected to the output end (3.3V) of the power supply circuit 1. The source of the N-type MOS tube Q1 is respectively connected to the other end of the resistor R9 and the other end of the capacitor C2, and its common end is grounded. The other end of the resistor R8 is connected to the first pin of the Bluetooth chip M1 in the Bluetooth control module 2.
[0031] Relay JK1 can be selected from one of electromagnetic relay, magnetic holding relay (when using the above circuit, the connection of the relay should be changed accordingly), solid-state relay. Preferably, an inexpensive electromagnetic relay with a normally open contact type is selected, such as a 10A Hongfa electromagnetic relay model HF32FV-G / 5-HTF (590).
[0032] The resistance of resistor R9 is much larger than that of resistor R8. Generally, the resistance of resistor R9 can be 100 times or more than that of resistor R8 to reduce the mutual influence between them. For example, the resistance of resistor R9 can be 1M, and the resistance of resistor R8 can be 1K.
[0033] N-type MOS tube Q1 can choose a low conduction voltage (V GSTH ) models, such as NCE3400, NCE2302, etc., their on-state voltage is around 0.9V.
[0034] The diode D4 can be a switching diode or a Schottky diode, which is used to release the reverse voltage of the relay JK1 coil, such as the switching diode 1N4148W.
[0035] Preferably, the relay drive circuit 3 further comprises a diode D7, the positive electrode of the diode D7 is connected to one end of the capacitor C2, and the negative electrode of the diode D7 is connected to the output end (3.3V) of the power supply circuit 1. The diode D7 is a Schottky diode, which is used to output that there is electricity at both ends of the capacitor C2 in the on state, and when the input plug is unplugged and the power is cut off, the voltage at both ends of the capacitor C2 is quickly released through the internal resistance on the 3.3V power supply circuit 1, so as to ensure that the output state of the input plug when it is quickly plugged in within the discharge time constant of the capacitor C2 and the resistor R9 is the default defined off state. The diode D7 is optional, and the same function can also be achieved by directly using the port protection circuit on one side of the power supply circuit 1 inside the Bluetooth chip M1 in the Bluetooth control module 2.
[0036] Specifically, the first pin of the Bluetooth chip M1 in the Bluetooth control module 2 is used to control the on and off of the relay JK1 coil, and is configured as a push-pull output without internal pull-up and pull-down, that is, the output low level and high level are both strong. When the socket is just powered on, the N-type MOS tube Q1 is turned off because there is no voltage source at the gate, the relay JK1 coil is de-energized, and the output contact is disconnected by default; when the first pin of the Bluetooth chip M1 outputs a high level, the capacitor C2 is charged through the resistor R8 and the first pin of the Bluetooth chip M1 until the voltage on the N-type MOS tube Q1 is higher than the conduction voltage (V GSTH) is turned on, the coil of relay JK1 is energized, and the output contact is turned on; when the first pin of the Bluetooth chip M1 outputs a low level, the voltage on the capacitor C2 is quickly discharged through the resistor R8 and the first pin of the Bluetooth chip M1 until the voltage on the N-type MOS tube Q1 is lower than the turn-on voltage (V GSTH ) and shuts down, the relay JK1 coil is de-energized, and the output contact is disconnected. When the first pin of the Bluetooth chip M1 temporarily becomes high impedance due to automatic reset after OTA upgrade or hardware watchdog reset, if the first pin of the Bluetooth chip M1 previously outputs a low level, the N-type MOS tube Q1 remains in the off state due to the lack of gate voltage source, which is equivalent to the state when the first pin of the Bluetooth chip M1 previously outputs a low level; if the first pin of the Bluetooth chip M1 previously outputs a high level, the resistor R8 is now not conducting, and the voltage across the capacitor C2 can only be slowly released through the resistor R9 until it is lower than the V of the N-type MOS tube Q1. GSTH Before the voltage is reached, the N-type MOS tube Q1 can be continuously turned on, which is equivalent to the state when the first pin of the Bluetooth chip M1 outputs a high level; therefore, this circuit can fully realize the function equivalent to maintaining the port state within a certain period of time, so that the output state of the relay is not affected by such reset events.
[0037] For example, when N-type MOS tube Q1 uses NCE3400, resistor R9 uses 1M, and capacitor C2 uses 0.1uF, the conduction state of N-type MOS tube Q1 can be maintained for about 0.1 seconds, which can meet the time from the general MCU reset to the user program taking over this port (a few milliseconds to more than thirty milliseconds). In theory, by changing the capacitance of capacitor C2, the conduction time of N-type MOS tube Q1 can be greater than the time from the MCU reset to the user program taking over this port. In addition to using conventional level drive, this circuit can also use PWM wave drive relay JK1 after the pull-in is stable to achieve the purpose of partial power saving. In order to prevent the reset from falling at the low level of PWM when the output is in the on state and failing to maintain the output conduction state, it is necessary to design this port to output a continuous high level before the active reset. During design, the resistance value of resistor R9 is first selected to be around 1M, and then the value of capacitor C2 is obtained according to the time the port state needs to be maintained, and then a reasonable resistance value of resistor R8 is selected according to the size of capacitor C2. The maximum value of resistor R8 is determined by the maximum PWM frequency of the circuit (not filtered out by the RC integration circuit composed of resistor R8 and capacitor C2), and the minimum value is determined by the current limiting value of the internal circuit of the MCU port when capacitor C2 is charged and discharged (it is required that both the pull current and the sink current must not exceed the maximum value of the chip and leave a certain margin). When there is a conflict between the maximum and minimum values of resistor R8, return to modify the value of capacitor C2, and modify the value of resistor R9 accordingly until it is within a reasonable range.
[0038] The output state detection circuit 4 includes a resistor R10, a resistor R11, a capacitor C6, a diode D5 and a diode D6, one end of the resistor R11 is connected to the output end of the mains live wire, the other end of the resistor R11 is respectively connected to one end of the capacitor C6, the positive electrode of the diode D5, the negative electrode of the diode D6, one end of the resistor R10, and the second pin of the Bluetooth chip M1 in the Bluetooth control module 2, the other end of the capacitor C6, the positive electrode of the diode D6, and the other end of the resistor R10 are grounded, and the negative electrode of the diode D5 is connected to the output end (3.3V) of the power supply circuit 1. Wherein, the resistor R11 and the capacitor C6 form an RC integral filter circuit, which appropriately delays, smoothes and resists interference to the AC signal, and limits the current of the subsequent circuit. When safety regulations are required, the resistor R11 can also be composed of two or more resistors of the same or similar resistance value connected in series, such as two resistors with a resistance value of 1M connected in series. Resistors R10 and R11 are connected in series to reduce the voltage division on the JKDT network and increase the high-level voltage detected on the corresponding live wire output L-out network, that is, to reduce interference. Diodes D5 and D6 are Schottky diodes, which form a limiting circuit. For example, when the AC power is in the negative half cycle, diode D6 is turned on, limiting the signal amplitude on the JKDT network to the minimum (-0.2V), which is equal to the low level; when the AC power is in the positive half cycle, diode D5 is turned on, limiting the signal amplitude on the JKDT network to the maximum (3.5V), which is equal to the high level; Schottky diodes D5 and D6 are used together to ensure that the signal amplitude on the JKDT network does not exceed the input voltage range of the second pin of the Bluetooth chip M1. Under normal circumstances, when there is no AC output on the L-out network, the JKDT network is always at a low level; when there is AC output on the L-out network, the JKDT network is at a low level in the negative half cycle of the AC, and at a high level in the positive half cycle with a higher voltage, and at a low level in other intervals, that is, in each cycle of the AC, a high level pulse will be generated on the JKDT network accordingly. In actual use, after each active on-off operation of the relay, a delay of 200ms is first made to make the on or off state reliable (such as the delay of the drive circuit, the pull-in or release time of the electromagnetic relay, the phase shift and drag caused by the large capacitor or inductive load to the power supply, etc.), and then the state is judged. The Bluetooth chip M1 judges whether there is a problem with the entire control loop based on the state of the RELAY network that it actively outputs and whether the AC pulse closed loop is detected on the JKDT network within a certain time window. The specific judgment logic is as follows:
[0039] Serial number RELAY output JKDT Input Control circuit live output 1 Low level No pulse normal 2 Low level With pulse Line short circuit 3 High level No pulse Line break 4 High level With pulse normal
[0040] When the RELAY network outputs a low level, if there is no pulse input on the JKDT network, the live wire on the control circuit outputs normally; if there is a pulse input on the JKDT network, the live wire on the control circuit is short-circuited. When the RELAY network outputs a high level, if there is no pulse input on the JKDT network, the live wire on the control circuit is broken; if there is a pulse input on the JKDT network, the live wire on the control circuit is output normally. The reason for the live wire short circuit is that the relay contacts are burned together due to long-term high current ignition, or the DS poles of the MOS tube are broken down. The reason for the live wire break is that the relay contacts cannot contact due to long-term ignition due to surface oxidation and blackening or serious pits, or the MOS tube is burned out. When the circuit is detected to be abnormal, a fault alarm can be issued through the local status indicator (by alternating between the two indicators) or remotely through the network.
[0041] The power supply circuit 1 includes a varistor RV1, a temperature fuse TF1, a fuse resistor RF1, and a half-wave rectifier non-isolated AC-DC circuit. One end of the fuse resistor RF1 is connected to the mains live wire, and the other end of the fuse resistor RF1 is connected to one end of the temperature fuse TF1. The other end of the temperature fuse TF1 is connected to the half-wave rectifier non-isolated AC-DC circuit. The half-wave rectifier non-isolated AC-DC circuit is a zero line common signal ground structure, and an existing conventional circuit can be used. One end of the varistor RV1 is connected to the mains neutral line, and the other end of the varistor RV1 is connected to the other end of the temperature fuse TF1. The power supply circuit 1 outputs two voltages of 3.3V and 5V. The 3.3V voltage supplies power to the Bluetooth control module 2, and the 5V voltage supplies power to the relay drive circuit 3. When the line input is continuously over-voltage, the varistor RV1 is turned on, causing the fuse resistor RF1 to melt. At this time, the relay JK1 automatically resets, and the output live wire is cut off, so that the subsequent load is disconnected to protect the safety of the load. When the temperature rises abnormally fast, the temperature fuse TF1 melts and the relay JK1 automatically resets to protect the subsequent loads. This is the ultimate protection when the NTC temperature detection circuit 7 is too late to protect or fails.
[0042] The specific working process of the above-mentioned smart socket driving circuit is as follows:
[0043] If a smart socket is used for physical on and off control, the on and off control can be performed through button 5 set on the socket; if smart on and off is used, first connect smart devices such as smart speakers and mobile phones to the smart socket via Bluetooth. When connecting, you can choose different platforms for connection, such as Google platform or Amazon platform. The specific selection can be made through button 5 on the smart socket (such as by long pressing button 5). After the connection is successful, you can directly perform smart control through voice or smart devices such as mobile phones.
[0044] In summary, the present invention sets a Bluetooth control module, a relay drive circuit and an output state detection circuit between the mains and the load, and uses the Bluetooth control module to enable the socket to achieve intelligent adjustment, and uses the relay drive circuit to achieve the port retention function within a certain period of time, so as to avoid the abnormal shutdown of the load caused by the circuit being reset for a short time, causing abnormal risks of the load, and at the same time, the output state detection circuit detects the real output state, and notifies the user as soon as possible in case of a fault, so as to prevent the output load from being abnormally powered on for a long time and causing accidents such as fire. The present invention provides a button so that the socket has the function of manual adjustment, and expands the on-off mode of the socket. The intelligent socket of the present invention is not only easy to install, but also reduces the replacement cost of load electrical appliances, avoiding waste of resources.
[0045] Finally, it should be pointed out that the above embodiments are only representative examples of the present invention. Obviously, the present invention is not limited to the above embodiments, and there are many variations. Any simple modification, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention should be considered to belong to the protection scope of the present invention.
Claims
1. A smart socket drive circuit, connected between the mains and the load, characterized in that: It includes a power supply circuit, a Bluetooth control module, a relay drive circuit and an output state detection circuit, wherein the power supply circuit is connected to the mains power supply to provide working voltage for the Bluetooth control module and the relay drive circuit; the Bluetooth control module is respectively connected to the relay drive circuit and the output state detection circuit to control the relay drive circuit and the output state detection circuit; the relay drive circuit is connected to the live wire of the mains power supply to realize the port preservation function for a certain period of time when the circuit is reset, and at the same time, the relay control signal generated by the Bluetooth control module is converted into an actual relay contact state output; the output state detection circuit is connected to the live wire of the load input end, and is fed back to the Bluetooth control module according to whether the output live wire signal actually detected is fed back to the Bluetooth control module to comprehensively judge whether the actual output state is correct; The relay driving circuit includes a relay JK1, an N-type MOS tube Q1, a diode D4, a capacitor C2, a resistor R8 and a resistor R9. The control positive electrode of the relay JK1 is connected to the negative electrode of the diode D4, and the common end thereof is connected to the output end of the power supply circuit. The control negative electrode of the relay JK1 is respectively connected to the positive electrode of the diode D4 and the drain of the N-type MOS tube Q1. One output end of the relay JK1 is connected to the output end of the mains live wire, and the other output end of the relay JK1 is connected to the input end of the mains live wire. The gate of the N-type MOS tube Q1 is respectively connected to one end of the resistor R9, one end of the capacitor C2 and one end of the resistor R8, and the common end thereof is connected to the output end of the power supply circuit. The source of the N-type MOS tube Q1 is respectively connected to the other end of the resistor R9 and the other end of the capacitor C2, and the common end thereof is grounded. The other end of the resistor R8 is connected to the Bluetooth control module. The resistance of the resistor R9 is 100 times or more than the resistance of the resistor R8; The output state detection circuit includes a resistor R10, a resistor R11, a capacitor C6, a diode D5 and a diode D6, one end of the resistor R11 is connected to the output end of the mains live wire, the other end of the resistor R11 is respectively connected to one end of the capacitor C6, the positive electrode of the diode D5, the negative electrode of the diode D6, one end of the resistor R10 and the Bluetooth control module, the other end of the capacitor C6, the positive electrode of the diode D6 and the other end of the resistor R10 are grounded, and the negative electrode of the diode D5 is connected to the output end of the power supply circuit; The Bluetooth control module includes a Bluetooth chip M1, which is provided with 8 pins. The first pin of the Bluetooth chip M1 is connected to the relay drive circuit, the second pin of the Bluetooth chip M1 is connected to the output state detection circuit, the third and fourth pins of the Bluetooth chip M1 are both connected to the two-color indicator lights, the fifth pin of the Bluetooth chip M1 is connected to a button, the sixth pin of the Bluetooth chip M1 is grounded, the seventh pin of the Bluetooth chip M1 is connected to the output end of the power supply circuit, and the eighth pin of the Bluetooth chip M1 is connected to the output end of the NTC temperature detection circuit.
2. The intelligent socket driving circuit according to claim 1, characterized in that: The device also includes a button, which is connected to the Bluetooth control module.
3. The intelligent socket driving circuit according to claim 1, characterized in that: It also includes a two-color indicator light for indicating various states, and the two-color indicator light is connected to the Bluetooth control module.
4. The intelligent socket driving circuit according to claim 1, characterized in that: It also includes an NTC temperature detection circuit for detecting temperature, the NTC temperature detection circuit includes an NTC resistor RT1 and a resistor R12, one end of the NTC resistor RT1 is respectively connected to the output end of the power supply circuit and the Bluetooth control module, the other end of the NTC resistor RT1 is respectively connected to one end of the resistor R12 and the Bluetooth control module, the other end of the resistor R12 is connected to the Bluetooth control module, and the common end thereof is grounded.
5. The intelligent socket driving circuit according to claim 1, characterized in that: It also includes a diode D7, wherein the positive electrode of the diode D7 is connected to one end of the capacitor C2, and the negative electrode of the diode D7 is connected to the output end of the power supply circuit.
6. The intelligent socket driving circuit according to claim 1, characterized in that: The power supply circuit includes a varistor RV1, a temperature fuse TF1, a fuse resistor RF1, and a half-wave rectifier non-isolated AC-DC circuit. One end of the fuse resistor RF1 is connected to the mains live wire, and the other end of the fuse resistor RF1 is connected to one end of the temperature fuse TF1. The other end of the temperature fuse TF1 is connected to the half-wave rectifier non-isolated AC-DC circuit. The half-wave rectifier non-isolated AC-DC circuit has a neutral line common signal ground structure. One end of the varistor RV1 is connected to the mains neutral line, and the other end of the varistor RV1 is connected to the other end of the temperature fuse TF1.
