WiFi remote control circuit
By combining ESP32-S MCU module, optocoupler circuit and relay circuit, the high reliability and stability of WiFi remote control circuit is achieved, and the problem of uncommon WiFi remote control in the prior art is solved, and it is suitable for stable control of lighting fixtures and small appliances.
Patent Information
- Application Number
- CN202422079205.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2034-08-27
AI Technical Summary
In the prior art, the intelligent control of lighting fixtures mostly uses Bluetooth module communication, but WiFi remote control circuits are not common and it is difficult to meet customers' demand for high reliability.
It adopts ESP32-S MCU module, optocoupler circuit, relay circuit, transceiver circuit and transformer circuit, combined with optocoupler isolation output and relay to control 12V on and off, achieving stable and reliable remote WiFi control.
It realizes high reliability and stability of WiFi remote control, provides stable voltage through optocoupling isolation output and transformer circuit, and has low power consumption and high performance for switching control of lighting fixtures and small appliances.
Smart Images

Figure CN223078770U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of intelligent control, in particular to a WiFi remote control circuit. Background Technique
[0002] With the popularization of smart homes, various household appliances have begun to be connected to the network to achieve intelligent and remote control. At present, for the intelligent control of lighting fixtures, the form of Bluetooth module communication with a Bluetooth gateway is mostly used. Although there are also some that are directly connected to WiFi for control, they are not common. According to the actual needs of customers, our company has specially designed a highly reliable WiFi remote control circuit, which can meet the control of lighting lamps and the switch control of other small appliances. Content of the Utility Model
[0003] The purpose of the utility model is to meet the needs of customers, provide a highly reliable WiFi control board, and propose a WiFi remote control circuit.
[0004] In order to achieve the above purpose, the utility model adopts the following technical scheme:
[0005] A WiFi remote control circuit includes an MCU module U1 of model ESP32-S, a key circuit, an optocoupler circuit, a relay circuit, a transceiver circuit, and a voltage transformation circuit connected to the MCU module U1;
[0006] The optocoupler circuit is connected to the IO25 and IO26 pins of the MCU module U1;
[0007] The relay circuit is connected to the IO16 and IO17 pins of the MCU module U1;
[0008] The transceiver circuit is connected to the IO18 and IO19 pins of the MCU module U1;
[0009] One end of the voltage transformation circuit is provided with a socket P1, and the other end outputs +5V.
[0010] In some embodiments, the key circuit includes: a key EN1 connected to the EN pin of the MCU module U1, and a key IO01 connected to the IO0 pin of the MCU module U1.
[0011] In some embodiments, the optocoupler circuit includes: an optocoupler U3 connected to the IO26 pin of the MCU module U1, and an optocoupler U6 connected to the IO25 pin of the MCU module U1;
[0012] The 2 pins of the optocoupler U3 and the optocoupler U6 are respectively connected to the 3rd pin and the 1st pin of the 4P socket CN2;
[0013] Pin 1 of the optocouplers U3 and U6 is respectively connected to Pin 4 and Pin 2 of the 4P socket CN2.
[0014] In some embodiments, the relay circuit includes: optocouplers U8 and U10 respectively connected in series with resistors to IO16 and IO17;
[0015] Pin 3 of the optocouplers U8 and U10 is respectively connected to the bases of transistors Q5 and Q2 through resistors R31 and R15;
[0016] The collectors of the transistors Q5 and Q2 are respectively connected to Pin 4 of the relays K2 and K1;
[0017] Pin 3 and Pin 4 of the relays K1 and K2 are respectively connected in series with rectifier diodes D6 and D4;
[0018] The relays K1 and K2 are respectively connected to the 3P sockets CN3 and CN2.
[0019] In some embodiments, the transceiver circuit includes: an Ethernet transceiver U4, and the Ethernet transceiver U4 uses SP3072EEN-L / TR;
[0020] The RO pin of the Ethernet transceiver U4 is connected to IO18 of the MCU module U1;
[0021] The DI pin of the Ethernet transceiver U4 is connected to IO19 of the MCU module U1;
[0022] Pin 6 and Pin 7 of the Ethernet transceiver U4 are connected in parallel with resistor R14 to the 2P socket P2.
[0023] In some embodiments, the voltage transformation circuit includes: a transformer L1, a 2P socket P1 on one side of the transformer L1, and a power management chip U2 on the other side of the transformer L1;
[0024] The SW pin of the power management chip U2 is connected to the +5V output through an inductor L2;
[0025] The FB pin of the power management chip U2 is connected to the +5V output through a resistor R5.
[0026] In some embodiments, it further includes: a USB interface circuit;
[0027] The USB interface circuit includes: a serial port chip U9, a USB female socket USB1 connected to the serial port chip U9, and transistors Q3 and Q4 connecting the serial port chip U9 and the MCU module U1;
[0028] The UD+ pin and UD- pin of the serial port chip U9 are respectively connected to the D+ and D- pins of the USB female socket USB1;
[0029] The DTR# pin and the RTS# pin of the serial port chip U9 are respectively connected in series with resistors R23 and R26 to the collectors of transistors Q3 and Q4;
[0030] The collector of the transistor Q3 is connected to the EN pin of the MCU module U1;
[0031] The collector of the transistor Q4 is connected to the IO0 pin of the MCU module U1.
[0032] Compared with the prior art, the present utility model provides a WiFi remote control circuit, which has the following beneficial effects.
[0033] 1. In the present utility model, a relay is used to control the on / off of 12V, thereby controlling the live wire, and an optocoupler is used for isolated output; the whole is reliable, stable and safe.
[0034] 2. In the present utility model, +5.5V is output through a voltage conversion circuit, and +3.3V is output through a 3.3V output circuit for power supply; the power management chips U2 and U7 cooperate with the peripheral circuit to obtain a highly stable output; the MCU module U1 has low power consumption and high performance.
[0035] Other advantages, objectives and features of the present utility model will be described to some extent in the subsequent specification; and to some extent, based on the study of the following text, they will be obvious to those skilled in the art; or, they can be learned from the practice of the present utility model. Brief Description of the Drawings
[0036] Figure 1 It is the circuit diagram of the MCU module.
[0037] Figure 2 It is the circuit diagram of the button.
[0038] Figure 3 It is the voltage conversion circuit diagram.
[0039] Figure 4 It is the optocoupler circuit diagram.
[0040] Figure 5 It is the USB socket circuit diagram.
[0041] Figure 6 It is the relay circuit diagram.
[0042] Figure 7 It is the transceiver circuit diagram.
[0043] Figure 8 It is the 3.3V output circuit diagram.
[0044] Figure 9 It is the front view of the circuit board.
[0045] Figure 10 It is the reverse side view of the circuit board. Specific embodiments
[0046] Next, the technical solutions in the embodiments of the present utility model will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present utility model. Obviously, the described embodiments are only a part of the embodiments of the present utility model, rather than all the embodiments.
[0047] Refer to Figures 1-10 , a WiFi remote control circuit, including an MCU module U1 of model ESP32-S, a key circuit, an optocoupler circuit, a relay circuit, a transceiver circuit, and a voltage conversion circuit connected to the MCU module U1.
[0048] Among them, ESP32-S is a general-purpose WiFi-BT-BLE MCU module with powerful functions and wide applications. It can be used in low-power sensor networks and extremely demanding tasks, and integrates rich peripherals; the core processor ESP32 of the module has two low-power Xtensa® 32-bit LX6 MCUs, and the main frequency supports 80MHz, 160MHz, and 240MHz; it uses SMD-38 packaging, which is convenient for welding and testing.
[0049] Correspondingly, the optocoupler circuit is connected to the IO25 and IO26 pins of the MCU module U1; the relay circuit is connected to the IO16 and IO17 pins of the MCU module U1; the transceiver circuit is connected to the IO18 and IO19 pins of the MCU module U1; one end of the voltage conversion circuit is provided with a socket P1, and the other end outputs +5V.
[0050] In this control circuit, ESP32-S is the main controller, using a relay to control the on / off of 12V, and then controlling the live wire, and using optocoupler isolation for output; the light switch uses optocoupler to detect signal input; the light can be controlled by the switch, and through WiFi access to the network to achieve local area network gateway central control screen control, or remote control.
[0051] The key circuit includes: a key EN1 connected to the EN pin of the MCU module U1, and a key IO01 connected to the IO0 pin of the MCU module U1.
[0052] The optocoupler circuit includes: an optocoupler U3 connected to the IO26 pin of the MCU module U1, and an optocoupler U6 connected to the IO25 pin of the MCU module U1; among them, the 2 pins of the optocoupler U3 and optocoupler U6 are respectively connected to the 3rd pin and the 1st pin of the 4P socket CN2; the 1st pins of the optocoupler U3 and optocoupler U6 are respectively connected to the 4th pin and the 2nd pin of the 4P socket CN2; isolation is carried out through the optocouplers U3 and U6.
[0053] The relay circuit includes: relay K1, relay K2, and optocouplers U8 and U10 respectively connected in series with resistors to IO16 and IO17.
[0054] Specifically: The 3 pins of optocouplers U8 and U10 are respectively connected to the bases of transistors Q5 and Q2 through resistors R31 and R15; the collectors of transistors Q5 and Q2 are respectively connected to the 4 pins of relay K2 and K1; the 3 pins and 4 pins of relay K1 and relay K2 are respectively connected in series with rectifier diodes D6 and D4; relay K1 and relay K2 are respectively connected to 3P sockets CN3 and CN2.
[0055] In some embodiments, the transceiver circuit includes: Ethernet transceiver U4, and Ethernet transceiver U4 uses SP3072EEN-L / TR; the RO pin of Ethernet transceiver U4 is connected to IO18 of MCU module U1; the DI pin of Ethernet transceiver U4 is connected to IO19 of MCU module U1; the 6th and 7th pins of Ethernet transceiver U4 are connected in parallel with resistor R14 to 2P socket P2.
[0056] In some embodiments, the voltage conversion circuit includes: transformer L1, 2P socket P1 on one side of transformer L1, and power management chip U2 on the other side of transformer L1; wherein, power management chip U2 uses MP1584EN-LF-Z, which is an excellent power management chip; the SW pin of power management chip U2 is connected to the +5V output through inductor L2; the FB pin of power management chip U2 is connected to the +5V output through resistor R5; the voltage conversion circuit provides a stable and reliable voltage for U1.
[0057] In some embodiments, it further includes: USB interface circuit; the USB interface circuit includes: serial port chip U9, USB female socket USB1 connected to serial port chip U9, and transistors Q3 and Q4 connecting serial port chip U9 and MCU module U1; the UD+ pin and UD- pin of serial port chip U9 are respectively connected to the D+ and D- pins of USB female socket USB1; the DTR# pin and RTS# pin of serial port chip U9 are respectively connected in series with resistors R23 and R26 to the collectors of transistors Q3 and Q4; the collector of transistor Q3 is connected to the EN pin of MCU module U1; the collector of transistor Q4 is connected to the IO0 pin of MCU module U1.
[0058] In some embodiments, it further includes a 3.3V output circuit; wherein, the 3.3V output circuit includes: power management chip U7, indicator light; the VIN of power management chip U7 is connected to +5V, and VOUT outputs +3.3V; +3.3V is connected in series with resistor R24 to set indicator light PWR1.
[0059] In this control circuit, +5.5V is output through the voltage transformation circuit, and +3.3V is output through the 3.3V output circuit to provide power supply. The power management chips U2 and U7 are respectively used in cooperation with the peripheral circuits to obtain highly stable outputs. The MCU module U1 has low power consumption and high performance. The on / off of the lights is realized through optocoupler / relay control.
[0060] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention, according to the technical solution and inventive concept of the present invention, makes equivalent substitutions or changes, and should be covered by the protection scope of the present invention.
[0061] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0062] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A WiFi remote control circuit, characterized in that, It includes an MCU module U1 of model ESP32-S, a key circuit, an optocoupler circuit, a relay circuit, a transceiver circuit, and a voltage transformation circuit connected to the MCU module U1; The optocoupler circuit is connected to the IO25 and IO26 pins of the MCU module U1; the relay circuit is connected to the IO16 and IO17 pins of the MCU module U1; the transceiver circuit is connected to the IO18 and IO19 pins of the MCU module U1; one end of the voltage transformation circuit is provided with a socket P1, and the other end outputs +5V.
2. The WiFi remote control circuit according to claim 1, wherein The key circuit includes: a key EN1 connected to the EN pin of the MCU module U1, and a key IO01 connected to the IO0 pin of the MCU module U1.
3. The WiFi remote control circuit according to claim 1, wherein The optocoupler circuit includes: an optocoupler U3 connected to the IO26 pin of the MCU module U1, and an optocoupler U6 connected to the IO25 pin of the MCU module U1; The 2 pins of the optocoupler U3 and optocoupler U6 are respectively connected to the 3rd pin and 1st pin of a 4P socket CN2; the 1st pins of the optocoupler U3 and optocoupler U6 are respectively connected to the 4th pin and 2nd pin of the 4P socket CN2.
4. The WiFi remote control circuit according to claim 1, characterized in that The relay circuit includes: optocouplers U8 and U10 respectively in series with resistors for IO16 and IO17; The 3rd pins of the optocouplers U8 and U10 are respectively connected to the bases of transistors Q5 and Q2 through resistors R31 and R15; the collectors of the transistors Q5 and Q2 are respectively connected to the 4th pins of relays K2 and K1; the 3rd and 4th pins of the relays K1 and relay K2 are respectively in series with rectifier diodes D6 and D4; the relays K1 and K2 are respectively connected to 3P sockets CN3 and CN2.
5. The WiFi remote control circuit according to claim 1, characterized in that, The transceiver circuit includes: an Ethernet transceiver U4, and the Ethernet transceiver U4 uses SP3072EEN-L / TR; The RO pin of the Ethernet transceiver U4 is connected to the IO18 of the MCU module U1; the DI pin of the Ethernet transceiver U4 is connected to the IO19 of the MCU module U1; the 6th and 7th pins of the Ethernet transceiver U4 are connected in parallel with a resistor R14 to a 2P socket P2.
6. The WiFi remote control circuit according to claim 1, wherein The voltage transformation circuit includes: a transformer L1, a 2P socket P1 on one side of the transformer L1, and a power management chip U2 on the other side of the transformer L1; The SW pin of the power management chip U2 is connected to the +5V output through an inductor L2; the FB pin of the power management chip U2 is connected to the +5V output through a resistor R5.
7. The WiFi remote control circuit according to claim 1, wherein, It also includes: A USB interface circuit; The USB interface circuit includes: a serial port chip U9, a USB female socket USB1 connected to the serial port chip U9, and transistors Q3 and Q4 connecting the serial port chip U9 and the MCU module U1; The UD+ and UD- pins of the serial port chip U9 are respectively connected to the D+ and D- pins of the USB female socket USB1; the DTR# and RTS# pins of the serial port chip U9 are respectively in series with resistors R23 and R26 to the collectors of transistors Q3 and Q4; the collector of the transistor Q3 is connected to the EN pin of the MCU module U1; the collector of the transistor Q4 is connected to the IO0 pin of the MCU module U1.