Motor control circuit and curtain controller
By using a logic gate control circuit in the motor control circuit to ensure that the two coils of the motor do not work at the same time, the problem of damage and fire caused by IO confusion of the traditional electric curtain control motor is solved, and safer motor operation is achieved.
Patent Information
- Application Number
- CN202323345686.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-07
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2033-12-07
AI Technical Summary
Traditional electric curtain control motors are prone to IO confusion, causing two coils to work at the same time, causing motor damage or fire risks.
A motor control circuit is designed, which controls the circuit through the first logic gate and the second logic gate to ensure that only one high-level signal is output when both relay pre-control signals output high level, preventing the two coils of the motor from being powered at the same time. , and realize signal control through logic gate chips such as SN74HC01D and MC74HC02AD.
It effectively prevents the two coils of the motor from working at the same time, reduces safety hazards, avoids motor damage and fire risks, and provides a safer motor control method.
Smart Images

Figure CN221652477U
Abstract
Description
Technical Field
[0001] The utility model relates to a motor control circuit and a curtain controller. Background Art
[0002] At present, electric curtains are usually controlled by control panels or wireless control. The traditional control panel for controlling curtain motors is a control method based on the microcontroller controlling the motor; however, due to interference with the microcontroller, program errors, bugs in the program, etc., it is inevitable that the output IO chaos problem will occur. When the IO output is two high levels at the same time, the two coils of the motor will work at the same time, thereby driving two torques in opposite directions to work at the same time, causing the circuit to be too large and heat, thereby damaging the motor circuit or mechanical parts, and in serious cases, causing a fire.
[0003] Therefore, how to overcome the above-mentioned defects has become an important issue to be solved urgently by those skilled in the art. Utility Model Content
[0004] The utility model overcomes the shortcomings of the above-mentioned technology, and provides a motor control circuit on the one hand, and a curtain controller on the other hand.
[0005] In order to achieve the above purpose, the utility model adopts the following technical solutions:
[0006] On the one hand, a motor control circuit includes a motor control circuit 100, wherein the motor control circuit 100 is connected between an external conversion circuit and an external motor circuit, wherein the motor control circuit 100 includes a first logic gate control circuit 11 and a second logic gate control circuit 12, wherein a first logic signal input terminal of the first logic gate control circuit 11 and a first logic signal input terminal of the second logic gate control circuit 12 are commonly connected to a first relay pre-control signal output terminal RELAY1 of the external conversion circuit, and a second logic signal input terminal of the first logic gate control circuit 11 and a second logic signal input terminal of the second logic gate control circuit 12 are commonly connected to a second relay pre-control signal output terminal RELAY2 of the external conversion circuit. At the relay pre-control signal output terminal RELAY2, the first logic signal output terminal O1 of the first logic gate control circuit 11 is connected to the coil of one of the relays of the first motor of the external motor circuit, and the second logic signal output terminal O2 of the second logic gate control circuit 12 is connected to the coil of another relay of the first motor of the external motor circuit. When the first relay pre-control signal output terminal RELAY1 and the first relay pre-control signal output terminal RELAY2 both output high-level signals, the first logic signal output terminal O1 outputs a high-level signal and the second logic signal output terminal O2 outputs a low-level signal to prevent the coils of the two relays of the first motor from being powered at the same time.
[0007] Preferably, the motor control circuit 100 also includes a third logic gate control circuit 21 and a fourth logic gate control circuit 22, the first logic signal input terminal of the third logic gate control circuit 21 and the first logic signal input terminal of the fourth logic gate control circuit 22 are commonly connected to the third relay pre-control signal output terminal RELAY3 of the external conversion circuit, the second logic signal input terminal of the third logic gate control circuit 21 and the second logic signal input terminal of the fourth logic gate control circuit 22 are commonly connected to the fourth relay pre-control signal output terminal RELAY4 of the external conversion circuit, the third logic signal output terminal O3 of the third logic gate control circuit 21 is connected to the coil of one of the relays of the second motor of the external motor circuit, and the fourth logic signal output terminal O4 of the fourth logic gate control circuit 22 is connected to the coil of another relay of the second motor of the external motor circuit, when the third relay pre-control signal output terminal RELAY3 and the fourth relay pre-control signal output terminal RELAY4 both output high-level signals, the third logic signal output terminal O3 outputs a high-level signal, and the fourth logic signal output terminal O4 outputs a low-level signal to prevent the coils of the two relays of the second motor from being powered at the same time.
[0008] Preferably, the first logic gate control circuit 11 includes a first NAND gate U5A, a second NAND gate U5B, and a first resistor R20, wherein the first input end of the first NAND gate U5A is connected to the first relay pre-control signal output end RELAY1 of the external conversion circuit and is used as the first logic signal input end of the first logic gate control circuit 11, the second input end is connected to the second relay pre-control signal output end RELAY2 of the external conversion circuit and is used as the second logic signal input end of the first logic gate control circuit 11, and the output end is connected to the second NAND gate U5B input end, one end of the first resistor R20 is connected to the second NAND gate U5B output end, and the other end is connected to the first logic signal output end O1 of the external conversion circuit. The second logic gate control circuit 12 includes a first NOR gate U6A and a second resistor R25, wherein the first input terminal of the first NOR gate U6A is connected to the first relay pre-control signal output terminal RELAY1 of the external conversion circuit and is used as the first logic signal input terminal of the second logic gate control circuit 12, and the second input terminal is connected to the second relay pre-control signal output terminal RELAY2 of the external conversion circuit and is used as the second logic signal input terminal of the second logic gate control circuit 12, and one end of the second resistor R25 is connected to the output terminal of the first NOR gate U6A, and the other end is used as the second logic signal output terminal O2 connected to another relay pre-control signal output terminal of the first motor of the external motor circuit. The coil of the electrical appliance is connected; the third logic gate control circuit 21 includes a third NAND gate U5C, a fourth NAND gate U5D, and a third resistor R26. The first input end of the third NAND gate U5C is connected to the third relay pre-control signal RELAY3 of the external conversion circuit and is used as the first logic signal input end of the third logic gate control circuit 21, the second input end is connected to the fourth relay pre-control signal RELAY4 of the external conversion circuit, the second logic signal input end of the third logic gate control circuit 21, and the output end is connected to the fourth NAND gate U5D input end. One end of the third resistor R26 is connected to the output end of the fourth NAND gate U5D, and the other end is used as the third control signal output end O3 and the second The coil of one of the relays of the motor is connected; the fourth logic gate control circuit 22 includes a second NOR gate U6B and a fourth resistor R27, the first input end of the second NOR gate U6B is connected to the third relay pre-control signal RELAY3 of the external conversion circuit and is used as the first logic signal input end of the fourth logic gate control circuit 22, the second input end is connected to the fourth relay pre-control signal RELAY4 of the external conversion circuit and is used as the second logic signal input end of the fourth logic gate control circuit 22, one end of the fourth resistor R275 is connected to the output end of the second NOR gate U6B, and the other end is connected to the coil of another relay of the second motor of the external motor circuit as the fourth control signal output end O4.
[0009] Preferably, the first NAND gate U5A, the second NAND gate U5B, the third NAND gate U5C and the fourth NAND gate U5D all use a logic gate chip of model SN74HC01D, and the first NOR gate U6A and the second NOR gate U6B all use a logic gate chip of model MC74HC02AD.
[0010] On the other hand, a curtain controller includes a curtain controller body 1000, the curtain controller body 1000 includes a single-chip circuit 200, a conversion circuit 300, a power supply circuit 400 for powering the controller, and the above-mentioned motor control circuit 100, and the single-chip circuit 200 is connected to the motor control circuit 100 through the conversion circuit 300.
[0011] Preferably, the conversion circuit 300 includes a first shift register circuit 301 and a second shift register circuit 302, the first shift register circuit 301 is composed of a first shift register U3 and its peripheral circuits, the second shift register circuit 302 is composed of a second shift register U4 and its peripheral circuits, and part of the parallel data output end of the first shift register U3 is connected to the motor control circuit 100 as a relay pre-control signal output end.
[0012] Preferably, the parallel data output end of the second shift register U4 is connected to a key circuit 500, and the key circuit 500 is composed of a plurality of double-pole single-throw switches connected in parallel. The single-chip microcomputer circuit 200 controls the opening or closing of different double-pole single-throw switches of the key circuit 500 through the second shift register U4. Part of the parallel data output ends of the first shift register U3 are connected to an indicator light circuit 600, and the indicator light circuit 600 is composed of a plurality of light-emitting diodes connected in parallel. The single-chip microcomputer circuit 200 controls the lighting of different light-emitting diodes of the indicator light circuit 600 through the first shift register U3.
[0013] Preferably, the single-chip microcomputer circuit 200 includes a single-chip microcomputer U2 of model STM32F03X and its peripheral circuits.
[0014] Preferably, the power supply circuit 400 includes a CMOS linear regulator U7 of model SGM2019-3.3G / TR and its peripheral circuits.
[0015] Preferably, the curtain controller body 1000 also includes a wireless communication module 700 for wireless communication with an external mobile terminal, and the wireless communication module 700 includes a CMT2300A wireless transceiver chip and its peripheral circuits. The wireless communication module 700 is communicated with the single-chip microcomputer circuit 200 so as to automatically control the opening and closing of the curtains.
[0016] Compared with the prior art, the beneficial effects of the utility model are:
[0017] 1. The setting of the first logic gate control circuit and the second logic gate control circuit of the motor control circuit of the first embodiment of the present case can output a new control signal through the first logic gate control circuit from the two relay pre-control signals output by the external conversion circuit as a signal for controlling one of the coils of the motor, and output another new control signal through the second logic gate control circuit as a signal for controlling the other coil of the motor. The forward / reverse / stop of the motor is controlled according to the two new control signals. This is different from the existing method of controlling relays through a single-chip microcomputer. Such a setting can output only one high-level signal when both relay pre-control signals output high-level signals, thereby preventing the two coils of the motor from working at the same time and causing damage to the motor, thereby reducing safety hazards.
[0018] 2. The first NAND gate U5A and the second NAND gate U5B of the first logic gate control circuit of this case can make the first logic signal output terminal O1 output only a high level when two high level signals are input to the first logic gate control circuit, and through the setting of the first NOR gate U6A of the second logic gate control circuit, when two high level signals are input to the second logic gate control circuit, the second logic signal output terminal O2 can output a low level, thereby preventing the two coils of the motor from being powered at the same time, not causing damage to the motor, and reducing safety hazards. Similarly, the third logic gate control circuit includes the third NAND gate U5C, the fourth NAND gate U5D and the second NOR gate U6B of the fourth logic gate control circuit, which can prevent the two coils of the second motor from being powered at the same time, so as to protect the second motor.
[0019] 3. The curtain controller body is connected to the motor control circuit after the single-chip circuit and the conversion circuit, so that the relay can be controlled not directly through the single-chip circuit, but by using the motor control circuit logic gate circuit control, which can solve the problem of the motor burning caused by the two coils of the same motor working at the same time, and provide safety protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 1 is a circuit diagram of a motor control circuit according to a first embodiment of the present invention.
[0021] Figure 2 It is a circuit diagram of the motor control circuit of the second embodiment of this case.
[0022] Figure 3 It is a structural diagram of the curtain controller of Example 3 of this case.
[0023] Figure 4 It is the circuit diagram of the conversion circuit in this case.
[0024] Figure 5 It is the circuit diagram of the single chip microcomputer circuit in this case.
[0025] Figure 6 It is the circuit diagram of the power supply circuit in this case.
[0026] Figure 7 It is the circuit diagram of the wireless communication module in this case.
[0027] Figure 8 This is the circuit diagram of the pin connector in this case. DETAILED DESCRIPTION
[0028] The following examples further illustrate the features of the present invention and other related features to facilitate understanding by those skilled in the art:
[0029] Embodiment 1
[0030] like Figure 1 As shown, a motor control circuit includes a motor control circuit 100, wherein the motor control circuit 100 is connected between an external conversion circuit and an external motor circuit, wherein the external motor circuit is composed of a first motor for controlling one curtain and a second motor for controlling another curtain. A motor control circuit includes a motor control circuit 100, wherein the motor control circuit 100 is connected between an external conversion circuit and an external motor circuit, wherein the motor control circuit 100 includes a first logic gate control circuit 11 and a second logic gate control circuit 12.
[0031] The first logic signal input terminal of the first logic gate control circuit 11 and the first logic signal input terminal of the second logic gate control circuit 12 are commonly connected to the first relay pre-control signal output terminal RELAY1 of the external conversion circuit. The second logic signal input terminal of the first logic gate control circuit 11 and the second logic signal input terminal of the second logic gate control circuit 12 are commonly connected to the second relay pre-control signal output terminal RELAY2 of the external conversion circuit. The first logic signal output terminal O1 of the first logic gate control circuit 11 is connected to the coil of one of the relays of the first motor of the external motor circuit, and the second logic signal output terminal O2 of the second logic gate control circuit 12 is connected to the coil of another relay of the first motor of the external motor circuit. When the first relay pre-control signal output terminal RELAY1 and the first relay pre-control signal output terminal RELAY2 both output high-level signals, the first logic signal output terminal O1 outputs a high-level signal, and the second logic signal output terminal O2 outputs a low-level signal to prevent the coils of the two relays of the first motor from being powered at the same time.
[0032] In a specific implementation, the first motor can be controlled to rotate forward, reverse or stop according to the logic control signals of the first logic gate control circuit 11 and the second logic gate control circuit 12. The external conversion circuit can be a conversion circuit with a shift register connected to the single chip microcomputer. Figure 8 As shown, the motor control circuit can be connected to the external motor circuit through the pin connector 800, and the pin connector 800 can connect multiple wires or devices to a centralized location, thereby achieving circuit connection and control.
[0033] As described above, the setting of the first logic gate control circuit 11 and the second logic gate control circuit 12 of the motor control circuit 100 of the first embodiment of the present case can output a new control signal through the first logic gate control circuit 11 from the two relay pre-control signals output by the external conversion circuit as a signal for controlling one of the coils of the motor, and output another new control signal through the second logic gate control circuit 12 as a signal for controlling the other coil of the motor, and control the forward / reverse / stop of the motor according to the two new control signals. This is different from the existing method of controlling relays through a single-chip microcomputer. Such a setting can output only one high-level signal when both relay pre-control signals output high-level signals, thereby preventing the two coils of the motor from working at the same time and causing damage to the motor, thereby reducing safety hazards.
[0034] Embodiment 2
[0035] like Figure 2 As shown, the difference between the second embodiment and the first embodiment is that the motor control circuit 100 of the second embodiment further includes:
[0036] The third logic gate control circuit 21 and the fourth logic gate control circuit 22, the first logic signal input terminal of the third logic gate control circuit 21 and the first logic signal input terminal of the fourth logic gate control circuit 22 are commonly connected to the third relay pre-control signal output terminal RELAY3 of the external conversion circuit. The second logic signal input terminal of the third logic gate control circuit 21 and the second logic signal input terminal of the fourth logic gate control circuit 22 are commonly connected to the fourth relay pre-control signal output terminal RELAY4 of the external conversion circuit. The third logic signal output terminal O3 of the third logic gate control circuit 21 is connected to the coil of one of the relays of the second motor of the external motor circuit, and the fourth logic signal output terminal O4 of the fourth logic gate control circuit 22 is connected to the coil of another relay of the second motor of the external motor circuit. When the third relay pre-control signal output terminal RELAY3 and the fourth relay pre-control signal output terminal RELAY4 both output high-level signals, the third logic signal output terminal O3 outputs a high-level signal, and the fourth logic signal output terminal O4 outputs a low-level signal to prevent the coils of the two relays of the second motor from being powered at the same time.
[0037] As described above, the motor control circuit 100 of the second embodiment of the present case can control the two motors of the external motor circuit so as to independently control the action of the first motor and the action of the second motor, thereby realizing the opening and closing of the corresponding different curtains. The third logic gate control circuit 21 and the fourth logic gate control circuit 22 are also configured to output only one high level signal when both relay pre-control signals output high level signals, thereby preventing the two coils of the motor from working at the same time and causing the motor to be damaged, reducing safety hazards, and ensuring the safe operation of the two motors.
[0038] like Figure 2 As shown, in a specific implementation, the first logic gate control circuit 11 includes a first NAND gate U5A, a second NAND gate U5B, and a first resistor R20, the first input end of the first NAND gate U5A is connected to the first relay pre-control signal output end RELAY1 of the external conversion circuit and is used as the first logic signal input end of the first logic gate control circuit 11, the second input end is connected to the second relay pre-control signal output end RELAY2 of the external conversion circuit and is used as the second logic signal input end of the first logic gate control circuit 11, and the output end is connected to the input end of the second NAND gate U5B, one end of the first resistor R20 is connected to the output end of the second NAND gate U5B, and the other end is connected to the coil of one of the relays of the external motor circuit as the first logic signal output end O1;
[0039] The second logic gate control circuit 12 includes a first NOR gate U6A and a second resistor R25, wherein the first input end of the first NOR gate U6A is connected to the first relay pre-control signal output end RELAY1 of the external conversion circuit and is used as the first logic signal input end of the second logic gate control circuit 12, and the second input end is connected to the second relay pre-control signal output end RELAY2 of the external conversion circuit and is used as the second logic signal input end of the second logic gate control circuit 12, and one end of the second resistor R25 is connected to the output end of the first NOR gate U6A, and the other end is connected to the coil of another relay of the first motor of the external motor circuit as the second logic signal output end O2;
[0040] The third logic gate control circuit 21 includes a third NAND gate U5C, a fourth NAND gate U5D, and a third resistor R26, wherein a first input end of the third NAND gate U5C is connected to a third relay pre-control signal RELAY3 of an external conversion circuit and is used as a first logic signal input end of the third logic gate control circuit 21, a second input end is connected to a fourth relay pre-control signal RELAY4 of an external conversion circuit, a second logic signal input end of the third logic gate control circuit 21, and an output end is connected to an input end of the fourth NAND gate U5D, one end of the third resistor R26 is connected to an output end of the fourth NAND gate U5D, and the other end is connected to a coil of a relay of a second motor of an external motor circuit as the third control signal output end O3;
[0041] The fourth logic gate control circuit 22 includes a second NOR gate U6B and a fourth resistor R27, the first input end of the second NOR gate U6B is connected to the third relay pre-control signal RELAY3 of the external conversion circuit and is used as the first logic signal input end of the fourth logic gate control circuit 22, the second input end is connected to the fourth relay pre-control signal RELAY4 of the external conversion circuit and is used as the second logic signal input end of the fourth logic gate control circuit 22, one end of the fourth resistor R275 is connected to the output end of the second NOR gate U6B, and the other end is connected to the coil of another relay of the second motor of the external motor circuit as the fourth control signal output end O4.
[0042] As described above, the first NAND gate U5A and the second NAND gate U5B of the first logic gate control circuit 11 can make the first logic signal output terminal O1 output only a high level when two high level signals are input to the first logic gate control circuit 11, and through the setting of the first NOR gate U6A of the second logic gate control circuit 12, when two high level signals are input to the second logic gate control circuit 12, the second logic signal output terminal O2 can output a low level, thereby preventing the two coils of the motor from being powered at the same time, not causing damage to the motor, and reducing safety hazards. Similarly, the third logic gate control circuit 21 includes the third NAND gate U5C, the fourth NAND gate U5D and the second NOR gate U6B of the fourth logic gate control circuit 22, which can prevent the two coils of the second motor from being powered at the same time, so as to protect the second motor.
[0043] like Figure 2 As shown, the first NAND gate U5A, the second NAND gate U5B, the third NAND gate U5C, and the fourth NAND gate U5D all use a logic gate chip of model SN74HC01D, and the first NOR gate U6A and the second NOR gate U6B all use a logic gate chip of model MC74HC02AD. In this way, the advantages of low power consumption, fast response, and high reliability of the SN74HC01D and MC74HC02AD chips themselves can be utilized, and they can be applied to circuits with low power consumption and improve the efficiency of signal transmission and processing, while ensuring the reliability of signal transmission. During specific implementation, the first NAND gate U5A, the second NAND gate U5B, the third NAND gate U5C, and the fourth NAND gate U5D may adopt not only the logic gate chip of model SN74HC01D, but also other chips of other types that perform the logic function of NAND gates. The first NOR gate U6A and the second NOR gate U6B may adopt not only the logic gate chip of model MC74HC02AD, but also other chips of other types that perform the logic function of NOR gates.
[0044] The working principle of the motor control circuit 100 is as follows:
[0045] Working principle of the first motor:
[0046] When the first relay pre-control signal output terminal RELAY1 inputs a low level signal 0, the second relay pre-control signal output terminal RELAY2 inputs a low level signal 0, the first logic signal output terminal O1 outputs a low level signal 0, and the second logic signal output terminal O2 outputs a high level signal 1, at this time the first motor reverses, and the corresponding curtain is closed;
[0047] When the first relay pre-control signal output terminal RELAY1 inputs a low level signal 0, and the second relay pre-control signal output terminal RELAY2 inputs a high level signal 1, the first logic signal output terminal O1 outputs a low level signal 0, and the second logic signal output terminal O2 outputs a low level signal 0, then the first motor stops and the corresponding curtain is paused;
[0048] When the first relay pre-control signal output terminal RELAY1 inputs a high level signal 1, and the second relay pre-control signal output terminal RELAY2 inputs a low level signal 0, the first logic signal output terminal O1 outputs a low level signal 0, and the second logic signal output terminal O2 outputs a low level signal 0, then the first motor also stops, and the corresponding curtain is paused;
[0049] When the first relay pre-control signal output terminal RELAY1 inputs a high level signal 1, and the second relay pre-control signal output terminal RELAY2 inputs a high level signal 1, the first logic signal output terminal O1 outputs a high level signal 1, and the second logic signal output terminal O2 outputs a low level signal 0, then the first motor rotates forward and the corresponding curtain opens.
[0050] The working principle of the second motor is the same as that of the first motor.
[0051] Embodiment 3
[0052] like Figures 1 to 8 As shown, a curtain controller includes a curtain controller body 1000, wherein the curtain controller body 1000 includes a single-chip microcomputer circuit 200, a conversion circuit 300, a power supply circuit 400 for powering the controller, and the motor control circuit 100 described in Example 1 or Example 2, and the single-chip microcomputer circuit 200 is connected to the motor control circuit 100 through the conversion circuit 300.
[0053] As described above, by connecting the motor control circuit 100 after the single-chip circuit 200 and the conversion circuit 300, the curtain controller body 1000 can control the relay without directly using the single-chip circuit 200. By using the logic gate circuit control of the motor control circuit 100, the problem of the motor burning out due to the two coils of the same motor working at the same time can be solved, thereby providing safety protection.
[0054] like Figure 4As shown, in a specific implementation, the conversion circuit 300 includes a first shift register circuit 301 and a second shift register circuit 302, wherein the first shift register circuit 301 is composed of a first shift register U3 of model SN74HC595D and its peripheral circuits, and the second shift register circuit 302 is composed of a second shift register U4 of model MC74HC164AD and its peripheral circuits, and a part of the parallel data output end of the first shift register U3 is connected to the motor control circuit 100 as a relay pre-control signal output end. In a specific implementation, the first shift register U3 and the second shift register U4 can use other types of shift registers with similar parameters and similar functions.
[0055] As described above, the first shift register circuit 301 of the conversion circuit 300 and the setting of the first shift register circuit 301 can utilize the characteristics of the corresponding shift register to provide I / O expansion for the single-chip microcomputer of the single-chip microcomputer circuit 200, which can reduce the total number of single-chip microcomputers required for the design, and help reduce costs and size. In specific implementation, the shift register converts the serial communication data output from the single-chip microcomputer into parallel data and stores the data in the shift register into the data latch before being output in parallel when needed. The setting of the first shift register U3 is so that several relay pre-control signals can be output in parallel to the motor control circuit 100.
[0056] like Figure 4 As shown, the parallel data output end of the second shift register U4 is connected to a key circuit 500, which is composed of a plurality of double-pole single-throw switches connected in parallel. The single-chip circuit 200 controls the opening or closing of different double-pole single-throw switches of the key circuit 500 through the second shift register U4. The partial parallel data output end of the first shift register U3 is connected to an indicator light circuit 600, which is composed of a plurality of light-emitting diodes connected in parallel. The single-chip circuit 200 controls the on and off of different light-emitting diodes of the indicator light circuit 600 through the first shift register U3. In this way, pressing different keys of the key circuit 500 obtains different key state information, and the indicator light circuit 600 can display the on and off of the indicator lights of the corresponding functions, and its setting is convenient. The double-pole single-throw switch of the key circuit 500 is set so that two independent circuits can be opened or closed at the same time.
[0057] like Figure 5 As shown, in a specific implementation, the single-chip circuit 200 includes a single-chip microcomputer U2 of model STM32F03X and its peripheral circuits. Thus, it has the characteristics of high performance and low power consumption, and has high versatility and sensitivity.
[0058] like Figure 6As shown, the power supply circuit 400 includes a CMOS linear regulator U7 of model SGM2019-3.3G / TR and its peripheral circuits. In a specific implementation, the single-chip microcomputer U2 is also connected to a power button S10 and a power indicator light D5. When the single-chip microcomputer U2 detects that the power supply is working, the power indicator light D5 is controlled to light up to indicate that the power supply is powered on. In this way, the power supply circuit 400 adopts the setting of the CMOS linear regulator U7 of SGM2019-3.3G / TR, so as to utilize its low voltage difference characteristics and meet the power supply conditions of the single-chip microcomputer circuit 200. In a specific implementation, the CMOS linear regulator U7 can also use other types of regulators or voltage regulator chips with similar other parameters and similar functions.
[0059] like Figure 7 As shown, in a specific implementation, the curtain controller body 1000 also includes a wireless communication module 700 for wireless communication with an external mobile terminal, and the wireless communication module 700 includes a CMT2300A wireless transceiver chip and its peripheral circuits. The wireless communication module 700 is connected to the single-chip microcomputer circuit 200 in communication so as to automatically control the opening and closing of the curtains. In this way, the intelligent control of the curtains can be achieved, and there is no need to manually go to the window to open and close the curtains. The operation is convenient and the quality of indoor life is improved. The wireless communication module 700 includes the setting of the CMT2300A wireless transceiver chip, which can reduce the receiving power consumption of the chip. In a specific implementation, the wireless transceiver chip of the wireless communication module 700 can also use other types of chips with similar other parameters and the same wireless communication function, such as WIFI modules, ZigBee modules, etc.
[0060] As mentioned above, this case protects a motor control circuit and a curtain controller, and all technical solutions that are the same or similar to this case should be deemed to fall within the protection scope of this case.
Claims
1. A motor control circuit, comprising a motor control circuit (100), wherein the motor control circuit (100) is connected between an external conversion circuit and an external motor circuit, characterized in that The motor control circuit (100) comprises a first logic gate control circuit (11) and a second logic gate control circuit (12); a first logic signal input terminal of the first logic gate control circuit (11) and a first logic signal input terminal of the second logic gate control circuit (12) are commonly connected to a first relay pre-control signal output terminal RELAY1 of the external conversion circuit; a second logic signal input terminal of the first logic gate control circuit (11) and a second logic signal input terminal of the second logic gate control circuit (12) are commonly connected to a second relay pre-control signal output terminal RELAY2 of the external conversion circuit; A first logic signal output terminal O1 of a logic gate control circuit (11) is connected to the coil of one of the relays of the first motor of the external motor circuit, and a second logic signal output terminal O2 of the second logic gate control circuit (12) is connected to the coil of another relay of the first motor of the external motor circuit. When the first relay pre-control signal output terminal RELAY1 and the first relay pre-control signal output terminal RELAY2 both output high-level signals, the first logic signal output terminal O1 outputs a high-level signal and the second logic signal output terminal O2 outputs a low-level signal, so as to prevent the coils of the two relays of the first motor from being powered at the same time.
2. A motor control circuit according to claim 1, characterized in that The motor control circuit (100) further comprises a third logic gate control circuit (21) and a fourth logic gate control circuit (22), wherein a first logic signal input terminal of the third logic gate control circuit (21) and a first logic signal input terminal of the fourth logic gate control circuit (22) are commonly connected to a third relay pre-control signal output terminal RELAY3 of the external conversion circuit, a second logic signal input terminal of the third logic gate control circuit (21) and a second logic signal input terminal of the fourth logic gate control circuit (22) are commonly connected to a fourth relay pre-control signal output terminal RELAY4 of the external conversion circuit, and The third logic signal output terminal O3 of the third logic gate control circuit (21) is connected to the coil of one of the relays of the second motor of the external motor circuit, and the fourth logic signal output terminal O4 of the fourth logic gate control circuit (22) is connected to the coil of another relay of the second motor of the external motor circuit. When the third relay pre-control signal output terminal RELAY3 and the fourth relay pre-control signal output terminal RELAY4 both output high-level signals, the third logic signal output terminal O3 outputs a high-level signal and the fourth logic signal output terminal O4 outputs a low-level signal to prevent the coils of the two relays of the second motor from being powered at the same time.
3. A motor control circuit according to claim 2, characterized in that The first logic gate control circuit (11) comprises a first NAND gate U5A, a second NAND gate U5B, and a first resistor R20, wherein the first input end of the first NAND gate U5A is connected to the first relay pre-control signal output end RELAY1 of the external conversion circuit and is used as the first logic signal input end of the first logic gate control circuit (11), the second input end is connected to the second relay pre-control signal output end RELAY2 of the external conversion circuit and is used as the second logic signal input end of the first logic gate control circuit (11), and the output end is connected to the input end of the second NAND gate U5B, one end of the first resistor R20 is connected to the output end of the second NAND gate U5B, and the other end is connected to the coil of one of the relays of the external motor circuit as the first logic signal output end O1; the second logic gate control circuit (12) comprises a first NOR gate U6A and a second resistor R25, the first input end of the first NOR gate U6A is connected to the first relay pre-control signal output end RELAY1 of the external conversion circuit and is used as the first logic signal input end of the second logic gate control circuit (12), the second input end is connected to the external The second relay pre-control signal output terminal RELAY2 of the conversion circuit is connected and used as the second logic signal input terminal of the second logic gate control circuit (12); one end of the second resistor R25 is connected to the output terminal of the first NOR gate U6A, and the other end is connected to the coil of another relay of the first motor of the external motor circuit as the second logic signal output terminal O2; the third logic gate control circuit (21) comprises a third NAND gate U5C, a fourth NAND gate U5D, and a third resistor R26; the first input end of the third NAND gate U5C is connected to the third relay pre-control signal RELAY3 of the external conversion circuit and used as the first logic signal input terminal of the third logic gate control circuit (21); the second input end is connected to the fourth relay pre-control signal RELAY4 of the external conversion circuit and the second logic signal input terminal of the third logic gate control circuit (21); the output end is connected to the input end of the fourth NAND gate U5D; one end of the third resistor R26 is connected to the output end of the fourth NAND gate U5D, and the other end is connected to the coil of one of the relays of the second motor of the external motor circuit as the third control signal output terminal O3;The fourth logic gate control circuit (22) comprises a second NOR gate U6B and a fourth resistor R27, wherein the first input end of the second NOR gate U6B is connected to the third relay pre-control signal RELAY3 of the external conversion circuit and is used as the first logic signal input end of the fourth logic gate control circuit (22), and the second input end is connected to the fourth relay pre-control signal RELAY4 of the external conversion circuit and is used as the second logic signal input end of the fourth logic gate control circuit (22), and one end of the fourth resistor R275 is connected to the output end of the second NOR gate U6B, and the other end is connected to the coil of another relay of the second motor of the external motor circuit as the fourth control signal output end O4.
4. A motor control circuit according to claim 3, characterized in that The first NAND gate U5A, the second NAND gate U5B, the third NAND gate U5C and the fourth NAND gate U5D all use a logic gate chip of model SN74HC01 D, and the first NOR gate U6A and the second NOR gate U6B all use a logic gate chip of model MC74HC02AD.
5. A curtain controller, comprising a curtain controller body (1000), characterized in that The curtain controller body (1000) comprises a single-chip microcomputer circuit (200), a conversion circuit (300), a power supply circuit (400) for supplying power to the controller, and a motor control circuit (100) according to any one of claims 1 to 4, wherein the single-chip microcomputer circuit (200) is connected to the motor control circuit (100) via the conversion circuit (300).
6. A curtain controller according to claim 5, characterized in that The conversion circuit (300) comprises a first shift register circuit (301) and a second shift register circuit (302); the first shift register circuit (301) comprises a first shift register U3 and its peripheral circuits; the second shift register circuit (302) comprises a second shift register U4 and its peripheral circuits; and part of the parallel data output ends of the first shift register U3 are connected to the motor control circuit (100) as relay pre-control signal output ends.
7. A curtain controller according to claim 5 or 6, characterized in that The parallel data output end of the second shift register U4 is connected to a key circuit (500), the key circuit (500) is composed of a plurality of double-pole single-throw switches connected in parallel, the single-chip circuit (200) controls the opening or closing of different double-pole single-throw switches of the key circuit (500) through the second shift register U4, and some parallel data output ends of the first shift register U3 are connected to an indicator light circuit (600), the indicator light circuit (600) is composed of a plurality of light-emitting diodes connected in parallel, and the single-chip circuit (200) controls the lighting of different light-emitting diodes of the indicator light circuit (600) through the first shift register U3.
8. A curtain controller according to claim 5, characterized in that The single-chip computer circuit (200) comprises a single-chip computer U2 of model STM32F03X and its peripheral circuits.
9. A curtain controller according to claim 5, characterized in that The power supply circuit (400) comprises a CMOS linear regulator U7 of model SGM2019-3.3G / TR and its peripheral circuits.
10. A curtain controller according to claim 5, characterized in that The curtain controller body (1000) further comprises a wireless communication module (700) for wirelessly communicating with an external mobile terminal, wherein the wireless communication module (700) comprises a CMT2300A wireless transceiver chip and its peripheral circuits, and the wireless communication module (700) is connected in communication with the single-chip microcomputer circuit (200) so as to automatically control the opening and closing of the curtain.
