AC Mitsubishi - use Arduino as IR remote - Raw data issues

Everything related to protocols and IR codes
luciomontero
Posts: 3
Joined: Sun Dec 14, 2014 12:11 pm

AC Mitsubishi - use Arduino as IR remote - Raw data issues

Post by luciomontero »

Hello everybody and thanks AnalysIR for your precious info.
As said in the subject I'm trying to control my Mitsubishi Air Conditioner with Arduino.
I would like to buy the maker license for the software to decode the protocol but I just want to be sure that decoding is my deadlock...

Cause I'm trying with raw data with no much success :(

I managed to use the Ardiuno as a remote for the TV so the hardware should be ok.

Then I read a few threads several time.

I've used the skecth for long code you provided here:
http://www.analysir.com/blog/2014/03/19 ... s-arduino/

here what i get:

Code: Select all

Raw: (583) 3496, -1636, 484, -1228, 484, -1232, 456, -396, 492, -368, 460, -408, 480, -1232, 460, -404, 488, -372, 484, -1228, 488, -1228, 484, -372, 460, -1252, 460, -400, 456, -408, 480, -1232, 488, -1228, 456, -404, 456, -1260, 460, -1256, 456, -412, 484, -376, 484, -1232, 484, -372, 456, -404, 456, -1256, 460, -400, 460, -396, 488, -376, 456, -408, 456, -400, 488, -368, 460, -404, 516, -356, 460, -404, 480, -380, 460, -400, 484, -376, 480, -384, 480, -376, 488, -376, 488, -372, 484, -376, 484, -372, 488, -376, 480, -380, 456, -1256, 488, -372, 484, -384, 460, -396, 508, -360, 508, -360, 480, -1244, 484, -376, 456, -404, 484, -384, 456, -404, 460, -1256, 484, -1232, 488, -1228, 484, -368, 488, -372, 456, -408, 484, -380, 484, -372, 492, -372, 488, -372, 484, -376, 484, -372, 488, -1224, 484, -1228, 484, -384, 456, -404, 484, -384, 456, -404, 484, -372, 456, -408, 480, -380, 460, -404, 484, -1232, 484, -376, 460, -1252, 488, -1228, 456, -400, 484, -1232, 484, -1228, 484, -376, 460, -1260, 484, -372, 488, -372, 480, -384, 456, -408, 460, -404, 456, -400, 484, -376, 456, -408, 484, -376, 484, -372, 484, -380, 480, -384, 484, -376, 480, -388, 480, -380, 488, -372, 456, -404, 460, -404, 480, -376, 456, -404, 488, -380, 480, -380, 484, -380, 484, -372, 488, -376, 484, -380, 456, -404, 460, -400, 484, -372, 488, -376, 484, -376, 456, -408, 484, -372, 488, -372, 464, -396, 484, -376, 480, -380, 484, -376, 484, -380, 480, -384, 484, -380, 456, -400, 456, -404, 484, -380, 480, -384, 480, -384, 456, -400, 484, -372, 484, -380, 484, -1224, 488, -1224, 484, -1232, 456, -1256, 452, -408, 488, -372, 456, -412, 456, -404, 484, -16872, 3604, -1656, 460, -1252, 456, -1260, 460, -396, 488, -380, 488, -372, 480, -1236, 460, -396, 484, -380, 484, -1232, 484, -1228, 460, -400, 456, -1256, 484, -376, 484, -380, 484, -1228, 480, -1232, 480, -380, 488, -1232, 480, -1232, 480, -388, 480, -384, 484, -1224, 460, -400, 484, -376, 508, -1200, 460, -404, 480, -380, 484, -376, 484, -376, 456, -408, 480, -380, 460, -400, 488, -376, 456, -404, 484, -376, 484, -372, 484, -380, 488, -372, 480, -384, 484, -368, 488, -376, 484, -376, 484, -376, 456, -404, 484, -376, 508, -1212, 456, -400, 484, -376, 488, -372, 484, -376, 456, -408, 480, -1228, 484, -372, 484, -384, 456, -404, 452, -408, 456, -1256, 456, -1256, 452, -1260, 480, -380, 456, -408, 484, -372, 460, -400, 484, -376, 512, -364, 480, -376, 484, -384, 484, -376, 480, -1228, 484, -1228, 480, -384, 484, -372, 456, -404, 456, -404, 484, -372, 460, -400, 488, -376, 480, -380, 456, -1252, 488, -372, 484, -1228, 484, -1236, 480, -376, 452, -1264, 480, -1232, 484, -380, 488, -1228, 456, -404, 484, -376, 460, -400, 456, -408, 484, -372, 460, -404, 484, -376, 480, -376, 480, -384, 452, -404, 456, -408, 484, -380, 480, -384, 456, -416, 480, -384, 484, -400, 456, -376, 484, -380, 512, -360, 484, -384, 480, -380, 484, -376, 484, -380, 460, -404, 480, -404, 436, -404, 456, -400, 484, -376, 456, -404, 480, -384, 448, -436, 428, -408, 484, -380, 480, -380, 480, -400, 460, -376, 456, -436, 428, -408, 460, -404, 456, -404, 456, -400, 456, -436, 432, -428, 456, -388, 456, -436, 456, -384, 452, -404, 456, -404, 456, -428, 460, -1228, 456, -1256, 480, -1256, 432, -1284, 456, -380, 456, -404, 456, -408, 456, -408, 480, 
a beautiful code...
it seems to me, a code of 291 repeated twice with a pause of about 16 ms.

