IR Remote control of Air Conditioner - Can't get it to work


hi,
i'm new arduino i'm thinking must missing simple trying control air conditioner using arduino uno. air conditioner vaillant climoair , has remote code 090 on universal remotes. have spent hours trying make work have got stuck.
so far have
installed z3t0-arduino-irremote-0d39873 library
removed robotirremote somehow conflicts above
edited irremoteint.h rawbuf 101 rawbuf 200 long remote codes
used irrecvdumpv2 capture code
eg
encoding  : sanyo
code      : ffffffff (0 bits)
timing[193]:
     + 550, - 600     + 500, - 650     + 400, - 700     + 450, - 650
     + 450, - 700     + 450, - 600     + 450, - 650     + 500, - 650
     + 450, - 650     + 450, - 700     + 450, - 650     + 450, - 700
     + 400, - 600     + 500, - 600     + 450, - 700     + 400, - 700
     + 450, - 650     + 500, - 650     + 450, - 700     + 400, - 650
     + 450, - 700     + 450, - 650     + 450, - 650     + 450, - 650
     + 500, -1700     + 450, - 650     + 500, - 650     + 450, - 600
     + 550, - 550     + 450, - 650     + 450, - 650     + 450, - 650
     + 500, - 650     + 450, - 650     + 450, - 650     + 450, - 600
     + 450, - 650     + 450, - 650     + 450, - 650     + 550, - 600
     + 500, - 600     + 550, - 550     + 550, - 600     + 500, - 600
     + 550, - 550     + 550, - 500     + 600, - 500     + 500, - 650
     + 550, - 550     + 500, - 600     + 500, - 600     + 450, - 600
     + 500, - 600     + 450, - 650     + 500, - 600     + 500, - 600
     + 500, - 550     + 600, -1550     + 600, - 500     + 600, - 550
     + 500, - 550     + 550, - 550     + 550, - 500     + 650, - 450
     + 500, - 600     + 500, - 650     + 500, - 550     + 500, - 600
     + 550, - 500     + 550, - 550     + 550, - 600     + 450, - 700
     + 500, -1650     + 550, - 600     + 500, - 600     + 600, -1550
     + 550, - 600     + 500, -1700     + 550, - 550     + 550, - 550
     + 550, -1650     + 550, - 450     + 600, -1600     + 600, - 500
     + 550, - 600     + 450, -1750     + 450, - 600     + 550, -1650
     + 550, -1650     + 500, - 600     + 500, - 650     + 450, - 650
     + 500, -1650     + 500, - 650     + 500, -1650     + 500, -1650
     + 500
unsigned int  rawdata[193] = {550,600, 500,650, 400,700, 450,650, 450,700, 450,600, 450,650, 500,650, 450,650, 450,700, 450,650, 450,700, 400,600, 500,600, 450,700, 400,700, 450,650, 500,650, 450,700, 400,650, 450,700, 450,650, 450,650, 450,650, 500,1700, 450,650, 500,650, 450,600, 550,550, 450,650, 450,650, 450,650, 500,650, 450,650, 450,650, 450,600, 450,650, 450,650, 450,650, 550,600, 500,600, 550,550, 550,600, 500,600, 550,550, 550,500, 600,500, 500,650, 550,550, 500,600, 500,600, 450,600, 500,600, 450,650, 500,600, 500,600, 500,550, 600,1550, 600,500, 600,550, 500,550, 550,550, 550,500, 650,450, 500,600, 500,650, 500,550, 500,600, 550,500, 550,550, 550,600, 450,700, 500,1650, 550,600, 500,600, 600,1550, 550,600, 500,1700, 550,550, 550,550, 550,1650, 550,450, 600,1600, 600,500, 550,600, 450,1750, 450,600, 550,1650, 550,1650, 500,600, 500,650, 450,650, 500,1650, 500,650, 500,1650, 500,1650, 500};  // sanyo ffffffff
unsigned int  data = 0xffffffff;

