Design and Implementation of Serial Port Ultrasonic Distance Measurement System Based on STC12 Jian Huang

Similar documents
ACCURATE DISPLACEMENT MEASUREMENT BASED ON THE FREQUENCY VARIATION MONITORING OF ULTRASONIC SIGNALS

Keywords: International Mobile Telecommunication (IMT) Systems, evaluating the usage of frequency bands, evaluation indicators

Power Improvement in 64-Bit Full Adder Using Embedded Technologies Er. Arun Gandhi 1, Dr. Rahul Malhotra 2, Er. Kulbhushan Singla 3

The Design Of Multiple Nodes Wireless Temperature Transmission System Based On STC15W1K24S And CC1101

Relation between C/N Ratio and S/N Ratio

Design and Implementation of Piezoelectric Transducer Driving System with MPPT and ZVS Features

R&S IMS Hardware Setup according IEC / EN (radiated immunity) Products: R&S IMS, R&S NRP-Z91, HL046E. Application Note

Design of Pretension Tubular Rope Machine Control System Based on RBFNN Tuning PID

Real Time Etch-depth Measurement Using Surface Acoustic Wave Sensor

Fundamental study for measuring microflow with Michelson interferometer enhanced by external random signal

DSI3 Sensor to Master Current Threshold Adaptation for Pattern Recognition

Energy-Efficient Cellular Communications Powered by Smart Grid Technology

Improvement of Ultrasonic Distance Measuring System

Alternative Encoding Techniques for Digital Loudspeaker Arrays

A State-of-the-Art PMU and MATLAB Based GUI Development towards Power System State Estimation on Real Time Basis

Laboratory Manual for DC Servo System Control Platform

AccuBridge TOWARDS THE DEVELOPMENT OF A DC CURRENT COMPARATOR RATIO STANDARD

HIGH FREQUENCY LASER BASED ACOUSTIC MICROSCOPY USING A CW GENERATION SOURCE

International Journal of Advanced Research in Electronics and Communication Engineering (IJARECE) Volume 3, Issue 9, September 2014

Parameter Identification of Transfer Functions Using MATLAB

An Automatic Control Strategy of Strip Width in Cold Rolling

A New Localization and Tracking Algorithm for Wireless Sensor Networks Based on Internet of Things

Vibration Monitoring of the Voigt Bridge using Wired and Wireless Monitoring Systems

Precise Indoor Localization System For a Mobile Robot Using Auto Calibration Algorithm

Modeling Beam forming in Circular Antenna Array with Directional Emitters

The Research of PV MPPT based on RBF-BP Neural Network Optimized by GA

NINTH INTERNATIONAL CONGRESS ON SOUND AND VIBRATION, ICSV9 PASSIVE CONTROL OF LAUNCH NOISE IN ROCKET PAYLOAD BAYS

120-degree conducting control of permanent magnetic synchronous motor Algorithm

General Smith Chart Matching

RAKE Receiver. Tommi Heikkilä S Postgraduate Course in Radio Communications, Autumn II.

Design of Ring Oscillator based VCO with Improved Performance

ABSTRACT 1. INTRODUCTION

Mitigation of GPS L 2 signal in the H I observation based on NLMS algorithm Zhong Danmei 1, a, Wang zhan 1, a, Cheng zhu 1, a, Huang Da 1, a

PREDICTING SOUND LEVELS BEHIND BUILDINGS - HOW MANY REFLECTIONS SHOULD I USE? Apex Acoustics Ltd, Gateshead, UK

ELEC2202 Communications Engineering Laboratory Frequency Modulation (FM)

Design of intelligent vehicle control system based on machine visual

Analysis on DV-Hop Algorithm and its variants by considering threshold

Design of Ultrasonic Liquid Level Sensor Based on STM32 with MODBUS Protocol

Overlapped frequency-time division multiplexing

Hand Gesture Recognition and Its Application in Robot Control

ELECTROMAGNETIC COVERAGE CALCULATION IN GIS

EFFECTS OF MASKING ANGLE AND MULTIPATH ON GALILEO PERFORMANCES IN DIFFERENT ENVIRONMENTS

A Decoupling Structure of Controllable Reactor of Transformer Type

A simple charge sensitive preamplifier for experiments with a small number of detector channels

A Wireless Transmission Technique for Remote Monitoring and Recording System on Power Devices by GPRS Network

Design of Efficient ZVS Half-Bridge Series Resonant Inverter with Suitable Control Technique

FORWARD MASKING THRESHOLD ESTIMATION USING NEURAL NETWORKS AND ITS APPLICATION TO PARALLEL SPEECH ENHANCEMENT

Comparison Between PLAXIS Output and Neural Network in the Guard Walls

