I was inspired to make a device that allows people to know if they're social distancing.

My project uses an ultrasonic sensor that measures the wavelengths of an object in order to calculate the distance. From there I've coded LED lights to alert a person to know that they are close. As a person gets closer to an object the more LED lights up.

First I attached an ultrasonic sensor to my breadboard from there I connected my VCC and GND into inputs on my R3 controller board. Next, I connected 7 led lights and to my breadboard and attached 220-ohm resistors to the positive end of my LEDs. Then, I attached 7 jumper wires from the end of my resistors to digital outlets on my R3 controller board. Lastly, I coded all functions in Arduino.

I initially had problems connecting my resistors to my breadboard, but with a steady hand, I was finally able to get the whole thing to work.

I'm proud that I was able to figure out how to properly code my project

I learned that if I wanted to code a LED light to correspond with a distance (ultrasonic sensor output) I would need to create if..... else statements in my code.

Next, I think I want to expand on my hack and allow it to work for longer distances.

Built With

Share this project:

Updates