This tracking car model is driven by a 7.5V battery and the speed is adjusted by changing the PWM duty cycle. The car can detect the surrounding environment through self-judgment in an uncertain road environment and make corresponding responses (such as turning left, turning right and changing speed, etc.). Currently, most of the expensive ultrasonic sensors and infrared sensors are used in robots. This design uses cheap reflective optical coupling sensors to complete the perception of the surrounding environment. In addition, the car also has a good navigation system.
System structure
This system adopts a distributed structure, as shown in Figure 1. Because there are many and scattered control objects in the body control system, if a point-to-point centralized control method is adopted, a large number of connecting cables are required between the control module and the controlled object, which will lead to complex wiring in the car and difficult manufacturing and installation, and there are hidden dangers of failure. The distributed system structure can design the control module according to the location of the control object, thereby shortening the distance between the control object and the control module. Each module communicates through the LIN bus, which only requires one line as a communication line. In addition, the distributed system structure can also reduce the static current of the single board and increase the stability of the single board.
Figure 1 Distributed body control system structure diagram
According to the system functional requirements and structural characteristics, this control system is divided into a main control module and three sub-modules (sensor module, motor control module and light control module). The main control module mainly detects the status of the control switches of the main body of the vehicle, and implements the corresponding control strategy according to the status of these control switches. Then, the control command is sent to the corresponding sub-module through the CAN bus and the LIN bus. After that, it is judged whether there is a fault according to the load status fed back by each sub-module. If there is a fault, an alarm is displayed. At the same time, the CAN bus receives certain information from the upper CAN network. The microcontroller of the main control module adopts the automotive-specific chip XC164CS with high reliability and strong anti-interference ability, which integrates the CAN controller. Figure 2 is the hardware schematic diagram of the main control module.
Figure 2 Main controller module hardware schematic diagram
The microcontroller in the motor control module also uses XC164CS, because there are corresponding units in this series of microcontrollers to realize the control of the motor, which is quite convenient. This design uses two motors to control the rear wheel drive and front wheel steering of the car. The motor control interface chip TLE6209 is used to drive and control the DC motor. It integrates an H-bridge circuit inside to drive the motor and realize the four-quadrant operation of the motor, corresponding to forward rotation, forward braking, reverse rotation and reverse braking. The 16-bit microcontroller XC164CS generates a 10kHz PWM signal to TLE6209 through the internal CAPCOM module to trigger the H-bridge circuit.
3 Design of sensor module The
microcontroller XC866 is used in the sensor module, which is mainly used to collect the values of 8 sensors, transmit them to the XC164CS of the main control board for processing, and then generate corresponding strategies to change the PWM duty cycle to control the drive and steering motors accordingly. At the same time, the communication module data must be sent and received. Its hardware block diagram is shown in Figure 3.
Figure 3 Sensor module hardware block diagram
the system communication
car are connected through the LIN bus and the CAN bus.
In this system, the CAN transceiver uses TLE6250G, and the transmission of motor information requires a high-speed data transmission rate (200Kb/s) to meet the requirements of real-time motor control. The data transmission rate of CAN is as high as 1Mb/s, and it can work in receive-only mode and idle mode. It has excellent EMC characteristics and various protection functions; while the LIN bus is not suitable because of its low data transmission rate and from the perspective of ensuring high safety performance.
The network structure that uses CAN and LIN can take into account the characteristics of strong real-time performance, high reliability, fast communication rate, good interoperability, high flexibility of the CAN bus and the simple and low-cost LIN network structure, so as to better build the network system of the car.
This system uses the TLE6258 series LIN bus transceiver, which serves as an interface between the protocol controller and the physical bus. It is particularly suitable for driving the bus in LIN systems for automotive and industrial applications, and can be used in standard ISO9141 systems. TLE6258 provides an idle mode to reduce current consumption. By sending a wake-up frame on the bus, the host or slave can be awakened from the idle mode and returned to the normal operating mode. Figure 4 is the LIN bus hardware circuit diagram of this system.
Figure 4 Serial communication/LIN bus hardware circuit
software design
system, each ECU sends and receives commands through the CAN bus to communicate with each other, thereby realizing data sharing, etc. The software design is based on DAVE and KEIL software. The program mainly consists of three parts: CAN initialization, sending data and receiving data, as shown in Figure 5.
Figure 5 Main program flow chart
This design can realize the basic functions of the distributed body control system, and it has a simple structure and low cost. In addition, this design concept is also applicable to the control of real cars. The continuous advancement of automotive electronic technology will promote the organic combination of CAN, LIN and the developing higher-speed, fault-tolerant bus technology to form a safe, comfortable and more satisfying automotive network. (end)
Previous article:Design of truck voice alarm based on CAN communication
Next article:Design of vehicle information acquisition system based on serial communication
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!
- 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
- How to make a jumper between the pads of two different plug-ins in PCB?
- "Core" ecosystem, "Assist" security, "Connect" the future. Registration for the 2021 STM32 China Summit and Fan Carnival is now open!
- Please tell me the role of these two resistors in the circuit
- Is the naked-eye 3D large screen also made of light-emitting diodes (LED)? What is the principle?
- Comparison of TI's tms320 series DSP
- Playing with Zynq Serial 45——[ex64] Image Laplace Sharpening Processing of MT9V034 Camera
- New employee: I am the most idle person in the company, so my boss assigned me to write the bootloader
- I feel like I can't stay in this stupid company any longer.
- TI High Power Density Solution Analysis!
- Can the CH246 & CH241 wireless charging kit be used like this?