So I've tried to send it to the Mitsubishi with this skecth:

Code: Select all

/*
Author: AnalysIR 2004 - http://www.AnalysIR.com/
This sketch is Free to use - without restriction
*/

#include <IRremote.h>

IRsend irsend;

int khz = 38; //NB Change this default value as neccessary to the correct modulation frequency


unsigned int powerOff[] = {3496,1636,484,1228,484,1232,456,396,492,368,460,408,480,1232,460,404,488,372,484,1228,488,1228,484,372,460,1252,460,400,456,408,480,1232,488,1228,456,404,456,1260,460,1256,456,412,484,376,484,1232,484,372,456,404,456,1256,460,400,460,396,488,376,456,408,456,400,488,368,460,404,516,356,460,404,480,380,460,400,484,376,480,384,480,376,488,376,488,372,484,376,484,372,488,376,480,380,456,1256,488,372,484,384,460,396,508,360,508,360,480,1244,484,376,456,404,484,384,456,404,460,1256,484,1232,488,1228,484,368,488,372,456,408,484,380,484,372,492,372,488,372,484,376,484,372,488,1224,484,1228,484,384,456,404,484,384,456,404,484,372,456,408,480,380,460,404,484,1232,484,376,460,1252,488,1228,456,400,484,1232,484,1228,484,376,460,1260,484,372,488,372,480,384,456,408,460,404,456,400,484,376,456,408,484,376,484,372,484,380,480,384,484,376,480,388,480,380,488,372,456,404,460,404,480,376,456,404,488,380,480,380,484,380,484,372,488,376,484,380,456,404,460,400,484,372,488,376,484,376,456,408,484,372,488,372,464,396,484,376,480,380,484,376,484,380,480,384,484,380,456,400,456,404,484,380,480,384,480,384,456,400,484,372,484,380,484,1224,488,1224,484,1232,456,1256,452,408,488,372,456,412,456,404,484};



void setup()
{
  Serial.begin(9600);
  irsend.enableIROut(khz);
  delay(1000);
  Serial.println(F("AnalysIR"));
}

void loop()
{
  irsend.sendRaw(powerOff, sizeof(powerOff) / sizeof(int), khz);
  delay(16); //<<<<<<<<<<<<<<<uncomment here if it doesnt work
  irsend.sendRaw(powerOff, sizeof(powerOff) / sizeof(int), khz);  //<<<<<<<<<<<<<<<uncomment here if it doesnt work

  delay(8000); //send signal every 10 seconds for testing
}


