Summary of LED Hat Display with Pong using an Arduino
This project transforms a standard engineering hard hat into an interactive Pong game console featuring a custom scrolling 5x7 bicolor LED display. The author utilizes an ATmega168 microcontroller (or Arduino) to drive the display and manage game logic, powered by a lithium polymer battery. The build involves soldering components onto a breadboard, integrating dip switches for mode selection, and mounting the electronics securely within the helmet using hot glue, resulting in a portable gaming accessory.
Parts used in the LED Hat Display with Pong:
- 2 10k potentiometers
- 3 4.7 kOhm resistors
- 4 SPST toggle switches
- 1 5x7 bicolour LED display
- 1 8 pin dipswitch
- 1 Hardhat
- 1 atmega168 microcontroller (or arduino)
- 1 28 Pin 'skinny' socket
- 1 breadboard
- 1 3.7V lithium polymer battery
- Wire
- Solder
- Hot Glue
A while ago, as my first microcontroller project, I made a Pong game on a 5×7 LED display, but then nothing became of it. Recently I was given a hard hat as part of a uniform (for an engineering competition) and told to customize it, and remembered pong.
In this instructable I will show you how to make a scrolling LED display and how to install it in a hard hat. It also plays pong!
LED_Diaplay_Code.zip91 KB
Step 1: Materials
Parts:
-2 10k potentiometers
– 3 4.7 kOhm resistors
-4 SPST toggle switches
-1 5×7 bicolour LED display
-1 8 pin dipswitch
-1 Hardhat
-1 atmega168 microcontroller (or arduino)
-1 28 Pin ‘skinny’ socket
-1 breadboard
-1 3.7V lithium polymer battery
-Wire
-Solder
-Hot Glue
Tools:
-Soldering Iron
-Hot Glue Gun
-Wire Stripper
-Hobby Knife
-Plexiglas Cutting Knife
– Microcontroller Programmer (optional)
Step 2: Solder the Display
For the first step, you need to solder wires to the display. You will also need to solder one switch from the dip switch between the two colours’ cathodes for each row. To make it clearer I have attached a schematic of the display in the pictures (click the [i] on the picture to get the full sized version).
For the next step I used switch 8 for a ‘travel mode’. This is so the hat isn’t accidentally turned on in a bag and drained.
Step 3: Solder the Power Connections
For this step you need to solder the microcontroller socket to the breadboard. Then solder all of the power connections to the microcontroller socket pins. If you are unsure which pins to solder, there is a good reference here.
Step 4: Attach the LEDs to the Board
Now you need to attach the wires coming off the LED display to the breadboard. To help with this see the attached schematic, or you can look in the code in the intro to find the output pins on the arduino.
Step 5: Solder Switches
Next solder the switches to the breadboard. I have again attached the schematic in the pictures of this step.
For each switch, it is one contact of the switch connected to the corresponding microcontroller pin and the other to the positive voltage. There is also one resistor from the input pin to ground for each switch.
For more detail: LED Hat Display with Pong using an Arduino
- What is the main function of switch 8 in this project?
Switch 8 is used for a travel mode so the hat is not accidentally turned on in a bag and drained. - How are the input pins for the switches connected?
One contact connects to the corresponding microcontroller pin, the other to positive voltage, with one resistor from the input pin to ground. - Which microcontroller can be used for this project?
The project uses an atmega168 microcontroller or an Arduino. - How do you connect the LED display wires?
You attach the wires coming off the LED display to the breadboard following the provided schematic or code output pins. - What tool is required to cut the plexiglas?
A Plexiglas Cutting Knife is listed as a necessary tool. - Can a microcontroller programmer be skipped?
Yes, a Microcontroller Programmer is optional. - How is the display powered?
The system is powered by a 3.7V lithium polymer battery. - What method is used to secure components inside the hat?
Hot Glue is used to secure the components.


