Displaying Distance by Using Ultrasonic Sensor and Two 7-Segments

This is the third project of Human Interaction and Computer (II3231) subject.

This time, we have to combine one (or more) 7-Segment sensors with another sensor—anything. So, we made a tool to measure distance by utilizing Arduino Uno.

Oh, before I forget, we made this at 2 o’clock in the morning. It just so happened that my friend randomly wanted to make this project at that time.

Okay, here are the tools and materials for this project:

  1. Arduino Uno
  2. Arduino-to-PC USB Cable
  3. Jumper cables (I counted 20 cables)
  4. 2 7-Segments (common cathode)
  5. Breadboard (preferably the big ones)
  6. Ultrasonic Sensor (HC-SR04)

Below are the schematics and the coding required for this project:capture-3
And here are the screenshots of the coding (here‘s the source code):

This slideshow requires JavaScript.

If you noticed carefully, there are several cables that are going into the same Arduino pin. We did this due to the limited pin available in Arduino. Cables who have the same kind of pins will go into the same Arduino pin so they can work alternatively.

Thank you for all of my friends, including Fat Han. Also, don’t forget to watch our result at YouTube. If you feel generous, don’t forget to like, comment, and subscribe! Cheers!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s