Posts with «android hacks» label

Making a Gesture

When [krich] switched keyboards he lost his volume control. So he decided to hack one together out of an Arduino, an old floppy disc case, and a Hover Labs Hover board (not the Back to the Future kind). You can see the result in the videos below.

You’ll notice in the video that the device reads a “spin” motion to resemble a round volume control. The program sends simulated keyboard presses to the PC to control the audio. In the write-up, [krich] mentions it may be the first gesture-based volume control. However,we’ve done it before and so have others.

The Hoverboard does all the hard work, of course. It passes data to the Arduino via I2C. The PC side is handled by some Windows on screen display software, 3RVX.

Still, this one seems to work well with the Hover board. Hard to argue against anything that upcycles a floppy disc container.


Filed under: Android Hacks

Arduino Absentmindedly Blows Bubbles

If you ever wanted to make an occasion festive with bubbles, [Sandeep_UNO] may have the project for you. As you can see in the video below (and, yes, it should have the phone rotated and it doesn’t), his Arduino uses a servo motor to dip a bubble wand into soap solution and then pulls it in front of a fan. The entire operation repeats over and over again.

There’s not a lot of detail and no code that we could find, but honestly, if you know how to drive a servo motor from an Arduino, the rest is pretty easy to figure out. Look closely at the motion of the robot. What is often accomplished with a spinning wheel of bubble wands and a constant fan becomes much more interesting when applied intermittently. The lazy cadence is what you expect to see from human operation and that adds something to the effect.

We’ve seen faster bubble blowers, but they were not so simple. We’ve even looked at other bubble-blowing robots. If you want to find out more about servo motors in general, our own [Richard Bauguley] has what you need to know.


Filed under: Android Hacks
Hack a Day 31 Jul 00:01

Arduino RF Network Analyzer

What do you get when you combine a direct digital synthesis (DDS) chip, a power detector, and an Arduino? [Brett Killion] did make that combination and wound up with a practical network analyzer.

The project uses an Analog Devices AD9851 DDS chip clocked at 180 MHz which will output a sine wave at any frequency from 0 Hz and 72 MHz. A Butterworth low pass filter processes the DDS signal and then feeds a two-transistor amplifier. The circuit will output about 0dBm into 50 ohms. The power detector is an Analog Devices AD8307 along with a 50-ohm input load. There is no filtering on the power detector so it can measure from very low frequencies to 500MHz.

[Brett] uses a Python program to process the data from the Arduino. For example, here’s a plot of a 10 MHz crystal from the software:

If you want to know more about DDS, our own [Bil Herd] has you covered (see the video, below). We’ve also seen similar antenna analyzers that are about the same thing.


Filed under: Android Hacks, tool hacks

Ridiculously Automated Dorm Room

Take three NRF24L0+ radios, two Arduino Nanos, and a Raspberry Pi. Add a bored student and a dorm room at Rice University. What you get is the RRAD: Rice Ridiculously Automated Dorm. [Jordan Poles] built a modular system inspired by BRAD (the Berkeley Ridiculously Automated Dorm).

RRAD has three types of nodes:

  • Actuation nodes – Allows external actuators like relays or solenoids
  • Sensory nodes – Reports data from sensors (light, temperature, motion)
  • Hub nodes – Hosts control panel, records data, provides external data interfaces

The hub also allows [Jordan] to control things with his Android phone with Tasker. He has the Arduino and Raspberry Pi code on GitHub if you want to ridiculously automate something of your own. You’d probably want to adapt it to your dorm room, house, or RV, though.

[Jordan] continues to work on the project and promises to have voice recognition and other features, soon. We cover a lot of home automation projects including some others described as ridiculous. The video below shows BRAD, the inspiration for RRAD.


Filed under: Android Hacks, Arduino Hacks, home hacks, Raspberry Pi

Start Gaming Early with IKEA High (Score) Chair

If you want your kid to be really great at something, you have to start them out early. [Phil Tucker] must want his kid to be a video gamer pretty badly. [Phil’s] build starts with a $20 IKEA high chair. He likes these chairs because at that price point, tearing into them isn’t a big risk. What’s more is you can buy extra trays so you can use it as a modular project with different trays serving different purposes.

The chair has two joysticks and two buttons, looking suspiciously like a video game controller. The current incarnation (see video, below) uses an Arduino Uno to trigger an Akai MPC1000 synthesizer via the MIDI interface.

Of course, you could control other MIDI devices or even program the Arduino to do other things (like act as a game controller). We’ve seen lots of IKEA hacks, including a laser cutter, a camera slide, and even a printer (not a 3D printer, although we covered that, too).


Filed under: Android Hacks, musical hacks

Want a low-cost ARM platform? Grab a Prepaid Android Phone!

