The most prominent feature of modern instruments is the modularization of functions. Usually, to assemble an instrument, you only need to combine several functional modules on the basis of a customized PCB to get a complete system. The pointer instruments of economical cars such as Changan are generally independent modules, and the prompt/alarm function is completed by a small light bulb on the PCB. The pointers of the SANTANA series are driven by a cross coil on the printed circuit board, and the prompt/alarm lights are all light-emitting diodes. The main data, sources and corresponding display methods displayed on the dashboard of the car are as follows (based on SANTANA2000):
Table 1
With the rapid development of the automobile industry, the automotive electronics market, which still has great potential, is increasingly attracting the attention of major automobile manufacturers and electronic product suppliers, including clean energy vehicles that are still in the development and experimental stage, car audio equipment that is currently dominated by ***, promising car computer information terminal equipment, and various in-vehicle electronic control units, such as engine electronic control units, ABS, buses, new electronic instruments, etc.
For automobile instruments, the advantages of using electronic instrument panels over traditional instruments are:
the softwareization of hardware functions
With the development of microelectronics technology, the processing speed of microprocessors is getting faster and faster. Some functions that have high real-time requirements and were originally completed by hardware can be completely realized by programming microprocessors. The
system integration is greatly improved
. Today, with the rapid development of large-scale integrated circuit technology, the density of integrated circuits is getting higher and higher, the size is getting smaller, the internal structure is getting more and more complex, and the functions are getting more and more powerful. As some functional hardware of the instrument is constantly replaced by software, the integration of the entire system is also increasing accordingly.
This design is a car combination instrument panel based on Freescale microcontrollers. The design is aimed at the traditional cars that currently dominate the market, and uses the instrument of Changan car as a template. The main purpose is to realize a low-end solution for the combination of electronic dashboards in cars.
1. Design Overview
The objects of this solution mainly include vehicle speed, rotation speed, pressure, temperature, mileage, time and some prompt/warning light signals, which are respectively reflected in the speedometer, engine tachometer, oil pressure gauge, water temperature gauge (pointer) and odometer. Among them, the odometer records the vehicle speed signal regularly, performs numerical integration during the driving time, and obtains the mileage, which is saved in the user Flash as mileage. The mileage data is accumulated regularly (1s).
Since this design is aimed at popular traditional cars, cost becomes the most important criterion for device selection. In the selection of microcontrollers, we did not consider the CAN bus, which has a bright future but is not yet popular, but chose the 8-bit microcontroller LJ12 with built-in LCD driver.
MC68HC908LJ12 is a member of Freescale's 908 microcontroller family. Its main parameters and functional modules are as follows:
• 8M maximum bus frequency;
• 12k user Flash;
• 512b RAM;
• Two independent dual-channel timer modules;
• Internal real-time clock, which can record year, month, day, hour, minute and second;
• SCI and SPI communication modules;
• 6-channel 10-bit A/D;
• LCD module, which can drive 27×3 or 26×4 segment LCD modules.
The stepper motor driver chip MC33970 is a member of the Freescale analog family. It contains 6 registers, which are written by SPI command status words, namely configuration/calibration register, pointer speed register, pointer 0/1 position register, pointer return to zero register, and return to zero setting register. Features of MC33970:
• Compatible with MMT certified two-phase stepper motors;
• The pointer can stay in 4095 stable positions;
• Maximum rotation angle 340°;
• Maximum acceleration 4500 deg/s2;
• Maximum speed 400 deg/s;
• Simulated microstepping (pointer movement 12 steps for 1°);
• Pointer calibration and zero return;
• SPI control, 16-bit command word;
• Internal calibration clock;
• Low current in sleep mode. [page]
2. Hardware Description
Figure 1
• PLL: external crystal oscillator 32.768k; internal bus frequency multiplied to 4M;
• SCI: used for host computer communication, bit rate 9600, interrupt mode;
• SPI: clock 1M, as the control of MC33970, use two general pins as SPI chip select signal;
• LCD: use 26×4 mode, that is, 26 front poles and 4 back poles, dynamic drive; because the design uses a 6-bit LCD module, it is enough to use FP1~FP12 and BP0~BP3;
• Flash: use the resident memory function (ROM-Resident Routine) to save the mileage data in the user flash memory in the form of 32-bit data.
The stepper motor produced by SWITEC is selected as the actuator. The six-bit segment-type dynamic drive LCD module is used to display the mileage, single mileage or time and date. Out of habit, the car instrument needs to be kept powered at all times, and there is no need to reset the time parameters. In order to facilitate the demonstration, two buttons are used to switch the LCD display mode. The six LEDs are used to display brake, danger, oil pressure, battery, engine and neutral information respectively. MC1413 is used as the driver of the LEDs. MC33970
is directly driven by the SPI of the microcontroller; the vehicle speed and engine speed are pulse width modulation signals or input from the serial port. The frequency is obtained through the input capture function of the timer module and converted into data.
(1) The power supply and power-off protection
input uses 7805. In order to save the mileage data in time when the power is off, a 1000uF or two 470uF electrolytic capacitors are added to the power ground input. When the power is disconnected, an interrupt signal will be generated at the IRQ pin. The large capacitor can maintain the power supply of the microcontroller for a long enough time so that the microcontroller can complete the service program of the external interrupt.
(2) Conditioning circuit
In order to improve the waveform, a conditioning circuit is added outside the timer pin.
(3) Overall design
This design is aimed at the low-end and medium-end cars on the market. In order to express this original intention, the instrument PCB is designed according to the instrument shell and internal dimensions of Changan sedans, and the layout is re-designed.
Figure 2 System Block Diagram
(1) Initialization function:
Multiply the internal bus frequency to 4M; Set the channel of the timer module to the capture function; SCI baud rate 9600, open the receive interrupt; SPI clock frequency 1M; LCD module 26×4 mode; Enable the Real Time Clock module; MC33970 and pointer initialization; Read the previously recorded mileage data from the user Flash and display it according to the ODO/TRIP signal.
(2) Interrupt service program:
• External interrupt: Use the discharge of a large capacitor to return the pointer to zero in a short time after power failure.
• SCI interrupt: Follow a certain host computer protocol, accept commands, change the LCD display content; change the vehicle speed and speed data.
• RTC interrupt: Record mileage data once a second; Convert mileage data according to the vehicle speed signal.
(3) Main function
: Read mileage data regularly and display it on the LCD; Restart WATCHDOG at the end of each main loop; Respond to changes in the pointer position when the vehicle speed or speed signal changes.
Figure 3 Main program flow chart [page]
Excellent performance
The following table is a performance comparison of the two, among which the good real-time response is the biggest advantage of MC33970:
Table 2 Comparison of performance of stepper motor driver chip x15.089 and MC33970
The working principle of x15.089 is to control a stepper motor with two pins of the microcontroller, one of which outputs the direction control signal and the other outputs the pulse. Therefore, two microcontroller pins are required to control each motor, and eight microcontroller general IO ports are required to control four motors.
MC33970 is different. It can control two stepper motors by inputting command words through SPI. When four stepper motors are needed, two MC33970s are used, but only one chip select signal is needed. In this way, only SPI modules and two general IOs are needed, thus saving the resources of the microcontroller.
Competitive cost (data obtained from www.freescale.com)
The price of the microcontroller LJ12 is RMB20 per piece for more than 10,000 pieces, and because of the built-in LCD control driver, there is no need to add an external LCD driver such as SED1335.
The price of MC33970 is $1.3, RMB13 per piece for more than 10,000 pieces, which is cost-effective.
In comparison, the price of a SWITEC stepper motor 312.017 is about RMB18, and the price of a driver chip x15.089 is about RMB16.
The following is a simple table of cost estimates:
Table 3 Cost estimate summary
4. Conclusion
This solution is a low-end solution for automotive electronic instrument panels based on Freescale microcontrollers, targeting various economical cars, with complete functions, compact structure, and low price. It will have broad market prospects. (end)
Previous article:Application of ATmega16L ISP Technology in Automotive Electronic Differential Control
Next article:New Concept Design of Single Chip Microcomputer Controlled Motorcycle Ignition Device
Recommended ReadingLatest update time:2024-11-16 17:44
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- 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)
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
- I can't access GitHub anymore, what should I do? I can't access it at all
- [Mill MYB-YT507 development board trial experience] opencv face detection
- TouchGFX application development based on STM32CubeMX on STM32H7A3 processor - HelloWorld!
- How large a fifo capacity can ep4ce6 achieve?
- Introduction to the causes of TPS79633KTTR voltage instability
- Bicycle modification series: colorful taillights
- Staying at home during the epidemic, reading books
- 【TI recommended course】#Motor control voltage and current sampling solution#
- Allwinner heterogeneous multi-core AI intelligent vision V853 development board evaluation - separate compilation and testing of V853 SDK LVGL routines
- [Hua Diao Experience] Xingkong Board & Beetle ESP32-C3