As the Jerusalem mini Makerfaire approached, [Avishay] had to come up with something to build. His final project is something he calls ASTROGUN. The ASTROGUN is a sort of augmented reality game that has the player attempting to blast quickly approaching asteroids before being hit.
It’s definitely reminiscent of the arcade classic, Asteroids. The primary difference is that the player has no space ship and does not move through space. Instead, the player has a first person view and can rotate 360 degrees and look up and down. The radar screen in the corner will give you a rough idea of where the asteroids are coming from. Then it’s up to you to actually locate them and blast them into oblivion before they destroy you.
The game is built around a Raspberry Pi computer. This acts as the brains of the operation. The Pi interfaces with an MPU-9150 inertial measurement unit (IMU). You commonly see IMU’s used in drones to help them keep their orientation. In this case, [Avishay] is using it to track the motion and orientation of the blaster. He claims nine degrees of freedom with this setup.
The Pi generates the graphics and sends the output to a small, high-brightness LCD screen. The screen is mounted perpendicular to the player’s view so the screen is facing “up”. There is a small piece of beam splitting glass mounted above the display at approximately a 45 degree angle. This is a special kind of glass that is partially reflective and partially translucent. The result is that the player sees the real-world background coming through the glass, with the digital graphics overlaid on top of that. It’s similar to some heads-up display technologies.
All of the electronics fit either inside or mounted around a toy gun. The display system was attached with a custom-made fiberglass mount. The code appears to be available via Github. Be sure to watch the video of the system in action below. Continue reading “ASTROGUN is like Asteroids on Steroids”
Building a multiplayer network game with multiple Raspberry Pis can be very difficult. Doing it in assembly is outright insane! This is exactly what a group of first year students at Imperial College London did; they created a network based multiplayer Tetris game for the Raspberry Pi.
[Han], [Piotr], [Michal], and [Utsav] have created this entire game from bare metal assembly, and it only consists of 4000 lines of code! The code is well documented, so be sure to look through their Github repository. This project is a great reference for those looking to learn bare metal assembly and networking. They even chose to use the old NES controllers, a very nice touch. While we have featured what seems like a million different Tetris games in the past, this is the first multiplayer version. See Tetris Duel in action in the video after the break!
This is a shout-out to all of you students out there. Take the time to create quality documentation for your class project, and upload it to the internet. Not only is it a great resume boost, but it could very well end up on Hackaday!
Continue reading “Tetris Duel with the Raspberry Pi”
We’ve all been there. You are having fun walking around the carnival when you suddenly find yourself walking past the carnival games. The people working the booths are taunting you, trying to get you to play their games. You know the truth, though. Those games are rigged. You don’t know how they do it. You just know that they do… somehow.
Now you can put your worries to rest and build your own carnival game! [John] built his own “Bass Master 3000” style carnival game and posted an Instructable so you can make one too.
The game is pretty straightforward. You have a giant fish-shaped target with a wide open mouth. You take hold of a small fishing reel with a rubber ball on the end. Your goal is to cast the ball out and hit the fish in its big mouth. If you hit the mouth, you get to hear a loud buzzer and see some flashing lights. The system also uses a webcam to take a candid photo of the winner. A computer screen shows all of the winners of the day.
The brain of the system is an Arduino Yún. The Yún is similar to an Uno but it also has some extra features. Some good examples are an Ethernet port, a wireless adapter, and an SD card slot. The mouth sensors are just two piezo elements. Each sensor is hooked up to the Arduino through a small trim pot. This allows you to dial in the sensitivity of each sensor. The lights and the buzzer are controlled via a relay, triggered by a 5V digital pin on the Arduino.
The Yún actually has a small on-board Linux computer that you can communicate with from inside the Arduino environment. This allows [John] to use the Yún to actually take photos directly from a web cam, store them on the local SD card, and display them on a local web server. The web server runs a simple script that displays a slide show of all of the photos stored on the card.
The final piece of the game is the physical target itself. The target is painted using acrylic paint onto a small tarp. The tarp is then attached to a square frame made from PVC pipe. The mouth of the fish is cut out of the tarp. A large piece of felt is then placed behind the hole with the piezo sensors attached. A short length of copper pipe helps to weigh down the bottom of the felt and keep it in place. The important thing is to make sure the felt isn’t touching the tarp. If it touches, it might be overly sensitive and trigger even when a player misses.
Now you know how to build your own Bass Master 3000 carnival game. Whether you rig the game or not is up to you. Also, be sure to check out a video of the system working below. Continue reading “Build a Bass Master 3000 Carnival Game”
Summer is upon us. The Lightgame Project is a multiplayer reaction time based game built around the Arduino. It’s a perfect rainy day project for those restless kids (and adults!). Designed by two undergraduate students [Efstathios] and [Thodoris] for a semester long project, all the hard work has already been done for you.
There are tons of reasons we love games that you can build yourself. For one, it’s an amazing way to get children interested in hobby electronics, making, and hacking. Especially when they can play the game with (and show off to) their friends. Another reason is that it is a perfect way to share your project with friends and family, showcasing what you have been learning. The game is based on your reaction time and whether or not you press your button when another players color is shown. The project is built around two Arduinos connected via I2C. The master handles the mechanics of the game, while the slave handles the TFT LCD and playing music through a buzzer.
I2C is a great communication protocol to be familiar with and this is a great project to give it a try. [Efstathios] and [Thodoris] did a great job writing up their post, plus they included all the code and schematics needed to build your own. It would be great to see more university professors foster open source hardware and software with their students. A special thanks goes out to [Dr. Dasygenis] for submitting his student’s work to us!
Continue reading “The Lightgame Project: A Multiplayer Arduino Game”
Building an LED cube is a great way to learn how to solder, while building something that looks awesome. Without any previous experience with soldering or coding, [Anred] set out to create a simple 8x8x8 LED cube gaming platform.
Rather than reinventing the wheel, [Andred] based the LED cube off of three separate Instructables. The resulting cube came out great, and the acrylic casing around it adds a very nice touch. Using an Arduino Mega, the 74HC574, and a few MOSFET’s to drive his LEDs, the hardware is fairly standard. What sets this project apart from many other LED cube builds, is the fact that you can game on it using a PlayStation 1 controller. All the necessary code to get up and running is included in the Instructable (commented in German). Be sure to see the cube in action after the break!
It would be great to see a wireless version of this LED cube game. What kind of LED cube will gaming be brought to next? A tiny LED cube? The biggest LED cube ever? Only time will tell.
Continue reading “Gaming on an 8x8x8 LED Cube”
This project was completely component driven. [Christopher] and [Robert] wanted to try out buttons with an RGB backlight option. They found the one shown above, which looks fantastic. It should since it costs over twenty bucks in single units. What they came up with is a one pixel video game that works like a color matching version of Simon Says. The button will show you the target color for just a moment. The player then holds the button as it fades through colors. Releasing it at the right instant will produce a green flash, a wrong shade results in a red flash.
They went with an Arduino Mega for the project as that was within easy reach. A hunk of protoboard is used as a shield, it includes the button itself, connected through some current limiting resistors to the pins that drive the LED. There is also a tactile switch which actuates the AVR’s reset pin.
When trying to get the LED to fade through the full range of colors [Christopher] was hit with a common problem. Since our eyes don’t detect changes in low and high intensity light the same way, you can’t use linear changes in PWM and get a smooth result. He fixed this by using Gaussian curves to set the intensity levels.
Continue reading “One pixel video game rises from RGB button hardware”
The team at North Street Labs really went all out with this Tic-Tack-Toe stomp box. At its most basic it’s a blinky version of the simple two-player game. But there’s always some added appeal when you make large manifestations of normally small items; the 10x Arduino is a good example of this.
The project is NSL’s qualifying entry for this year’s Red Bull Creation Contest (has it already been a year since the last contest?). A special Arduino shield was produced once again, this time it features hardware necessary to control LED strips… a lot of them. That led to the creation of this box, which houses a ton of strip sections inside to light the grid based on tapping one of the red buttons with your foot. We’d image the game would be seldom used at your hackerspace, but they take it to show off at the local children’s museum and it’s a huge hit with the kids!