Direct current motor drive circuit based on BTN chip and multisensor
Technical Field
The utility model relates to a direct current motor drive technical field, particularly, the utility model relates to a direct current motor drive circuit based on BTN chip and multisensor.
Background
The direct current motor is driven by direct current, and has good speed regulation performance and wide application in small-sized electric appliances. The dc motor controller is used to control the speed of the dc motor and start and stop the dc motor, and is a core of all devices that use the dc motor as an actuator. There are many methods of controlling the operation of the motor using various chips.
The defects and shortcomings of the prior art are as follows: some dc motor controllers are relatively composed of a large number of electronic components, and MOS driving and MOS transistors are additionally used, which is likely to increase the manufacturing cost and maintenance cost. And the control of the motor is not accurate enough due to the single sensor.
Disclosure of Invention
In order to look for more effectual implementation scheme, the utility model provides a DC motor drive circuit based on BTN chip and multisensor has not only reduced manufacturing cost and maintenance cost, can realize accurate control to the motor moreover, handles complicated various information in the motor function process, effectively solves the problem among the background art.
In order to realize the above-mentioned purpose, the utility model discloses a DC motor drive circuit based on BTN chip and multisensor, including the BTN chip, the BTN chip electricity respectively is connected with power step-down circuit, UART modular circuit, motor drive circuit, gyroscope modular circuit, camera modular circuit and encoder modular circuit, the BTN chip includes K66 nuclear core plate, K66 nuclear core plate includes a plurality of pin peripheral hardware, the pin peripheral hardware is connected with debugging programming interface, reset circuit, crystal oscillator circuit respectively.
Preferably, the power supply voltage reduction circuit adopts an AMS1086 power supply voltage stabilization chip, the BTN chip supplies power through the battery pack, and the AMS1086 power supply voltage stabilization chip stabilizes the voltage of the battery pack to 5V and supplies power to the BTN chip.
Preferably, the BTN chip further comprises a bluetooth module and an LCD display module, and the LCD display module and an upper computer of the BTN chip display data acquired by the sensor.
Preferably, the encoder module circuit supplies 3.3V voltage, sends data to the host computer through connecting the bluetooth, encoder module circuit includes the encoder, the encoder is compiled signal or data, is converted into the signal form that can be used to communication, transmission and storage.
Preferably, the encoder comprises a power supply line, a GND, and four pins of an A phase and a B phase, wherein the A phase and the B phase are two pulses with a phase difference of 90 degrees.
Preferably, the UART module circuit supplies 5V voltage, transmits data to an upper computer by connecting a Bluetooth module, and observes various data curve images by the upper computer.
Preferably, the BTN chip comprises a current detection circuit, a control drive circuit, a P-type MOSFET and an N-type MOSFET.
Preferably, the camera module circuit supplies a voltage of 3.3V and displays an image captured by the camera through the LCD display module.
Preferably, the gyroscope module circuit supplies 5V voltage, transmits data to an upper computer by connecting a Bluetooth module, and observes various data curve images by using the upper computer.
Compared with the prior art, the utility model discloses a DC motor drive circuit based on BTN chip and multisensor has following beneficial effect:
this technical scheme's drive circuit uses the BTN chip can save PCB board space, and BTN has current detection moreover, the excess temperature, excessive pressure, under-voltage, diagnostic function such as overcurrent and short-circuit protection, bluetooth module and LCD demonstration have also been added simultaneously, the data acquisition such as electromagnetism that obtain often comes more audio-visual display data through host computer and LCD display screen, the multisensor can be more directly perceived and accurate the function mode of the multiple motor of processing and handle complicated and manifold information.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of the core board of K66 of the present invention;
fig. 2 and 3 are schematic diagrams of the power supply voltage reducing circuit of the present invention;
fig. 4 and fig. 5 are schematic circuit diagrams of the UART module according to the present invention;
fig. 6 is a schematic diagram of the click driving circuit of the present invention;
fig. 7 is a schematic circuit diagram of a gyroscope module of the present invention;
fig. 8 is a schematic circuit diagram of a camera module according to the present invention;
fig. 9 is a schematic circuit diagram of an encoder module according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present invention, and should not be construed as limiting the present invention.
Please refer to fig. 1 to 9, the utility model discloses a dc motor drive circuit based on BTN chip and multisensor, including the BTN chip, the BTN chip is electrically connected with power step-down circuit, UART module circuit, motor drive circuit, gyroscope module circuit, camera module circuit and encoder module circuit respectively, the BTN chip includes K66 core plate, K66 core plate includes a plurality of pin peripheral hardware, the pin peripheral hardware is connected with debugging programming interface, reset circuit, crystal oscillator circuit respectively.
As shown in fig. 1, the K66 core board has a plurality of pins as peripherals, and has functions of power pins, a debug/program interface, a reset circuit, a crystal oscillator circuit, pin reset, etc., wherein the pins are multiplexed into a GPIO function, and the pins output high and low levels to realize functions of light emitting diodes, switches, etc. In addition, the K66 core board can be controlled to change the duty ratio of PWM so as to realize the stepless speed regulation function of the direct current motor.
In addition, the K66 core board has a high-speed information processing capability as a microprocessor, and can control each module.
Through the motor drive board at BTN chip driving motor, the sensor that adds moreover, gyroscope module circuit, camera module circuit and encoder module circuit combine together more effectually to control direct current motor, and use the BTN chip can save PCB board space, and BTN has diagnostic functions such as current detection, excess temperature, excessive pressure, under-voltage, overcurrent and short-circuit protection moreover.
The BTN chip further comprises a Bluetooth module and an LCD display module, and the data acquired by the sensor are displayed by the LCD display module and the upper computer of the BTN chip.
Also added bluetooth module and LCD display module simultaneously, obtained collection data such as the electromagnetism often through host computer and LCD display screen and come more audio-visual demonstration data, the multisensor can be more audio-visual and accurate the operation mode of the multiple motor of processing and handle complicated and various information.
As shown in fig. 2 and 3, the power supply voltage reduction circuit adopts an AMS1086 power supply voltage stabilization chip, the BTN chip is powered by the battery pack, and the AMS1086 power supply voltage stabilization chip stabilizes the voltage of the battery pack to 5V to supply power to the BTN chip.
The BTN chip comprises a current detection circuit, a control driving circuit, a P-type MOSFET and an N-type MOSFET, can be flexibly applied to the control driving circuit of a 2-phase or 3-phase direct-current brush or brushless motor, can simplify the circuit design and simplify the control, and can automatically turn off the input under the conditions of over-temperature, overvoltage, undervoltage, overcurrent and short circuit; when the current exceeds the calibrated maximum current, the driving chip is turned off through an I/0 enabling pin of the MCU terminal, so that the system is prevented from stopping working due to chip protection in the working process. The multiple sensors can correspondingly process various received information, and the problem that the motor is not comprehensively and accurately controlled when different information is met is solved.
As shown in fig. 9, the encoder module circuit supplies 3.3V voltage and sends data to the upper computer by connecting bluetooth, and the encoder module circuit includes an encoder which compiles and converts signals or data into a signal form that can be used for communication, transmission and storage.
The encoder comprises a power line, a GND (ground), an A-phase pin and a B-phase pin, wherein the A-phase pin and the B-phase pin are two pulses with a phase difference of 90 degrees. A, B the phase difference between two phases is 90 degrees, so it can judge the positive rotation and reverse rotation of the coder by comparing the phase A with the phase B, and the zero reference position of the coder can be obtained by the zero pulse. The function of the speed measurement of the encoder is realized, and whether the motor rotates forwards or backwards can be known.
As shown in fig. 4 and 5, the UART module circuit supplies a voltage of, for example, 5V, and transmits data to the upper computer by connecting the bluetooth module, and observes various data curve images by the upper computer.
As shown in fig. 6, the motor driving circuit is greatly simplified by adopting the circuit around the BTN chip, and the current detection circuit is designed to facilitate the detection of the current of the motor by the MCU.
As shown in fig. 7, similarly, the gyro module circuit supplies 5V voltage, transmits data to the upper computer by connecting bluetooth, and observes various data curve images by the upper computer.
As shown in fig. 8, the camera module circuit supplies 3.3V voltage, displays the image collected by the camera through the LCD display module, and can process a large amount of information through the camera to accurately control the motor.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.