Skip to content

Latest commit

 

History

History
26 lines (12 loc) · 640 Bytes

README.md

File metadata and controls

26 lines (12 loc) · 640 Bytes

Distance Measurement with HC-SR04 on an LCD

This is a random thing I made on my journey to build fun stuff with electronics

It measures distance using an ultrasonic sensor and displays the result on a 16×2 LCD.

I ran this using the platformIO extension on vscode with the ARDUINO framework

Hardware

  • ESP32 (what im using but other microcontrollers should be fine, just watch the pins and libraries)

  • Ultrasonic sensor: HC-SR04 (has echo and trig pins seperate)

  • 16×2 LCD (had to suffer on 4-bit mode since i didnt have an I2C)

  • Potentiometer (for LCD contrast)

  • Breadboard and jumper wires

DEMO

[WIP]