Motor driving circuit and intelligent bed electric control system

By using a forward and reverse adjustment relay and a speed control module in the smart bed electric actuator to replace the PMOS in the traditional H-bridge circuit, the problem of unstable motor drive is solved, achieving more stable motor control and extending the life of the equipment.

CN221929652UActive Publication Date: 2024-10-29JASON FURNITURE(HANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323598595.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-10-29
Estimated Expiration
2033-12-27

AI Technical Summary

Technical Problem

The H-bridge circuit in the existing smart bed electric actuator uses PMOS, which results in unstable forward and reverse drive and speed regulation of the motor, complex process and high defective rate.

Method used

Using a motor drive circuit that does not use PMOS, it adjusts the relay, switch module and speed regulation module through forward and reverse rotation, and uses the MCU to output switching signals and speed regulation signals to control the forward and reverse rotation and speed regulation of the motor, avoiding the complexity of the traditional H-bridge circuit. .

Benefits of technology

It improves the stability of the motor drive circuit, extends the service life of the circuit and motor, simplifies the control logic, and reduces the use of MCU ports and the risk of burnout in traditional H-bridge circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221929652U_ABST
    Figure CN221929652U_ABST
Patent Text Reader

Abstract

The utility model relates to the technical field of intelligent bed control parts, in particular to a motor drive circuit and an intelligent bed electronic control system, a control module is connected to a switch module and a speed regulation module, and the control module is used for outputting a switch signal to the switch module and also used for outputting a speed regulation signal to the speed regulation module; the switch module is connected to the forward and reverse rotation adjusting relay so as to receive the switch signal and generate a corresponding forward and reverse rotation control signal to the forward and reverse rotation adjusting relay. The positive and negative rotation adjusting relay is respectively connected to a motor positive electrode M + and a motor negative electrode M-, is also connected to the VCC and the ground, and is used for acquiring a positive and negative rotation control signal and controlling the motor positive electrode M + to be connected to the VCC, the motor negative electrode M-to be grounded or the motor positive electrode M + to be grounded and the motor negative electrode M-to be connected to the VCC according to the positive and negative rotation control signal; the speed regulation module is further connected to the forward and reverse rotation regulation relay so as to control on or off of the forward and reverse rotation regulation relay and carry out speed regulation. The utility model has the effect of improving the stability of the circuit without using a PMOS (P-channel Metal Oxide Semiconductor).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent bed control components, and in particular to a motor drive circuit and an intelligent bed electronic control system. Background Art

[0002] With the continuous development of technology, more and more users choose to replace their current traditional homes with smart homes, and smart beds are one of the important home products in smart homes.

[0003] Currently, many smart beds have an angle adjustment function, which uses an electric push rod set under the bed to push the bed board to adjust the angle so that the bed board can be raised or lowered to match the user's needs. In current technology, a set of H-bridge circuits are used to drive the forward and reverse control and speed regulation of the motor in the electric push rod, such as Figure 1 As shown, the H-bridge circuit includes Q1 and Q2 connected to the positive pole M+ of the motor, and also includes Q3 and Q4 connected to the negative pole M- of the motor, wherein Q1 and Q2 together constitute the upper bridge arm, Q3 and Q4 together constitute the lower bridge arm, Q1 and Q3 are PMOS, and Q2 and Q4 are NMOS, and the gates of the four MOS tubes are all connected to the MCU.

[0004] When Q1 of the upper bridge arm and Q4 of the lower bridge arm are turned on, the positive pole M+ of the motor is connected to VCC, and the negative pole M- of the motor is connected to the ground, and the motor rotates forward; when Q2 of the upper bridge arm and Q4 of the lower bridge arm are turned on, the positive pole M+ of the motor is grounded, and the negative pole M- of the motor is connected to VCC, and the motor rotates reversely. The motor speed can be adjusted by adjusting the time ratio of the lower bridge arm being turned on or off.

[0005] However, in the H-bridge circuit in the above-mentioned related art, Q1 and Q3 need to use PMOS, but the process of PMOS is complex and the defect rate is high, resulting in instability when the motor is driven forward and reverse or the speed is adjusted. Summary of the invention

[0006] The purpose of the present application is to provide a motor driving circuit which does not use PMOS to improve circuit stability.

[0007] In a first aspect, the present application provides a motor drive circuit, which adopts the following technical solution:

[0008] A motor drive circuit includes a control module, a switch module, a speed control module and a forward and reverse regulating relay, wherein:

[0009] The control module is connected to the switch module and the speed regulating module respectively, and the control module is used to output a switch signal to the switch module and also to output a speed regulating signal to the speed regulating module;

[0010] The switch module is connected to the forward and reverse regulating relay to receive the switch signal and generate a corresponding forward and reverse control signal to the forward and reverse regulating relay;

[0011] The forward and reverse regulating relay is respectively connected to the positive pole M+ of the motor and the negative pole M- of the motor, and is also connected to VCC and ground. The forward and reverse regulating relay is used to obtain the forward and reverse control signal, and control the positive pole M+ of the motor and the negative pole M- of the motor to be in a forward state or a reverse state according to the forward and reverse control signal. In the forward state, the positive pole M+ of the motor is connected to VCC, and the negative pole M- of the motor is grounded. In the reverse state, the positive pole M+ of the motor is grounded, and the negative pole M- of the motor is connected to VCC.

[0012] The speed regulating module 3 is also connected to the motor to control the motor to be turned on or off. The speed regulating module 3 receives the speed regulating signal and controls the on-off time ratio of the motor according to the speed regulating signal to perform speed regulation.

[0013] In other embodiments, the speed regulation module includes a first MOS tube M1, the gate of which is connected to the control module to receive the speed regulation signal, the source is grounded, the drain is connected to the negative pole M- of the motor, and the first MOS tube M1 is noms.

[0014] In other embodiments, the switch module includes a first transistor Q5, the base of the first transistor Q5 is connected to the control module, the emitter is grounded, the collector is connected to VCC, and the collector of the first transistor Q5 and VCC are connected to the forward and reverse regulation relay.

[0015] In some other embodiments, the forward and reverse regulating relay includes a first coil end and a first contact end, wherein:

[0016] The first coil end includes a fourth pin and a fifth pin, the fourth pin is connected to VCC, and the fifth pin is connected to the collector of the first transistor Q5;

[0017] The first contact end includes a first pin, a second pin, a third pin, a sixth pin, a seventh pin and an eighth pin, the third pin is connected to the positive pole M+ of the motor, the sixth pin is connected to the negative pole M- of the motor, the second pin and the eighth pin are connected to VCC, and the first pin and the sixth pin are both connected to the drain of the first MOS tube M1;

[0018] The third pin and the sixth pin are movable contacts, the second pin and the seventh pin are normally closed contacts, and the first pin and the eighth pin are normally open contacts.

[0019] In some other embodiments, the switch module further includes a first diode D1 , wherein an anode of the first diode D1 is connected to VCC, and a cathode of the first diode D1 is connected to a collector of the first transistor Q5 .

[0020] In other embodiments, the switch module includes a forward circuit and a reverse circuit. The forward circuit is used to obtain the switch signal, and generate a corresponding forward control signal according to the switch signal and send it to the forward and reverse regulating relay to control the forward rotation of the motor. The reverse circuit is used to obtain the switch signal, and generate a corresponding reverse control signal according to the switch signal and send it to the forward and reverse regulating relay to control the reverse rotation of the motor. The forward control signal and the reverse control signal are both included in the forward and reverse control signal.

[0021] In some other embodiments, the forward rotation circuit includes a second transistor Q6, the base of the second transistor Q6 is connected to the control module, the emitter is grounded, and the collector is connected to VCC;

[0022] The inversion circuit comprises a third transistor Q7, the base of the third transistor Q7 is connected to the control module, the emitter is grounded, and the collector is connected to VCC;

[0023] The second transistor Q6 and VCC are connected to the forward and reverse regulating relay, and the third transistor Q7 and VCC are connected to the forward and reverse regulating relay.

[0024] In some other embodiments, the forward and reverse regulating relay includes a second coil end, a third coil end, a second contact end and a third contact end, wherein:

[0025] The second coil end includes a first pin and a second pin, the first pin is connected to VCC, the second pin is connected to the collector of the second transistor Q6, the third coil end includes a third pin and a fourth pin, the third pin is connected to VCC, and the fourth pin is connected to the collector of the third transistor Q7;

[0026] The second contact terminal includes a fifth pin and a sixth pin, the fifth pin is connected to VCC, the sixth pin is connected to the positive pole M+ of the motor, the third contact terminal includes a seventh pin and an eighth pin, the seventh pin is connected to the drain of the first MOS tube M1, the eighth pin is connected to the negative pole M- of the motor, and the sixth pin is connected to the seventh pin;

[0027] The sixth pin and the eighth pin are movable contacts, there are two normally open contacts on the fifth pin, and there are two normally closed contacts on the seventh pin, and each of the movable contacts corresponds to one normally open contact and one normally closed contact.

[0028] In some other embodiments, the switch module further includes a second diode D2 and a third diode D3, wherein the anode of the second diode D2 is connected to VCC, and the cathode of the second diode D2 is connected to the collector of the second transistor Q6; the anode of the third diode D3 is connected to VCC, and the cathode of the third diode D3 is connected to the collector of the third transistor Q7.

[0029] In the second aspect, the present application provides an intelligent bed electric control system, which adopts the following technical solution:

[0030] An intelligent bed electronic control system includes the above-mentioned motor drive circuit, and also includes a control box, a power module, and an electric push rod. The control box is used to place the motor drive circuit, the power module is connected to the control box to provide a power supply voltage, and the electric push rod is electrically connected to the control box, and telescopic and telescopic speed regulation are achieved through the forward and reverse rotation and speed regulation of the motor.

[0031] In summary, the present application includes at least one of the following beneficial technical effects:

[0032] 1. Avoid using PMOS in the traditional H-bridge circuit by adjusting the forward and reverse relays and the corresponding switch module and speed control module, making the control circuit more stable;

[0033] 2. Wait for the motor to stop and then activate the forward and reverse regulating relay without power to extend the service life of the entire circuit and the motor;

[0034] 3. Fewer MCU ports can be used to achieve motor forward and reverse rotation and speed regulation;

[0035] 4. The control logic is simpler, reducing the risk of the circuit being burned out due to the opening of the upper and lower arms of the traditional H-bridge circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is a circuit diagram of an H-bridge circuit in current technology;

[0037] Figure 2 It is a circuit diagram of some embodiments of the present application;

[0038] Figure 3 It is a circuit diagram of some embodiments of the present application;

[0039] Figure 4 It is a structural diagram of the electronic control system of the smart bed in this application;

[0040] In the figure, 1. control module; 2. switch module; 21. forward circuit; 22. reverse circuit; 3. speed control module; 4. forward and reverse regulating relay; 41. first coil end; 42. first contact end; 43. second coil end; 44. third coil end; 45. second contact end; 46. third contact end; 5. control box; 6. power module; 7. electric push rod. DETAILED DESCRIPTION

[0041] The following is combined with Figure 2 -Attached Figure 4 , further details of this application are given.

[0042] like Figure 2 and Figure 3 As shown, the present application discloses a motor drive circuit, including a control module 1, a switch module 2, a speed regulation module 3 and a forward and reverse regulation module.

[0043] The control module 1 is connected to the switch module 2 and the speed regulating module 3 respectively. The control module 1 is used to output a switch signal to the switch module 2 and also to output a speed regulating signal to the speed regulating module 3 .

[0044] The control module 1 in the embodiment of the present application is an MCU chip, which can output different level control signals through the IO port, and control the speed by generating different level control signals.

[0045] The switch module 2 is connected to the forward and reverse regulating relay 4 to receive a switch signal and generate a corresponding forward and reverse control signal to the forward and reverse regulating relay 4 .

[0046] The switch signal is an IO signal of different levels. The switch module 2 can change its on-off state through the IO signal to generate different level forward and reverse control signals to control the forward and reverse regulating relay 4 to perform forward and reverse switching.

[0047] The forward and reverse regulating relay 4 is connected to the positive pole M+ of the motor and the negative pole M- of the motor respectively. It is also connected to VCC and ground. The forward and reverse regulating relay 4 is used to obtain the forward and reverse control signal, and control the positive pole M+ of the motor and the negative pole M- of the motor to be in the forward state or the reverse state according to the forward and reverse control signal.

[0048] In the forward rotation state, the positive pole M+ of the motor is connected to VCC, and the negative pole M- of the motor is grounded. In the reverse rotation state, the positive pole M+ of the motor is grounded, and the negative pole M- of the motor is connected to VCC.

[0049] The forward and reverse regulating relay 4 adjusts the rotation direction by adjusting the connection direction between the motor positive pole M+ and the motor negative pole M- and VCC and the ground according to different forward and reverse control signals.

[0050] The speed regulating module 3 is also connected to the motor to control the motor to be turned on or off. The speed regulating module 3 receives a speed regulating signal and controls the on-off time ratio of the motor according to the speed regulating signal to perform speed regulation.

[0051] The speed control module 3 has two functions: one is to control the on or off of the motor through speed control signals of different levels, and the other is to control the speed of the motor through the on-off time ratio of the speed control signals of different levels. The on-off time ratio is characterized by the duty cycle of the signal output.

[0052] Through the above method, the corresponding switch module 2 and the speed control module 3 are set, and the forward and reverse regulation relay 4 is controlled by these two modules, and the forward and reverse regulation relay 4 is used to drive the motor for forward and reverse regulation drive and speed regulation. The forward and reverse regulation relay 4 is a relay, and its own working characteristics are more stable than those of PMOS, so the forward and reverse drive and speed regulation process will also be more stable.

[0053] In other embodiments, the speed control module 3 includes a first MOS tube M1, the gate of which is connected to the control module 1 to receive the speed control signal, the source is grounded, the drain is connected to the negative pole M- of the motor, and the first MOS tube M1 is an NMOS.

[0054] In the present application, the gate of the first MOS tube M1 is connected to the IO port M_PWM of the MCU corresponding to the control module 1. When M_PWM outputs a high level, the N-channel first MOS tube M1 is turned on, and the motor connected to its drain is turned on and works. When M_PWM outputs a low level, the N-channel first MOS tube M1 is turned off, and the motor connected to its drain stops working. The speed of subsequent motor operation is adjusted by adjusting the time ratio of the first MOS tube M1 being turned on and off (the duty cycle output by M_PWM).

[0055] like Figure 2 As shown, in other embodiments, the switch module 2 includes a first transistor Q5, the base of the first transistor Q5 is connected to the control module 1, the emitter is grounded, the collector is connected to VCC, and the collector of the first transistor Q5 and VCC are connected to the forward and reverse regulating relay 4.

[0056] The base of the first transistor Q5 is connected to the IO port M_DR of the MCU corresponding to the control module 1. When M_DR outputs a low level, the first transistor Q5 is turned off. When M_DR outputs a high level, the first transistor Q5 is turned on.

[0057] The forward and reverse regulating relay 4 includes a first coil terminal 41 and a first contact terminal 42 .

[0058] The first coil end 41 includes a fourth pin and a fifth pin. The fourth pin is connected to VCC, and the fifth pin is connected to the collector of the first transistor Q5.

[0059] The first contact terminal 42 includes a first pin, a second pin, a third pin, a sixth pin, a seventh pin and an eighth pin, the third pin is connected to the positive pole M+ of the motor, the sixth pin is connected to the negative pole M- of the motor, the second pin and the eighth pin are connected to VCC, and the first pin and the sixth pin are both connected to the drain of the first MOS tube M1;

[0060] The third pin and the sixth pin are moving contacts, the second pin and the seventh pin are normally closed contacts, and the first pin and the eighth pin are normally open contacts.

[0061] The forward and reverse regulating relay 4 in the embodiment of the present application is a double-pole double-throw single-coil 8-pin relay, which includes a coil and two sets of adjustable contacts. The available models include but are not limited to: JQX-115F, G2RL-24.

[0062] A coil is connected to the collector of the first transistor Q5. When the coil is not energized, the second pin and the third pin are normally closed, and the sixth pin and the seventh pin are normally closed.

[0063] When M_DR outputs a low level and the first transistor Q5 is turned off, the coil of the forward and reverse regulating relay 4 is not energized, the positive pole M+ of the motor is connected to VCC through the third pin and the second pin, and the negative pole M- of the motor is connected to the drain of the first MOS tube M1 through the sixth pin and the seventh pin. When the forward and reverse regulating relay 4 is working, the first MOS tube M1 used to control its conduction or shutdown must be in a conducting state, so the seventh pin is connected to the drain of the first MOS tube M1 and grounded after passing through the first MOS tube M1, so the motor can achieve forward rotation.

[0064] When M_DR outputs a high level and the first transistor Q5 is turned on, the moving contact of the third pin is thrown to the first pin, and the moving contact of the sixth pin is thrown to the eighth pin. The negative pole M- of the motor is connected to VCC through the sixth pin and the eighth pin, and the positive pole M+ of the motor is connected to the drain of the first MOS tube M1 through the third pin and the first pin, and is grounded after passing through the first MOS tube M1, so the motor can achieve reverse rotation.

[0065] The switch module 2 further includes a first diode D1 , an anode of the first diode D1 is connected to VCC, and a cathode of the first diode D1 is connected to the collector of the first transistor Q5 .

[0066] The first diode D1 is a shunt diode, which is used to release the reverse electromotive force when the coil of the forward and reverse regulating relay 4 is powered off.

[0067] It should be noted that when the forward and reverse regulating relay 4 needs to switch contacts, the first MOS tube M1 needs to be turned off first, and the forward and reverse regulating relay 4 needs to be operated without power when the motor is stopped, so as to extend the service life of the entire circuit and the motor.

[0068] like Figure 3 As shown, in other embodiments, the switch module 2 includes a forward circuit 21 and a reverse circuit 22, the forward circuit is used to obtain a switch signal, and generate a corresponding forward control signal according to the switch signal and send it to the forward and reverse regulating relay 4 to control the forward rotation of the motor, the reverse circuit 22 is used to obtain a switch signal, and generate a corresponding reverse control signal according to the switch signal and send it to the forward and reverse regulating relay 4 to control the reverse rotation of the motor, and the forward control signal and the reverse control signal are both included in the forward and reverse control signal

[0069] In the embodiment of the present application, the forward and reverse rotations of the motor are regulated independently through two independent circuits.

[0070] Specifically, the forward rotation circuit 21 includes a second transistor Q6 , the base of the second transistor Q6 is connected to the control module 1 , the emitter is grounded, and the collector is connected to VCC.

[0071] The inversion circuit 22 includes a third transistor Q7 , the base of the third transistor Q7 is connected to the control module 1 , the emitter is grounded, and the collector is connected to VCC.

[0072] The second transistor Q6 and VCC are connected to the forward and reverse regulating relay 4, and the third transistor Q7 and VCC are connected to the forward and reverse regulating relay 4.

[0073] The base of the second transistor Q6 is connected to the IO port M_F of the control module 1 , and the base of the third transistor Q7 is connected to the IO port M_R of the control module 1 .

[0074] When M_F outputs a low level, the second transistor Q6 is turned off, and when M_F outputs a high level, the second transistor Q6 is turned on.

[0075] When M_R outputs a low level, the third transistor Q7 is turned off, and when M_R outputs a high level, the third transistor Q7 is turned on.

[0076] The forward and reverse regulating relay 4 includes a second coil terminal 43, a third coil terminal 44, a second contact terminal 45 and a third contact terminal 46, wherein:

[0077] The second coil end 43 includes a first pin and a second pin, the first pin is connected to VCC, the second pin is connected to the collector of the second transistor Q6, and the third coil end 44 includes a third pin and a fourth pin, the third pin is connected to VCC, and the fourth pin is connected to the collector of the third transistor Q7;

[0078] The second contact terminal 45 includes a fifth pin and a sixth pin, the fifth pin is connected to VCC, the sixth pin is connected to the positive electrode M+ of the motor, and the third contact terminal 46 includes a seventh pin and an eighth pin, the seventh pin is connected to the drain of the first MOS tube M1, the eighth pin is connected to the negative electrode M- of the motor, and the sixth pin and the seventh pin are connected;

[0079] The sixth pin and the eighth pin are moving contacts, there are two normally open contacts on the fifth pin, and there are two normally closed contacts on the seventh pin, and each moving contact corresponds to one normally open contact and one normally closed contact.

[0080] The forward and reverse regulating relay 4 in the embodiment of the present application is a double-pole double-throw double-coil 8-pin relay, which includes two coils and two sets of adjustable contacts. The available models include but are not limited to: HFKF-12-BZSPT, ACJ2112.

[0081] The two coils correspond to the second transistor Q6 and the third transistor Q7 respectively.

[0082] When the second transistor Q6 receives a high level and is turned on, and the third transistor Q7 receives a low level and is turned off, the second coil end 43 is energized, the third coil end 44 is not energized, the moving contact on the sixth pin is thrown to the upper contact on the fifth pin, and the moving contact on the eighth pin is still normally closed on the seventh pin. The positive pole M+ of the motor is connected to VCC through the sixth pin and the fifth pin, and the negative pole M- of the motor is connected to the drain of the first MOS tube M1 through the eighth pin and the seventh pin, and is grounded after passing through the first MOS tube M1, so the motor can achieve forward rotation.

[0083] When the second triode Q6 receives a low level and is turned off, and the third triode Q7 receives a high level and is turned on, the second coil end 43 is not energized, and the third coil end 44 is energized. The moving contact on the sixth pin is thrown to the contact above the seventh pin, and the eighth pin is thrown to the contact on the fifth pin. The positive pole M+ of the motor is connected to the drain of the first MOS tube M1 through the sixth pin and the seventh pin, and is grounded after passing through the first MOS tube M1. The negative pole M- of the motor is connected to VCC through the eighth pin and the fifth pin, so the motor is reversed.

[0084] When the second transistor Q6 and the third transistor Q7 both receive a low level and are cut off, the motor positive electrode M+ and the motor negative electrode M- are both connected to the drain of the first MOS tube M1 and grounded through the first MOS tube M1. Therefore, the two sets of coils are not energized at this time and the motor stops.

[0085] Through the above method, it is possible to independently control the forward and reverse rotation of the motor through two independent switch sub-circuits.

[0086] The switch module 2 also includes a second diode D2 and a third diode D3, wherein the anode of the second diode D2 is connected to VCC, and the cathode of the second diode D2 is connected to the collector of the second transistor Q6; the anode of the third diode D3 is connected to VCC, and the cathode of the third diode D3 is connected to the collector of the third transistor Q7.

[0087] The second diode D2 and the third diode D3 are both shunt diodes, used to release the reverse electromotive force when the coil of the forward and reverse regulating relay 4 is powered off.

[0088] It should be noted that when the forward and reverse regulating relay 4 needs to switch contacts, the first MOS tube M1 needs to be turned off first, and the forward and reverse regulating relay 4 needs to be operated without power when the motor is stopped, so as to extend the service life of the entire circuit and the motor.

[0089] like Figure 4 As shown, the present application also discloses an intelligent bed electronic control system, including the above-mentioned motor drive circuit, and also includes a control box 5, a power module 6, and an electric push rod 7.

[0090] The control box 5 is used to house the motor drive circuit.

[0091] The power module 6 is connected to the control box 5 to provide a power supply voltage. Specifically, the power module 6 includes a power cord and a switching power supply. The power cord is connected to a socket to obtain AC power. The switching power supply is used to convert the AC power into a safe voltage through an internal isolation transformer and then power the entire system.

[0092] The electric push rod 7 is electrically connected to the control box 5, and realizes telescopic and telescopic speed regulation through the forward and reverse rotation and speed regulation of the motor. The motor is arranged inside the electric push rod 7, and the electric push rod 7 specifically includes but is not limited to the leg electric push rod 7 and the back electric push rod 7.

[0093] The implementation principle of the embodiment of the present application is:

[0094] The forward and reverse regulating relay 4 and the corresponding switch module 2 and speed regulating module 3 are used to avoid using PMOS in the traditional H-bridge circuit, so that the control circuit is more stable.

[0095] The embodiments of this specific implementation are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. The same components are represented by the same figure marks. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A motor drive circuit, characterized in that: It comprises a control module (1), a switch module (2), a speed regulating module (3) and a forward and reverse regulating relay (4), wherein: The control module (1) is connected to the switch module (2) and the speed regulating module (3) respectively, and the control module (1) is used to output a switch signal to the switch module (2) and also to output a speed regulating signal to the speed regulating module (3); The switch module (2) is connected to the forward and reverse regulating relay (4) to receive the switch signal and generate a corresponding forward and reverse control signal to the forward and reverse regulating relay (4); The forward and reverse regulating relay (4) is respectively connected to the positive pole (M+) and the negative pole (M-) of the motor, and is also connected to VCC and ground. The forward and reverse regulating relay (4) is used to obtain the forward and reverse control signal, and control the positive pole (M+) and the negative pole (M-) of the motor to be in a forward state or a reverse state according to the forward and reverse control signal. In the forward state, the positive pole (M+) of the motor is connected to VCC, and the negative pole (M-) of the motor is grounded. In the reverse state, the positive pole (M+) of the motor is grounded, and the negative pole (M-) of the motor is connected to VCC. The speed regulation module (3) is also connected to the motor to control the motor to be turned on or off. The speed regulation module (3) receives the speed regulation signal and controls the on-off time ratio of the motor according to the speed regulation signal to perform speed regulation.

2. The motor drive circuit according to claim 1, characterized in that: The speed regulation module (3) comprises a first MOS tube (M1), the gate of the first MOS tube (M1) is connected to the control module (1) to receive the speed regulation signal, the source is grounded, the drain is connected to the negative pole (M-) of the motor, and the first MOS tube (M1) is noms.

3. The motor drive circuit according to claim 2, characterized in that: The switch module (2) comprises a first transistor (Q5), the base of the first transistor (Q5) is connected to the control module (1), the emitter is grounded, the collector is connected to VCC, and the collector of the first transistor (Q5) and VCC are connected to the forward and reverse regulating relay (4).

4. The motor drive circuit according to claim 3, characterized in that: The forward and reverse regulating relay (4) comprises a first coil end (41) and a first contact end (42), wherein: The first coil end (41) comprises a fourth pin and a fifth pin, the fourth pin is connected to VCC, and the fifth pin is connected to the collector of the first transistor (Q5); The first contact terminal (42) comprises a first pin, a second pin, a third pin, a sixth pin, a seventh pin and an eighth pin, the third pin is connected to the positive pole (M+) of the motor, the sixth pin is connected to the negative pole (M-) of the motor, the second pin and the eighth pin are connected to VCC, and the first pin and the sixth pin are both connected to the drain of the first MOS tube (M1); The third pin and the sixth pin are movable contacts, the second pin and the seventh pin are normally closed contacts, and the first pin and the eighth pin are normally open contacts.

5. The motor drive circuit according to claim 4, characterized in that: The switch module (2) further comprises a first diode (D1), wherein an anode of the first diode (D1) is connected to VCC, and a cathode of the first diode (D1) is connected to a collector of the first transistor (Q5).

6. The motor drive circuit according to claim 2, characterized in that: The switch module (2) comprises a forward rotation circuit (21) and a reverse rotation circuit (22); the forward rotation circuit (21) is used to obtain the switch signal, and generate a corresponding forward rotation control signal according to the switch signal and send it to the forward and reverse rotation regulating relay (4) to control the forward rotation of the motor; the reverse rotation circuit (22) is used to obtain the switch signal, and generate a corresponding reverse rotation control signal according to the switch signal and send it to the forward and reverse rotation regulating relay (4) to control the reverse rotation of the motor; the forward rotation control signal and the reverse rotation control signal are both included in the forward and reverse rotation control signal.

7. The motor drive circuit according to claim 6, characterized in that: The forward rotation circuit (21) comprises a second transistor (Q6), wherein the base of the second transistor (Q6) is connected to the control module (1), the emitter is grounded, and the collector is connected to VCC; The inversion circuit (22) comprises a third transistor (Q7), the base of the third transistor (Q7) is connected to the control module (1), the emitter is grounded, and the collector is connected to VCC; The second transistor (Q6) and VCC are connected to the forward and reverse regulating relay (4), and the third transistor (Q7) and VCC are connected to the forward and reverse regulating relay (4).

8. The motor drive circuit according to claim 7, characterized in that: The forward and reverse regulating relay (4) comprises a second coil end (43), a third coil end (44), a second contact end (45) and a third contact end (46), wherein: The second coil end (43) comprises a first pin and a second pin, the first pin is connected to VCC, the second pin is connected to the collector of the second transistor (Q6), and the third coil end (44) comprises a third pin and a fourth pin, the third pin is connected to VCC, and the fourth pin is connected to the collector of the third transistor (Q7); The second contact terminal (45) comprises a fifth pin and a sixth pin, the fifth pin is connected to VCC, the sixth pin is connected to the positive pole (M+) of the motor, the third contact terminal (46) comprises a seventh pin and an eighth pin, the seventh pin is connected to the drain of the first MOS tube (M1), the eighth pin is connected to the negative pole (M-) of the motor, and the sixth pin is connected to the seventh pin; The sixth pin and the eighth pin are movable contacts, there are two normally open contacts on the fifth pin, and there are two normally closed contacts on the seventh pin, and each of the movable contacts corresponds to one normally open contact and one normally closed contact.

9. The motor drive circuit according to claim 8, characterized in that: The switch module (2) further comprises a second diode (D2) and a third diode (D3); the anode of the second diode (D2) is connected to VCC, and the cathode of the second diode (D2) is connected to the collector of the second transistor (Q6); the anode of the third diode (D3) is connected to VCC, and the cathode of the third diode (D3) is connected to the collector of the third transistor (Q7).

10. An intelligent bed electric control system, characterized in that: The invention comprises a motor drive circuit as claimed in any one of claims 1 to 9, and further comprises a control box (5), a power module (6), and an electric push rod (7), wherein the control box (5) is used to place the motor drive circuit, the power module (6) is connected to the control box (5) to provide a power supply voltage, and the electric push rod (7) is electrically connected to the control box (5), and realizes telescopic movement and telescopic speed regulation through forward and reverse rotation and speed regulation of the motor.