# Sequence multiple IR remote commands (button presses)

A bit of a story here: I would like to be able to quickly and easily turn on/off captioning on the cable TV box. Normally this would require 10(!) button presses.

It's hard to be sure, but I expect that no commonly available universal remote control can be programmed to automate 10 button presses.

Having formal training in electronics, I easily used an Arduino to record all the necessary IR signals (via a sensor/demodulator) to accomplish the function.

My first attack on this problem was to make a program running on an Arduino that would accomplish this function. It worked, but it's such an over-kill... Also, you need to wait for it to boot (1? second). Edit: I could try modifying the board to shorten this boot time.

I don't have an EPROM burner, otherwise I would wonder about clocking a counter at 38 kHz and addressing an EPROM and using 1 bit to operate an IR LED (via a 2N2222).

If I were to stick with an Arduino, I think I would use the PWM to make the pulses. (Before I enabled a 555 astable which did the driving).

What is the easiest way to get this done?

• The easiest way to get it done has been done by you using an arduino. Maybe the word "easiest" needs to be re-thought? – Andy aka May 16 '14 at 15:20
• Every time I've thought about solving this problem myself (for my 90 year old mother's TV) I've always been frustrated by the inability to query the status of the TV. Specifically: - My Arduino "presses" the controller button. - Did the TV actually "see" the IR pulse? - Did the TV correctly change the channel, etc? THAT feedback seems to be the heart of these TV automation problems. When TV manufactureres start manufacturing TVs with a queryable "Status" port, that'll be a game-changer. – user35075 May 16 '14 at 15:38
• Note: you can burn the AVR using Arduino itself. About burning the AVR using a Arduino: Arduino Homepage, Notes about a Bug that should have been solved now – try-catch-finally May 17 '14 at 7:31
• What's your actual problem? You're asking for 1) modulation and 2) you mentioned you were using an Arduino and "it's such an over-kill". Why would it be overkill? Take one step backward, is 1s boot time really a problem for your setup? You're saving yourself ~10s manual, annoying button presses! In another project I used a 555 for the carrier and modulated it using the Arduino. Generating the carrier in software is also fine since - in your case - sequencing those keys is the only thing the microcontroller will do - isn't it? – try-catch-finally May 17 '14 at 7:48
• Perhaps not the easiest, but an alternative approach is to use your Arduino to record all the existing remote sequences and then systematically try transmitting all the intervening ones. You may get lucky and discover an undocumented "toggle captions" function code. – aja May 17 '14 at 13:35