but nothing really happened :(
Auch..!

I've also tried the "fix timer trick"
(from this tread here: http://forum.arduino.cc/index.php?PHPSE ... c=111126.0 )
parsing the string and sending:


3200,1600,400,1200,400,1200,400,400,400,400,400,400,400,1200,400,400,400,400,400,1200,400,1200,400,400,400,1200,400,400,400,400,400,1200.....

But still nothing.....
Any idea?!?

Do the RAWBUF size play a role in sending raw data?!

If AnalysIR can parse the code with the software and it works I will be happy to buy a maker license to build all the other codes for my protocol,

Thanks a lot in advance to every help

Kind Regards
Lucio
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: AC Mitsubishi - use Arduino as IR remote - Raw data issu

Post by AnalysIR »

Hi

I imported your signal into AnalysIR & it decodes successfully as Mitsubishi288AC (288 data bits), see attached screenshot.

I suggest you use IRLib to send these long signals. Here is some sample code for IRLib automatically generated by AnalysIR.
Unfortunately, there is a restriction in IRLib which means the max length of signal that can be sent is 255 long. However, we have published a workaround for this in this forum:

Workaround: http://www.analysir.com/joomla/IRforum/ ... ?f=5&t=445

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits
0 : MITSUBISHI288AC :  : C4D36480000410E00C02DA000000000000F0C4D36480000410E00C02DA000000000000F0 : 288
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit http://www.AnalysIR.com or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency


unsigned int Signal_0_0[] = {3496,1636,484,1228,484,1232,456,396,492,368,460,408,480,1232,460,404,488,372,484,1228,488,1228,484,372,460,1252,460,400,456,408,480,1232,488,1228,456,404,456,1260,460,1256,456,412,484,376,484,1232,484,372,456,404,456,1256,460,400,460,396,488,376,456,408,456,400,488,368,460,404,516,356,460,404,480,380,460,400,484,376,480,384,480,376,488,376,488,372,484,376,484,372,488,376,480,380,456,1256,488,372,484,384,460,396,508,360,508,360,480,1244,484,376,456,404,484,384,456,404,460,1256,484,1232,488,1228,484,368,488,372,456,408,484,380,484,372,492,372,488,372,484,376,484,372,488,1224,484,1228,484,384,456,404,484,384,456,404,484,372,456,408,480,380,460,404,484,1232,484,376,460,1252,488,1228,456,400,484,1232,484,1228,484,376,460,1260,484,372,488,372,480,384,456,408,460,404,456,400,484,376,456,408,484,376,484,372,484,380,480,384,484,376,480,388,480,380,488,372,456,404,460,404,480,376,456,404,488,380,480,380,484,380,484,372,488,376,484,380,456,404,460,400,484,372,488,376,484,376,456,408,484,372,488,372,464,396,484,376,480,380,484,376,484,380,480,384,484,380,456,400,456,404,484,380,480,384,480,384,456,400,484,372,484,380,484,1224,488,1224,484,1232,456,1256,452,408,488,372,456,412,456,404,484,16872,3604,1656,460,1252,456,1260,460,396,488,380,488,372,480,1236,460,396,484,380,484,1232,484,1228,460,400,456,1256,484,376,484,380,484,1228,480,1232,480,380,488,1232,480,1232,480,388,480,384,484,1224,460,400,484,376,508,1200,460,404,480,380,484,376,484,376,456,408,480,380,460,400,488,376,456,404,484,376,484,372,484,380,488,372,480,384,484,368,488,376,484,376,484,376,456,404,484,376,508,1212,456,400,484,376,488,372,484,376,456,408,480,1228,484,372,484,384,456,404,452,408,456,1256,456,1256,452,1260,480,380,456,408,484,372,460,400,484,376,512,364,480,376,484,384,484,376,480,1228,484,1228,480,384,484,372,456,404,456,404,484,372,460,400,488,376,480,380,456,1252,488,372,484,1228,484,1236,480,376,452,1264,480,1232,484,380,488,1228,456,404,484,376,460,400,456,408,484,372,460,404,484,376,480,376,480,384,452,404,456,408,484,380,480,384,456,416,480,384,484,400,456,376,484,380,512,360,484,384,480,380,484,376,484,380,460,404,480,404,436,404,456,400,484,376,456,404,480,384,448,436,428,408,484,380,480,380,480,400,460,376,456,436,428,408,460,404,456,404,456,400,456,436,432,428,456,388,456,436,456,384,452,404,456,404,456,428,460,1228,456,1256,480,1256,432,1284,456,380,456,404,456,408,456,408,480}; //AnalysIR Batch Export - RAW

My_Sender.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRLib) - RAW
 // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  

Let me know if it works for you. AnalysIR also has an auto-clean feature for supported protocols, which I have not applied.

Your own code had some issues, mainly the delay was too short - set it to 10 secs & there is also likely to be issues with IRremote with this long signal.

I have also included the code for IRremote here for reference (one oft the longet timings was changed to work with IRrremote.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits
0 : MITSUBISHI288AC :  : C4D36480000410E00C02DA000000000000F0C4D36480000410E00C02DA000000000000F0 : 288
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit http://www.AnalysIR.com or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency


unsigned int Signal_0_0[] = {3496,1636,484,1228,484,1232,456,396,492,368,460,408,480,1232,460,404,488,372,484,1228,488,1228,484,372,460,1252,460,400,456,408,480,1232,488,1228,456,404,456,1260,460,1256,456,412,484,376,484,1232,484,372,456,404,456,1256,460,400,460,396,488,376,456,408,456,400,488,368,460,404,516,356,460,404,480,380,460,400,484,376,480,384,480,376,488,376,488,372,484,376,484,372,488,376,480,380,456,1256,488,372,484,384,460,396,508,360,508,360,480,1244,484,376,456,404,484,384,456,404,460,1256,484,1232,488,1228,484,368,488,372,456,408,484,380,484,372,492,372,488,372,484,376,484,372,488,1224,484,1228,484,384,456,404,484,384,456,404,484,372,456,408,480,380,460,404,484,1232,484,376,460,1252,488,1228,456,400,484,1232,484,1228,484,376,460,1260,484,372,488,372,480,384,456,408,460,404,456,400,484,376,456,408,484,376,484,372,484,380,480,384,484,376,480,388,480,380,488,372,456,404,460,404,480,376,456,404,488,380,480,380,484,380,484,372,488,376,484,380,456,404,460,400,484,372,488,376,484,376,456,408,484,372,488,372,464,396,484,376,480,380,484,376,484,380,480,384,484,380,456,400,456,404,484,380,480,384,480,384,456,400,484,372,484,380,484,1224,488,1224,484,1232,456,1256,452,408,488,372,456,412,456,404,484,16383,3604,1656,460,1252,456,1260,460,396,488,380,488,372,480,1236,460,396,484,380,484,1232,484,1228,460,400,456,1256,484,376,484,380,484,1228,480,1232,480,380,488,1232,480,1232,480,388,480,384,484,1224,460,400,484,376,508,1200,460,404,480,380,484,376,484,376,456,408,480,380,460,400,488,376,456,404,484,376,484,372,484,380,488,372,480,384,484,368,488,376,484,376,484,376,456,404,484,376,508,1212,456,400,484,376,488,372,484,376,456,408,480,1228,484,372,484,384,456,404,452,408,456,1256,456,1256,452,1260,480,380,456,408,484,372,460,400,484,376,512,364,480,376,484,384,484,376,480,1228,484,1228,480,384,484,372,456,404,456,404,484,372,460,400,488,376,480,380,456,1252,488,372,484,1228,484,1236,480,376,452,1264,480,1232,484,380,488,1228,456,404,484,376,460,400,456,408,484,372,460,404,484,376,480,376,480,384,452,404,456,408,484,380,480,384,456,416,480,384,484,400,456,376,484,380,512,360,484,384,480,380,484,376,484,380,460,404,480,404,436,404,456,400,484,376,456,404,480,384,448,436,428,408,484,380,480,380,480,400,460,376,456,436,428,408,460,404,456,404,456,400,456,436,432,428,456,388,456,436,456,384,452,404,456,404,456,428,460,1228,456,1256,480,1256,432,1284,456,380,456,404,456,408,456,408,480}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  
You do not have the required permissions to view the files attached to this post.
luciomontero
Posts: 3
Joined: Sun Dec 14, 2014 12:11 pm

Re: AC Mitsubishi - use Arduino as IR remote - Raw data issu

Post by luciomontero »

First of all thanks a lot for your quick support and for the clear info you provided!
Even if I didn't have much lucky I'm sure I will make it soon.

So here what I've done:

1) Downloaded the IRlib from github
https://github.com/cyborg5/IRLib/

2) Modified the library with workaorund you suggested:
http://www.analysir.com/joomla/IRforum/ ... ?f=5&t=445