Fiber Bragg grating based four-bit optical beamformer

Sound recording with the application of microphone arrays

Secondary-side-only Simultaneous Power and Efficiency Control in Dynamic Wireless Power Transfer System

Design of a Radioactive Source Sampler Based on CPAC

Datasheet S-Band and UHF antenna tower for LEO satellites

EQUALIZED ALGORITHM FOR A TRUCK CABIN ACTIVE NOISE CONTROL SYSTEM

presented on yfra.,- /4/,'d)

SECURITY AND BER PERFORMANCE TRADE-OFF IN WIRELESS COMMUNICATION SYSTEMS APPLICATIONS

NONLINEAR WAVELET PACKET DENOISING OF IMPULSIVE VIBRATION SIGNALS NIKOLAOS G. NIKOLAOU, IOANNIS A. ANTONIADIS

Long-Period Grating Thermal Sensitivity Dependence on the External Medium Refractive Index

Implementation of Adaptive Viterbi Decoder

Analysis of Time-Frequency Energy for Environmental Vibration Induced by Metro

Overlapping Signal Separation in DPX Spectrum Based on EM Algorithm. Chuandang Liu 1, a, Luxi Lu 1, b

Experiment 7: Frequency Modulation and Phase Locked Loops October 11, 2006

INTERNATIONAL TELECOMMUNICATION UNION

LUENBERGER ALGORITHM BASED HARMONICS ESTIMATOR FOR FRONT END RECTIFIER AND PWM-VSI

Selective Harmonic Elimination for Multilevel Inverters with Unbalanced DC Inputs

Performance Analysis of an AMC System with an Iterative V-BLAST Decoding Algorithm

EXPERIMENTAL VERIFICATION OF SINUSOIDAL APPROXIMATION IN ANALYSIS OF THREE-PHASE TWELVE-PULSE OUTPUT VOLTAGE TYPE RECTIFIERS

Mismatch error correction for time interleaved analog-to-digital converter over a wide frequency range

A Preprocessing Method to Increase High Frequency Response of A Parametric Loudspeaker

Implementation of Wideband Digital Beam Forming in the E-band

Acoustic Doppler Current Profiler (ADCP): Principles of Operation and Setup

Cross-correlation tracking for Maximum Length Sequence based acoustic localisation

POD-001 PolaDetect. Operation Manual

THE IMPLEMENTATION OF PERMANENT MAGNET SYNCHRONOUS MOTOR SPEED TRACKING BASED ON ONLINEARTIFICIAL NEURAL NETWORK

ANALYSIS AND SIMULATION OF PULSE TRANSFORMER CONSIDERING LEAKAGE INDUCTANCE AND CAPACITANCE

Design of Virtual Sphygmomanometer Based on LABVIEWComparison, Reflection, Biological assets, Accounting standard.

Air Absorption Error in Room Acoustical Modeling

Green Laser 8 times better visibility

Dynamic Model Displacement for Model-mediated Teleoperation

2 Intelligent meter reading mode

Evaluation of Steady-State and Dynamic Performance of a Synchronized Phasor Measurement Unit

An Application of DMADV Methodology for Increasing the Yield Rate of CMOS Camera

ANALYSIS AND OPTIMIZATION OF SYNTHETIC APERTURE ULTRASOUND IMAGING USING THE EFFECTIVE APERTURE APPROACH. Milen Nikolov, Vera Behar

WIPL-D Pro: What is New in v12.0?

ES 442 Homework #8 Solutions (Spring 2018 Due April 16, 2018 ) Print out homework and do work on the printed pages.. Problem 1 ASCII Code (20 points)

MASTER. Novel APC-methods for accurate pattern determination. van Norel, J. Award date: Link to publication

Transmit Power and Bit Allocations for OFDM Systems in a Fading Channel

Speech Enhancement using Temporal Masking and Fractional Bark Gammatone Filters

A New Simulation Technology Research for Missile Control System based on DSP. Bin Tian*, Jianqiao Yu, Yuesong Mei

Design of high precision current signal source on DDS Han Ya Kun1, a, Suo Xue Song*,1, b

Keywords: Equivalent Instantaneous Inductance, Finite Element, Inrush Current.

Ultrasonic Beamforming with Delta-Sigma Modulators

Compensated Single-Phase Rectifier

Optimal Modulation Index of the Mach-Zehnder Modulator in a Coherent Optical OFDM System Employing Digital Predistortion

Separately Excited DC Motor for Electric Vehicle Controller Design Yulan Qi

2. Continuous-wave modulation

Modeling and Parameter Identification of a DC Motor Using Constraint Optimization Technique

Available online at ScienceDirect. Procedia Technology 24 (2016 )

