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…]

PS3 IR dongle tamed for use with a Linux box

So a man walks into a Radio Shack and the clerk says “Why the long face?”. No, that’s not it. [Ms3fgx] walks into a Radio Shack and says “holy crap, that PS3 IR dongle is only two bucks”. He’s been looking for an IR remote receiver to use with a Linux machine and decided to bend this PS3 dongle to his will. It’s a lot less expensive that the parts to build the simplest IR receivers like this FTDI cable version, or a microcontroller based receiver.

He plugged it in and was delighted to find that it enumerates. The kernel has PlayStation 3 controller support built-in and has no problem picking up this device. When he uses ‘cat’ to display the incoming data all he gets is repetitive garbage. This is because the dongle only supports Sony remote control codes. But after a bit of universal remote setup, he’s got unique commands for each button. The last piece of the puzzle is to map the controller commands to keyboard keys. This is done with the QJoyPad package, but there are a myriad of ways to remap these buttons so go with what you know.