In order to facilitate the safe travel of the blind, countries around the world have been developing guide systems. Using ultrasound to detect distance is convenient to design, simple to calculate, and its measurement accuracy can meet the requirements of use. At present, domestically produced ultrasonic guide canes with voice functions have similar problems: on the one hand, the voice chip needs to be pre-recorded before use, which is inconvenient to use. On the other hand, the difference in voice quality caused by different recorders can easily lead to mishearing, and uniform voice quality is required. This article uses the STC89C52R microcontroller and combines ultrasonic ranging technology to design a guide cane, and uses the speech synthesis chip SYN6288 to realize direct text-to-speech conversion without pre-recording. The external speaker reminds the blind of the road ahead and realizes the voice guide function.
1 Working Principle
1.1 Principle of Ultrasonic Distance Measurement
As a new and very useful tool, ultrasound has great room for development in all aspects. Its principle is that the ultrasound emitted by the transmitter propagates at a speed of v in the air, and is reflected back when it touches the object to be measured and received by the receiver. The round-trip time is t, and the distance of the object to be measured can be calculated by s=wt/2.
1.2 TTS speech synthesis principle
TTS (Text To Speech) text-to-speech technology is the development trend of human-computer intelligent dialogue. By using this technology, the pronunciation of the voice chip can be controlled by MCU or PC, and the text instant broadcast function can be realized in various occasions.
The TTS conversion process is to first convert the text sequence into a phonetic sequence, and then the system generates a speech waveform based on the phonetic sequence. This process involves linguistic processing and prosody processing. Currently, the best way to achieve this process is to combine rule-based waveform splicing technology with parameter speech synthesis methods.
2 System Design
2.1 Hardware Design
The hardware circuit mainly consists of four parts: data acquisition circuit, data processing circuit, speech synthesis output circuit and system power supply. Its hardware structure is shown in Figure 1.
The data acquisition circuit is mainly composed of a high-performance KS103 ultrasonic ranging module. KS103 has a temperature compensation function, high measurement accuracy, and uses temperature-corrected ranging commands. The maximum accuracy is 1mm at close range; the minimum measurement blind area is 1 cm, and the maximum range can reach 8 m, with basically no blind areas; it uses the ⅡC interface to communicate with the host and automatically responds to the host's ⅡC control instructions; power saving mode: it has an automatic sleep function. If the module does not receive a host command within 5 seconds, it will automatically enter the sleep state and be awakened by the host's ⅡC control command at any time.
The data processing circuit is composed of a single-chip minimum system, and the MCU uses the 51 series single-chip STC89C52RC. The chip adopts a 40-pin dual in-line package (DIP) and consists of a CPU, 8 kB Flash, 512 B RAM, 4 8b I/O ports: P0, P1, P2, P3, a full-duplex serial communication port, etc. This minimum system is responsible for the data processing function of the entire system.
The speech synthesis transmission circuit is mainly composed of the SYN6288 module and the speaker. The SYN6288 is responsible for realizing the conversion of text to speech (TTS), and the speaker is responsible for issuing sound prompts. SYN6288 is a speech synthesis chip using PSOLA splicing synthesis technology launched by Beijing Yuyin Tianxia Technology Co., Ltd. in early 2010. SYN6288 receives the text data to be synthesized through the asynchronous serial port (UART) communication method to realize the conversion of text to speech (or TTS speech). It can directly drive the speaker through the PWM output method or the external power amplifier circuit to drive the speaker for speech output, and can obtain the current state of the chip by reading the level of the BUSY pin. The chip supports text in formats such as GB2312, supports punctuation, Chinese characters, numbers, English letters and special characters, can correctly identify numerical values, numbers, time and date and commonly used measurement symbols, and has strong polyphonic character processing and Chinese surname processing capabilities. The SYN6288 module pin diagram is shown in Figure 2.
The system power supply is a 5 V rechargeable lithium battery, which can be used repeatedly, energy saving and environmental protection. The hardware circuit diagram of the ultrasonic ranging crutch system based on SYN6288 is shown in Figure 3.
2.2 Software Design
The MCU first initializes the relevant parameters and corresponding modules and sensors, including the settings of the MCU serial port, the ultrasonic module and the SYN6288 speech synthesis module. Then the MCU reads the value of the KS103 ultrasonic module through the IIC bus to obtain the information of the obstacle in front. Then the MCU determines whether the SYN6288 is converting the voice by reading the BUSY pin of the SYN6288. If it is, it waits. If not, it converts the obstacle information in front into voice information and sounds it through the speaker for voice prompts. The specific program flow chart is shown in Figure 4.
3 Test Analysis
After experiments, the ultrasonic voice ranging cane designed based on SYN6288 was used to conduct experiments. It can effectively measure within the range of 0 m to 2 m, and the test accuracy is 1 cm. There are certain test errors mainly due to the ultrasonic absorption attenuation and scattering loss of the rough road surface and the attenuation of the emitted ultrasonic wave as the target distance increases.
4 Conclusion
The ultrasonic voice ranging cane designed with the SYN6288 speech synthesis chip is simple to use and easy to operate. It is powered by a +5 V lithium battery, so it has good mobility and a voice prompt function, which is more user-friendly. The high-performance KS103 ultrasonic ranging module is used to correct the transmission speed through temperature compensation, so it has a high measurement accuracy.
Previous article:Design of Turbine Generator Speed Test System
Next article:Design of APD bias temperature compensation circuit based on TPS40210
- Popular Resources
- Popular amplifiers
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- 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
- The impact of water depth on power supply and communications.
- MSP430G2755 Main Memory Bootloader UART Porting Guide
- A simple temperature control circuit to help you understand the circuit diagram
- 【CH579M-R1】3. ADC internal temperature measurement, external channel and touch button test
- How to migrate from GCC Linker to SEGGER Linker in Embedded Studio?
- Based on PSOC6 development board simulation I2C solution X-NUCLEO-IKS01A3 LPS22HH
- 【CH579M-R1】+OTA first experience
- Xunwei i.MX6ULL Terminator to view the real-time value of variables
- Simple 6LoWPAN Mesh Data Collector
- I created a project with stm32cubemx and then used the module generated by keil RTE, but the code generated by RTE is repeated. How can I disable the duplication?