I've been playing around with controlling my TVs with my Arduino Uno. The two TVs that I've been controlling are a Dynex and an Insignia that use the same NEC protocol and the same codes. Using the code below works perfectly on the Dynex but for some reason with the Insignia instead of receiving "7.3" It gets "77.33"
/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
delay(3000);
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x61A0F00F,32); // powerup
delay(40);
}
delay(12000);
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x61A0609F,32); // 7
delay(40);
}
delay(300);
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x61A0827D,32); // .
delay(40);
}
delay(300);
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x61A040BF,32); // 3
delay(40);
}
delay(300);
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x61A018E7,32); // enter
delay(40);
}
delay(15000);
}