Đầy Đủ các file sch(mạch in, mạch nguyên lý...),code Chương trình code: include include define Line_1 0x80 define Line_2 0xC0 define Clear_LCD 0x01 define CPU_F 25000 define LCD_RS P0_0 define LCD_WR P0_1 define LCD_EN P0_2 Dinh Nghia Cac Chan DaTa define LCD_D4 P2_3 define LCD_D5 P2_2 define LCD_D6 P2_1 define LCD_D7 P2_0 define TRIGGER P1_7 define ECHO P3_2 unsigned char range_ok; unsigned int distance; float range; unsigned long range=0xffffffff; float temp1; .......................
16 1 K GND VEE 3 2 15 VCC A R10 RS R/W E D0 D1 D2 D3 D4 D5 D6 D7 7 8 9 10 11 12 13 14 4 5 6 10k +5V LED2 R11 10k SRF05-5 LCD 16x2 TRIGER 10k SRF05-4 ECHO R9 SRF05-3 LED1 SRF05-2 ECHO TRIGER NC R8 10k +5V +5V SRF05-1 B1-1 B1-2 B1-3 B1-4 B1-5 B1-6 A1-1 A1-2 A1-3 A1-4 A1-5 A1-6 +5V +5V GND +5V A +5V B-1 B-2 B-3 B-4 B-5 B-6 TRIGER 1 2 3 4 5 6 7 8 P27-A15 P26-A14 P25-A13 P24-A12 P23-A11 P22-A10 P21-A9 P20-A8 28 27 26 25 24 23 22 21 ALE PSEN 30 29 VCC EA 40 31 GND 20 RS RW EN R6 XTAL2 39 38 37 36 35 34 33 32 10k R5 19 P00-AD0 P01-AD1 P02-AD2 P03-AD3 P04-AD4 P05-AD5 P06-AD6 P07-AD7 R4 10k XTAL1 2 18 1 Q1 33pF C2 RST 12Mhz 9 10k 33pF C1 IC2 R1 ECHO P30-RXD P31-TXD P32-INT0 P33-INT1 P34-T0 P35-T1 P36-WR P37-RD D4 D5 D6 D7 +5V A-1 A-2 A-3 A-4 A-5 A-6 R7 10 11 12 13 14 15 16 17 P10 P11 P12 P13 P14 P15 P16 P17 +5V GND 330 10k GND GND S C3 10uF 3 4 S1 + 1 2 R2 103 E +5V GND AT89S52-1 +5V D4 1N4007 IC1 7805TV C6 1000uF 104 VO GND GND 330 3 R3 + C4 VI 2 + D3 1N4007 X1-2 D1 1N4007 1 X1-1 C5 C7 1000uF 104 LED_POW D2 1N4007 GND