Flappy Bird has been ported to just about every system imaginable, including but not limited to the Apple II, Commodores, pretty much every version of the Atari, and serves as a really great demonstration of the TI-99’s graphics capabilities. Porting is one thing, but having a computer automate Flappy Bird is another thing entirely. [Ankur], [Sai], and [Ackerly] in [Dr. Bruce Land]’s advanced microcontroller design class at Cornell have done just that. They’re playing Flappy Bird with a camera, FPGA, and a penny wired up to a GPIO pin to guide the little 8-bit-bird through Mario pipes.
The setup the team is using consists of a webcam that records the screen of a smartphone, an FPGA, and a little bit of circuitry to emulate screen taps. Inside the FPGA, the team is looking at the video stream from the phone to detect the bird, pipes, and gaps. The ‘tapper’ unit is a US penny, placed right above the ‘tap’ button, wired to a GPIO port. This was found to be the ideal contact for a capacitive touch screen – taps that were too small weren’t registered, and taps that were too big registered as two taps.
For spending an entire semester on automating Flappy Bird, the team has a lot of knowledge to show for it, but not the high score: the bird only makes it through the first pipe 10% of the time, and the second pipe 1% of the time. The high score is three. That’s alright – getting the algorithm right to play the game correctly was very, very difficult, and to nail that problem down, they estimate it would take at least another semester.
Say you’re meeting someone new, and instead of communicating like a normal person that wasn’t born in a barn, they play with their phone the entire time. How about a cashier or sales person who is so insufferably distracted with the Facebooks you’d guess they had a side job in the QA department of some developer? All these things will soon be a distant, horrible memory, because now you can play Flappy Bird on Google Glass.
[Rich] has had his Glass for a while now, and has been meaning to write an app for it. It took a little bit of inspiration, but when the idea of using the eye sensor to control everyone’s favorite 8-bit bird, everything fell into place. It ended up being an interesting use for the Glass, and something we actually wouldn’t mind trying out.
The bird is controlled by a double blink. In the video below, you can see there might be a little bit of latency depending on how [Rich] put the video together. Better grab that .APK while there’s still time. [Rich] says it’s a free download for anyone who’s already overpaid for a Google Glass.
Continue reading “The Future Of Distraction, Right In Front Of Your Face”
The dark room at Maker Faire was loud, after all it’s where Arc Attack was set up plus several other displays that had music. But if you braved the audio, and managed not to experience a seizure or migraine from all the blinking you were greeted with these sharply glowing vector displays on exhibit at the TubeTime booth. We did the best we could with the camera work, but the sharpness of the lines, and contrast of the phosphorescent images against the black screen still seems to pop more if viewed in person.
This isn’t [Eric’s] first attempt at driving high-voltage tube displays. We previously covered his dekatron kitchen timer. But we’d say he certainly stepped things up several notches in the years between then and now. He blogged about Asteroids, which is running on the same hardware as the Flappy Bird demo from our video above. An STM32F4 Discovery board is running a 6502 emulator to push the game to [Eric’s] CRT vector driver hardware.
Just before we were done at the booth, [Eric] turned to us with a twinkle in his eye. He confessed his delight in purposely leaving out any button debounce from the Flappy Bird demo. As if it wasn’t hard enough it tends to glitch after passing just a few of the pipe gates. Muhuhahaha!
After viral popularity, developer rage quits, and crazy eBay auctions, the world at large is just about done with Flappy Bird. Here at Hackaday, we can’t let it go without showcasing two more hacks. The first is the one that we’ve all been waiting for: a robot that will play the damn game for us. Your eyes don’t deceive you in that title image. The Flappy Bird bot is up to 147 points and going strong. [Shi Xuekun] and [Liu Yang], two hackers from China, have taken full responsibility for this hack. They used OpenCV with a webcam on Ubuntu to determine the position of both the bird and the pipes. Once positions are known, the computer calculates the next move. When it’s time to flap, a signal is sent to an Arduino Mega 2560. The genius of this hack is the actuator. Most servos or motors would have been too slow for this application. [Shi] and [Liu] used the Arduino and a motor driver to activate a hard drive voice coil. The voice coil was fast enough to touch the screen at exactly the right time, but not so powerful as to smash their tablet.
If you would like to make flapping a bit more of a physical affair, [Jérémie] created Flappy Bird with Kinect. He wrote a quick Processing sketch which uses the Microsoft Kinect to look for humans flapping their arms. If flapping is detected, a command is sent to an Android tablet. [Jérémie] initially wanted to use Android Debug Bridge (ADB) to send the touch commands, but found it was too laggy for this sort of hardcore gaming. The workaround is to use a serial connected Arduino as a mouse. The Processing sketch sends a ‘#’ to the Arduino via serial. The Arduino then sends a mouse click to the computer, which is running hidclient. Hidclient finally sends Bluetooth mouse clicks to the tablet. Admittedly, this is a bit of a Rube Goldberg approach, but it does add an Arduino to a Flappy Bird hack, which we think is a perfect pairing.
Continue reading “Computers Playing Flappy Bird. Skynet Imminent. Humans Flapping Arms.”
Flappy bird this, flappy bird that, we’re really not too sure how a clone of the original helicopter game became so darn popular. Anyway, [Fawn Qiu] — founder of MakeAnything — decided to hop on the bandwagon and made this awesome physical version of Flappy Bird!
She threw it together at the Tribeca Hacks Hackathon, and it uses an Arduino, two servo motors, a reed switch and some magnets. She was inspired by the original Mario in a Box game and this is a great example of her project MakeAnything, which is a technology project community which helps foster the new culture of STEM (Science Technology Engineering Mathematics) for kids and adults alike, in the United States. They believe that “with the right tool and instructions, we can all make anything and everything!”.
Stick around for the following video where [Fawn] takes it to the streets to let random strangers try their hand at the now iconic game!
Continue reading “Real Life Flappy Bird in a Box”
We have to swallow our pride and hand it to [Dan200]. He may have finally found an application that everyone can agree is a perfect fit for Arduino. Flappy Bit is [Dan’s] Arduino Uno based Flappy Bird clone. [Dan] is a software guy at heart, but he’s taken a peck at electronics of late. Flappy Bit was just a fun side project for him to learn how to program the Arduino. The hardware consists of an 8×8 LED matrix, current limiting resistors, and a single button.
[Dan’s] implementation isn’t 100% faithful to the iOS/Android original. Rather than simply parrot Flappy Bird, he changed it up a bit. The user presses and holds the button to climb, and releases it to descend. This seems to make the game a bit more forgiving. We also won’t be missing all the lovely sound effects from Flappy Bird. While there is less flapping in Flappy Bit, it does make us more nostalgic for those tabletop LCD/LED games we played in the 80’s and can’t stop crowing about today.
[Dan] has released the full source code to the project (Pastebin link), and there is more information available on his reddit thread. Give flappy bit a try. You won’t egret it!
Continue reading “Arduino Gets Fowl with Flappy Bit”