Program your Arduino via IR using the Arduino IDE

Here’s a way to program an Arduino wirelessly while still using the stock IDE. It uses an alternative bootloader called SuperDuplex along with an IR receiver like the ones used for TV remotes.

As you can see, this does take two parts. There is the target device which has the IR receiver, as well as the transmitting unit which connects to the computer via USB. You can see a demonstration of the programming process after the break. It might be a bit slow, but nothing outrageous.

With hobby electronics we always thing that “what does it do?/what is it for?” is the wrong question. But in this case we there’s a very apparent use for it. If you’ve built a gadget for use in a harsh environment and want to keep the number of openings in the enclosure to a minimum (like for an underwater ROV) this is perfect. Just make sure there’s a window for the IR receiver and you’ll be able to program as much as you want. Of course it still looks like you need a method to manually reset the target chip, but you’ll think of something.

[Read more…]

A flashlight for any occasion

Whether you’re trying to light your path, build your own night vision, or do some tanning at home, this flashlight has you covered. [David Prutchi] designed the high power flashlight with three swappable heads.

He built the base unit out of aluminum pipe. It’s got plenty of room for the four 9V batteries that act as the power source. The driver circuit is just a bit smaller than one of those batteries, and to bring the whole thing together [David] and his helper added a potentiometer, toggle switch, and quick connector which makes head swaps a breeze. The heads themselves are all LED based, with one for visible light, another for infrared, and the final module outputs ultraviolet. We joke about tanning with it, but at 10 Watts you should be more worried about accidental damage to your vision.

The finished product is shown checking the security ink on some Canadian Currency. This would also make a nice secondary light source for your night vision monocle.

Simple proximity sensor

[Dustin Andrews] built this add-on board which works as a proximity sensor. He wanted a standalone sensor for his Arduino projects which would use a single pin as a trigger. This lets him alert the Arduino when an object approaches the sensor without the need for polling or extra code on the Arduino side of things.

As you can see, a single chip on the board takes care of all the work. That’s an ATtiny13, they’re inexpensive and sometimes you can even salvage them from consumer electronics like this color changing light bulb. The microcontroller monitors the phototransistor which is wrapped in electrical tape to isolate it from the IR LED emitters on either side. This setup creates a reflective sensor. When an object nears the board, the infrared light from the emitters reflects off of it and onto the phototransistor. And since the Arduino works as an AVR programmer you don’t need special hardware to program the device.

IR helicopter controller hacked into a Linux game pad

syma-linux-joystick

[Mike Kohn’s] Syma S107 helicopter wasn’t flying as well as it used to due to a broken gear, he figured he might as well find some use for the toy’s controller, since it was currently sitting around collecting dust. Having done a bunch of work with Syma IR protocols earlier this year, he decided it would be pretty easy to get the remote working as a game pad for his Linux desktop.

He patched an IR receiver into an MSP430 board, which decodes the incoming IR signals, sending them to his computer over a serial connection. [Mike] dug around in the Linux source for some good joystick driver code to borrow and found something that was close enough to work. After a bit of tweaking he loaded up his driver module and fired up Mame to give [Ms. Pacman] a try.

He says that the controller worked without much trouble, though as he discovered in previous projects, there are some quirks in the controller that make it somewhat less than convenient to use full time. Check out his site if you’re interested in taking a look at the code that he used to get things running.

Infrared hides code combination on geocache puzzle

[AJ] and [Brian] are making sure the geocache challenges they set up take some ingenuity to solve. They’ve just rolled out a two-part cache which uses a code hidden in infrared light.

The first part of the cache is a box (the black one on the left) which contains a mysterious hand crank and a smaller box that has a combination lock on it. The second stage is the wooden box on the right. It’s got a hole in the side to receive the hand crank. This connects to the dynamo inside, letting you build up some electricity as it spins. Inside the case you’ll see two red lights blink as the crank is turned, but when you push the button on the outside of the box nothing will happen. That is, unless you’re looking through a camera which can pick up infrared light. The code (710 in this case) is displayed in an array of IR LEDs, and is used to open that combination lock. We wonder if there’s any clues about using a camera or if you have to figure this out on your own.

Don’t miss the video after the break for a full demo of the system.

[Read more…]

Decoding, then cloning an IR helicopter toy's control signals

[Mike Field] got his hands on this Syma S107 helicopter with the intention of hacking it. After playing around with it for a while he set out to build his own infrared controller for the toy. It seems there is some protocol information about it published in various forum posts, but he decided it would be more fun to figure it out for himself.

He started off trying to capture the IR signals using Adafruit’s tutorial which has come in handy on a number of other projects. He could get his television remote to register, but not the toy’s controller. This didn’t stop fun, instead he tore open the controller and grabbed a logic sniffer to see what’s being pushed to the IR LEDs. The signals are a bit curious. It seems two different packets are sent with each command which [Mike] thinks is for use with two different models of the toy. In addition to that the frames are not synchronized. But a bit of 10 MHz sampling helped him to figure everything out, and he believes he’s got a more accurate version of the protocol than had previously been discovered. To prove it he developed an FPGA-based controller using VHDL which he shows off in the clip after the break.

[Read more…]