3) Run this skecth (I kept just the basic code to avoid mistakes...):

Code: Select all

/* Example program for from IRLib – an Arduino library for infrared encoding and decoding
 * Version 1.3   January 2014
 * Copyright 2014 by Chris Young http://cyborg5.com
 * Based on original example sketch for IRremote library 
 * Version 0.11 September, 2009
 * Copyright 2009 Ken Shirriff
 * http://www.righto.com/
 */
#include <IRLib.h>

IRsend My_Sender;
unsigned int Signal_0_0[] = {3496,1636,484,1228,484,1232,456,396,492,368,460,408,480,1232,460,404,488,372,484,1228,488,1228,484,372,460,1252,460,400,456,408,480,1232,488,1228,456,404,456,1260,460,1256,456,412,484,376,484,1232,484,372,456,404,456,1256,460,400,460,396,488,376,456,408,456,400,488,368,460,404,516,356,460,404,480,380,460,400,484,376,480,384,480,376,488,376,488,372,484,376,484,372,488,376,480,380,456,1256,488,372,484,384,460,396,508,360,508,360,480,1244,484,376,456,404,484,384,456,404,460,1256,484,1232,488,1228,484,368,488,372,456,408,484,380,484,372,492,372,488,372,484,376,484,372,488,1224,484,1228,484,384,456,404,484,384,456,404,484,372,456,408,480,380,460,404,484,1232,484,376,460,1252,488,1228,456,400,484,1232,484,1228,484,376,460,1260,484,372,488,372,480,384,456,408,460,404,456,400,484,376,456,408,484,376,484,372,484,380,480,384,484,376,480,388,480,380,488,372,456,404,460,404,480,376,456,404,488,380,480,380,484,380,484,372,488,376,484,380,456,404,460,400,484,372,488,376,484,376,456,408,484,372,488,372,464,396,484,376,480,380,484,376,484,380,480,384,484,380,456,400,456,404,484,380,480,384,480,384,456,400,484,372,484,380,484,1224,488,1224,484,1232,456,1256,452,408,488,372,456,412,456,404,484,16872,3604,1656,460,1252,456,1260,460,396,488,380,488,372,480,1236,460,396,484,380,484,1232,484,1228,460,400,456,1256,484,376,484,380,484,1228,480,1232,480,380,488,1232,480,1232,480,388,480,384,484,1224,460,400,484,376,508,1200,460,404,480,380,484,376,484,376,456,408,480,380,460,400,488,376,456,404,484,376,484,372,484,380,488,372,480,384,484,368,488,376,484,376,484,376,456,404,484,376,508,1212,456,400,484,376,488,372,484,376,456,408,480,1228,484,372,484,384,456,404,452,408,456,1256,456,1256,452,1260,480,380,456,408,484,372,460,400,484,376,512,364,480,376,484,384,484,376,480,1228,484,1228,480,384,484,372,456,404,456,404,484,372,460,400,488,376,480,380,456,1252,488,372,484,1228,484,1236,480,376,452,1264,480,1232,484,380,488,1228,456,404,484,376,460,400,456,408,484,372,460,404,484,376,480,376,480,384,452,404,456,408,484,380,480,384,456,416,480,384,484,400,456,376,484,380,512,360,484,384,480,380,484,376,484,380,460,404,480,404,436,404,456,400,484,376,456,404,480,384,448,436,428,408,484,380,480,380,480,400,460,376,456,436,428,408,460,404,456,404,456,400,456,436,432,428,456,388,456,436,456,384,452,404,456,404,456,428,460,1228,456,1256,480,1256,432,1284,456,380,456,404,456,408,456,408,480}; //AnalysIR Batch Export - RAW
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency
int led = 13;


void setup()
{
  Serial.begin(9600);
  delay(5000);
  Serial.println(sizeof(Signal_0_0) / sizeof(int));
  //pinMode(led, OUTPUT);
}