THE DESIGN OF ENERGY-EFFICIENT MONITORING TERMINALFOR POWER SUPPLY AND DISTRIBUTION SYSTEM OF ENTERPRISE BASED ON STM32

COMBINED FREQUENCY AND SPATIAL DOMAINS POWER DISTRIBUTION FOR MIMO-OFDM TRANSMISSION

Transcription:

International Conference on Education, Manageent and Coputer Science (ICEMC 2016) Design and Ipleentation of Serial Port Ultrasonic Distance Measureent Syste Based on STC12 Jian Huang Xijing University, Xi'an 710123, China 565200245@qq.co Keywords: Ultrasonic distance easureent; STC12C5A60S2; Serial port Abstract. According to the principle of ultrasonic distance easureent, a kind of ultrasonic distance easureent syste with low blind area, low power consuption, high precision and sall size is designed and realized in the light of the influence of teperature and air flow. STC12C5A60S2 high perforance icrocontroller is the ain control, iprove the overall perforance of the syste, using DS18B20 as the teperature copensation to iprove the accuracy of easureent. In addition, the proposed in ultrasonic ranging odule probe are connected according to the echo easureents were carried out, according to the different teperature value to calculate the distance, the easured results of the conversion to digital quantity, and MCU through the serial port for connection ethod to realize ranging. The hardware circuit is designed and the software is prograed. Test results show that: in the wall, glass, liquid surface and other sooth aterial conditions, the easureent accuracy is less than one illieters, the ultrasonic ranging syste has the advantages of high precision, low cost, convenient installation and so on. It suitable for high precision easureent in short range ranging. Introduction As an efficient, accurate and non-contact detection ethod, ultrasonic wave is widely used in ranging, speed, welding, cleaning and other fields. In the coputer, intelligent equipent, etc., can be used as a distance sensor, as a sart car or robot eyes, can effectively detect the location and distance of obstacles, to achieve ranging and obstacle avoidance. In recent years, the principle of ultrasonic ranging has not changed, but due to the adoption of new techniques, new ethods, ake the easureent accuracy is greatly iproved, is considered to be one of the ost effective ethods of easuring [1-4]. Factors affect the precision of ultrasonic ranging except the aking craft of the sensor itself, but also with the transitting and receiving perforance, and environental teperature and error correction ethods about, so to accurate easureent of ultrasonic propagation tie and environental teperature is the key to realize the accurate location. This paper choose high perforance icrocontroller STC12C5A60S2 as a aster, the axiu clock crystal up to 24MHz, quick disposal of signal and the accurate tiing, with DS18B20 teperature precise easureent, and the ultrasonic propagation speed is selected according to the teperature easureent. Ultrasonic probe the transceiver, the echo signal will be easured by processing odule, the conversion to digital quantity, and through the serial port to 9600 baud rate of speed and MCU is connected, to achieve high-speed data acquisition, will eventually be collected data conversion for the distance value display on the 1602 liquid crystal odule, the error can be controlled within 1. The Principle of Ultrasonic Distance Measureent Ultrasonic wave is independent of velocity and frequency in a large range of frequency, the wave propagation direction is the sae as the vibration direction, and it is the elastic echanical wave of the longitudinal vibration. The coonly used ranging ethod, pulse echo ethod, its working principle is using ipulse excitation of ultrasonic eission then receives echo signals, through the detection of pulses fro the transitter to the receiver to echo the tie t, according to the forula 2016. The authors - Published by Atlantis Press 145

s=v t /2 calculated distance easureent [5-7]. Hardware Circuit Design Syste hardware circuit design as shown in Fig. 1, the acro crystal technology, high perforance icrocontroller stc12c5a60 as a aster, crystal with 24MHz to iprove the perforance of the syste, using the serial port RXD and ultrasonic odule is connected with the collected to easure the distance signal; MCU P26 connection DS18B20, and connect a 4.7K pull-up resistor current teperature acquisition by single bus counication with the MCU, according to the serial data and teperature value to calculate the distance, and the results show in 1602. Figure 1. Syste hardware connection diagra STC12C5A60S2 Microcontroller Introduction. STC12C5A60S2 MCU is acro crystal technology, production of single clock / achine cycle (1T) icrocontroller, is a high speed, low power consuption, strong anti-interference of a new generation of 8051 MCU, instruction code is fully copatible with the traditional 8051, but fast 8-12 ties. Internal integrated MAX810 dedicated reset circuit, 2 way PWM, 8 high speed 10 bit A/D conversion (250 thousand ties / sec) [8-9]. Introduction of Ultrasonic Module. The odule paraeters of ultrasonic distance easureent are shown in Table 1, the working voltage is DC 5V, the working frequency is 40KHz, the range is 2c-3.5. A range of data sent to the icrocontroller baud rate to 9600. Table 1 Paraeters of ultrasonic distance easureent odule The forula for the distance is expressed as: Electrical paraeters Ultrasonic odule working voltage DC 5V Working current 15A Working frequency 40KHz Inforation of range 2c - 3.5 resolution 1 Angle of easure 15 度 baud 9600 L=C T (1) 146

