Hacking A Cheap Toy Quadcopter To Work With Arduino

Building your own quadcopter is an expensive and delicate ordeal. Only after you navigate a slew of different project builds do you feel confident enough to start buying parts, and the investment may not be worth your effort if your goal is to jump right into some hacking. Fortunately, [Dzl] has a shortcut for us; he reverse engineered the communication protocol for a cheap toy quadcopter to work with an Arduino.

The cheap toy in question is this one from Hobbyking, which you can see flying around in their product demonstration video. [Dzl] cracked open the accompanying control handset to discover which transceiver it used, then found the relevant datasheet and worked out all the pin configuration involved in the SPI communication. Flying data is transmitted as 8 byte packets sent every 20 mS, controlling the throttle, yaw, pitch and roll.

[Dzl] took the build a step further, writing an Arduino library (direct Dropbox download link) that should catch you up to speed and allow you to skip straight to the fun part: hacking and experimenting! See his quick video after the break, then convince yourself you need a quadcopter by watching this one save its creator, [Paul], the trouble of walking his son to the bus stop.

Continue reading “Hacking A Cheap Toy Quadcopter To Work With Arduino”

DIY Bluetooth Home Automation

blueboard

Interested in a bit of home automation? Don’t know where to start? We just found a great Instructable on making your own bluetooth controlled relay module!

[Kyle’s] been working on this for a while, and finally at his 5th iteration he’s ready to share it with the public. It’s a project you can make from scratch, and each unit will cost approximately ~$25 in components — which can control up to two outputs. He’s included an inkscape PCB layout which you can easily etch on your own using the toner transfer method. The heart of the build is an Atmega328, which helps keep the costs down — after all, it is only controlling two outputs! Then it’s just a matter of adding the components, a bit of soldering, and uploading the firmware! 

The entire design is open source, and [Kyle] would love some feedback to continue improving upon it. The write-up is quite thorough, so if you’re interested, take a look and leave him a comment!

Arduino-Based Power Failure Alert System

arduinoPowerFailBox

When the power went out at his parents’ shop and ruined the contents of their fridge, [Lauters Mehdi] got to work building a custom power failure alert system to prevent future disasters. Although some commercial products address this problem, [Lauters] decided that he could build his own for the same cost while integrating a specific alert feature: one that fires off an SMS to predefined contacts upon mains power failure.

The first step was to enable communication between an Arduino Micro and a Nokia cell phone. His Nokia 3310 uses FBus protocol, but [Lauters] couldn’t find an Arduino library to make the job easier. Instead, he prototyped basic communication by running an Arduino Uno as a simple serial repeater to issue commands from the computer directly to the phone, and eventually worked out how to send an SMS from the ‘duino. [Lauters] then took the phone apart and tapped into the power button to control on/off states. He also disconnected the phone’s battery and plugged it into an attached PCB. The system operates off mains power but swaps to a 1000mAH 9V backup battery during a power outage, logging the time and sending out the SMS alerts. A second message informs the contacts when power has been restored.

Head over to [Lauters’s] project blog for schematics and photos, then see his GitHub for the source code. If you want to see other SMS hacking projects, check out the similar build that keeps a remote-location cabin warm, or the portable power strip activated by SMS.

Opentilt: Tag, You’re Out!

opentilt

Have you ever heard of the game Johann Sebastian Joust? We haven’t either, but [Juerd] has come up with an open source version of it called Opentilt, and we have to admit — it looks like a lot of fun!

Johann Sebastian Joust uses motion controllers for a game that can be played indoors or out, without a screen. Everyone gets a motion controller, and the object of the game is to make everyone else move their controller too fast. It even has a music mode that lets you move your controller relative to the speed of the music! Anyway, it had an extremely successful kickstarter, and it has been debuted at many events around the world — but it’s simply not available to the general public just yet. [Juerd] couldn’t wait that long so he decided to make a similar open source version of it, with cheap off-the-shelf parts. The biggest difference is this one doesn’t have the music.