void loop() {
  //digitalWrite(led, HIGH);
  My_Sender.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0) / sizeof(int), khz);

  //delay(100);
 // digitalWrite(led, LOW);
  delay(10000);
}

4) :cry: silence....
Led was bliking (smartphone camera check)

----- Well I also tried with IRremote library

Code: Select all



/*
Author: AnalysIR 2004 - http://www.AnalysIR.com/
This sketch is Free to use - without restriction
*/

#include <IRremote.h>

IRsend irsend;

//You could also try 36,40 & 56 frequencies as a test NORMAL = 38
int khz = 38; //NB Change this default value as neccessary to the correct modulation frequency
 
//from AnalysIR forum
unsigned int Signal_0_0[] = {3496,1636,484,1228,484,1232,456,396,492,368,460,408,480,1232,460,404,488,372,484,1228,488,1228,484,372,460,1252,460,400,456,408,480,1232,488,1228,456,404,456,1260,460,1256,456,412,484,376,484,1232,484,372,456,404,456,1256,460,400,460,396,488,376,456,408,456,400,488,368,460,404,516,356,460,404,480,380,460,400,484,376,480,384,480,376,488,376,488,372,484,376,484,372,488,376,480,380,456,1256,488,372,484,384,460,396,508,360,508,360,480,1244,484,376,456,404,484,384,456,404,460,1256,484,1232,488,1228,484,368,488,372,456,408,484,380,484,372,492,372,488,372,484,376,484,372,488,1224,484,1228,484,384,456,404,484,384,456,404,484,372,456,408,480,380,460,404,484,1232,484,376,460,1252,488,1228,456,400,484,1232,484,1228,484,376,460,1260,484,372,488,372,480,384,456,408,460,404,456,400,484,376,456,408,484,376,484,372,484,380,480,384,484,376,480,388,480,380,488,372,456,404,460,404,480,376,456,404,488,380,480,380,484,380,484,372,488,376,484,380,456,404,460,400,484,372,488,376,484,376,456,408,484,372,488,372,464,396,484,376,480,380,484,376,484,380,480,384,484,380,456,400,456,404,484,380,480,384,480,384,456,400,484,372,484,380,484,1224,488,1224,484,1232,456,1256,452,408,488,372,456,412,456,404,484,16383,3604,1656,460,1252,456,1260,460,396,488,380,488,372,480,1236,460,396,484,380,484,1232,484,1228,460,400,456,1256,484,376,484,380,484,1228,480,1232,480,380,488,1232,480,1232,480,388,480,384,484,1224,460,400,484,376,508,1200,460,404,480,380,484,376,484,376,456,408,480,380,460,400,488,376,456,404,484,376,484,372,484,380,488,372,480,384,484,368,488,376,484,376,484,376,456,404,484,376,508,1212,456,400,484,376,488,372,484,376,456,408,480,1228,484,372,484,384,456,404,452,408,456,1256,456,1256,452,1260,480,380,456,408,484,372,460,400,484,376,512,364,480,376,484,384,484,376,480,1228,484,1228,480,384,484,372,456,404,456,404,484,372,460,400,488,376,480,380,456,1252,488,372,484,1228,484,1236,480,376,452,1264,480,1232,484,380,488,1228,456,404,484,376,460,400,456,408,484,372,460,404,484,376,480,376,480,384,452,404,456,408,484,380,480,384,456,416,480,384,484,400,456,376,484,380,512,360,484,384,480,380,484,376,484,380,460,404,480,404,436,404,456,400,484,376,456,404,480,384,448,436,428,408,484,380,480,380,480,400,460,376,456,436,428,408,460,404,456,404,456,400,456,436,432,428,456,388,456,436,456,384,452,404,456,404,456,428,460,1228,456,1256,480,1256,432,1284,456,380,456,404,456,408,456,408,480}; //AnalysIR Batch Export (IRremote) - RAW
 
 
 
void setup()
{
  Serial.begin(9600);
  irsend.enableIROut(khz);
  delay(1000);
  Serial.println(F("AnalysIR"));
}

void loop()
{

  irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
   // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  

  delay(10000); //send signal every 10 seconds for testing
}

Nothing, my Mitsubishi didn't care much...

What am I doing wrong?
Could it be an hardware issue? like IR led is working on samsung TV but not on the AirCond?
Well I hope it's just me making some stupid mistake I'm unable to see...

Any ideas?
Thank you
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: AC Mitsubishi - use Arduino as IR remote - Raw data issu

Post by AnalysIR »

Try this with IRLib (Auto-cleaned with AnalysIR)

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits
0 : MITSUBISHI288AC :  : C4D36480000410E00C02DA000000000000F0C4D36480000410E00C02DA000000000000F0 : 288
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit http://www.AnalysIR.com or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency


