Ultrasonic Based Distance Measurement

Materials required

  • PIC16F873
  • HC-SR04(Ultrasonic Sensor)
  • Lcd JHD162A
  • Crystal – 12Mhz
  • Resistor-10k
  • Variable resistor-5k
  • Capacitor – 22pF, 10uF

Circuit arrangement

ultrasonic_distance_meter

Code:

Imp:- Code Written in MikroC Pro

 

 

Add Comment