Disclosure of Invention
The invention aims to provide a development board for identifying a small motor, which can identify and obtain a transfer function required by an experiment through an output signal and a motor voltage signal of a motor encoder and the control of the development board, can reduce the time required by an identification experiment of a motor system and has strong reusability.
The technical solution for realizing the purpose of the invention is as follows: a development board for identifying a small motor comprises an MCU chip, a motor voltage detection port, a motor speed detection port, a digital display screen, a communication chip and a power supply chip; the motor voltage detection port is used for detecting the real-time voltage of the motor; the motor speed detection port is used for detecting the real-time rotating speed of the motor; the MCU chip is used for processing the input motor voltage and speed signals and calculating to obtain a required transfer function; the communication chip is used for information exchange between the upper computer and the MCU; the digital display screen is used for setting identification requirements and displaying a transfer function; the power supply chip is used for stably developing voltage and current on the board.
Furthermore, motor voltage detection port and rotational speed detection port have 2 and 4 row needles respectively for connect the positive negative pole of A looks, B looks, encoder VCC and GND and motor of motor encoder.
Furthermore, the MCU chip adopts an stm32f103 chip, and the imported rotating speed and voltage signals are processed and transmitted into the single chip microcomputer through a timer peripheral and an A/D peripheral of the MCU.
Furthermore, the motor voltage detection port enables the input electric signal to reach a voltage range capable of being input into the single chip microcomputer through the voltage scaling circuit.
Furthermore, a shell is arranged outside the development board, four direction keys and a center key are arranged on the shell, the four direction keys adjust menu options in the digital display screen up, down, left and right, and the center key is used for determining the current options.
Furthermore, a mode identified by the system and identified parameters are selected through the direction keys and the center key, wherein the mode comprises the selection of the tested brush and brushless motor, the selection of the medium and small motor and the selection of the alternating current and direct current motor; the parameters comprise the order of the system, the frequency sweeping frequency and the frequency sweeping wave type.
Furthermore, the motor voltage detection port and the rotating speed detection port are arranged on the side face of the shell, and the digital display screen, the direction keys and the center key are arranged on the front face of the shell.
Furthermore, the side surface of the shell is also provided with a power supply port which is arranged at the same side of the motor voltage detection port and the rotating speed detection port, the power supply port adopts USB power supply, and meanwhile, data interaction between the communication chip and the upper computer is realized.
Further, the communication chip employs CH 340.
Furthermore, the development board also comprises a function signal generator and a power amplifier, wherein the function signal generator is used as a motor excitation source, the power amplifier amplifies the current generated by the function signal generator and is used for driving the motor, and the power amplifier is connected with the motor through a motor voltage detection port.
Compared with the prior art, the invention has the beneficial effects that: the invention can conveniently detect the transfer function of the small-sized direct current motor, can realize different identification requirements through interaction of the digital display screen and the MCU, can detect the rotating speed and the voltage of the motor in real time, simplifies complicated motor identification experiments and later data statistics and processing, and saves a large amount of time and resources.
Detailed Description
The invention integrates the process of identifying the small motor system on a development board, and can display the result on a digital display screen only by inputting a motor encoder signal and a voltage signal and calculating through an internal program. And through a human-computer interaction interface, parameters of the identification program can be set through keys, and the model can be identified as required. The scheme is designed as follows:
1) the design program is used for outputting frequency-sweep waves with variable frequency ranges, receiving input voltage and rotating speed signals, processing the signals to obtain corresponding identification models, and displaying the identification models through a digital display screen.
2) Parameters in the identification program can be adjusted through keys, and the order of the model can be adjusted, so that the model can be used for different function models required under different experimental conditions.
3) The frequency sweep wave with adjustable input voltage and power and a certain frequency range is input to the motor through the built-in function signal generator.
4) And designing an integral circuit board, and arranging a power supply chip, an MCU chip, an external communication chip and the like. The MCU chip is used for signal processing, and data after the signal processing is identified and processed to obtain a transfer function model.
The voltage signal processing comprises real-time voltage measurement and real-time power detection and is used for alarming; the rotation speed signal processing is mainly used for measuring the rotation speed in real time.
As shown in fig. 1 and 2, the development board for small motor identification provided by the invention comprises an MCU chip, a motor voltage detection port 5, a motor speed detection port 6, a digital display screen 1, a communication chip and a power chip;
the motor voltage detection port 5 and the rotating speed detection port 6 are respectively provided with 2 pins and 4 pins and are used for connecting the phase A and the phase B of a motor encoder, the encoders VCC and GND and the positive and negative electrodes of the motor; the internal MCU uses an stm32f103 chip, and the imported rotating speed and voltage signals are processed and transmitted into the single chip microcomputer through a timer peripheral and an A/D peripheral of the MCU; the power supply port 4 inputs a power supply to the inside of the development board and supplies power to the development board.
The motor voltage detection port 5 enables the input electric signal to reach a voltage range which can be input into the single chip microcomputer through the voltage scaling circuit.
And all signals are processed by the motor voltage detection port 5 and the rotating speed detection port 6 and then are sent to the MCU for algorithm processing. After the MCU algorithm processing, displaying the identified model result through a digital display screen 1; the four direction keys 2 can adjust the identification model structure and other menu options up and down, left and right through a highlighted and flickering cursor, and the center key 3 can determine the current option.
And the external communication chip adopts CH340 for serial port communication and transmits measured real-time data and a transfer function model with an upper computer. The power port 4 is powered by a USB, and meanwhile data interaction between the CH340 and an upper computer can be realized.
The whole development board can conveniently detect the transfer function of the small-sized direct current motor, and the device is small in size and strong in reusability.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Examples
The whole development board comprises an MCU chip, a digital display screen, keys, a function signal generator and a whole development board shell.
The encoder A, B of the motor is connected to the pin header of the rotating speed detection port 6, and the other two pin header leads supply power to the motor encoder. And the pin header is used for connecting the positive electrode and the negative electrode of the motor to the motor voltage detection port 5 and providing a frequency sweeping signal for the motor and continuously recording real-time voltage.
After the power is switched on, the mode identified by the system and the identified parameters are selected through the direction key 2, the key 3 is pressed for confirmation, the motor is electrified, and the real-time voltage and the rotating speed of the motor are detected.
After two sweep frequency time periods, the system automatically processes data, then calculates a system identification model and displays the system identification model on a digital screen, the rotating speed and the voltage of the motor at each time point can be checked through a direction key, and simultaneously, the data can be led into a computer through a data line for post-processing use.
The built-in development board comprises a function signal generator and a power amplifier, and is used for generating a frequency sweeping signal to drive a motor. The function signal generator is used as a motor excitation source; the power amplifier amplifies the current generated by the function signal generator for driving the motor. The power amplifier is connected with the motor through a motor voltage detection port 5.
The motor rated input voltage measured by the embodiment is not more than 48V.
The invention greatly simplifies the complex and tedious procedures of the system identification experiment, integrates all components, can select different types of sweep frequency waves and different identification model parameters, and is beneficial to identification modeling and system analysis of the small-sized motor.
The invention has the advantages of simplifying the complex motor system identification experiment, realizing the short-time and high-efficiency acquisition of the required motor identification model, and having good application when facing the occasions with high transfer function complexity of the tested small motor. The invention is small, exquisite, convenient, highly reusable and convenient to operate.
The above description is only for the purpose of creating a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can substitute or change the technical solution and the inventive concept of the present invention within the technical scope of the present invention.