Primer Tutorials for Arduino IR Remote Cloning and Keyboard Simulation

ir arduino

We’ve featured loads of IR Arduino projects and they are all exciting and unique. The projects spring from a specific need or problem where a custom infrared remote control is the solution. [Rick’s] double feature we’re sharing in this article is no exception, but what is interesting and different about [Rick’s] projects is his careful and deliberate tutorial delivery on how to copy infrared remote codes, store the codes with a flavor of Arduino and then either transmit or receive the codes to control devices.

In the case of his space heater an Arduino was used to record and later retransmit the “power on” IR code to the heater before he awakes on a cold morning. This way his room is toasty warm before he has to climb out from under the covers, which has the added benefit of saving the cost of running the heater all night. Brilliant idea if you don’t have a programmable heating system. Maybe he will add a temperature sensor someday so it doesn’t have to run on strictly time.

A more complicated problem was controlling DVD playback software on his computer remotely. [Rick] says he sits at a distance when watching DVDs on his computer but his computer doesn’t have a remote control like a normal TV. Arduino to the rescue again! But this time he pulls out a Teensyduino because of its added feature of being able to emulate a keyboard and of course the computer DVD playback software accepts keyboard commands. Once again he used the “IRremote.h” library to record certain button codes from an old remote control before adding the retrieved codes to a Teensyduino setup and programmed to receive and decode the remote’s IR signals. The Teensyduino then maps the IR codes to known keyboard shortcuts and transmits the simulated keyboard shortcut commands to the computer via its USB cable where the DVD playback software recognizes the key commands.

As always [Rick] shares all his libraries and sketches on his blog so follow the above links to download the files. You will not miss a single step if you follow his excellent videos below. Plus, here are some other ways and other tools for using an IR remote with your Arduino and cloning an infrared remote.

[Read more...]

Learn to Translate IR Codes and Retransmit Using Arduino

EEVBlog IR transmitter

[Dave Jones] from EEVBlog.com takes “Arduino fan boys” off the garden path getting down and dirty with different methods to capture, evaluate and retransmit IR remote control codes. Capturing and reproducing IR remote control codes is nothing new, however, [Dave] carves his own roads and steers us around some “traps for young players” along the way.

[Dave] needed a countdown timer that could remotely start and stop recording on his Cannon video camera, which he did with simplicity in a previous EEVBlog post using a commercial learning remote control unit. The fans demanded better so he delivered with this excellent tutorial capturing IR codes on his oscilloscope from an IR decoder (yellow trace) as well as using an IR photo transistor (blue trace) which showed the code inclusive of 38 KHz carrier frequency. Either capture method could easily be used to examine the transmitted code. The second lesson learned from the captured waveforms was the type of code modulation being used. [Dave’s] remote transmitted NEC (Japanese) pulse length encoding — which can be assertaind by referencing the Infrared Remote Control Techniques (PDF). Knowing the encoding methodology it was trivial to manually translate the bits for later use in an Arduino transmitter sketch. We find it amazing how simple [Dave] makes the process seem, even choosing to write his own sketch to reproduce and transmit the IR codes and carrier instead of taking the easy road looking for existing libraries.

A real gem of knowledge in the video was when it didn’t work! We get to follow along as [Dave] stumbles before using a Saleae Logic analyzer to see that his transmitter was off frequency even though the math in his sketch seemed correct. Realizing the digital write routine was causing a slowdown he fudged his math to make the needed frequency correction. Sure, he could have removed the performance glitch by writing some custom port control but logic dictates using the fastest and simplest solution when hacking a one-off solution.

[Dave’s] video and links to source code after the break.

[Read more...]

Seeing plant health in infrared

aerial

Since the 70s, NASA, NOAA, and the USGS have been operating a series of satellites designed to look at vegetation health around the world. These satellites, going under the name Landsat, use specialized camera filters that look at light reflecting off chlorophyll to gauge the health of forests, plains, oceans, and even farms. It’s all very interesting technology, and a few very cool people want to put one of these near infrared cameras in the hands of everyone.

The basic idea behind gauging the health of plants from orbit, or the Normalized Difference Vegetation Index, is actually pretty simple: absorb red and blue light (thus our verdant forests), and reflect nearly all infrared light. By removing the IR filter from a digital camera and adding a ‘superblue’ filter, the NDVI can be calculated with just a little bit of image processing.