unsigned int Signal_0_0[] = {3400,1700,432,1298,432,1298,432,432,432,432,432,432,432,1298,432,432,432,432,432,1298,432,1298,432,432,432,1298,432,432,432,432,432,1298,432,1298,432,432,432,1298,432,1298,432,432,432,432,432,1298,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,1298,432,1298,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,1298,432,1298,432,432,432,1298,432,1298,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,1298,432,1298,432,1298,432,432,432,432,432,432,432,432,432,16872,3400,1700,432,1298,432,1298,432,432,432,432,432,432,432,1298,432,432,432,432,432,1298,432,1298,432,432,432,1298,432,432,432,432,432,1298,432,1298,432,432,432,1298,432,1298,432,432,432,432,432,1298,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,1298,432,1298,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,1298,432,1298,432,432,432,1298,432,1298,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,1298,432,1298,432,1298,432,432,432,432,432,432,432,432,432}; //AnalysIR Batch Export - RAW

My_Sender.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRLib) - RAW
 // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  
or this with IRRremote

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits
0 : MITSUBISHI288AC :  : C4D36480000410E00C02DA000000000000F0C4D36480000410E00C02DA000000000000F0 : 288
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit http://www.AnalysIR.com or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency


unsigned int Signal_0_0[] = {3400,1700,432,1298,432,1298,432,432,432,432,432,432,432,1298,432,432,432,432,432,1298,432,1298,432,432,432,1298,432,432,432,432,432,1298,432,1298,432,432,432,1298,432,1298,432,432,432,432,432,1298,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,1298,432,1298,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,1298,432,1298,432,432,432,1298,432,1298,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,1298,432,1298,432,1298,432,432,432,432,432,432,432,432,432,16383,3400,1700,432,1298,432,1298,432,432,432,432,432,432,432,1298,432,432,432,432,432,1298,432,1298,432,432,432,1298,432,432,432,432,432,1298,432,1298,432,432,432,1298,432,1298,432,432,432,432,432,1298,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,432,432,432,432,432,432,1298,432,1298,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,432,432,1298,432,1298,432,432,432,1298,432,1298,432,432,432,1298,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,432,1298,432,1298,432,1298,432,1298,432,432,432,432,432,432,432,432,432}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  
If neither work, then try changing the freq (khz value) to each of 38, 33, 36, 40, 56 in turn for both IRLib and IRremote.

As I am not sure what signal this is ON or OFF etc. You need to try the signals with the AC unit on and then off.

It also occured to me...does theAC unit work with your exixting remote control?

Also, please describe your IR emitter circuit and try to place it within 1m of the AC unit, in case the signal is weak. You have confirmed that it works with your TV or DVD???
luciomontero
Posts: 3
Joined: Sun Dec 14, 2014 12:11 pm

Re: AC Mitsubishi - use Arduino as IR remote - Raw data issu

Post by luciomontero »

:D :D :D :D :D

Finally!

It seems my only problem was IR led direction... Wow I counlldn't imagine!
Even unclean raw code is working!

Well it's still a little strange beacuse the real remote control is working from 8 - 10 meter distance
while my arduino cannot make from 1 meter if don't point exatcly to unit receiver.

Anyway not that bad, now that I know!!!

Thanks for eveything! I'm gonna buy the software right now!
And congratulation again for the job you guys are doing it's all very cool!

Regards
Lucio
thefirentllp
Posts: 2
Joined: Mon Apr 11, 2016 11:41 am

Re: AC Mitsubishi - use Arduino as IR remote - Raw data issu

Post by thefirentllp »

Hi I am currently facing the same issue with mitsubishi code although the bit are 288 bit. Currently the model that i am controlling is MSY-GE13VA and attached below is the raw code. Could someone help me as i tried the suggestions that was listed in the board and also used the analysIR to clean the raw code however i could not activate the aircon.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: ************@gmail.com
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : MITSUBISHI288AC :  : C4D36480000418506C1E00000000000000A0C4D36480000418506C1E00000000000000A0 : 288 : 0
1 : MITSUBISHI288AC :  : C4D36480000018506C1E00000000000000A7C4D36480000018506C1E00000000000000A7 : 288 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for ***************@gmail.com, visit http://www.AnalysIR.com or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct carrier frequency