What would you pay for a 1.2Ghz dual-core ARM computer with 1GB RAM, 4GB onboard flash, 800×600 display, and 5 megapixel camera? Did we mention it also has WiFi, Bluetooth, and is a low power design, including a lithium battery which will run it for hours? Does $15 sound low enough? That’s what you can pay these days for an Android cell phone. The relentless march of economies of scale has finally given us cheap phones with great specs. These are prepaid “burner” phones, sold by carriers as a loss leader. Costs are recouped in the cellular plan, but that only happens if the buyer activates said plan. Unlike regular cell phones, you aren’t bound by a contract to activate the phone. That means you get all those features for $15-$20, depending on where you buy it.

The specs I’m quoting come from the LG Optimus Exceed 2, which is currently available from Amazon in the USA for $20. The same package has been available for as little as $10 from retail stores in recent weeks. The Exceed 2 is just one of several low-cost Android prepaid phones on the market now, and undoubtedly the list will change. How to keep up with the current deals? We found an unlikely place. Perk farmers. Perk is one of those “We pay you to watch advertisements” companies. We’re sure some people actually watch the ads, but most set up “farms” of drone phones which churn through the videos. The drones earn the farmer points which can be converted to cash. How does this all help us? In order to handle streaming video, Perk farmers want the most powerful phones they can get for the lowest investment. Subreddits like /r/perktv have weekly “best deals” posts covering prepaid phones. There are also tutorials on rooting and debloating current popular phones like the Whirl 2 and the Exceed 2.

Once you have your phone, the first order of business is to boot it up. Many prepaid phones try to force the user to go through an activation process. There is always a back door for installers to exit the process though. In the case of the Exceed 2, simply pressing volume up, volume down, back, and home quits out of the activation process.

Got root?

Some applications require root permissions. To achieve this, your best bet is to do a bit of Googling for your particular phone model. The XDA developers forums are a great resource for this. While prepaid phones don’t usually have communities behind them like flagship phones, you can often find at least some information on what it takes to root your particular device. The most well-known “root every device” application to date is towelroot, created by GeoHot. You might remember [George Hotz] aka GeoHot as the first person to jailbreak an iPhone. He also made the news by getting into a bit of hot water with Sony over some PlayStation 3 security holes. Towelroot uses a Linux kernel exploit (futex) to gain root permissions. Released in June of 2014, the futex exploit has been patched on most new phones. However, it hasn’t been patched on phones that receive relatively few updates – like prepaid phones. On the Exceed 2, Towelroot works perfectly, giving the user root without even requiring a reboot. Once the phone is rooted, a root privilege manager like SuperSU is needed to keep track of which applications should have root permissions. Once that is done, anything goes! We’ve found packages like BusyBox to be huge helps – especially when working at the console through Android Debug Bridge (ADB).

What do you want to hack today?

Between these low-cost phones and the used phones every family seems to have floating around now, there are a heck of a lot of devices out there waiting to be used. What can you do with a spare Android phone? Quite a lot. There has never been a better time to learn to code for the Android Platform. Android Studio is the current official development environment. If you know a bit of Java, it’s easy to jump in and start making apps. If you’re not a Java head but want to learn, there are tutorials all over the web to help get into the swing of things.

Not a coder? The swiss army knife of automating android devices has long been Tasker. Tasker allows you to set off simple scripts (called tasks) with triggers which can be anything from plugging in headphones to connecting to a particular WiFi access point, to pressing a button on the screen. Want your smart phone to announce your arrival home with your own theme music? Just set up a Tasker profile to play a song when it connects to your home WiFi router. Tasker supports plenty of actions natively, and can be extended with plugins. Scripting Layer For Android SL4A) even allows it to extended with Python scripts.

Moving into the hardware world, there are plenty of ways to get GPIOs from an Android phone. The Android Accessory Development Kit (ADK) is getting a bit long in the tooth, but it’s still a great way to interface an Arduino board like the Arduino Mega ADK with your device. Another option for getting into the hardware realm is the IOIO OTG board. As the name implies, this new version of the IOIO board supports the USB OTG standard. This allows it to connect a phone either as a host or as an accessory.  Need a simple wireless terminal for your project? Grab a terminal app and a Serial Port Profile (SPP) compatible Bluetooth module, and Bob’s your uncle. Interested in hacking with the ESP8266? There is an entire page of apps on the Google Play store dedicated to interfacing with everyone’s favorite low-cost WiFi module.

We’ve just covered the tip of the iceberg here. What kind of hacking would you do with a spare Android phone, or one of these low-cost prepaid devices. Let us know in the comments!


Filed under: Android Hacks, Featured
Hack a Day 10 Sep 18:01

Hand Controlled Robot uses Accelerometer

