Wireless window opening and closing controller based on ESP-NOW protocol
The ESP-NOW protocol realizes low latency and high-precision control of wireless switch window controllers in smart homes, solving the problem of window control delay caused by network disability in the prior art, and providing voice control capabilities in offline states and Multiple control behavior support.
Patent Information
- Application Number
- CN202420836888.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing smart home window linkage control system has severe delays when the network is not smooth and cannot work normally, especially in scenarios where real-time requirements are high.
Using ESP-NOW protocol as the wireless communication protocol, the ESP8266 module realizes the recognition and conversion of voice commands, and directly performs point-to-point or point-to-multipoint communication between wireless switch window controllers, avoiding the delay of WIFI connection and achieving low latency. and high-precision control.
It realizes voice control while offline, with low latency, high precision, low power consumption and scalability, suitable for application scenarios with high real-time requirements, and supports multiple data types, such as opening half windows ' and other fine control behaviors.
Smart Images

Figure CN222125637U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of smart home and voice control system, in particular to a wireless switch window controller based on ESP-NOW protocol. Background Art
[0002] With the continuous development of smart homes, the linkage control of windows is becoming more and more popular. The current common linkage system is to transmit control signals online through mobile phone Bluetooth or voice assistants by connecting to WIFI, thereby controlling the opening and closing actions of the window pushers. However, when the network is not smooth, the WIFI signal delay received by the online window switch controller is very serious, and it may even be impossible to control the normal operation of the window pusher. Therefore, this patent designs and develops a wireless window switch controller based on the ESP-NOW protocol. By using the protocol, the unlimited window switch controller in this patent can realize the voice control function in an offline state, and has advantages such as low latency and high precision.
[0003] ESP8266: ESP8266 is a low-cost, high-performance Wi-Fi module chip developed by Espressif Systems. It integrates Wi-Fi functions and TCP / IP protocol stacks, and can communicate with the main controller through the serial port. ESP8266 is widely used in IoT devices and DIY projects. This patent uses ESP8266 as the main control chip, and performs data transmission between the voice command sending end and the receiving control end based on the ESP-NOW protocol, realizing the function of wireless control of window opening and closing.
[0004] ESP-NOW protocol: ESP-NOW protocol is a fast and efficient wireless communication protocol developed by Espressif, which is specially used for point-to-point or point-to-multipoint communication between ESP8266 modules. It supports two transmission modes, unicast and multicast, and can support up to 20 nodes in a mesh network. Compared with other wireless communication protocols such as Wi-Fi and Bluetooth, ESP-NOW has the following features: 1. Low latency: The ESP-NOW protocol does not require online control through connecting to WIFI, so it has a very fast transmission speed and very low latency, which is suitable for application scenarios with high real-time requirements; 2. Low power consumption: The ESP-NOW protocol uses very low power consumption during data transmission, which is suitable for battery-powered scenarios and has a long service life; 3. Easy to use: The ESP-NOW protocol is easy to configure, and only basic parameters such as channels, encryption keys, and data structures need to be defined to achieve wireless communication; 4. Strong scalability: The ESP-NOW protocol supports the transmission of multiple data types, and can implement more types of switch window functions through custom data structures, such as "open half a window" and other more sophisticated behaviors. Summary of the invention
[0005] The utility model proposes a wireless window switch controller based on the ESP-NOW protocol. The ESP-NOW protocol is adopted, and there is no need to connect to WIFI for online control. The transmission speed is very fast and the delay is very low. It is suitable for application scenarios with high real-time requirements. In addition, it has the advantages of low power consumption, long service life, simplicity and ease of use, simple structure and low cost. The utility model adopts the ESP-NOW protocol to support the transmission of various data types, and can realize more types of window switch functions through customized data structures, such as more sophisticated behaviors such as "opening half of the window", and has strong scalability.
[0006] The utility model discloses a wireless window switch controller based on the ESP-NOW protocol, the wireless window switch controller comprises: a voice instruction sending end capable of recognizing voice instructions and converting the voice instructions into control instructions, a receiving control end capable of receiving the control instructions, and an ESP-NOW protocol based on which the control instructions can be sent unidirectionally to the receiving control end;
[0007] The voice command sending end and the receiving control end both include: a main control circuit, a startup circuit, a reset circuit capable of resetting the main control, a serial port circuit capable of transmitting data, and an LED signal indication circuit for indicating that the main control chip ESP8266 is in a working state;
[0008] The main control circuit comprises a main control chip ESP8266, and the reset circuit, the start-up circuit, the serial port circuit and the LED signal indication circuit are respectively connected to the main control chip ESP8266.
[0009] In the utility model, the voice command sending end can recognize the voice command and convert the recognized voice command into a control command, and then based on the ESP-NOW protocol, send the control command unidirectionally to the receiving control end. The receiving control end can control the electric push rod of the window to produce an action after receiving the control signal, so as to realize actions such as opening and closing the window.
[0010] Furthermore, in the wireless switch window controller of the utility model, the reset circuit includes a capacitor C5, one end of the capacitor C5 is connected to the reset pin RST of the main control chip ESP8266, the other end of the capacitor C5 is grounded, and the two ends of the capacitor C5 are also connected in parallel with a short-circuit switch K1 for controlling the charging and discharging of the capacitor C5.
[0011] In the utility model, a short-circuit switch K1 is connected in parallel at both ends of the capacitor C5 to control the charging and discharging of the capacitor C5 and realize the master control reset.
[0012] Further, in the wireless switch window controller of the utility model, the serial port circuit includes a resistor R12 and a resistor R13, and the serial port pins of the main control chip ESP8266 are connected to the resistor R12 and the resistor R13;
[0013] The LED signal indication circuit is connected to the working pin of the main control chip ESP8266 through the resistor R18.
[0014] In the utility model, when the main control chip ESP8266 is in working state, the LED light is always on. When the main control chip ESP8266 receives a signal, the LED light starts to flash.
[0015] Furthermore, in the wireless switch window controller of the utility model, the starting circuit includes a resistor R14, a resistor R15, a resistor R16 and a switch K2, the resistor R14, the resistor R15 and the resistor R16 are respectively connected one-to-one to the working pins of the main control chip ESP8266, the resistor R14 and the resistor R15 are both connected to the DC power supply A1, the switch K2 is connected in series with the resistor R14 and is grounded, and the resistor R16 is grounded.
[0016] In the utility model, the working state of the starting circuit is switched by closing the control switch K2.
[0017] Furthermore, in the wireless window switch controller of the utility model, the voice command sending end further includes: a voice recognition module, a USB to serial port circuit capable of realizing firmware download and data communication, and a first step-down circuit for reducing the external voltage introduced by the USB to serial port circuit to a 3.3V DC power supply A2;
[0018] The output end of the speech recognition module is connected to the serial port circuit, one end of the USB to serial port circuit is connected to the serial port circuit, the other end of the USB to serial port circuit is connected to the input end of the first step-down circuit, and the output end of the first step-down circuit is connected to the main control chip ESP8266.
[0019] Furthermore, in the wireless switch window controller of the utility model, the receiving control end also includes: 2 drive circuits, relay circuit A and relay circuit B, and a second step-down circuit that reduces the external voltage to a 3.3V DC power supply A1; the DC power supply A1 is electrically connected to the VCC power pin of the main control chip ESP8266 through a resistor R11.
[0020] In the receiving control end, the input ends of the two driving circuits are respectively connected to the main control chip ESP8266, and the output ends of the two driving circuits are respectively connected to the input ends of the relay circuit A and the relay circuit B, and the output ends of the relay circuit A and the relay circuit B are both connected to the electric push rod of the switch window; the main control chip is also connected to the second step-down circuit. The two driving circuits include transistor Q1 and transistor Q2 respectively.
[0021] In the utility model, the resistor R6 is connected to the base of the transistor Q1, the resistor R7 is connected to the base and emitter of the transistor Q1, the resistor R5 is connected in series with the fast recovery diode D2 and connected in parallel with the diode D3 and the relay switch in the relay circuit A to the collector of the transistor Q1;
[0022] In the utility model, the resistor R9 is connected to the base of the transistor Q2, the resistor R10 is connected to the base and emitter of the transistor Q2, the resistor R8 is connected in series with the fast recovery diode D4 and is connected in parallel with the diode D5 and the relay switch in the relay circuit B to the collector of the transistor Q2.
[0023] The main control circuit transmits high and low level signals Relay1 and Relay2, and controls the on and off of transistors Q1 and Q2 through the cooperation of Relay1 and Relay2, thereby controlling the action of the drive circuit.
[0024] The relay circuit A includes relay 1, and the relay circuit B includes relay 2; the electric push rod controls the complementary opening of the driving circuits of relay 1 and relay 2, respectively controlling the closing and separation of relay 1 and relay 2. Then the direction of the current is controlled. When relay 1 is closed and relay 2 is separated, the current flows from relay 1 to the electric push rod to realize the forward rotation of the electric push rod; when relay 2 is closed and relay 1 is separated, the current flows from relay 2 to the electric push rod to realize the reverse rotation of the electric push rod. When rotating forward, the electric push rod pushes the window to the specified position, and when the motor reverses, the electric push rod pushes the window back to the specified position.
[0025] The main control circuit transmits high and low level signals Relay1 and Relay2, and controls the on and off of transistors Q1 and Q2 through the cooperation of Relay1 and Relay2, thereby controlling the action of the drive circuit. When Relay1 is at a high level and Relay2 is at a low level, transistor Q1 is turned on and transistor Q2 is turned off. The drive circuit on the relay 1 side is started, and the start circuit on the relay 2 side is turned off. On the contrary, when Relay2 is at a high level and Relay1 is at a low level, transistor Q1 is turned on, the drive circuit of the control relay 2 is started, and the start circuit of the control relay 1 is turned off.
[0026] The receiving control end receives the control command from the voice sending end, and controls Relay1 and Relay2 to output high and low levels according to the control command, thereby controlling the disconnection and attraction of Relay 1 and Relay 2. Therefore, the forward or reverse movement of the electric push rod can be controlled to realize actions such as opening or closing the window.
[0027] In the relay circuit, when the driving circuit on the relay 1 side is started, the relay 1 is energized, and the starting circuit on the relay 2 side is turned off, the relay 2 is disconnected, and the current flows from the relay 1 to the electric push rod in the forward direction, the electric push rod rotates forward, and the window opens; when the driving circuit on the relay 2 side is started, the relay 2 is energized, and the starting circuit on the relay 1 side is turned off, the relay 1 is disconnected, and the current flows from the relay 2 to the electric push rod in the reverse direction, the electric push rod reverses, and the window closes. The speed of the electric push rod for opening the window is constant, and the electric push rod has a limit function. When the electric push rod reaches the maximum distance, it will stop automatically, and when the electric push rod reaches the minimum distance, it will also stop automatically.
[0028] Further, in the wireless switch window controller of the utility model, in the receiving control end, the second step-down circuit includes a diode D1, a step-down chip U1 and an input filter capacitor C1;
[0029] The diode D1 is connected in series to the VIN pin of the buck chip U1, and the input filter capacitor C1 is connected in parallel between the VIN pin of the buck chip U1 and the ground.
[0030] In the utility model, in the receiving control end, the second step-down circuit further includes a capacitor C2, a capacitor C3, a capacitor C4, an inductor L1, a resistor R1, a resistor R2, a resistor R3 and a resistor R4.
[0031] Among them, the 12V external voltage is connected in series to the VIN pin of the buck chip U1 through the diode D1; the input filter capacitor C1 is connected in parallel between the VIN pin of the buck chip U1 and the ground. The resistor R1 is connected between the VIN pin and the EN pin as a protection resistor; the inductor L1 and the resistor R4 are connected in series to the SW pin of the buck chip U1; the capacitor C2 is connected to both ends of the BS and SW pins of the buck chip U1; the resistor R2 and the resistor R3 are connected in series and connected in parallel with the capacitor C4 between the cathode of the inductor L1 and the ground, and the capacitor C3 is connected to both ends of the resistor R2.
[0032] In some embodiments, the second step-down circuit steps down the 12V external voltage to a 3.3V DC power supply A1, and then uses the operating voltage as an input voltage to drive the remaining circuits to operate.
[0033] Further, in the wireless switch window controller of the utility model, in the voice command sending end, the first step-down circuit includes a step-down chip U2, an input filter capacitor C1, an input filter capacitor C2, an output filter capacitor C3, an output filter capacitor C4, a diode D1 and a resistor R4;
[0034] Among them, the external voltage is connected to the VIN terminal of the buck chip U2 through the series diode D1; the input filter capacitor C1 and the input filter capacitor C2 are connected in parallel at the VIN and ground ends of the buck chip U2; the output filter capacitor C3 and the output filter capacitor C4 are connected in parallel at the VOUT pin of the buck chip U2 and the ground ends; the VOUT pin of the buck chip U2 is connected in series with the resistor R4 to the output terminal H6.
[0035] Furthermore, in the wireless window switch controller of the utility model, in the voice command sending end, the USB to serial port circuit is composed of a PC end, a USB TYPE-C interface and a chip CH340X, the PC end is connected to the USB TYPE-C interface, the USB TYPE-C interface is connected to the chip CH340X, and the chip CH340X is connected to the serial port pin of the main control chip ESP8266 through the serial port circuit.
[0036] Furthermore, in the wireless window switch controller of the utility model, in the voice command sending end, the voice recognition module is a voice recognition module SU-03T, and the voice recognition module includes: a voice command sending end that recognizes voice commands, and the voice recognition module is a voice recognition module that converts the recognized voice commands into control commands.
[0037] In the utility model, the speech recognition module SU-03T is a low-cost, low-power, small-volume offline speech recognition module, which supports custom wake-up words and sentences, and can receive and recognize non-specific person voices. Through the module, the voice command sending end can recognize the voice command, and convert the recognized voice command into a control command, and then send the control command unidirectionally to the receiving control end based on the ESP-NOW protocol.
[0038] The beneficial effects of the utility model include: providing a wireless window switch controller based on the ESP-NOW protocol, which does not require online control through connecting to WIFI, and therefore has a very fast transmission speed and very low latency, and is suitable for application scenarios with high real-time requirements; the ESP-NOW protocol uses very low power consumption during data transmission, is suitable for battery-powered scenarios, and has a long service life; the ESP-NOW protocol is simple to configure, and wireless communication can be achieved by defining basic parameters such as channels, encryption keys, and data structures; the ESP-NOW protocol supports the transmission of multiple data types, and can achieve more types of window switch functions through customized data structures, such as more sophisticated behaviors such as "opening half of the window", and has strong scalability; the design structure of the infinite window switch controller of the invention is concise and clear, with a simple structure and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of signal transmission between the voice command sending end and the receiving control end of the utility model;
[0040] Figure 2 This is a circuit connection diagram of the voice command sending end of the utility model;
[0041] Figure 3 This is a circuit connection diagram of the receiving control end of the utility model;
[0042] Figure 4 A circuit schematic diagram of a main control circuit of a specific implementation method;
[0043] Figure 5 is a circuit schematic diagram of a reset circuit according to a specific implementation mode;
[0044] Figure 6 A circuit schematic diagram of a serial port circuit according to a specific implementation method;
[0045] Figure 7 It is a circuit principle diagram of an LED signal indication circuit of a specific implementation mode;
[0046] Figure 8 is a circuit schematic diagram of a startup circuit of a specific implementation mode;
[0047] Fig. 9 2 is a circuit schematic diagram of two drive circuits, relay circuit A and relay circuit B in a specific implementation manner;
[0048] Fig.10 is a circuit schematic diagram of a second buck circuit of a specific implementation mode;
[0049] Fig.11 is a circuit schematic diagram of a first buck circuit of a specific implementation mode;
[0050] Fig.12 The schematic diagram of the USB to serial port circuit is a circuit diagram of a specific implementation method. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical scheme and advantages of the specific implementation of the utility model clearer, the technical scheme of the specific implementation of the utility model will be described clearly and completely below. If no specific conditions are specified in the specific implementation, the conventional conditions or the conditions recommended by the manufacturer shall be followed.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art. As used herein, "connection" refers to "electrical connection". The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0053] Embodiment 1:
[0054] like Figure 1 As shown, the utility model is a wireless switch window controller based on the ESP-NOW protocol, including: a voice command sending end capable of recognizing voice commands and converting voice commands into control commands, a receiving control end capable of receiving control commands, and an ESP-NOW protocol based on which the control commands can be sent unidirectionally to the receiving control end.
[0055] like Figure 2 and Figure 3 As shown, the voice command sending end and the receiving control end both include: a main control circuit, a startup circuit, a reset circuit capable of realizing main control reset, a serial port circuit realizing data transmission function, and an LED signal indication circuit for indicating that the main control chip ESP8266 is in working state. The main control circuit includes the main control chip ESP8266, and the reset circuit, the startup circuit, the serial port circuit and the LED signal indication circuit are respectively connected to the main control chip ESP8266.
[0056] The voice command sending end can recognize voice commands and convert the recognized voice commands into control commands, and then send the control commands unidirectionally to the receiving control end based on the ESP-NOW protocol. The receiving control end can control the electric push rod of the window to produce action after receiving the control signal, so as to realize actions such as opening and closing the window.
[0057] In some embodiments, Figure 4This is the schematic diagram of the main control circuit. The main control chip ESP8266 has a VCC power pin, a GND ground pin, a RST reset pin, an EN enable pin, an ESP TX serial port pin, an ESP RX serial port pin, a GPIO16 LED pin and a GPIO15 pin, a GPIO2 pin, a GPIO0 pin, a GPIO4 pin, and a GPIO5 pin connected to other circuits.
[0058] Among them, the VCC power pin is connected to a high-level voltage to maintain the operation of the main control circuit; the RST reset pin is connected to the reset circuit to support the reset and restart function of the main control circuit; the EN enable pin is used to ensure the normal operation of the main control circuit; the ESP_TX serial port pin and the ESP RX serial port pin are connected to the serial port circuit to support external data download; the GPIO15 pin, the GPIO2 pin, and the GPIO0 pin are connected to the startup circuit, and the working mode of the main control circuit is switched by closing the switch K2; the GPIO4 pin and the GPIO5 pin are connected to the drive circuit to provide high and low level signals Relay1 and Relay2 to control the opening and closing of the startup circuit.
[0059] like Figure 5 As shown, in some embodiments, the reset circuit includes a capacitor C5, one end of the capacitor C5 is connected to the reset pin RST of the main control chip ESP8266, the other end of the capacitor C5 is grounded, and a short-circuit switch K1 for controlling the charging and discharging of the capacitor C5 is also connected in parallel at both ends of the capacitor C5. By connecting a short-circuit switch K1 in parallel at both ends of the capacitor C5, the charging and discharging of the capacitor C5 is controlled to achieve the main control reset.
[0060] like Figure 6 As shown, in some embodiments, the serial port circuit includes a resistor R12 and a resistor R13, and the serial port pins of the main control chip ESP8266 are connected to the resistor R12 and the resistor R13.
[0061] In some embodiments, the serial port circuit includes a connection port H4, wherein port H4 includes port 1, port 2, port 3 and port 4, port 2 and port 3 are connected to the ESP1_TX and ESP1_RX serial port pins of the main control chip ESP8266; port 4 is connected to a 3.3V operating voltage, and port 1 is grounded.
[0062] like Figure 7As shown, in some embodiments, the LED signal indication circuit is connected to the working pin of the main control chip ESP8266 through a resistor R18, that is, the LED general input and output pin GPIO16. When the main control chip ESP8266 is in working state, the LED light is always on; when the main control chip ESP8266 receives a signal, the LED light starts to flash. The LED signal indication circuit includes an LED light interface H3, in which the 3.3V working voltage is connected to the positive pole of the LED light, and the negative pole is connected to the working pin of the main control chip ESP8266 through R18. Interface H3 includes interface 1 and interface 2.
[0063] like Figure 8 As shown, in some embodiments, the startup circuit includes a resistor R14, a resistor R15, a resistor R16 and a switch K2, wherein the resistor R14, the resistor R15 and the resistor R16 are connected to the working pins GPIO0, GPIO2 and GPIO15 of the main control chip ESP8266 one by one, respectively, and the resistor R14 and the resistor R15 are both connected to the DC power supply A1, and the power supply voltage of the DC power supply A1 is +3.3.V. The switch K2 is connected in series with the resistor R14 and the resistor R16 is connected to the ground. The working state of the startup circuit is switched by controlling the closing of the switch K2. When the switch K2 is closed, the startup circuit provides a low level, and when K2 is disconnected, the startup circuit provides a high level, thereby controlling the switching of the working state of the main control chip.
[0064] like Figure 2 As shown, in some embodiments, the voice command sending end further includes: a voice recognition module, a USB-to-serial port circuit for realizing firmware download and data communication, and a first step-down circuit of a DC power supply A2 that reduces the external voltage introduced by the USB-to-serial port circuit to 3.3V. The output end of the voice recognition module is connected to the serial port circuit, one end of the USB-to-serial port circuit is connected to the serial port circuit, the other end of the USB-to-serial port circuit is connected to the input end of the first step-down circuit, and the output end of the first step-down circuit is connected to the VCC power pin of the main control chip ESP8266.
[0065] like Figure 3 and Fig. 9 As shown, in some embodiments, the receiving control end also includes: two drive circuits, a relay circuit A and a relay circuit B, and a second step-down circuit that reduces the external voltage to a 3.3V DC power supply A1; in the receiving control end, the input ends of the two drive circuits are respectively connected to the main control chip ESP8266, and the output ends of the two drive circuits are respectively connected to the input ends of the relay circuit A and the relay circuit B, and the output ends of the relay circuit A and the relay circuit B are both connected to the electric push rod of the switch window; the main control chip is also connected to the second step-down circuit; the DC power supply A1 is electrically connected to the VIN pin of the main control chip ESP8266 through the resistor R11.
[0066] like Fig. 9 As shown, in some embodiments, the two driving circuits include a transistor Q1 and a transistor Q2, respectively. Resistor R6 is connected to the base of transistor Q1, and resistor R7 is connected to the base and emitter of Q1. Resistor R5 is connected in series with fast recovery diode D2 and is connected in parallel with diode D3 and relay switch to the collector of transistor Q1. Similarly, resistor R9 is connected to the base of transistor Q2, and resistor R10 is connected to the base and emitter of Q2. Resistor R8 is connected in series with fast recovery diode D4 and is connected in parallel with diode D5 and relay switch to the collector of transistor Q2.
[0067] like Fig. 9 As shown, in some embodiments, relay circuit A includes relay 1, and relay circuit B includes relay 2; the electric push rod PACK6 controls the complementary opening of the driving circuits of relay 1 and relay 2 to control the attraction and separation of relay 1 and relay 2 respectively. Then the direction of the current is controlled. When relay 1 is attracted and relay 2 is separated, the current flows from relay 1 to the electric push rod PACK6 to realize the forward rotation of the electric push rod; when relay 2 is attracted and relay 1 is separated, the current flows from relay 2 to the electric push rod PACK6 to realize the reverse rotation of the electric push rod. When the electric push rod is in forward rotation, it pushes the window to the specified position, and when the motor is reversed, the electric push rod pushes the window back to the specified position.
[0068] The main control circuit transmits high and low level signals Relay1 and Relay2, and controls the on and off of transistors Q1 and Q2 through the cooperation of Relay1 and Relay2, thereby controlling the action of the drive circuit. When Relay1 is at a high level and Relay2 is at a low level, transistor Q1 is turned on and transistor Q2 is turned off. The drive circuit on the relay 1 side is started, and the start circuit on the relay 2 side is turned off. On the contrary, when Relay2 is at a high level and Relay1 is at a low level, transistor Q1 is turned on, the drive circuit of the control relay 2 is started, and the start circuit of the control relay 1 is turned off.
[0069] The receiving control end receives the control command from the voice sending end, and controls Relay1 and Relay2 to output high and low levels according to the control command, thereby controlling the disconnection and attraction of Relay 1 and Relay 2. Therefore, the forward or reverse movement of the electric push rod can be controlled to realize actions such as opening or closing the window.
[0070] like Fig. 9As shown, in the relay circuit, when the driving circuit on the relay 1 side is started, the relay 1 is energized, and at the same time, the starting circuit on the relay 2 side is turned off, the relay 2 is disconnected, and the current flows from the relay 1 to the electric push rod PACK6 in the forward direction, and the electric push rod PACK6 rotates forward, and the window opens; when the driving circuit on the relay 2 side is started, the relay 2 is energized, and at the same time, the starting circuit on the relay 1 side is turned off, the relay 1 is disconnected, and the current flows from the relay 2 to the electric push rod PACK6 in the reverse direction, and the electric push rod PACK6 reverses, and the window closes. The speed of the electric push rod PACK6 for opening the window is constant, and the electric push rod PACK6 has a limit function. When the electric push rod PACK6 reaches the maximum distance, it will stop automatically, and when the electric push rod PACK6 reaches the minimum distance, it will also stop automatically.
[0071] like Fig.10 As shown, in some embodiments, in the receiving control end, the second buck circuit includes a diode D1, a buck chip U1 and an input filter capacitor C1; the diode D1 is connected in series to the VIN pin of the buck chip U1, and the input filter capacitor C1 is connected in parallel between the VIN pin of the buck chip U1 and the ground.
[0072] In some implementations, in the receiving control end, the second step-down circuit further includes a capacitor C2, a capacitor C3, a capacitor C4, an inductor L1, a resistor R1, a resistor R2, a resistor R3, and a resistor R4.
[0073] In some embodiments, the 12V external voltage is a DC power supply DC1, which is first connected to the input terminal H1, and then connected in series to the VIN pin of the buck chip U1 through a diode D1; the input filter capacitor C1 is connected in parallel between the VIN pin and the ground. R1 is connected between the VIN pin and the EN pin as a protection resistor; the inductor L1 and the resistor R4 are connected in series to the SW pin of the buck chip U1; the capacitor C2 is connected to the BS and SW pins of the buck chip U1; the resistor R2 is connected in series with the resistor R3 and connected in parallel with the capacitor C4 between the cathode of the inductor L1 and the ground, the capacitor C3 is connected to both ends of the resistor R2, and the output terminal H2 of the second buck circuit is connected to the resistor R4 and the capacitor C4.
[0074] In some implementations, the second step-down circuit steps down the 12V external voltage to a 3.3V DC power supply A1, and then uses the operating voltage as an input voltage to drive the remaining circuits to operate.
[0075] like Fig.11 As shown, in some embodiments, in the voice command sending end, the first buck circuit includes a buck chip U2, an input filter capacitor C1, an input filter capacitor C2, an output filter capacitor C3, an output filter capacitor C4, a diode D1 and a resistor R4;
[0076] In some embodiments, the 5V external voltage is connected to the input terminal H5 through the series diode D1, and then connected to the VIN terminal of the buck chip U2; the input filter capacitor C1 and the input filter capacitor C2 are connected in parallel at the VIN and ground ends of the buck chip U2; the output filter capacitor C3 and the output filter capacitor C4 are connected in parallel at the VOUT pin of the buck chip U2 and the ground ends; the VOUT pin of the buck chip U2 is connected in series with the resistor R4 to the output terminal H6.
[0077] like Fig.12 As shown, in some embodiments, in the voice command sending end, the USB to serial port circuit is composed of a PC end, a USB TYPE-C interface and a chip CH340X, the PC end is connected to the USB TYPE-C interface, the USB TYPE-C interface is connected to the chip CH340X, and the chip CH340X is connected to the serial port pin of the main control chip ESP8266 through the serial port circuit.
[0078] like Fig.12 As shown, in some embodiments, the USB TYPE-C interface includes three GND interfaces, a VBUS interface, a CC2 interface, an SBU1 interface, a DP2 interface, a DN1 interface, a DP1 interface, a DN2 interface, a CC1 interface, a SNU2 interface, and a VBUS interface. The chip CH340X includes a UD+ pin, a UD- pin, a GND RST# pin, a CTS# pin, a V3 pin, a RXD pin, a TXD pin, a VCC pin, and a TNOW / DTR# pin.
[0079] In some embodiments, in the voice instruction sending end, the voice recognition module is a voice recognition module SU-03T, and the voice recognition module includes: a voice instruction sending end that recognizes voice instructions, and a voice recognition module that converts the recognized voice instructions into control instructions.
[0080] The voice recognition module SU-03T is a low-cost, low-power, small-volume offline voice recognition module. The module supports custom wake-up words and sentences, and can receive and recognize non-specific human voices. The voice recognition module SU-03T realizes voice recognition by writing the voice module program and voice control program that need to be recognized separately and burning the voice recognition chip and the single-chip computer separately. The voice recognition module can receive non-specific human voices. When the voice recognition module recognizes non-specific human voices, such as "open window", "close window", window stop, half open window, half closed window, etc., the preset voice commands will output recognition information and send the recognition information to the main control through the serial port. The main control receives the recognition information and sends the control command to the receiving control end according to the recognition information, which is received by the receiving control end. Through the SU-03T module, the voice command sending end can recognize the voice command and convert the recognized voice command into a control command, and then send the control command to the receiving control end in one direction based on the ESP-NOW protocol.
[0081] The embodiments described above are part of the embodiments of the utility model, but not all of the embodiments. The detailed description of the embodiments of the utility model is not intended to limit the scope of the utility model claimed for protection, but only represents selected embodiments of the utility model. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the utility model.
Claims
1. A wireless window switch controller based on ESP-NOW protocol, characterized in that: The wireless window switch controller includes: a voice command sending end capable of recognizing voice commands and converting the voice commands into control commands, a receiving control end capable of receiving the control commands, and an ESP-NOW protocol based on which the control commands can be sent unidirectionally to the receiving control end; The voice command sending end and the receiving control end both include: a main control circuit, a startup circuit, a reset circuit capable of resetting the main control, a serial port circuit capable of transmitting data, and an LED signal indication circuit for indicating that the main control chip ESP8266 is in a working state; The main control circuit comprises a main control chip ESP8266, and the reset circuit, serial port circuit, LED signal indication circuit and start-up circuit are respectively connected to the main control chip ESP8266.
2. The wireless window switch controller according to claim 1, characterized in that: The reset circuit includes a capacitor C5, one end of which is connected to the reset pin RST of the main control chip ESP8266, the other end of which is grounded, and a short-circuit switch K1 for controlling the charging and discharging of the capacitor C5 is also connected in parallel at both ends of the capacitor C5.
3. The wireless window switch controller according to claim 2, characterized in that: The serial port circuit includes a resistor R12 and a resistor R13, and the serial port pins of the main control chip ESP8266 are connected to the resistor R12 and the resistor R13; The LED signal indication circuit is connected to the working pin of the main control chip ESP8266 through the resistor R18.
4. The wireless window switch controller according to claim 3, characterized in that: The startup circuit includes a resistor R14, a resistor R15, a resistor R16 and a switch K2. The resistors R14, R15 and R16 are respectively connected one-to-one to the working pins of the main control chip ESP8266. The resistors R14 and R15 are both connected to a DC power supply A1. The switch K2 is connected in series with the resistor R14 and is grounded. The resistor R16 is also grounded.
5. The wireless window switch controller according to claim 4, characterized in that: The voice command sending end also includes: a voice recognition module, a USB to serial port circuit capable of realizing firmware download and data communication, and a first step-down circuit for reducing the external voltage introduced by the USB to serial port circuit to a DC power supply A2 of 3.2V to 3.4V; The output end of the speech recognition module is connected to the serial port circuit, one end of the USB to serial port circuit is connected to the serial port circuit, the other end of the USB to serial port circuit is connected to the input end of the first step-down circuit, and the output end of the first step-down circuit is connected to the main control chip ESP8266.
6. The wireless window switch controller according to claim 5, characterized in that: The receiving control end also includes: two driving circuits, a relay circuit A and a relay circuit B, and a second step-down circuit of a DC power supply A1 capable of reducing an external voltage to 3.2V to 3.4V; the DC power supply A1 is electrically connected to the VIN pin of the main control chip ESP8266 through a resistor R11; The input ends of the two driving circuits are respectively connected to the main control chip ESP8266, and the output ends of the two driving circuits are respectively connected to the input ends of the relay circuit A and the relay circuit B, and the output ends of the relay circuit A and the relay circuit B are both connected to the electric push rod of the switch window; the main control chip is also connected to the second step-down circuit; The two driving circuits respectively include a transistor Q1 and a transistor Q2.
7. The wireless window switch controller according to claim 6, characterized in that: In the receiving control end, the second step-down circuit includes a diode D1, a step-down chip U1 and an input filter capacitor C1; The diode D1 is connected in series to the VIN pin of the buck chip U1, and the input filter capacitor C1 is connected in parallel between the VIN pin of the buck chip U1 and the ground.
8. The wireless window switch controller according to claim 7, characterized in that: In the voice command sending end, the first step-down circuit includes a step-down chip U2, an input filter capacitor C1, an input filter capacitor C2, an output filter capacitor C3, an output filter capacitor C4, a diode D1 and a resistor R4; Among them, the external voltage is connected to the VIN terminal of the buck chip U2 through the series diode D1; the input filter capacitor C1 and the input filter capacitor C2 are connected in parallel at the VIN and ground ends of the buck chip U2; the output filter capacitor C3 and the output filter capacitor C4 are connected in parallel at the VOUT pin of the buck chip U2 and the ground ends; the VOUT pin of the buck chip U2 is connected in series with the resistor R4 to the output terminal H6.
9. The wireless window switch controller according to claim 8, characterized in that: In the voice command sending end, the USB to serial port circuit is composed of a PC end, a USB TYPE-C interface and a chip CH340X. The PC end is connected to the USB TYPE-C interface, the USB TYPE-C interface is connected to the chip CH340X, and the chip CH340X is connected to the serial port pin of the main control chip ESP8266 through the serial port circuit.
10. The wireless window switch controller according to claim 9, characterized in that: In the voice instruction sending end, the voice recognition module is a voice recognition module SU-03T, and the voice recognition module includes: a voice instruction sending end that recognizes voice instructions, and the voice recognition module is a voice recognition module that converts the recognized voice instructions into control instructions.
Citation Information
Cited By
Method and device for conveniently searching wireless pedal controller
CN121904919A
