Arduino LED Pong V2.0 - Let There Be LIGHT!
by NewsonsElectronics in Circuits > Arduino
170 Views, 2 Favorites, 0 Comments
Arduino LED Pong V2.0 - Let There Be LIGHT!



In this tutorial, I’ll guide you through my new and improved LED Pong Version 2.0. This updated design is only 6mm thick and significantly more affordable than my first version, as I plan to mass-produce it for one of my school’s ECA projects. I’ve also enhanced the gameplay: now you can hold down to charge an LED, and the longer you hold it, the faster it will bounce toward your opponent. Whether you’re a beginner or have some experience with Arduino, this guide will walk you through all the steps you need to get started!
Supplies



Electronic Components:
- Arduino Nano x 1 → Amazon.ca | Amazon.com | Taobao
- TP4056x 1 → Amazon.ca | Amazon.com | Taobao
- 3.7v 200mAh Battery → Amazon.ca | Amazon.com | Taobao
- Push Buttons (6*6*4.3mm) x 2→ Amazon.ca | Amazon.com | Taobao
- SS12D00G3 3mm switch x 1→ Amazon.ca | Amazon.com | Taobao
- WS2812B 5V LED stripx 1 → Amazon.ca | Amazon.com | Taobao
- 1810 speaker→ Amazon.ca | Amazon.com | Taobao
- Thin copper wire→ Amazon.ca | Amazon.com | Taobao
Materials for Construction:
Cut Out the Wood

Download the CAD file and cut out the main wood board Cad files
Insert the Buttons and Speaker


Gently insert the two push buttons using a rubber mallet, ensuring they fit securely. If they do not fit properly, adjust the tolerance of the hole dimensions in the wood. Make sure the buttons are oriented correctly.
Next, insert the speaker and ensure the wires are positioned in the correct direction.
Insert LED Strip


Cut a section of 7 LEDs from the addressable LED strip. Remove the 3M adhesive backing and carefully bend the ends so they fit through each of the slots. Make sure the arrows on the strip are pointing in the correct direction.
Next, insert the small switch.
Solder the GND Wires


Using a piece of copper wire, solder one of the push button LEDs to the GND terminal of the LED strip.
Next, solder the black ground wire from the speaker to one of the LED terminals on the power switch.
Solder 3PIN to D4,5,6


Solder three pins to digital ports 4, 5, and 6 on the Arduino Nano. Once soldered, bend the pins horizontally so they can be connected to the LED strip contacts for GND, DATA, and 5V.
Insert the switch pin into the GND port of the Arduino Nano.
Solder Speaker


Solder the second leg of the button to GND.
Solder the positive wire of the speaker to digital pin 13.
Solder D2 to the push button.
Solder Button Sense Pins


Solder D2 to the right push button
Solder A1 to the left push button
Solder Battery Charger


Solder the positive and negative wires of the 3.7V battery to the TP4056 battery charger.
Using thicker wire, solder the positive wire to the 3-pin terminal of the power switch and the negative wire to VIN on the Arduino Nano.
Apply a small amount of hot glue under the charger and battery to secure them to the board.
Upload the Code


Plug in the board and open up Ardunio IDE to download the code,
If you are interested in the design process check out this video. Design Video