L is the length of the distance; C is the ultrasonic propagation velocity in the air; T is the easureent of the tie difference between the spread (T for the launch to receive the tie value of half). Known ultrasonic velocity C=344/s (at 20 DEG C at roo teperature), the ultrasonic propagation velocity by the density of the air, the higher the density of the air is the ultrasonic propagation speed faster, and the density of the air and teperature and has a close relationship, approxiate forula is: C=C0+0.607 * T (2) In the forula: C0 is zero when the sound wave speed 332/s; T for the actual teperature (C). In order to ake the ultrasonic ranging precision reach 1, we ust consider the environent teperature of ultrasonic wave propagation. The teperature value is read by the DS18B20 acquisition circuit. Software Prograing Software Flow Chart. Software flow chart as shown in Fig. 2, first of all initialization 1602 and tier, tier initialization for 10s interrupt tie, then every 10s read teperature and serial data a, according to the forula calculated distance value and the result is sent to display 1602. star Initial 1602 and tier Read teperature Read data Coputer distance display Figure 2. Software flow chart Part of the Code. Software using C language prograing, copiler developent environent is IAR5.0 [10]. Teperature copensation calculated fro the serial port to read the data forat is 8 4 bit data frae forat: 0XFF+H_DATA+L_DATA+SUM 0XFF: start data for a frae, used to deterine. H_DATA: high 8 bits of distance data. L_DATA: 8 bit low distance data. SUM: data for efficacy and. Its 0XFF+H_DATA+L_DATA=SUM (only 8 bits low) H_DATA and L_DATA consist 16 bits of data, the value of the distance in illieters. The data is converted to the distance code as follows: void conversion(uint tep_data) { disbuff[0]=tep_data/1000; disbuff[1]=tep_data%1000/100; disbuff[2]=tep_data%1000%100/10; disbuff[3]=tep_data%1000%10%10; } 147

Test Results According to the above description of the design of the hardware circuit and debugging is copleted, with the C language software prograing, display the results as shown in Fig. 3: Figure 3. Distance display results After a nuber of easureents, the following data, as shown in table 2: Table 2 easureent results Real distance easure d value 25 25 50 75 125 50.8 74.2 124 166 166 215 215.2 250 251 285 286 350 350.5 Concluding Rearks This paper describes the principle and ethod of ultrasonic distance easureent, and draws the scheatic diagra, produced the PCB printed circuit board, the printed circuit board debugging, according to the software process C language prograing Experiental results show that the accuracy of distance easureent can be realized by ultrasonic wave, and the error is less than 1, which can be widely used in intelligent vehicle, robot and other equipent. Reference [1] Wang Jihong. High precision icro pressure easureent with ultrasonic wave and its application: [Thesis] Shanghai: Tongji University, 2008 [2] Liao Ping; Wu Yuesong; Wang Peng; Yue Lili. A large range of ultrasonic distance easureent syste based on CAN bus, instruent technology and sensor [3] [J].2014,10:62-65 [4] Yao Yongping.STC12C5A60S2 Series MCU anual [M], acro crystal technology, 2011,8-9 [5] Tang Sichao. Ebedded syste software design based on Ebedded Workbench [M]. IAR Beijing: Beihang University press, 2010 [6] Guo Qing. Design of ultrasonic distance easuring syste based on STC89C52, instruent technology and sensor [J].2011,6:74-77 [7] Wang Zhenbin, Liu Jiayou et al. Optiization of extraction process of fig polysaccharide and its ultrasonic odification [J], Chinese Journal of agricultural engineering, 2014,30 (10): 262-269 [8] Zeng Wei, Wang Haitao, et al. Research on laser ultrasonic defect detection based on energy analysis [J], Chinese Journal of instruent and eter, 2014,35 (3): 650-655 [9] Li Changlu, Su Hansong. Research on [J] ultrasonic positioning syste, laboratory research and exploration, 2013, 32 (2): 39-44. 148

[10] Chen Jian, Sun Xiaoying, Lin Lin, Wang Bo. Detection ethod of a kind of high precision ultrasonic wave arrival tie [J], Journal of the instruent and eter, 2012,33 (11): 2422-2428 [11] Li Bin Chen Jieyu. Coparison ethod based on double threshold ethod for ultrasonic floweter signal processing [J], Journal of electronic easureent and instruent, 2013,27 (11): 1024-1033 149