Introduction: Lego Arcade Game Box
Hey everyone, this is my first instructable and I'm going to show a way to make a cool Lego display that can be used in a variety of ways. In my case, it hosts arcade games.
This project isn't too hard to assemble but it's clean and has endless possibilities in terms of coding after the initial construction. Also, the code I wrote is fully scale-able so it'll work on any size display whether that be 16x16, 8x8, or anything in between. I haven't tested it with anything larger but I'm sure the program would work the same (just a bit slower).
The materials I used for this are as follows:
- Lego Bricks (excuse the knockoff pieces)
- 2x8 plates (x20)
- 2x4 bricks (probably close to 100)
- 1x1 bricks with side attachment point (x18)
- Dot Matrix (x4)
- mCookie Core & Hub
- IR Receiver
- IR Remote (Any should really work although one comes in the expert mCookie kit)
- mCookie Battery Pack
- I think you'll need to buy the jumper wires separately if you don't get a kit.
Step 1: Put the Displays Together
Before getting started on the Legos, the screens need to come together. To do this, I hot-glued the four screens at the edges then linked them as seen in the picture. The screens are similar to the Adafruit neopixel displays and operate off the same library.
Step 2: Construction of the Frame, Planning
Luckily enough, the dimensions of the display work out nicely for Legos. The actual width/height of the full made display is just under 15 and 1/3 blocks. The edges of the displays are around 1.25 blocks in thickness so some tricks can be done with side mounting brackets. Finally, the height of the display is roughly 13 blocks.
With these dimensions, designing a frame becomes pretty straightforward.
Step 3: Construction of the Frame, Building It
The assembly of Legos is pretty straight forward so here are some detailed images to guide the process. The walls are completely divided into parts because there needs to be a little room for flexibility as the screen doesn't quite fit perfectly into the frame.
The side walls are mirror images. There is only one shown here.
Step 4: Add on the Processor!
So this is where the mCookie set comes in handy. Assembly is extremely easy for the mCookie boards (Pogo-pins and magnets are literally magic) and the Lego integration makes the cores easily mountable on the back-side of the display. All the screen needs is a core module and a hub module through which the screen connects to the IIC (I2C) port. The IR Receiver is connected to data pins 6/7.
Step 5: Program the Goodies
The mCookie set is, basically, a miniaturization and simplification of Arduino boards/shields. It uses a modified Arduino IDE (available on their website) to make the programming the boards identical to the process for your standard Arduino.
I wrote a basic abstract class (Game) for developing games and a sample game (Snake) to see how each function is implemented. The sketch + class + README (read it for play instructions) files are available in the attached zip. If you end up making some games with this please post them as I'd love to see what other people are doing!
9 Comments
6 years ago
Pretty cool and innovative. The Microduino website doesn't seem to offer these parts for sale, so I presume this was a review. If all goes well, it should fit a niche for younger programmers to grow out of regular Lego to automated Lego devices. Great ideas, and a very interesting project.
Reply 6 years ago
Basically what they said. I got the kit recently and had already started brainstorming the project so I threw it together pretty quickly.
Reply 6 years ago
You did a heck of a job. My kids grew up with Lego and are just now getting old enough to program. But they are thinking that programming is pretty mundane compared to the video games they play and imagine making. Something like this would be just perfect for them. I'm glad you did this project, and hope you do more like it. Cheers
Reply 6 years ago
Mundane! I think not! Make sure to get them invested in coding as it'll be just as useful as any spoken language in the future! They'll also never get to make those video games without knowing a language :P
It's my pleasure to be able to make something that other's can use and/or enjoy. I'm glad you like it!
Reply 6 years ago
We (Microduino) released a few early samples of our next product line to be tested and they will soon be available in our store.
Our Indiegogo campaign is launching this new series into the market:
https://www.indiegogo.com/projects/itty-bitty-city-bring-your-ideas-to-life-toys
6 years ago
This is a nicely done project and a great use of the kit! We'd love to see more!
Reply 6 years ago
Thank you! I'll probably use the set for future projects and I don't mind sharing :)
6 years ago
Excellent first instructable! This setup looks good, and your instructions are clear. Nicely done all around :)
Reply 6 years ago
Thanks! :D