There are many technologies to realize the intelligentization of automobiles. This paper uses the currently popular voice control technology to realize the automatic forward, backward, left and right turns of the car. Of course, the designed car is only a micro model of the intelligent car and is still in the simulation demonstration stage. There is still a long way to go before the intelligent car can truly serve people.
1 The core controller of the intelligent car
SPCE061A is a 16-bit controller with unique voice features. The nSPTM (microcontroller and signal processor) core processor used in the chip has a high processing speed and can complete 16-bit arithmetic logic operations, 16 × 16-bit hardware multiplication operations and DSP inner product filtering operations. It can quickly process complex digital signals and can realize voice encoding and decoding without the need for additional dedicated voice control chips, which not only saves design costs but also meets certain control requirements. The controller adopts a modular architecture, integrating ICE (online simulation), phase-locked loop oscillator, time base controller, 7-channel 10-bit AD converter, single-channel AD + AGC (automatic gain) converter, dual-channel 10-bit DA converter, universal asynchronous communication interface, serial input and output interface, voltage monitoring and other modules. Its structure is shown in Figure 1.
Figure 1 Structure of SPCE061A controller Figure
2 Overall design of smart car
The smart car is mainly composed of voice input circuit, voice output circuit, SPCE061A controller, drive circuit, etc. The SPCE061 controller of the car realizes voice control through the built-in microphone amplifier and the A/D channel and D/A channel with automatic gain function. The voice triggers the car to move. After the car moves, the car's motion state can be changed at any time through voice commands. If there is an obstacle in front during the journey, the car will stop automatically.
3 Hardware design of smart car
1) Voice input circuit.
The voice input circuit of the car is shown in Figure 2. Among them, VM IC provides power for the microphone, VSS is the analog ground of the system, VCM is the reference voltage, and pins 1 and 2 are the positive and negative input pins of microphone X1 respectively. When speaking to the microphone, pins 1 and 2 will produce waveforms that change with the sound input by the microphone, and form two inverted waveforms at the two ports of SPCE061A, which are sent to the operational amplifier inside the SPCE061A controller for audio amplification. The amplified audio signal is converted into digital quantity through the ADC converter and saved in the corresponding register, and then these digital audio signals are compressed, identified, played, etc.
Figure 2 Voice input circuit
2) Voice output circuit. The
voice input circuit of the car is shown in Figure 3. Among them, VDDH is the reference voltage and VSS is the analog ground of the system. The audio signal is sent from the DAC pin output of SPCE061A to the 9th terminal of the circuit, and then sent to the integrated audio power amplifier SPY0030 through the adjustment terminal of the volume potentiometer R9. After audio amplification, the audio signal is output from SPY0030 and plays the sound through the external speaker of the J2 port. [page]
Figure 3 Voice output circuit
3) Photoelectric detection circuit. The
photoelectric detection circuit of the car adopts the photoelectric sensor of the E18-D80NK model, which integrates emission and reception. The infrared emission tube emits infrared rays in a certain direction. When encountering an obstacle, the infrared rays are reflected and received by the receiving tube, so as to judge whether there is an obstacle in front of the car. The sensing distance of the obstacle can be adjusted according to the requirements through the fine-tuning knob on the sensor. A lens is added to the front end of the sensor to detect objects at a long distance by focusing. The sensor integrates amplification, comparison, and modulation circuits, so that the sensor is less affected by visible light. The connection diagram of the photoelectric detection circuit is shown in Figure 4.
Figure 4 Photoelectric detection circuit
4) Driving circuit.
The driving circuit of the car is a full-bridge driving circuit (Figure 5). The four transistors Q1, Q2, Q3, and Q4 form four bridge arms. Q5 controls the on and off of Q2 and Q3, and Q6 controls the on and off of Q1 and Q4. The driving circuits are used for the rear wheel power driving circuit and the front wheel direction driving circuit respectively. When pin 1 is high and pin 2 is low, Q1 and Q4 are turned on, Q2 and Q3 are turned off, and the motor drives the wheels to rotate; when pin 1 is low and pin 2 is high, Q1 and Q4 are turned off, Q2 and Q3 are turned on, and the motor drives the wheels to rotate in the opposite direction.
Figure 5 Driving circuit.
Connect the 1st and 2nd ports of the voice input circuit to the MICP and NICN pins of the SPCE061A controller respectively; connect the 9th port of the voice output circuit to the DAC1 pin of the SPCE061A; connect the 1st and 2nd ports of the rear wheel power drive circuit to the IOB8 and IOB9 pins of the SPCE061A, and connect the 1st and 2nd ports of the front wheel direction drive circuit to the IOB10 and IOB11 pins of the SPCE061A; connect the OUT end of the photoelectric detection circuit to the IOB12 pin of the SPCE061A. The overall connection of the smart car is shown in Figure 6.
Figure 6 Overall connection diagram of the smart car. [page]
4 Software design of the smart car
The software system of the smart car mainly uses voice recognition technology to control the automatic driving of the car, thereby realizing the interaction between people and cars without manual operation. The intelligent control algorithm is shown in Figure 7. The software design is written in C language, which makes the program code concise and easy to read. In addition, the program design also uses the timing interrupt technology of SCPE061A. When the photoelectric detection circuit detects an obstacle in front or a parking command is triggered, SCPE061A immediately interrupts and stops the car.
Figure 7 Intelligent algorithm block diagram.
The core of the software design of the intelligent car lies in speech recognition. Speech recognition is mainly divided into training and recognition (Figure 8). In the training stage, the SCPE061A controller first performs analog/digital conversion, pre-emphasis, automatic gain control and other processing on the speaker's voice to realize the digitization of the voice digital signal, and then extracts the features of the processed voice signal to establish a voice feature model. The training process is mainly completed by the BSR_Train() function in the voice function library bsrv222SDL.lib. In the recognition stage, the SCPE061A controller performs the same analysis and processing on the collected speech, extracts the characteristic information of the speech, and then compares this characteristic information with the existing characteristic model. If the two reach a certain degree of match, the input speech is recognized. The recognition process is mainly completed by the BSR_InitRecognizer(), BSR_EnableCPUIncator(), BSR_GetResult(), and BSR_StartRecognizer() functions in the speech function library bsrv222SDL.lib.
Figure 8 Speech recognition program flow chart
5 Conclusion
In the experiment, the correct recognition rate of the intelligent car is above 90%. During the experiment, it was found that the factors affecting the normal recognition of the car mainly include the noise of the surrounding environment, the distance between people and the car, etc. These need to be improved in the future. This voice-controlled intelligent car robot can not only serve people in the future, but also replace people in a variety of occasions that are not suitable for human operations. Therefore, this voice-controlled car robot has important academic research value.
Previous article:Car recorder solution based on AT91SAM926
Next article:Nonlinear Theoretical Analysis of Electronic Control ABS System
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- 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
- 1. Material unpacking and data link arrangement
- Code Composer C3x C4x version 4.10 installation package
- Help
- How to use GPIO of TI C55x series DSP
- Introduction to 5G R16 Standard Vertical Industry Extensions
- 【RPi PICO】CircuitPython driver ws2812
- dspIC30f6010a chip CAN communication and data processing
- 【McQueen Trial】McQueen product information
- Solving High-Voltage Current Sensing Design Challenges in HEV/EV
- Has anyone made irregular PCB? Please help