then copies rawdata[193] , used following code


code: [select]
#include "irremote.h"

irsend irsend;

void setup()
{
  serial.begin(9600);
}

int khz=38; //nb change default value neccessary correct modulation frequency
// on , 2o c° 1 fan heat
unsigned heat[] = {550,600, 500,650, 400,700, 450,650, 450,700, 450,600, 450,650, 500,650, 450,650, 450,700, 450,650, 450,700, 400,600, 500,600, 450,700, 400,700, 450,650, 500,650, 450,700, 400,650, 450,700, 450,650, 450,650, 450,650, 500,1700, 450,650, 500,650, 450,600, 550,550, 450,650, 450,650, 450,650, 500,650, 450,650, 450,650, 450,600, 450,650, 450,650, 450,650, 550,600, 500,600, 550,550, 550,600, 500,600, 550,550, 550,500, 600,500, 500,650, 550,550, 500,600, 500,600, 450,600, 500,600, 450,650, 500,600, 500,600, 500,550, 600,1550, 600,500, 600,550, 500,550, 550,550, 550,500, 650,450, 500,600, 500,650, 500,550, 500,600, 550,500, 550,550, 550,600, 450,700, 500,1650, 550,600, 500,600, 600,1550, 550,600, 500,1700, 550,550, 550,550, 550,1650, 550,450, 600,1600, 600,500, 550,600, 450,1750, 450,600, 550,1650, 550,1650, 500,600, 500,650, 450,650, 500,1650, 500,650, 500,1650, 500,1650, 500};
// off a/c
unsigned off[] = {550,600,550,500,600,550,600,500,600,500,500,650,450,650,450,650,600,550,500,600,450,600,500,600,500,600,500,650,500,600,550,550,550,550,600,500,600,500,600,500,600,500,600,500,600,500,550,550,500,1650,600,450,600,550,550,600,550,550,500,650,550,550,550,550,550,550,600,550,600,500,550,550,550,550,600,550,500,650,500,600,550,550,600,500,650,450,550,600,550,550,500,550,550,550,500,600,550,550,550,600,500,650,500,550,550,600,500,550,600,550,550,600,500,600,500,1700,500,600,550,600,500,550,550,600,500,600,550,550,550,650,450,600,500,650,450,650,500,550,500,650,500,600,500,650,500,1600,550,600,500,600,500,600,550,550,550,1600,550,550,550,550,550,1600,550,550,550,1650,500,600,500,650,500,1650,550,550,500,1650,550,1600,550,550,550,600,550,1650,500,600,450,650,450,1700,500,1650,550};


void loop() {

irsend.sendraw(heat, sizeof(heat)/sizeof(int), khz);
delay(5000);
irsend.sendraw(off, sizeof(off)/sizeof(int),khz);
delay(5000);
}


i have ir led connect pin 3 0v 220r resistor. using camera can see led flash (not brightly) ac doesn't respond, when holding close receiver.
i tried using hg7881 boost output (as had one) not luck, maybe isn't quick enough.
i tried changing khz 44
i used code from
https://www.analysir.com/blog/2014/03/19/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino/
to capture signal. seemed more temperamental, picking code when there wasn't 1 , codes of differing lengths. tried them anyway (removing "-"s) still no response.

i found
https://github.com/tonia/arduino-heatpumpir
which thought solve problem, ran test example (called simple) sends load of different codes still no response. found surprising have different make of ac uses same remote codes assumed popular one.

any idea i'm doing wrong? appreciated.
i have noticed captured code never quite same when repeat same function. don't know how accurate has have tried many have thought @ least 1 have worked.

thanks

jd

i tried using transistor boost power led, shines brightly still no response ac. tried taking 10 samples of same code , using average values again no response.
i'm out of ideas.


j d


Arduino Forum > Topics > Home Automation and Networked Objects > IR Remote control of Air Conditioner - Can't get it to work


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'