unsigned int Signal_0_0[] = {3396,1660,432,1228,436,1224,440,388,444,388,432,396,436,1224,440,392,440,388,432,1228,436,1224,440,392,440,1220,432,400,432,396,436,1224,440,1220,436,396,436,1224,440,1220,440,388,436,396,436,1224,440,392,436,392,440,1220,436,396,436,392,440,392,440,388,432,400,432,396,436,392,440,392,440,392,440,388,432,400,432,396,436,392,440,392,440,388,432,400,432,400,432,396,436,396,436,392,440,1220,436,396,436,392,440,392,440,388,432,400,432,1228,436,1224,440,388,432,396,436,396,436,392,440,1220,432,400,432,1228,436,392,440,392,432,396,436,396,432,396,436,1224,440,1220,436,392,440,1220,444,1216,436,396,436,392,440,392,440,392,440,388,432,1228,436,1224,440,1220,432,1228,436,392,440,392,440,392,432,396,432,396,436,396,436,392,440,392,432,396,436,396,436,392,440,392,440,388,436,396,432,396,436,396,436,396,436,392,440,392,440,388,432,400,432,396,436,396,436,392,440,392,440,392,428,400,432,400,432,396,436,392,440,392,440,388,436,396,436,392,436,396,436,392,440,392,432,396,436,396,436,392,440,392,440,388,444,388,432,396,436,396,436,392,440,392,440,388,444,388,432,396,436,396,436,392,440,392,440,388,432,400,432,396,436,396,436,1224,440,388,436,1224,440,392,436,392,440,392,432,396,436,396,436,16888,3400,1628,440,1220,432,1224,440,392,432,396,436,396,436,1224,440,388,432,396,436,1224,440,1220,432,400,432,1224,440,392,440,392,428,1228,436,1224,440,392,432,1228,436,1224,436,392,432,400,432,1224,440,392,440,388,444,1216,436,396,436,392,440,392,440,388,432,396,436,396,436,392,440,392,440,388,432,400,432,396,436,396,436,392,440,392,432,396,436,392,440,392,436,392,432,396,436,396,436,1224,440,388,432,400,432,396,436,396,436,392,440,1220,432,1228,436,392,440,392,432,396,436,396,436,1220,440,392,432,1228,440,388,440,392,440,388,432,396,436,396,436,1224,440,1220,432,396,436,1224,440,1220,432,396,436,396,436,392,440,388,436,396,436,1224,436,1224,432,1228,436,1224,440,388,432,396,436,396,436,392,440,392,440,388,432,400,432,396,436,392,440,392,440,388,436,396,432,396,436,396,436,392,440,388,436,396,436,396,432,396,436,396,436,392,432,396,436,396,436,392,440,392,440,388,432,396,436,396,436,392,440,392,440,388,432,396,436,396,436,396,436,388,432,400,436,392,436,396,436,392,440,392,432,396,436,392,440,392,436,392,432,400,432,396,436,392,440,392,440,388,432,400,432,396,436,392,440,392,440,388,432,400,432,396,436,396,436,1220,432,400,432,1228,436,392,440,388,436,396,436,392,440,392,440}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW( On Mode)
 // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  


unsigned int Signal_1_1[] = {3400,1652,440,1224,436,1224,432,396,436,396,436,392,440,1220,444,388,432,396,436,1228,436,1224,440,388,432,1228,436,396,436,396,436,1220,432,1228,488,344,436,1224,440,1220,436,396,436,392,440,1224,440,388,432,396,436,1224,440,392,440,392,440,388,432,396,436,396,436,396,436,392,440,392,440,388,444,388,432,396,436,396,436,396,436,392,440,392,440,388,436,396,432,396,436,396,436,392,440,392,440,392,432,396,436,396,436,392,440,392,436,1224,432,1228,436,396,436,392,440,388,444,388,432,1228,436,396,436,1224,440,388,432,400,432,396,436,396,436,396,436,1220,432,1232,432,396,436,1224,440,1220,436,396,436,392,440,392,436,392,440,392,432,1228,436,1224,440,1220,432,1228,436,392,440,392,440,388,432,400,432,396,436,396,436,392,440,392,432,396,432,396,436,396,436,392,440,392,432,396,436,396,436,392,440,392,436,392,432,396,436,396,436,392,440,392,440,388,432,400,432,396,436,392,440,392,440,388,432,400,432,396,436,396,436,392,440,392,432,396,436,396,436,392,440,392,440,388,432,400,432,396,436,392,440,392,440,388,432,400,432,396,436,396,436,392,440,388,432,400,432,400,432,396,436,396,436,392,432,396,436,396,436,392,440,388,444,1216,436,396,436,1224,440,388,432,400,432,1228,436,1220,436,1224,436,16896,3392,1636,436,1224,440,1220,432,400,432,396,436,396,436,1224,440,388,432,400,432,1228,436,1224,440,388,432,1228,436,396,436,396,436,1220,436,1224,440,392,440,1220,432,1228,436,392,440,392,440,1220,432,396,436,392,440,1220,464,368,464,364,468,364,468,360,460,372,460,368,464,368,464,364,468,364,468,360,460,372,460,368,464,368,464,364,468,360,464,368,464,364,464,368,464,364,468,364,468,360,464,368,464,364,468,364,468,360,460,368,464,1196,468,1192,460,372,460,368,464,364,468,364,468,1192,464,364,464,1196,468,364,460,368,464,364,468,364,468,364,468,1188,464,1196,468,364,468,1192,460,1196,468,364,468,360,464,368,460,368,464,368,464,1196,460,1200,464,1196,468,1188,464,368,464,368,464,364,468,364,468,360,460,372,460,368,464,364,468,364,468,360,460,372,460,368,464,368,464,364,468,364,460,368,460,368,464,368,464,364,468,364,460,368,464,364,468,364,468,360,472,360,460,368,464,364,468,364,436,392,460,372,460,368,464,368,464,364,436,392,460,372,432,396,464,368,464,364,468,360,464,368,464,364,464,368,436,392,468,364,460,368,464,368,464,364,436,392,472,360,468,364,460,368,464,364,468,364,468,360,460,372,460,368,464,364,468,1192,460,368,464,1196,440,392,460,368,464,1196,436,1220,464,1196,468}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_1_1, sizeof(Signal_1_1)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW ( Off Mode)
 // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: AC Mitsubishi - use Arduino as IR remote - Raw data issu

Post by AnalysIR »