The folks behind this have put up a Kickstarter with rewards including a modified webcam, a custom point and shoot camera, and a very low-cost source of one of these superblue filters. Just the thing to see how your garden grows or how efficiently you can kill a houseplant.

Chromebook hack controls your television

chromebook_remote_control1

[Michael Kohn] only accomplished about half of what he set out to, but we still think his TV channel switcher from a Chromebook turned out nicely. When starting the project he wanted to include a grid of listing so that he could choose a specific program, but decided that scraping the data was too much work for this go-round.

The Chromebook doesn’t include an IR transmitter so he built one using an MSP430 chip. He had previously built a little transmitter around an AVR chip and was surprised to find that the internal oscillator on that was quite a bit more accurate than on the MSP430. Timing is everything with the Manchester encoded signals used for IR remote controls so he used his oscilloscope to tune the DCO as accurately as possible.

The app shown on the screen was written in Javascript. Google published some example code on using RS232 with the computer; [Michael] used this resource to provide communications between the computer and the microcontroller.

[Read more...]

IR Based Augmented Reality

ARUCI

For a final design project, [Frank] and his group took on an augmented reality project. The goal was to make objects interactively controllable by pointing a smartphone at them. Their solution was Augmented Reality Universal Controller and Identifier (ARUCI).

The system locates controllable objects by sensing IR beacons that contain identifiers for each object. The IR is received by a Wiimote sensor, which has been integrated into a custom PCB. This board sits in a 3D printed enclosure, and mounts to the back of a smartphone. The electronics are powered by tapping off of the phone’s battery.

Commands are sent to devices using a custom 2.4 GHz protocol which was implemented using the ATmega128RFA1. Each device has another ATmega to receive the signal and control the real world object. In their demo, the group shows the system controlling devices including a TV, a radio, and an RC car.

The system provides an interesting way to interact with objects, and the hardware integration is quite impressive. After the break, watch [Frank] give a demo.

[Read more...]

Eloquent universal receiver for your home entertainment equipment

home-entertainment-universal-receiver

We’re really starting to enjoy the home entertainment control hacks which use a universal receiver to act on commands from any remote. This one is especially interesting as it uses a single remote to control the system but rolls in lots of extras.

Looking at the receiver itself the white plastic dome of the PIR sensor should raise an eyebrow. Since the cable box takes a while to turn on [Ivan] included the motion sensor to switch that component on when you walk into the room. This way it’ll be ready to go by the time you sit down. It does this by sending IR signals from the PIC32 dev board. Of course the board has its own receiver to listen for the remote control commands. The remote buttons have been mapped a bit differently than originally intended. You can see in the diagram above that the normal VCR/DVD/DVR buttons have been set to control the room’s LED strips. There’s even a power consumption monitor rolled into the project. All of these features are demonstrated in the clip after the break.

This is a nearly perfect base setup. But we’d love to see it with a web interface at some point in the future.

[Read more...]

A real thermal imaging camera for $300

mu_crosshair

If you want to check your house for hot air leaks, take pictures of the heat coming off a rack of equipment, or just chase the most dangerous animal, [Arnie], through the jungles of central america, a thermal imaging camera is your friend. These devices normally cost a few thousand dollars, but the team behind the Mu Thermal Camera managed to get the price down to about $300.

The basic idea behind the Mu Thermal Camera is overlaying the output of an infrared thermopile – basically, an infrared camera – on top of the video feed of a smart phone’s camera. This is an approach we’ve seen before and something that has even been turned into a successful Kickstarter. These previous incarnations suffered from terrible resolution, though; just 16×4 pixels for the infrared camera. The Mu thermal camera, on the other hand, has 160×120 pixels of resolution. That’s the same resolution as this $2500 Fluke IR camera. After the indiegogo campaign is over, the Mu camera will eventually sell for $325.

We have no idea how the folks behind the Mu camera were able to create a thermal imaging with such exceptional resolution at this price point. The good news is the team will be open sourcing the Mu camera after their indiegogo run is over. W’e’d love to see those docs now, if only to figure out how a thousand dollars of infrared sensor is crammed into a $300 device.

Follow

Get every new post delivered to your Inbox.

Join 96,615 other followers