I have been trying to create a universal remote using an arduino. I used a IR receiver to try and decode the IR values for my various remotes.
I used the IRrecvdump example from the IRremote library to try and decode IR values.
With the TV remote, RC5 values are shown which alternates between values like 0 and 2048, 12 and 2060. When I transmitted these codes, it worked.
When I tried decoding my Air conditioner's remote, only FFFFFFFF was shown and it displayed that 0 bits were transmitted.'
FFFFFFFF
FFFFFFFF (0 bits)
Raw (100): -7350 500 -1650 550 -1650 500 -1650 550 -1650 500 -1600 550 -1650 550 -1600 550 -1650 550 -550 550 -550 550 -600 500 -550 550 -600 550 -500 550 -550 550 -600 500 -1700 450 -1650 550 -1650 550 -1650 500 -1650 500 -1650 550 -1600 550 -1650 550 -550 550 -550 550 -600 500 -600 450 -650 500 -600 450 -650 550 -500 550 -1650 550 -1600 500 -1700 500 -1650 500 -1700 450 -1700 500 -1650 500 -1700 500 -650 500 -600 500 -650 500 -550 500 -600 500 -600 500 -650 450 -650 500 -1650 500
I tried sending the raw values with the following code.
#include <IRremote.h>
IRsend irsend;
unsigned int rawCodes[] = {7250, 650, 1500, 650, 1550, 650, 1550, 600, 1550, 600, 1550, 650, 1500, 650, 1550, 650, 1500, 650, 450, 650, 500, 650, 400, 650, 500, 600, 500, 650, 450, 600, 450, 650, 500, 600, 1550, 650, 1500, 600, 1600, 600, 500, 650, 1500, 650, 1550, 650, 1500, 700, 1500, 600, 500, 650, 500, 650, 400, 650, 1500, 700, 400, 650, 450, 650, 450, 650, 450, 650, 450, 600, 500, 650, 1500, 650, 1500, 650, 1500, 650, 1500, 650, 1550, 650, 1500, 600, 1550, 650, 1550, 600, 550, 600, 500, 650, 400, 650, 450, 650, 450, 600, 450, 650, 1550, 650};
void setup()
{
for (int i = 0; i < 3; i++) {
irsend.sendRaw(rawCodes, 100, 38);
delay(100);
}
}
void loop() {
}
But it doesn't work.
Also, I noted that the raw values differ each time I press the same button. Even if I press the button to increase the temperature by 1. (Like from 16C to 17C and then from 17C to 18C).
The AC's remote is labelled as ZH/JT-03.
I would appreciate any help.
Thank you.