Infrared control intelligent socket design

"The last thing to do is to clean the doors and windows, turn off all power, and pay attention to safety!" I believe that you will be familiar with it. Nowadays, the sockets on the market are basically non-intelligent. When the electrical appliances are connected to the sockets, people generally do not directly cut off the electrical power supply. Therefore, the electrical appliances are always in the standby state. If the outlets are in the on state at this time, the electrical appliances will generate standby. Power consumption, resulting in wasted power. What's more, if there is a short circuit or overload of the appliance, it may cause a fire, and there is a big safety hazard.

The implementation of smart socket products can really help users solve potential problems. Safe electricity is really about everyone's personal safety. Therefore, designing a safe and energy-saving smart socket is very practical. This energy-saving smart socket solution is being established to solve the problem of energy waste and electricity safety to promote low-carbon life.

First, the intelligent socket design principle

As shown in Figure 1, the whole system consists of five parts, namely system power, power detection module, MCU control unit, actuator, and input peripherals.

2, hardware design and principle

The power module is based on the LNK304 design. In Figure 2, L and N are 220V AC interfaces. AC power is applied to the LNK304 chip. The S foot of the LNK304 will output 12V voltage. It will be divided into 6V by R13 and R14 and then enhanced by a triode. The three-stage tube has a part. The voltage drop, so the output voltage VDD is about 5V.

The power detection uses the FC7759 chip. The FC7759 calculates the power based on the collected voltage signal and the current signal. The CF pin outputs a pulse sequence of a certain frequency according to the power. The frequency of the pulse sequence is proportional to the power. The MCU can judge the power according to the read pulse frequency and issue corresponding commands to control the actuator to perform corresponding actions. In the figure, FLQ is the sampling resistor, the current signal is collected, and the R3, R4, R5, and R6 resistors are divided, and the voltage signal is collected.

Second, the MCU control part

The control part adopts MP20E01 type single-chip microcomputer. This type of single-chip microcomputer has low power consumption, small size and low price, and IO also meets the requirements of this design. As shown in Figure 4, the pulse signal output from the power detection module is sent to the P14 pin of the MP20E01 MCU, the P12 pin reads the button signal, the P15 pin reads the external IR remote control signal, the P13 pin controls the LED indicator, and the P1.1 control relay turns on or off. Disconnect the outlet power.

When the MCU detects that the power of the appliance is too high or too low, the control relay is turned on or off to realize the control of the power of the outlet.

The power of the socket can be turned on and off by the key input, and some function settings (such as setting learning function) can be performed. The infrared remote control is mainly used to turn on the power of the socket.

Third, the software flow chart

The program flow is shown in Figure 8. After power-on, the microcontroller IO port and timer are initialized, and the initial configuration of the interrupt is performed and then the large loop is entered. Detect button or infrared signal. If there is no signal input, continue to detect button and infrared signal. If there is signal input, turn on the socket power. Then the MCU determines whether it is no-load at this time. If it is no-load, the control relay turns off the power of the socket. If it is not idling, it detects whether the learning function setting flag is 1, and if it is 1, the learning function is set, if not For 1 then go to the next step. The single chip determines whether the current power is at the threshold "power "2KW range, if it is within the range, it will cycle to the button detection. If the power is not within the range, the relay will be turned off after a period of time.

This smart socket design This system supports multiple infrared frequency bands, and can operate the system using various infrared remote controllers. It solves the problem of waste of standby energy consumption of electrical appliances, and also solves the safety problem of short circuit or overload operation of electrical appliances, stable operation, strong anti-interference ability, high reliability and humanized operation. More importantly, the structure is simple, the cost is low, and it has a good application prospect.

Christmas Mini Light String is waterproof and durable. Can be used in any season and many applications such as wedding, party, garden etc. We have different wire model and Replacement Bulb type to choose.

Decorative string lights are not just for holidays anymore . Instantly transform indoor and outdoor spaces with a wide selection of covers and finishes that match current trends and personal tastes and expressions.

Celebrate any season ,event or inspired whim with a charming new set of outdoor string lights!

Christmas Mini Light String

Mini Light String,Mini String Lights,Mini Led Christmas Lights,Led Mini String Lights

DONGGUAN JIANXING LIGHTING ELECTRIC APPLIANCES CO., LTD , https://www.rslightstring.com