How To Make A Distance Meter Using Ultrasonic Sensor

Hello friends, this is my new project using ultrasonic sensor. Actually this is distance meter which show the result on centimeter, Inch, meter also pause and reset option using button.

Components :

  1. Arduino Nano :
  2. HC-SR04 Ultrasonic Sensor
  3. TP-4056 Charging Module
  4. Lithium Battery
  5. SSD 1306 Module
  6. Push Switch
  7. 10K resistor
  8. ON-OFF Switch
  9. MDF Board

Diagram :

Code: