Controller for motor
Technical field
The utility model relates to a kind of controller for motor.
Background technology
Electric capstan is mainly used in offroad vehicle, agricultural automobile, ATV sport(s) car, yacht and other special vehicle.Be the self-protection and the draw-gear of vehicle, ship; can carry out vehicle in adverse circumstances such as snowfield, marsh, desert, seabeach, muddy hill path saves oneself; and may be under other condition; remove obstacles, draw operations such as article, installation, be oil, the hydrology, environmental protection, forestry, traffic, public security, frontier defense, reach the indispensable safety device of other country sport.
The operation principle mechanism of electric capstan inside is: the electric power of automobile storage battery at first drives electro-motor.Drum rotates and drives driving shaft, and driving shaft drives planetary gear again, produces powerful speed reducing ratio.So the torsion that increases is transferred back to drum, drum just drives wirerope.A clutch is arranged between motor and the gear, can pass through a bat-handle switch.Brake unit is in drum inside, and when wirerope was tightened, drum will pin automatically.
For the wherein control of motor, existing controller mostly is by mechanical part and realizes that in conjunction with simple relay intelligent degree is not high, does not also have alarm mechanism for the generation of some unusual conditions.
The utility model content
The technical problems to be solved in the utility model is, overcomes the deficiency that above-mentioned prior art exists, and the controller for motor of a kind of intellectuality, automation is provided.
For solving the problems of the technologies described above, the utility model provides a kind of controller for motor, comprising:
Be used to finish detection to capstan winch supplying cell voltage, the current detecting of capstan winch, with the detection of capstan winch motor temperature, carry out the control of communication with remote controller, to the adjusting of the speed of capstan winch, close or open the master controller MCU of metal-oxide-semiconductor field effect t MOSFET;
Be used to drive the drive circuit of driver;
Be used for the remote controller communications module that communicates with remote controller;
Be used to detect the cell voltage of power supply, the battery voltage detection circuit that links to each other with the 12V battery;
Be used to detect the temperature sensing circuit of driver temperature; And
Be used to detect the current detection circuit of the electric current on the capstan winch;
Described drive circuit, remote controller communications module, battery voltage detection circuit, temperature sensing circuit and current detection circuit link to each other with described MCU respectively.
Further, described MCU comprises chip U3, and it has the flash memory Flash of 2KByte, the random access memory ram of 256Byte, 10Bit analog digital conversion AD, and the electricallyerasable ROM (EEROM) EEPROM of 256Byte.
Further, described drive circuit comprises:
Be used for and will carry out the conversion of voltage and electric current from the control signal of described MCU output, with a stage drive circuit of control secondary drive circuit, it comprises chip U5 and the capacitor C 8 that is connected thereon; And
Be used to control the secondary drive circuit of MOSFET, it comprises chip U4, U5, U6, U7, J4, J5, J7, J8, resistance R 28, R41, R33, R40, R38, R42, R39, R43, diode D1, D2, D3, D4, D5, capacitor C 9, C7, C21.
Further, described remote controller communications module comprises:
Be used for the radio communication module that communicates with Digiplex, resistance R 1, R5, R2, R6, R9, R7, R4, R8, R3 that it comprises chip J1 and is attached thereto, capacitor C 1; And
Be used for the wire communication module that communicates with wire remote control devices, it comprises chip J3.
Further, described battery voltage detection circuit comprises resistance R 20, R21, capacitor C 2, and wherein resistance R 21 is in parallel with capacitor C 2, is in series with resistance R 20 then.
Further, described current detection circuit comprises operational amplifier U1A, U1B, U1C, U1D, the resistance R 14, R16, R24, the R20 that link to each other with U1A, capacitor C 11, the resistance R 12, R22, R17, R26, the R36 that link to each other with U1B, capacitor C 13, C3, C15, the resistance R 15, R18, R21, the R25 that link to each other with U1C, capacitor C 12, the resistance R 13, R23, R19, R37, the R27 that link to each other with U1D, capacitor C 16, C14, C4.
Further, also comprise:
Linking to each other with the 12V battery, be used for the 12V voltage transitions is the 5V power regulator of 5V, and it comprises chip U10, diode D7, capacitor C 22, C23, C10, C24, inductance L 1, capacitor C 22, C23 are in parallel, D7 links to each other with diode, and capacitor C 10, C24 are in parallel, and links to each other with inductance L 1; And
Linking to each other, be used for the 5V voltage transitions with described 5V power regulator is the 3.3V power regulator of 3.3V voltage, and it comprises chip U2, and the capacitor C 17, the C18 that are attached thereto.
Further, also comprise:
Be used for after temperature, voltage, electric current surpass set point, closing automatically the protective circuit of H bridge driver, resistance R 29, R30, R31 that it comprises chip U8 and is attached thereto, capacitor C 19.
The utlity model has following useful effect: by introducing MCU and other functional circuit module, not only can realize capstan winch being carried out the control of forward and reverse by wired or wireless remotely-controlled device, the warning of power supply low-voltage, contactor high temperature alarm and abnormality treatment mechanism also are provided, have promoted intellectuality, the automatization level of controller for motor greatly.
Description of drawings
Fig. 1 is the outside connection diagram of the utility model controller for motor.
Fig. 2 is the circuit block diagram of the utility model controller for motor.
Fig. 3 is the circuit connection diagram of the utility model controller for motor.
Fig. 4 is the control flow chart of the utility model controller for motor.
Embodiment
Below in conjunction with accompanying drawing the utility model is described in detail.
Please refer to shown in Figure 1ly, the utility model controller for motor links to each other with the motor of capstan winch by two cables, and can communicate with the wire/wireless remote controller, and it is by the 12V powered battery.
Please refer to shown in Figure 2ly again, the utility model controller for motor comprises master controller MCU, the drive circuit that links to each other with MCU respectively, voltage detecting circuit, current detection circuit, temperature sensing circuit and remote controller communications module.
Please be simultaneously in conjunction with shown in Figure 3, master controller MCU is chip U3, it has the flash memory Flash of 2KByte, 256Byte random access memory ram, 10Bit analog digital conversion AD, and the electricallyerasable ROM (EEROM) EEPROM of 256Byte.MCU is mainly used in the detection of finishing capstan winch supplying cell voltage, and the detection of the current detecting of capstan winch and capstan winch motor temperature is carried out the control of communication with remote controller, to the adjusting of the speed of capstan winch, close or open metal-oxide-semiconductor field effect t MOSFET.
Drive circuit comprises a stage drive circuit and secondary drive circuit.One stage drive circuit is that the control signal of will come out from MCU is carried out the conversion of voltage and electric current, control second level drive circuit, and it comprises chip U5 and the capacitor C 8 that is connected thereon.The secondary drive circuit is the drive circuit of control MOSFET, in order to strengthen driving force, it comprises chip U4, U5, U6, U7, J4, J5, J7, J8, resistance R 28, R41, R33, R40, R38, R42, R39, R43, diode D1, D2, D3, D4, D5, capacitor C 9, C7, C21.
The H bridge driver is that the control signal that drive circuit transmits is done the more amplification of large-signal so that drive the controller-MOSFET of big electric current, the H bridge circuit can ensure control motor just commentaries on classics also reverse.
Protective circuit is to close the H bridge driver when temperature, voltage, electric current automatically after surpassing set point, thus protection H bridge driver and protection capstan winch and motor.The resistance R 29, R30, the R31 that comprise chip U8 and be attached thereto, capacitor C 19.
Remote controller communications module in the utility model comprises radio communication module and wire communication module, the radio communication module is to be used for receiving the control signal that wireless remotely-controlled device sends, comprise IN signal, OUT signal, and rate signal, with capstan winch supplying cell voltage signal, temperature signal sends to wireless remotely-controlled device simultaneously.Resistance R 1, R5, R2, R6, R9, R7, R4, R8, R3 that it comprises chip J1 and is attached thereto, capacitor C 1.
Wire communication module in the utility model is a wired communication interface circuit, is used for communicating with wired remote controller, comprises chip J3.
The utility model controller for motor also includes battery voltage detection circuit, links to each other with the 12V battery, is used to detect the cell voltage of power supply, enters low-voltage and report to the police when supply power voltage is lower than 9.1V.It comprises resistance R 10, R11, capacitor C 2, and wherein resistance R 11 is in parallel with capacitor C 2, is in series with resistance R 10 then.
The utility model controller for motor also includes temperature sensing circuit, and function is to close the H of institute bridge driver when temperature is higher than 120 ℃ when (initializing set), thus the protection capstan winch.Comprise: plug J7, resistance R 39, capacitor C 13.
The utility model controller for motor also includes current detection circuit, be used to detect the electric current on the capstan winch, it comprises operational amplifier U1A, U1B, U1C, U1D, the resistance R 14, R16, R24, the R20 that link to each other with U1A, capacitor C 11, the resistance R 12, R22, R17, R26, the R36 that link to each other with U1B, capacitor C 13, C3, C15, the resistance R 15, R18, R21, the R25 that link to each other with U1C, capacitor C 12, the resistance R 13, R23, R19, R37, the R27 that link to each other with U1D, capacitor C 16, C14, C4.
The utility model controller for motor also has 5V power regulator and 3.3V power regulator, wherein the 5V power regulator links to each other with the 12V battery, with the 12V voltage transitions is 5V, and it comprises chip U10, diode D7, capacitor C 22, C23, C10, C24, inductance L 1, capacitor C 22, C23 are in parallel, and D7 links to each other with diode, capacitor C 10, C24 are in parallel, and link to each other with inductance L 1; 3.3V power regulator then links to each other with the 5V power regulator, is 3.3V voltage with the 5V voltage transitions, gives the power supply of 2.4GHz wireless module, it comprises chip U2, and the capacitor C 17, the C18 that are attached thereto.
Please refer to shown in Figure 4ly, the control flow of the utility model controller for motor is as follows:
Step 1, controller for motor carries out initialization, and clock is 8MHz, and configuration is the AD passage of digital signal with analog signal conversion.Can no longer repeat channel arrangement in the collection of simulant signal afterwards.
Step 2, check whether controller for motor is in normal condition, comprising:
(1) whether supply power voltage is low excessively: if then close IN, OUT driver, start low-voltage then and report to the police; If not, then enter (2);
(2) whether temperature is too high: if then close IN, OUT driver, start high temperature alarm then; If not, then enter (3);
(3) whether the electric current on the capstan winch is excessive: if then close IN, OUT driver, start low-voltage then and report to the police; If not, then enter step 3.
Step 3 begins to receive the keyboard value, promptly wired or wireless remote controller transmission " IN " (the expression capstan winch just changes) or " OUT " (counter-rotating of expression capstan winch).At first judge it is " IN " or " OUT ":
If " IN ", then controller for motor sends order to remote controller, and remote controllers IN lamp is lighted, close OUT indicator light (being a LED), giving the user is " IN " to indicate current state, closes the OUT driver simultaneously, opens IN driver (the control capstan winch just changes).OUT driver, IN driver respectively are one side of aforementioned H bridge driver.
If " OUT ", then controller for motor sends order to remote controller, and remote controllers OUT lamp is lighted, and closes the IN indicating device, and giving the user is that " OUT " closes the IN driver simultaneously to indicate current state, opens OUT driver (counter-rotating of control capstan winch).
If neither " IN " neither " OUT ", then judge whether it is that key is revised in the address, if Down Drive enters controller for motor address modify feature; If not then directly Down Drive and indicating device, get back to step 2 then.
The utility model controller for motor and control method thereof are by introducing MCU and other functional circuit module, not only can realize capstan winch being carried out the control of forward and reverse by wired or wireless remotely-controlled device, the warning of power supply low-voltage, contactor high temperature alarm and abnormality treatment mechanism also are provided, have promoted intellectuality, the automatization level of controller for motor greatly.