Heads Up!!

by rickywang0601 in Circuits > Arduino

191 Views, 0 Favorites, 0 Comments

Heads Up!!

IMG_20200528_000200.jpg

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.

Supplies

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

Programming

Image 1.png

This is my programming code link:

https://create.arduino.cc/editor/ricky0601/610b425b-840a-4050-94c5-3e877d04aa8d/preview

Wiring

Image 3.png

Ultrasonic:

Vcc to 5v (+)

Trig and Echo to any two Digital Pin

GND to GND (-)

LED:

LED long leg to GND (-)

LED short leg to resistor

Resistor to Digital Pin

LCD Panel (i2c):

SCL to SCL

SND to SND

GND to GND (-)

Vcc to 5V (+)

Final

IMG_20200528_000200.jpg
IMG_20200528_000204.jpg

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!!!!