【正文】
[14] Daniel J. Dailey, F. W. Cathey, and Suree Pumrin. An Algorithm to EstimateMean Traffic Speed Using Uncalibrated Cameras. IEEE Transactions onlntelligent Transportation Systems, 2000:98107 [15] 王香婷,蘇曉龍. 基于PC機和單片機的光傳感器實驗系統(tǒng)設(shè)計與實現(xiàn)[J]. 實驗室研究與探索,2007,(04):1819 Vehicle Velocity Measurement System Based on Singlechip Microputer XXXX(XXXXXX)Abstract This design uses AT89S52 microcontroller as the control chip, by acquiring the Hall sensor signal being measured, the measured signal for display on the LCD through the calculation of the singlechip microputer, also through the matrix keyboard setting calculation parameters, and the use of memory chip to store important data and parameters, finished the design of hardware circuit design and software algorithm basic. The measurement system is cheap, easy to use, high reliability, and can effectively improve the speed sensor output signal measurement accuracy and stability, has unique advantages in daily life.Keywords AT89S52 。 the Hall sensor附錄1 整體電路圖附錄2 系統(tǒng)程序include include define uint unsigned intdefine uchar unsigned charsbit RS=P2^6。 //讀寫選擇位,sbit E=P2^7。//uchar buf[10]。uchar dis1[]={Speed test....}。void delay1ms(uchar ms){ uchar i,j。ims。j110。}uchar lcd_busy() { bit result。 RW=1。 _nop_()。 _nop_()。 result = (bit)(P0amp。 E=0。}void lcd_wcmd(uchar cmd){ while(lcd_busy())。 RW=0。 _nop_()。 P0=cmd。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 E=0。}void lcd_wdat(uchar dat) { while(lcd_busy())。 RW=0。 P0=dat。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 E=0。 lcd_wcmd(0x38)。 lcd_wcmd(0x38)。 lcd_wcmd(0x38)。 lcd_wcmd(0x0c)。 lcd_wcmd(0x06)。 lcd_wcmd(0x01)。 }void T1_Init(){ TMOD |= 0x10。 IP=0x08。 TL1 = (6553550000)%6。 TR1 = 1。}void my_INT0(void) interrupt 0{ M1++。 TL1 = (6553550000)%6。 if(i==20) { i=0。 shi1=(M10/10)+48。 M1=0。 IT0=1。 TR0=1。//定時器中斷開啟標(biāo)志 TMOD=0X01。 TL0=(6553650000)%256。 //關(guān)外部中斷0 mm++。 }void time1(void) interrupt 1 { TH0=(6553650000)/256。 n++