Computers Playing Flappy Bird. Skynet Imminent. Humans Flapping Arms.

flappy-double

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.

[Read more...]

Android+Arduino – Face Following RC Car

androidRCcar_01_14

To some of us, hacking an RC Car to simply follow a black line or avoid obstacles is too easy, and we’re sure [Shazin] would agree with that, since he created an RC Car that follows your face!

The first step to this project was to take control of the RC Car, but instead of hijacking the transmitter, [Shazin] decided to control the car directly. This isn’t any high-end RC Car though, so forget about PWM control. Instead, a single IC (RX-2) was found to handle both the RF Receiver and H-Bridges. After a bit of probing, the 4 control lines (forward/back and left/right) were identified and connected to an Arduino.

[Shazin] paired the Arduino with a USB Host Shield and connected it up with his Android phone through the ADB (Android Debug Bridge). He then made some modifications to the OpenCV Android Face Detection app to send commands to the Arduino based on ‘where’ the Face is detected; if the face is in the right half of the screen, turn right, if not, turn left and go forward.

This is a really interesting project with a lot of potential; we’re just hoping [Shazin] doesn’t have any evil plans for this device like strapping it to a Tank Drone that locks on to targets!

[Read more...]

Your Mouse Is A Terrible Webcam

camera

It should come as no surprise your optical mouse contains a very tiny, very low resolution camera. [Franci] decided to take apart one of his old mice and turn that tiny optical sensor into a webcam.

Inside [Franci]‘s Logitech RX 250 is an ADNS-5020 optical sensor. This three wire SPI device stuffed into an 8-pin package is a 15×15 pixel grayscale image sensor. [Franci] started this project by bringing out the Arduino and Ethernet shield. After soldering a pull-up resistor to the image sensor’s reset pin, connecting the rest of the circuit was as simple as soldering a few wires to the Arduino.

The Arduino sketch sends the image data for each pixel to a computer over a serial connection. A bit of javascript and a touch of HTML takes this pixel data and turns it into a webpage with a live view of whatever is directly under [Franci]‘s mouse.

Video of the mousewebcam in action below.

[Read more...]

Android and Arduino RF Outlet Selector

ardAndRFoutlets

Cyber Monday may be behind us, but there are always some hackable, inexpensive electronics to be had. [Stephen's] wireless Android/Arduino outlet hack may be the perfect holiday project on the cheap, especially considering you can once again snag the right remote controlled outlets from Home Depot. This project is similar to other remote control outlet builds we’ve seen here, but for around $6 per outlet: a tough price to beat.

[Stephen] Frankenstein’d an inexpensive RF device from Amazon into his build, hooking the Arduino up to the 4 pins on the transmitter. The first step was to reverse engineer the communication for the outlet, which was accomplished through some down and dirty Arduino logic analyzing. The final circuit included a standard Arduino Ethernet shield, which [Stephen] hooked up to his router and configured to run as a web server. Most of the code was borrowed from the RC-Switch outlet project, but the protocols from that build are based on US standards and did not quite fit [Stephen's] needs, so he turned to a similar Instructables project to work out the finer details.

Stick around after the break for a quick video demonstration, then check out another wireless outlet hack for inspiration.

[Read more...]

Tiny 3x3x3 SMD LED Cube

led cube

LED cubes are cool, but they’re usually pretty big and clunky. [One49th] set out to make one of the smallest LED cubes we’ve seen yet, and he’s shared how he did it in his Instructable!

His first LED cube was the traditional kind, and it turned out pretty nice. But he wanted to go smaller — what about using SMD’s? What he did next was no simple feat — in fact, we’d be willing to call him an artist with a soldering iron. The array is just over one centimeter across.

Using a combination of vices and pliers he soldering each SMD onto his structure one by one. Each LED anode is tied together on each horizontal layer. Each cathode is tied together on each vertical column. This allows the TinyDuino to control any one LED by knowing which of the 9 columns and 3 layers the LED is on. Send a high signal to chosen layer, and a low signal to the column to light the LED. Doing this quickly allows you to create the illusion of different LEDs being on at the same time. Take a look through his image gallery to see just how tight the soldering quarters were, it’s definitely not something we’re planning on doing anytime soon!

Looking for a bigger cube? Check out this gorgeous 7x7x7 one that is capable of 142 frames per second!

WiFi & Bluetooth Bot Control

MasterFeatureGraphic1024x500New

Looking for an easy way to control that Arduino powered robot you built? We just caught wind of a pair of apps for Android that look pretty handy! WiFi Bot Control and Bluetooth Bot Control.

So, what are they?  They’re configurable apps that are capable of taking in an IPCam video signal, and sending various commands via a URL string (or a bluetooth signal) for an Arduino to interpret. It comes standard with a joystick control protocol and 8 customizable command buttons. On the robot end of things you’re looking at a fairly basic setup consisting of an Arduino, a WiFi module, a motor shield and motors, and an IP Camera. The rest is up to you!

It looks pretty easy to set up, and the lite version is free! That’s good enough reason for us to try it out. The full version is $1.99 which isn’t a bad price to pay for a nice GUI for your project. See it in action after the break with a robot called Eddie.

[Read more...]

Running a Laundromat with an Arduino

Wasch_140

[Hubert] sent us a tip about a friend’s project to rescue a laundromat from its failing electronics. We’re not entirely sure what went wrong with the old control center, but considering a replacement would have cost nearly 25,000 EUR, we think [Stefan] found the perfect solution: he gave it an Arduino and Android overhaul (translated).

Although [Stefan] explains that the boards were defective, perhaps one of our German readers can help us out with a more specific translation. More clear, however, are the steps taken to upgrade the system. The situation at the laundromat was a bit of an emergency: there was no way for customers to pay for use of the machines. As a result, [Stefan] had free reign to overhaul things as he saw fit. He decided to remove the complex button setup in favor of a touchscreen Android tablet, which provided users with a simple interface to make selections. The tablet serves only as an input device. The heavy lifting is handled by an Arduino Mega 2560, which hooks up to what remains of the original system and controls the 27 machines in the laundromat.

[Stefan] admits that he isn’t a particular fan of the Arduino, but that for the price, it’s a tough solution to beat. He’s not the only one overhauling with Arduinos. Check out some other examples of upgraded machines, like the Arduino-enhanced PopCARD vending machine.

UPDATE: [Andreas] sent in a better translation of the project page which we’ve included below. He worries his written English isn’t the best, but we think it is a lot easier to understand than the machine translation. Thank you for you work [Andreas!]

[Read more...]

Follow

Get every new post delivered to your Inbox.

Join 93,658 other followers