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

Remote Control FPV cockpit

cockpit

FPV flying, for how awesome it actually is, still consists of fiddling around with a remote control transmitter and either wearing video goggles or squinting into a screen. Awesome, yes, but not as cool as [Brett Hays]‘s enclosed cockpit ground station. It’s a trailerable flight sim that allows you to have the same experience of flying an aircraft over your local terrain without actually leaving the ground.

The centerpiece for this build is a 42 inch flat screen TV that was picked up for $160. This was placed at the front of a large plywood and 2×2 box along with a computer joystick, throttle, and rudder controls.

The pots inside the controls needed to be switched out to match the resistance of the ones inside an old Futaba transmitter. From there, completing the the cockpit was just a matter of fabricating a few panels for a video switcher, gear retract lever, flaps. and RC radio settings.

It’s a truly amazing build and when placed on a trailer towed by [Brett]‘s jeep, has the potential to be the closest thing to flying a manned aircraft you can get without a pilot’s license.

Videos of the cockpit in action below.

[Read more...]

Hacking a Streetlight with Lasers

streetlampLaserOff2

$20, some spare parts and a bit of mischief was a small price for [Chris] to pay for a reprieve from light pollution with this remote control laser hack. The streetlight in front of his house has a sensor that faces westward, and flips the lamp on once the sun has disappeared over the horizon. As it turns out, [Chris's] third floor window is due west of this particular lamp, meaning he takes the brunt of its illumination but also conveniently places him in a prime location for tricking the sensor.

According to [Chris], the lamp’s sensor requires two minutes of input before it will switch off and stay off for around 30 seconds before cycling on again. The lamp does not zap straight to full brightness, though; it takes at least a minute to ramp up. [Chris] recalled a hack from a few years ago that essentially used LED throwies tacked onto the sensors with putty to shut off lamps for a guerrilla drive-in movie, but the sensors on those lamps were at the base and easily accessed. [Chris] needed to reach a sensor across the block and nearly three stories tall, so he dug around his hackerspace, found a 5V 20mA laser diode, and got to work building a solution.

[Chris] 3D printed a holder for the laser and affixed it via a mounting bracket to the wall near his third floor window, pointing it directly at the street lamp’s sensor. He plugged the laser’s power supply into an inexpensive remote control outlet, which allowed him to darken the street lamp at a touch of a button. This is certainly a clever and impressive hack, but—as always—use at your own risk. Check out a quick demo video after the break.

[Read more...]

A DIY Solution for Controlling Robots and Quadcopters

RC

RC transmitters used for controlling robots, quadcopters, airplanes, and cars really aren’t that complex. There are a few switches, pots, a screen and a radio transmitter. The maker toolbox already has all these components, so it only makes sense someone would try to build their own RC transmitter.

[Oscar]‘s project started by gathering a bunch of toggle switches, 2-axis joysticks, pots, tact switches, an Arduino, LCD, and a Ciseco XRF wireless module. These were attached to a front panel made of polystyrene and work on the communications protocol began.

It should be noted that microcontroller-powered RC transmitters with XBees is nothing new. There was a Kickstarter for one last year, but the final product turned out to be bit janky and full of fail wiring, We’re really glad to see [Oscar]‘s attempt at a DIY RC transmitter, and hopefully we’ll see this project taken up and improved by others.

[Read more...]

Game controller repurposed for flea market find

powerPannerControlReplacement

A jarring pan with your tripod can ruin a shot in your film, and tilting up or down usually requires some loosening and tightening kung fu to keep gravity from taking over. The “Power Panner” is a remote-controlled device that fits between the tripod and the camera, handling pans and tilts with ease. When [NeXT] found one at the Capitol Flea Market for $5, he didn’t care about the missing remote. He bought the Panner, dragged it home, and hacked together his own remote with a Sega Master Pad.

After researching similar devices online, [NeXT] had determined the original remote’s pinout: essentially a D-pad with adjustable speed control. He decided to ignore the speed pins and to instead search for a suitable replacement controller. A Sega Master Pad offered the most straightforward solution, so [NeXT] went to work separating out the wires and soldering them to a DIN connector. He couldn’t find the right plug to fit the Panner’s DIN-7 jack, so he substituted a DIN-8 with the extra pin snapped off.

Rather than use the remaining two buttons for speed control, [NeXT] chose to feed them directly into his camera to drive the focus and shutter, but the Master Pad’s wiring posed a problem: the camera would have to share the Power Panner’s ground, and the Panner plugs into the wall via a 6V adapter. Fingers crossed, he decided to push ahead and was relieved that everything worked. We suspect the shared ground won’t be a problem as long as one device uses a floating power supply, which the Panner can provide either through the proper wall wart or by using its 4 AA battery option.

If you’re in the mood for more camera hacks, check out the sound-dampening and waterproofing build from last week.

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

Cloning an infrared disarming remote of a $8 home security system

5

[Sylvio] decided to buy one of the cheap alarm systems you can find on the internet to have a look at its insides. The kit he bought was composed of one main motion sensor and two remote controls to arm/disarm it.

Communication between the remotes and the sensor is done by using infrared, requiring a direct line of sight for a signal to be received. Modern alarm systems typically use RF remotes with a typical frequency of 434MHz or 868MHz.  In his write-up, [Sylvio] first tries to replicate the IR signal with one of his ‘learning remote controls’ without success and then proceed to reverse engineering the remote circuit shown in the above picture. Hackaday readers may figure out just by looking at it that it is a simple astable multivibrator (read ‘oscillator’). Its main frequency is 38.5kHz, which is typical for IR applications. Therefore, if one of your neighbours had this ‘security system’ one could just disarm it with any of the same remotes…

[Sylvio] then explains different ways to replicate the simple IR signal, first with an Arduino then with a frequency generator and finally using the USB Infrared Toy from Dangerous Prototypes. We agree with his conclusion: “you get what you pay for”.