The signal you posted was not 'cleaned' & here it is.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : MITSUBISHI288AC :  : C4D36480000018506C1E00000000000000A7C4D36480000018506C1E00000000000000A7 : 288 : 0
1 : GREE35_67AC :  : 685803052 : 35 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit https://www.AnalysIR.com/ or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct carrier frequency


unsigned int Signal_0_0[] = {3400,1700,433,1299,433,1299,433,433,433,433,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,1299,433,433,433,433,433,1299,433,433,433,433,433,1299,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,433,433,433,433,433,433,433,433,1299,433,433,433,1299,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,1299,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,1299,433,1299,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,1299,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,1299,433,16896,3400,1700,433,1299,433,1299,433,433,433,433,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,1299,433,433,433,433,433,1299,433,433,433,433,433,1299,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,433,433,433,433,433,433,433,433,1299,433,433,433,1299,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,1299,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,1299,433,1299,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,1299,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,1299,433}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  


unsigned int Signal_1_1[] = {9000,4500,600,1690,600,1690,600,600,600,1690,600,600,600,600,600,600,600,600,600,1690,600,600,600,1690,600,1690,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,1690,600,1690,600,600,600,600,600,600,600,600,600,600,600,1690,600,600,600,1690,600,600,600,600,600,1690,600,600,600}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_1_1, sizeof(Signal_1_1)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: GREE35_67AC, Key:  
If that does not work, please post details about your IR emitter circuit & make sure you are pointing the top of the IR LED directly towards the AC unit and have it as close as possible.

PS: sorry about hte delay in responding as your post seems to have got lost for some reason(?)
thefirentllp
Posts: 2
Joined: Mon Apr 11, 2016 11:41 am

Re: AC Mitsubishi - use Arduino as IR remote - Raw data issu

Post by thefirentllp »

Hi thanks for the response. i was figuring out how to clean the ir signals using the software and still could not get a clean code as compared to the codes below. And once again thanks for cleaning the codes. Really appreciate it.

AnalysIR wrote:The signal you posted was not 'cleaned' & here it is.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : MITSUBISHI288AC :  : C4D36480000018506C1E00000000000000A7C4D36480000018506C1E00000000000000A7 : 288 : 0
1 : GREE35_67AC :  : 685803052 : 35 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit https://www.AnalysIR.com/ or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct carrier frequency


unsigned int Signal_0_0[] = {3400,1700,433,1299,433,1299,433,433,433,433,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,1299,433,433,433,433,433,1299,433,433,433,433,433,1299,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,433,433,433,433,433,433,433,433,1299,433,433,433,1299,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,1299,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,1299,433,1299,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,1299,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,1299,433,16896,3400,1700,433,1299,433,1299,433,433,433,433,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,1299,433,433,433,433,433,1299,433,433,433,433,433,1299,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,433,433,433,433,433,433,433,433,1299,433,433,433,1299,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,433,433,1299,433,1299,433,433,433,433,433,433,433,433,433,433,433,1299,433,1299,433,1299,433,1299,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,433,1299,433,433,433,1299,433,433,433,433,433,1299,433,1299,433,1299,433}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: MITSUBISHI288AC, Key:  


unsigned int Signal_1_1[] = {9000,4500,600,1690,600,1690,600,600,600,1690,600,600,600,600,600,600,600,600,600,1690,600,600,600,1690,600,1690,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,1690,600,1690,600,600,600,600,600,600,600,600,600,600,600,1690,600,600,600,1690,600,600,600,600,600,1690,600,600,600}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_1_1, sizeof(Signal_1_1)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: GREE35_67AC, Key:  
If that does not work, please post details about your IR emitter circuit & make sure you are pointing the top of the IR LED directly towards the AC unit and have it as close as possible.

PS: sorry about hte delay in responding as your post seems to have got lost for some reason(?)
david2000
Posts: 5
Joined: Sat Nov 03, 2018 8:49 am

Re: AC Mitsubishi - use Arduino as IR remote - Raw data issues

Post by david2000 »

Hi all,

I'm desperately trying to control my Mitsubishi Electric Air Conditioner Model MSY-GK13VA via arduino. Endless tinkering and scouring the net for solutions eventually lead me to this blog post which I thought would be the solution to the issue (ie the code being too long). Using the supplied arduino sketch shared on that post, I captured the RAW codes from the remote. This is what I got. However attempting to send these to the unit, nothing happens at all.

I can confirm that my (transmit) IR LED IS working because I am able to transmit captured codes to my LED strips using the identical setup. I have tried various distances to the init, from across the room to a few centimeters from the receiver on the unit without success. Using my mobile phone camera I can confirm that the IR LED is transmitting something every 5 seconds, but the unit is not interested in it at all.
( My transmit sketch ). FYI, I am using an Arduino Uno, IR LED between PWM pin2 and GND via a 220ohm resistor.

Further reading lead me to this thread. I was searching for my model number and since someone above was having issues with a similar model (MSY-GE13VA) I thought I may find some further clues or have some luck using the "cleaned" codes from his post, but alas, it did not work for me.

Could someone please offer some suggestions as to where I am going wrong here and why this is not working? I'm really out of ideas.

Many thanks

-David
Post Reply