The build is quite simple and inexpensive. You’re looking at some PVC pipe, an Arduino Nano, a RGB LED, a 2.4GHz radio module, an accelerometer, a pingpong ball, a battery pack, and various other resistors and wire. Nothing to it really! All the source code, and instructions are available off of [Juerd’s] site, and he’s done a great job explaining everything, down to fixing a common problem that some people have on Arduino Nanos!

Stick around after the break to see how the original Johann Sebastian Joust game works!

Continue reading “Opentilt: Tag, You’re Out!”

Automated Aquarium Is Kitchen-Sinky

fishtankAutomation

People have been converting their old Power Macs and Mac G5s into fish tanks for a few years now, but [Hayden’s] Internet-enabled tank is probably the most awesome ever crammed into an aquarium along with the water and the fish—and we’ve seen some fascinating builds this summer. After gutting the G5 and covering the basic acrylic work, [Hayden] started piling on the electronics: a webcam, timed LED lighting, an LCD for status readouts, filter and bubble control via a servo, an ultrasonic sensor to measure water levels, thermometer, scrolling matrix display, an automatic feeding mechanism, and more. He even snuck in the G5’s old mainboard solely for a cool backdrop.

The build uses both a Raspberry Pi and an Arduino Mega, which sit underneath the tank at the base. The Pi provides a web interface written in PHP and jQuery, which presents you with the tank’s status and allows changes to some settings. Nearly every component received some form of modification. [Hayden] stripped the webcam of its case and replaced the enclosure with a piece of acrylic and a mountain of silicone, making it both waterproof and slim enough to fit in the appropriate spot. Though he decided to stick with an Amazon-bought Eheim fish feeder, he disabled the unit’s autofeed timer and tapped in to the manual “feed” button to integrate it into his own system.

It’d take half of the front page to explain the rest of this thing. We’ve decided to let the aquarium tell you the rest of its features in the video below. Yeah…it can talk.

Continue reading “Automated Aquarium Is Kitchen-Sinky”

Arduino Astronomic Clock Automates Lights

ardAst

[Paulo’s] garden lights are probably a bit more accurately automated than anyone else’s on the block, because they use latitude and longitude clock to decide when to flip the switch. [Ed Note from the far future: this page no longer exists, but you can still read it on the Wayback Machine. The TimeLord library has also been superceded, so you’ll have some porting to do.]

Most commercial options (and hobbiest creations) rely on mechanical on/off timers that click on an off every day at the same time, or they use a photosensitive element to decide it’s dark enough. Neither is very accurate. One misplaced leaf obscuring your light-dependent resistor can turn things on unnecessarily, and considering the actual time of sunset fluctuates over the year, mechanical switches require constant adjustment.

[Paulo’s] solution addresses all of these problems by instead relying on an algorithm to calculate both sunrise and sunset times, explained here, combined with swiftek’s Timelord library for the Arduino. The build features 4 7-segment displays that cycle through indicating the current time, time of sunset and of sunrise. Inside is a RTC (real time clock) with battery backup for timekeeping along with an Omron 5V relay to drive the garden lamps themselves. This particular relay comes with a switch that can force the lights on, just in case.

Check out [Paulo’s] project blog for the full write-up, links to code and more details, then take a look at some other home automation projects, like the SMS-based heater controller or occupancy-controlled room lighting.

Commodore 64 Power Glove Is So Bad

The Nintendo Power Glove was terrible. Really, really terrible. Thanks to modern components, though, it’s possible to recreate the Power Glove experience in a way that doesn’t suck so much. That’s what [Leif] did with his motion sensing glove for the Commodore 64.

Instead of rolling his own IMU and putting it in a glove, [Leif] is using SonicWear SoMo, a glove originally designed to generate MIDI data for performance pieces. Inside this glove is a 9 DOF gyro/accelerometer/magnetometer, uC, battery, and XBee that can be easily reprogrammed to do something a little more (or less) useful than simply sending MIDI notes and commands.

[Leif] reprogrammed the XBees to use I/O line passing instead of sending serial data, and connected the recieving XBee to the C64 joystick port through a very simple circuit with a hex inverter.

All the code to turn a SonicWear glove into a C64 controller is available on the Github, and there’s a neat demo video of [Leif] demoing his glove at the VCF Midwest late last month.