Introduction: Heads Up!!

Students and adults usually have lots of works to write or books to read; however, their heads often come closer and closer to the books without themselves noticing. In order to solve this problem, I create a device to avoid people getting myopia when they come closer to the books. The device has two LEDs, one green and another is red, one ultrasonic sensor to measure the distance and an LCD panel to shows the distance. When your head is too close to the book, the ultrasonic sensor will detect it and the LEDs will blink to remind you to maintain the proper distance.


  • 1 Ultrasonic Sensor
  • 1 LCD panel
  • Wires
  • LEDs (any colors)
  • 1 Breadboard
  • 1 Arduino board
  • Cardboards
  • Tapes or glues

Step 1: Programming

This is my programming code link:

Step 2: Wiring


Vcc to 5v (+)

Trig and Echo to any two Digital Pin

GND to GND (-)


LED long leg to GND (-)

LED short leg to resistor

Resistor to Digital Pin

LCD Panel (i2c):



GND to GND (-)

Vcc to 5V (+)

Step 3: Final

Take the cardboard and stick them together to any shape you want as long as you are able to put your board into and doesn't affect the ultrasonic distance sensor works. After that, you FINISHED the device, CONGRATS!!!!