What do orchestra conductors, wizards, and Leap controller users have in common? They all control things by just waving their hands. [Saddam] must have wanted the same effect, so he created a robot that he controls over wireless using hand gestures.

An accelerometer reads hand motions and sends them via an RF module to an Arduino. This is a bit of a trick, because the device produces an analog value and [Saddam] uses some comparators to digitize the signal for the RF transmitter. There is no Arduino or other CPU on the transmit side (other than whatever is in the RF module).

From the video, it looks like a natural way to control a robot as long as you don’t mind duct taping the transmitter to your hand. Of course, if you are a real hacking geek, you might even consider that an advantage as you can pretend you are working on becoming a cyborg.

[Saddam] spends some time talking about how the accelerometer works internally, and we’ve covered that before if you are curious. It turns out the devices aren’t as much electronic as we usually think of them, but mechanical.


Filed under: Android Hacks, robots hacks

NES Reborn as Nexus Player and NES

Anyone who has a Raspberry Pi and an old Nintendo has had the same thought. “Maybe I could shove the Pi in here?” This ran through [Adam’s] head, but instead of doing the same old Raspberry Pi build he decided to put a Nexus Player inside of this old video game console, with great success. Not only does it bring the power of a modern media player, it still works as an NES.

If you haven’t seen the Nexus Player yet, it’s Google’s venture into the low-cost home media center craze. It has some of the same features of the original Chromecast, but runs Android and is generally much more powerful. Knowing this, [Adam] realized it would surpass the capabilities of the Pi and would even be able to run NES emulators.

[Adam] went a little beyond a simple case mod. He used a custom PCB and an Arduino Pro Micro to interface the original controllers to the Nexus Player. 3D printed brackets make sure everything fits inside the NES case perfectly, rather than using zip ties and hot glue. He then details how to install all of the peripherals and how to set up the Player to run your favorite game ROMs. The end result is exceptionally professional, and brings to mind some other classic case mods we’ve seen before.


Filed under: Android Hacks

Combining Musical Hatred with Target Practice

Not everyone can agree on what good music is, but in some cases you’ll find that just about everyone can agree on what is awful. That’s what the people over at Neo-Pangea discovered when they were listening to Internet radio. When one of those terrible songs hits their collective eardrums, the group’s rage increases and they just need to skip the track.

This is how Engineers act if the song is super-awful

Rather than use a web app or simple push button to do the trick, they turned the “skip” button into a NERF target. They call their creation the Boom Box Blaster and made a fantastic demo film video about it which is found after the break.

Inspired by a painting in the office, the target takes the form of a small hot air balloon. The target obviously needed some kind of sensor that can detect when it is hit by a NERF dart. The group tried several different sensor types, but eventually settled on a medium vibration sensor. This sensor is connected to an Arduino, which then communicates with a Raspberry Pi over a Serial connection. The Pi uses a Python script to monitor the Arduino’s vibration sensor. The system also includes some orange LEDs to simulate flames and a servo attached to the string which suspends the balloon from the ceiling. Whenever a hit is registered, the flames light up and the balloon raises into the air to indicate that the shot was on target.

The Pi was required in order to interface with the group’s streaming music service of choice; Sonos. The Sonos API made it easy for the team to interface their target with the “skip track” function. They just wrote a Node.js script that runs on the Pi and sends the proper command as necessary. Now whenever the radio asks the group if they want to build a snowman, they can all answer with a resounding, “no!”. They just need to make sure they have enough ammo to spare. Be sure to check out the comical demonstration video on the project page.


Filed under: Android Hacks, musical hacks

OK Google, Open Sesame

There are a myriad of modern ways to lock and unlock doors. Keypads, Fingerprint scanners, smart card readers, to name just a few. Quite often, adding any of these methods to an old door may require replacing the existing locking mechanism. Donning his Bollé sunglasses allowed [Dheera] to come up with a slightly novel idea to unlock doors without having to change his door latch. Using simple, off the shelf hardware, a Smartwatch, some code crunching and a Google Now app, he was able to yell “OK Google, Open Sesame” at his Android Wear smartwatch to get his apartment  door to open up.

The hardware, in his own words, is trivial. An Arduino, an HC-05 bluetooth module and a servo. The servo is attached to his door latch using simple hardware that looks sourced from the closest hardware store. The code is split in to two parts. The HC-05 listens for a trigger signal, and informs the Arduino over serial. The Arduino in turn activates the servo to open the door. The other part is the Google Now app. Do note that the code, as he clearly points out, is “barebones”. If you really want to implement this technique, it would be wise to add in authentication to prevent all and sundry from opening up your apartment door and stealing your precious funky Sunglasses. Watch a video of how he put it all together after the break. And if you’re interested, here are a few other door lock hacks we’ve featured in the past.


Filed under: Android Hacks, hardware