1 System circuit design
1.1 System solution
The circuit block diagram of this drive control system is shown in Figure 1.
In the system, LPC2124 generates two square waves with a phase difference of 90°. After the two square waves are passed through the NOR gate, they form four square waves with the original two square waves. After the four square waves are isolated, driven, DC-inverted, and resonantly matched, the sinusoidal AC signals required for the operation of the ultrasonic motor are obtained. The fine-tuning resistor is mainly used to adjust the frequency of the output PWM signal during motor debugging, which can shorten the time consumed by motor debugging. The temperature sensor is used to detect the ambient temperature of the motor. In this way, when the requirements for the first start of the motor are high, the system can provide different starting frequencies to the motor according to different ambient temperatures, which is conducive to improving the stability of the motor start. When the concave or convex teeth on the motor rotor face the Hall sensor, the current output by the Hall sensor is different. After circuit processing, the current change is converted into a square wave signal, and the square wave signal is used to detect the motor speed and position. In order to facilitate the debugging of the circuit system and the download of the program, the system sets up JTAG and UART ports. Among them, JTAG is mainly used for debugging, and of course it can also be used for program downloading. The UART port can send various data to the computer host, and can also be used for program downloading and Fl-ash erasing.
1.2 Control chip
The control chip of the ultrasonic motor drive control system is LPC2114, whose core is ARM7TDMI. The LPC2124 processor is a member of the ARM general-purpose 32-bit microprocessor family. LPC2124 uses LQFP64 package, CPU operating voltage 1.8V, internal integrated 256 kB on-chip Flash program storage area, 16 kB static RAM, 4-channel 10-bit ADC, 2 32-bit timers, 6-channel PWM output, two low-power modes, 46 GPIO and 9 external interrupts. In addition, the built-in frequency multiplier phase-locked loop (PLL) can achieve a maximum CPU operation rate of 60 MHz. At the same time, LPC2124 supports on-chip debugging and breakpoints, which is convenient for debugging of system software and hardware.
1.3 Key circuits
1.3.1 Isolation drive, push-pull, and resonant matching circuits
The isolation drive, push-pull, and resonant matching circuits are shown in Figure 2.
LPC2124 generates two square waves PWM-S and PWM-C with a phase difference of 90°. The two square waves are respectively formed into two corresponding anti-phase square waves after passing through the 74HC02D or-not gate, and the four square waves are formed into four square waves with a phase difference of 90°. After the four square waves are amplified by the MAX4427 isolation driver, the four square waves are converted into two AC square wave signals with a phase difference of 90° using a push-pull circuit composed of four MOS tubes (IRFR320) and two middle-tapped transformers. Since the ultrasonic motor requires a sinusoidal AC signal and the ultrasonic motor is a capacitive load, a series inductor is used for resonant matching. [page]
1.3.2 Temperature acquisition module
Since the resonant frequency of the ultrasonic motor is closely related to the motor structure and the working environment of the motor, and temperature is a very important factor. Therefore, a temperature sensor is added to this system to detect the ambient temperature and study the influence of temperature factors on the motor startup. The temperature sensor chip uses the LM75 chip, in which SDA and SDL are connected to the SDA and SDL of LPC2124, and a pull-up resistor is required. LM75 is an I2C interface temperature sensor with a measurement temperature range of -55 to 125°C. LM75 has converted the current temperature into a digital value, which can be directly read and used by LPC2124. LM75 can work normally after power-on, without sending commands to set or initialize the startup. In the circuit system, the A0 to A2 pins of the LM75 chip are grounded, so its slave address is 0X90. When LPC212A adopts the master mode I2C data receiving mode, the address read by the LM75 slave is 0X91. There are 4 registers inside LM75, which are accessed through I2C extended addresses. Their extended addresses are 0X00, 0X01, 0X02, and 0X03. The register address of the temperature value is 0X00, which is a 16-bit read-only register. Its temperature value is only represented by D15 to D7, and the lower 7 bits are invalid. When reading the temperature register, two bytes of data are read continuously without worrying about the automatic increase of the sub-address inside LM75. When D15 is 0, it indicates positive temperature, and when it is 1, it indicates negative temperature. D14 to D7 are 8-bit temperature values, and the least significant bit is equal to 0.5℃. So when the temperature is positive, the temperature T=(D14-D7)/2; when the temperature is negative, it is necessary to take the complement of (D14 to D7), so the temperature T=(-(D14-D7)+1)/2.
1. 3. 3 Speed and position detection module
The speed and position detection circuit is shown in Figure 3. At present, in the research on the speed or position of ultrasonic motors, due to the high accuracy of photoelectric encoders, the method used is to use photoelectric encoders to detect the speed or position. However, if the photoelectric encoder is in a relatively harsh environment such as severe vibration, it is generally unreliable. Therefore, this article uses the Hall sensor ATS642 LSH combined with the concave and convex gears installed on the motor rotor to detect the speed or position. The output of ATS642LSH is a current signal. The output current changes every time the motor rotates through a gear. The typical value of the output current is 14 mA for the high level and 7 mA for the low level. A 100 Ω resistor (R12 in Figure 3) is used to convert the current into a voltage signal. At this time, the high level is 1.4 V and the low level is 0.7 V. By comparing with the reference voltage of 1 V, the voltage signal can be converted into a square wave signal. By connecting the square wave signal to LPC2124, the controller can use the frequency and number of square wave signals to calculate the speed and position of the motor.
2 PWM control
The pulse width modulator of LPC2124 is built on the standard timer dedicated to PWM, and the PWM output is realized through matching registers and some control circuits. The pulse width modulator has a total of 7 matching registers, which can realize 6 single-edge controlled PWM outputs or 3 double-edge controlled PWM outputs, or a mixed output of the two.
Since it is impossible to simultaneously generate four PWM signals with a phase difference of 90°, only two square wave signals are output, and the other two signals are generated by inversion through the NOR gate. After setting the PWM-related control registers of LPC2124 through the PWM240UT function (as shown below), P31 and P33 (PWM2, PWM4) output two square wave signals.
Using the built-in 10-bit successive approximation A/D converter of LPC2124, the fine-tuning resistor is adjusted to change the input voltage value to adjust the output PWM frequency. Since it is a 10-bit A/D, the frequency linear adjustment range is (f, f+1 023δ), where f is the lowest output frequency and δ is the frequency modulation accuracy. f and δ are set to corresponding values according to the motor conditions. In this project, the motor resonant frequency is 33.67 kHz, the minimum frequency f is set to 30 kHz, δ is 10 Hz, and the frequency adjustment range is 30,000 to 40,230 Hz.
[page]
3 Experimental conditions
Adjust the fine-tuning resistor to change the motor operating frequency so that the motor is in the required operating state. Figure 4 is the PWM signal output by LPC2124 with a frequency of 33.82kHz.
After the two square waves are transformed into four, the square wave voltage amplitude is increased to 10 V (power supply is 10 V) by the MOS driver MAX4427, and then the four DC square waves are inverted into AC square waves with a peak-to-peak value of 80 V after passing through a 1:4 tap transformer, as shown in Figure 5. As can be seen from Figure 5, the AC square wave has obvious burrs, and the voltage amplitude is obviously insufficient to drive the motor, so before connecting the motor with a capacitive load, an inductor is connected in series to achieve filtering and resonant boosting. The sinusoidal AC signal after resonance matching is shown in Figure 6.
The square wave signal formed by the speed and position control signals collected by the Hall sensor after being processed by the circuit is shown in Figure 7. The motor rotor used in the experiment has 32 teeth in total. As can be seen from Figure 7, the motor rotates 15 teeth in 500 ms, so the motor speed is about 56 rpm.
4 Conclusion
The built-in pulse width modulator of LPC2124 is used to generate the required PWM signal, replacing the traditional discrete devices, which is conducive to the integration and miniaturization of the drive circuit. Combined with the traditional push-pull circuit, DC inverter and power amplification are realized to drive the ultrasonic motor to work. The appropriate minimum frequency f and frequency modulation accuracy δ are set, and the fine-tuning resistor is adjusted to facilitate the debugging of the motor. The temperature sensor LM75 detects the ambient temperature. The LPC2124 calculates and sets the initial frequency of the motor for the first start according to the ambient temperature value, which can effectively eliminate the frequency drift caused by temperature factors when the motor starts, and improve the reliability and stability of the motor start.
Previous article:Design of a secondary boot loader based on LPC2000 for code upgrade
Next article:Audio processing solution and circuit description based on LPC2214 and uC/OS-II
Recommended ReadingLatest update time:2024-11-17 01:37
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
- Intelligent Control Technology of Permanent Magnet Synchronous Motor (Written by Wang Jun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- 07 Test finished product + SPI driver TFT
- Unboxing the competition development board!
- Qt interface switch for Xunwei 4412 development board
- Boost circuit
- Gamma driver chip
- CC2541 Mini Development Kit User Experience Sharing + OSAL Getting Started by Wulunda
- What is the definition of the standard naming method for chip capacitors?
- Arteli-AT32F4xx_Timer 7-way PWM output
- Defense and Aerospace Receiver Introduction Coming
- What is the best way to remove tin from chip circuit boards?