Digital Signal Processor (DSP) is a microprocessor suitable for digital signal processing operations, which can realize real-time and fast digital signal processing algorithms. Usually, a DSP-based core, equipped with peripheral functional circuits required for measurement and control, is integrated into a single chip, which greatly reduces the chip price, reduces the size, makes the structure compact, convenient to use, and improves reliability. Therefore, the multi-function board with integrated DSP chip is an ideal choice for motor applications, excitation pulse control systems, and power protection systems. This paper uses the CS4U9813 programmable intelligent multi-function board of Chaotuo Industrial Control as the controller of the servo motor to realize the rear wheel steering function of the car. The board integrates TI's high-performance DSP chip TMS320F2812 .
1 Structural features of TMS320F2812[1][4]
TMS320F2812 is the most advanced and powerful 32-bit fixed-point DSP chip on the market launched by TI. It has both digital signal processing capabilities and powerful event management capabilities and embedded control functions, and is particularly suitable for industrial automation, motor, and motor servo control systems. The TMS320F2812 chip structure adopts an improved Harvard structure that separates program and data storage, 8-level pipeline operation, 128-bit key protection, almost all instructions are completed within 6.67ns (150MHZ), up to 1MB external memory interface, and up to 56 independent programmable, multi-purpose input/output (GPIO) pins. It is the best choice for realizing motion control systems. The functional block diagram is shown in Figure 1, and its main performance is as follows:
Figure 1 Functional block diagram
(1) High-performance 32-bit CPU
- Main frequency 150MHZ (clock cycle 6.67ns), low power consumption (core low voltage 1.8V, I/O port 3.3V)
- 16-bit × 16-bit and 32-bit × 32-bit multiply-and-accumulate operations and 16-bit × 16-bit dual multiply-and-accumulate
- Unified register programming mode, up to 4M words of linear program address and data address
(2) On-chip memory
- 8Kx16-bit Flash memory
- 1Kx16-bit OTP read-only memory
- L0 and L1: two 4Kx16-bit single-port random access memory (SARAM)
- H A 8Kx16-bit single-port random access memory
- M0 and M1: two 1Kx16-bit single-port random access memories
(3) Clock and system control
- Supports dynamic change of phase-locked loop frequency (PLL)
- On-chip oscillator
- Watchdog Timer Module
- A control system combining CPU-level and peripheral-level interrupts
(4) Rich peripheral devices
- Two event managers (EVA, EVB)
- Serial Peripheral Interface (SPI)
- Two serial communication interfaces (SCI), standard UART
- Enhanced Controller Area Network (ECAN)
- Multi-channel buffered serial port (MCBSP)
- 16-channel 12-bit digital-to-analog converter (ADC)
3 Implementation of four-wheel steering control system
Four-Wheel Steering (4WS) system means that during the steering process of the vehicle, the front and rear four wheels can steer as needed, which can effectively improve the vehicle's maneuverability and handling stability, and is being continuously developed and applied. When the 4WS car turns at low speed, the front and rear wheels steer in opposite phases, which can reduce the turning radius of the vehicle; when turning at high speed, the front and rear wheels mainly steer in the same phase, which can reduce the vehicle's center of mass side slip angle β, reduce the steady-state overshoot of the vehicle's yaw rate, etc., and further improve the vehicle's handling stability.
The four-wheel steering platform built in this paper is composed of a DC servo motor with a worm gear reduction mechanism, an electromagnetic clutch and an ordinary front wheel steering mechanism. The motor power supply is DC12V, the reduction ratio is set to 10: 1 (adjustable), and the electromagnetic clutch power supply is DC48V. The experimental platform is shown in Figure 2. The control strategy adopts direct yaw rate closed-loop control combining feedforward and feedback, in which the front wheel angle signal is collected by an absolute angular displacement sensor; the rear wheel angle is obtained by a high-precision incremental photoelectric encoder; the vehicle speed is obtained by a five-wheel instrument; the rear wheel steering is achieved by a DC servo motor connected to a mechanical steering mechanism through an electromagnetic clutch; the core of the ECU hardware electronic system is composed of TMS320F2812, and the structural block diagram is shown in Figure 3:
Figure 2 Experimental platform
Figure 3 Structure diagram
4 Control System Hardware Design and Simulation
According to the control strategy designed above, the ECU unit needs to collect the front wheel angle signal, rear wheel angle signal, and wheel speed signal and output the driving voltage of the motor through CPU calculation to realize automatic steering of the rear wheel. This article uses C language to compile programs to implement the designed control algorithm, and completes hardware-in-the-loop simulation debugging in the CCS (Code Compose Studio) environment when the simulator is connected. CCS2000 is a Windows-based DSP integrated development environment provided by TI for the TMS320C2000 series DSP, and is also the best DSP development software at present. In the CCS environment, program development, debugging, compilation, and linking can be carried out, and software development in assembly and C/C++ is supported. Powerful debugging tools such as breakpoints, probes, analysis, and graphic display can be used, and the output target file can be burned in the end.
4.1 Front wheel angle signal acquisition
The front wheel angle is obtained by an absolute angular displacement sensor, and the output voltage is linearly proportional to the front wheel angle, with a range of 0~12V. This article uses the ADCHA0 pin of the CS4U9806 board for sampling, and the sampling peripheral circuit DSP chip is integrated internally. This board has a single-channel sampling time of 200nS, and the input signal range can be selected by jumpers -5~+5V, 0~10V, 0~20V, and the default is -5~+5V. Due to the limited range of the front wheel angle, the jumper selects 0~10V and the sampling frequency is set to 96HZ. Part of the program design process is as follows:
4.2 Rear wheel angle signal acquisition
The rear wheel angle signal is obtained by a high-precision incremental photoelectric encoder. It converts the angle of the worm into corresponding increase or decrease count pulses according to the direction of rotation. Each rotation generates 2048 pulses, and the output is a clock signal and a direction signal. This paper uses the DICH0 (CAP2) pin to capture the clock signal, and the input pin DICH19 (GPIOF12) to obtain the direction signal. The design of the switch input circuit with optical coupler is shown in Figure 4, and the capture unit circuit is integrated inside the DSP chip.
Figure 4 Input circuit block diagram
Part of the programming process is as follows:
4.3 Algorithm Design and D/A Output
The basic idea of the algorithm is: when 4WS is started, a front wheel angle is input, and through the yaw rate feedback, it is compared with the ideal yaw rate steady-state response gain G0 related to the speed, and then the rear wheel angle is controlled by the controller G1 to achieve four-wheel steering, and the center of mass slip angle, yaw rate, and lateral acceleration are output for monitoring. The control block diagram is shown in Figure 5. The drive voltage of the motor is generated by the comparison register of the DSP to generate a PWM signal, which is then output through the D/A conversion circuit. This paper uses timer 4 to generate PWM, which is output by the DA4 pin, and the first-stage amplification D/A conversion circuit is shown in Figure 6.
Figure 5 Control block diagram
Figure 6 D/A conversion circuit
Part of the programming process is as follows:
This paper applies the control algorithm designed above to simulate the 4WS vehicle based on TMS320F2812 DSP hardware in the loop. The vehicle parameters are: m=1740kg; I= 3214kg.m2; a=1.058m; b=1.756m; K1=29000N/rad; K2=60000N/rad; and for simplicity, the interception speed u= 30m/s. The results are shown in Figure 7. The results show that the yaw rate tracking control of the 4WS vehicle can maintain better dynamic and steady-state performance than two-wheel steering in the high-speed range of steering control. At the same time, CCS2000 is used for debugging and development, which has a short cycle and low cost. Therefore, the hardware control system based on DSP has broad prospects in the fields of industrial control and automotive control.
Figure 7 Simulation results
Previous article:Summary of MCU Programming Experience
Next article:Expanding LCD Display in P87LPC764 MCU I2C Bus System
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- 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!
- 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
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Suspicious signal from outer space
- Download gift: USB Type C related development and test materials, read it when you have nothing to do, and you will become a master by accident
- Qorvo explains WIFI and 5G clearly
- SPIN3201 (STSPIN32F0) three-resistance control board: FOC motor drive schematic/code/debugging documents and other detailed information...
- Should segment display screens be backlit? How to add it?
- Installation and setup of CCS StarterWare, successfully compiling a project with CCS7.3
- EEWORLD University ---- Operational Amplifier Video Tutorial
- Have you ever encountered the problem of USB drive repair? Is there any good tool you can recommend?
- Several major wireless technologies
- How to modify the video recorder startup screen