Instructables

LED Hat Display with Pong

Featured
A while ago, as my first microcontroller project, I made a Pong game on a 5x7 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!


 
Remove these adsRemove these ads by Signing Up

Step 1: Materials

Picture of Materials
Parts:
-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

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

Picture of Solder the Power Connections
DSCN1059.JPG
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

Picture of Attach the LEDs to the Board
DSCN1068.JPG
DSCN1070.JPG
Pong Hat Schematic.bmp
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

DSCN1073.JPG
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.
1-40 of 42Next »
well thats a really nice project
I am Greek and the letters ertw are greek so i wonder if they or u are related to greece someway
i cant though find their meaneing i would love an answer
reggae_boyz3 years ago
UOIT being represented rather nicely, good job.
thejuggler5 years ago
Does ERTW stand for Electronics, Robotics, Technology, W00T?
J_Hodgie (author)  thejuggler5 years ago
Nope, Engineers Rule The World.
love the hard hat and love the choice of song.
J-Five6 years ago
Cool But I think someone had just too much time on their hands.
bumsugger6 years ago
Sheeeeeeeeesh!!
puzzlefreak6 years ago
That was simply awesome. Nice project.
Patrik6 years ago
Very cool project! And just ever so slightly geeky. :-D

That 5x7 LED display is a great find, by the way - $1.49 for 70 LEDs! That's just over 2 cents per LED - must be some sort of record...

Since you're at an engineering school, I assume ERTW stands for Equal Rights Towards Women. Now, can I get my bonus points? ;-)

Google - is there anything it can't do?
J_Hodgie (author)  Patrik6 years ago
Thanks for the comment. Not quite, but it is in the link.
it's engineers return to work, i think this because you say the hat is for an engineering project.
Derin Patrik6 years ago
yes it cant give me pages for my school reports
sidgug6 years ago
Great project. Well done. I will be able to learn a lot from studying your code. I'm just not sure about the bi-colour display. Will I need to change much in the code if I just hook it up to a single colour matrix? Thanks for posting the code.
J_Hodgie (author)  sidgug6 years ago
No, I just controlled the bi-colour display in the hat through the dip-switches above it, so the code is already in one colour.
you are a genus but im only 10 and cant do this but i'll probaly try i'd put it on my math book need some thin to do lol
Thornburg6 years ago
It is so awesome, yet so random. I am impressed. +1 Favorited
clamoring6 years ago
Very very nice work. I was looking for an Arduino project. This looks like just the thing!
DamionLee6 years ago
That's a nice Instructable. Almost has me ready to go into the attic to find my old hard-hat. Think I may have to find some other housing for it instead. Well done.
ansem276 years ago
(removed by author or community request)
That's a very suspect link ansem. Perhaps you should take your spam elsewhere. (The link is not for Think Geek, but for some page on a free host with ansem's name in it - look at the status bar at the bottom of your browser when hovering your mouse cursor over a link before clicking on it).
ongissim6 years ago
Awesome! This is similar to this; only your led matrix is in landscape, which makes pong much easier to play! Nice job.
noremakk6 years ago
Is there a way to program the display using a Mac?
J_Hodgie (author)  noremakk6 years ago
Yes, there is. There are also some more resources at http://www.arduino.cc/
maker126 years ago
ponghat!
dj whatever6 years ago
OMG we have the same heli. I have an Instructable for this!!!
gmoon6 years ago
Nooooo liner?? Canya nay wear it, laddie? (awwwww, you get a + anyway. Nice job.)
J_Hodgie (author)  gmoon6 years ago
There is a liner, it is propping the helmet up in the main photo. I just removed it to take a picture of the finished electronics. And thanks for the comment.
mrmath6 years ago
You got my vote for the LED contest.
J_Hodgie (author)  mrmath6 years ago
Thanks!
455H0136 years ago
Hey, do you go to UOIT? Also, engineers rule the world
455H013 455H0136 years ago
Replying to myself, it says you do on step 9. I'm a second year mech eng.
J_Hodgie (author)  455H0136 years ago
Yes I do, I am in second year mechatronics.
darkmuskrat6 years ago
I agree with Gorillaz, this is cool
Incredible job. Reminds me a lot of Kiteman's UV Ray light Instructable.
stourleyk6 years ago
Oh, I thought it said, "with bong." My bad.
nagutron6 years ago
My lord. This just reminded me of one of the funniest Overheard in New York posts of all time:

And What Part Will the Helmet Play in That?

Nerdy hipster to friends: You want nerdy? You know what I did today? I worked on this robot helmet I'm making on my floor. Yep, a robot helmet complete with LED lights -- for my girlfriend. See? That's love right there.
Girlfriend, explaining: I told him we could have butt sex.
Nerdy hipster, emphatically: But not until I finish the helmet!

--L train
Kiteman6 years ago
Very nice - the long pots make it look quite impish, but aren't they vulnerable to getting knocked off? Maybe shorter knobs would have been better?
J_Hodgie (author)  Kiteman6 years ago
Thanks. The long pots are very sturdy, no risk there, so it is basically what you want (or to get the more authentic pong feeling)
Hey what engineering competition are you talking about? FIRST? an awesome hard hat
J_Hodgie (author)  angelicgundam906 years ago
The competition is the Ontario Engineering Competition. Thanks.
1-40 of 42Next »