Buzzing Basketball Hoop With Shotclock

by coolguy20786 in Circuits > Arduino

24 Views, 0 Favorites, 0 Comments

Buzzing Basketball Hoop With Shotclock

Swanky Juttuli.png

Hi there! I have created an Arduino attachment to a DIY Basketball hoop that makes shots more satisfying. The main purpose of this attachment is to give an energizing experience to making a basketball shot. This attachment has two mode: a normal mode that activates a green LED and a buzzer, and a shot-clock mode using a Seven Segment Display!

Supplies

Adding Power and Ground to the Breadboard

power.jpg

First, you will need to connect two wires to the 5V and GND on the Arduino UNO, they can be found on the left side of the Arduino UNO. Once that is finished, you will take the other end of the wire that is connected to 5V on your Arduino and connect it to the + Rail at the top of the breadboard. Connect the wire that is connected to GND on your Arduino to the - Rail on your breadboard. Once that is done, grab two extra wires and add a wire to the top + rail and connect it to the bottom + rail. Then, connect the second extra wire and connect it to the top - Rail and the connect the other side to the bottom - Rail.

Connecting the Ultrasonic Distance Sensor

IMG_4872 Large.jpeg
IMG_4873 Large.jpeg
IMG_4871 Large.jpeg

Next, place the Ultrasonic Distance Sensor on your breadboard, preferably near the far left side. Then, connect a wire to the VCC connection to the + rail on your breadboard. Next, connect another wire to the GND section of your breadboard and plug it into the - rail on your breadboard. Now, connect a wire to the TRIG pin on your distance sensor to one of your Arduino Digital Pins. I chose Digital Pin 1 for mine. Then, connect another wire to the ECHO pin on your distance sensor to one of your Arduino Digital Pins. I chose Digital Pin 2 for ECHO.

Connecting the Buzzer

IMG_4874 Large.jpeg
IMG_4875 Large.jpeg
IMG_4876 Large.jpeg

On your breadboard, place the pin facing the opposite of the Buzzer's + icon to the - Rail of the breadboard. Once that is finished, grab a wire and connect it to the pin of the + side of the buzzer, and connect the other end of the wire to one of your Arduino Digital Pins. I chose Digital Pin 4 for mine.

Connecting the Green LED

IMG_4877 Large.jpeg

Next, place the Green LED onto your breadboard. Place a 330Ω resistor on the - rail of your breadboard, and connect the other pin of the resistor to the Cathode (shorter leg of LED) of the LED. Then, grab a wire and connect it to the Anode (longer leg of the LED) of the Green LED, and add it to a PWM (the Digital Pins with the "~" symbol next to the number" Digital Pin on your breadboard. I chose PWM Digital Pin 3.

Attaching the Push Button

IMG_4878 Large.jpeg
IMG_4879 Large.jpeg
IMG_4880 Large.jpeg

Place the Push Button in the middle of the breadboard, where it is separating the five rows of connection rails. Connect the left side of the Push Button to the + rail, connect the right side of the Push Button to the - rail using a 10KΩ resistor. Once that is finished, grab a wire and connect one wire end to the other side of the Push Button that is connected to the - rail, and connect the other end to a Arduino Digital Pin. I chose Digital Pin 5.

Connecting the Seven Segment Display

IMG_4881 Large.jpeg
dummy.png

Place the Seven Segment Display on the breadboard, and connect a 330Ω resistor to the + pin to the bottom Common connection of the Seven Segment Display. Repeat this step on the top of Seven Segment Display. Then, you will need 7 wires to connect to the A, B, C, D, E, F, G, pins on the Seven Segment Display. Place a wire to the A pin on the Seven Segment Display, and connect it to a Arduino UNO Digital Pin. I chose Pin 6 for Pin A for the Seven Segment Display. Repeat this step for the remaining pins on the Seven Segment Display.

Coding the Circuit

I have created the code and have provided it below, feel free to adjust the numbers at the top to fit the pins of your objects.

Completed Circuit

This is how the circuit should work once completed correctly! Additionally, you can mount the circuit onto a DIY Basketball hoop to use it to it's fullest potential!

Downloads