I'm trying to control an air-conditioner using Arduino UNO with the program. To receive IR signals from the remote, I'm using IR receiver module to receive signals form the remote and give codes for the ON and OFF command. And once I receive an array of raw codes for both, I'll give them in another program and give temperature conditions accordingly to invoke them to switch the AC on and off.
But the AC is not switching ON and OFF according to the temp conditions given. The air-conditioner is Mitsubishi Electric.
What could be the reason for this?
The program I'm following is:
https://github.com/LokeshPatil-loki/aka ... IR_Recieve
Below are the raw codes obtained from the receiver module.
#define RAW_DATA_LEN 100
uint16_t rawDataOff[RAW_DATA_LEN]={
3310, 1878, 278, 1446, 326, 1406, 362, 474,
390, 478, 390, 434, 422, 1374, 278, 562,
306, 562, 390, 1362, 362, 1362, 350, 490,
394, 1362, 298, 542, 306, 558, 394, 1362,
362, 1362, 278, 558, 310, 1446, 326, 1414,
278, 558, 394, 430, 434, 1358, 366, 430,
370, 538, 390, 1362, 322, 522, 326, 538,
354, 514, 394, 474, 326, 542, 454, 306,
422, 558, 306, 562, 394, 474, 390, 474,
330, 538, 390, 438, 430, 438, 342, 562,
394, 430, 370, 542, 390, 482, 330, 538,
394, 434, 346, 562, 390, 442, 342, 562,
390, 434, 346, 1000};
#define RAW_DATA_LEN 100
uint16_t rawDataOn[RAW_DATA_LEN]={
3394, 1794, 362, 1362, 322, 1410, 362, 478,
390, 478, 394, 470, 458, 1310, 362, 474,
390, 478, 394, 1358, 322, 1402, 278, 562,
390, 1366, 298, 542, 390, 474, 394, 1362,
362, 1362, 362, 474, 394, 1358, 362, 1362,
362, 474, 394, 470, 458, 1310, 366, 470,
394, 474, 390, 1362, 302, 538, 306, 562,
394, 470, 394, 474, 394, 474, 394, 474,
394, 470, 394, 470, 330, 538, 394, 474,
306, 562, 354, 518, 330, 542, 394, 470,
306, 562, 462, 418, 414, 458, 394, 470,
334, 538, 394, 470, 394, 1362, 362, 470,
390, 474, 394, 1000};
I went through some previously answered questions by you and got another code to capture long signals from the remote. And the raw data obtained from them is as below:
Raw: (451) 3404, -1784, 416, -1308, 412, -1312, 412, -424, 376, -492, 360, -512, 352, -1400, 412, -424, 504, -368, 444, -1316, 372, -1352, 328, -512, 376, -1380, 412, -424, 376, -492, 444, -1316, 412, -1312, 324, -512, 444, -1312, 412, -1312, 412, -428, 376, -488, 380, -1376, 412, -424, 356, -508, 380, -1380, 412, -424, 404, -464, 444, -432, 356, -516, 356, -508, 356, -512, 428, -444, 376, -492, 440, -428, 356, -512, 440, -424, 440, -428, 404, -468, 508, -368, 356, -512, 356, -512, 444, -424, 440, -424, 376, -492, 440, -424, 440, -1312, 372, -468, 356, -508, 380, -488, 444, -424, 400, -468, 356, -1396, 412, -1312, 328, -508, 444, -424, 356, -512, 444, -424, 380, -1380, 408, -1316, 412, -424, 376, -492, 440, -424, 440, -424, 444, -420, 444, -424, 400, -1356, 412, -1312, 412, -424, 444, -1308, 348, -1376, 328, -512, 440, -424, 440, -424, 440, -428, 440, -1312, 412, -424, 404, -468, 440, -1312, 348, -1376, 412, -428, 440, -428, 440, -424, 356, -512, 444, -420, 380, -488, 444, -424, 356, -512, 356, -512, 376, -492, 356, -512, 356, -516, 436, -428, 356, -512, 356, -512, 440, -424, 440, -428, 376, -488, 444, -424, 440, -424, 440, -428, 380, -488, 376, -492, 440, -424, 356, -512, 356, -512, 444, -428, 440, -424, 356, -512, 440, -424, 444, -420, 444, -420, 444, -424, 352, -516, 356, -508, 444, -424, 440, -424, 356, -512, 376, -496, 440, -424, 404, -476, 352, -516, 440, -424, 356, -508, 356, -516, 380, -488, 376, -492, 440, -428, 440, -424, 440, -428, 440, -428, 356, -512, 376, -488, 404, -472, 440, -424, 356, -512, 436, -428, 436, -1288, 376, -492, 376, -1348, 376, -1348, 436, -436, 432, -1288, 404, -1320, 380, -1352, 400, -17080, 3568, -1736, 396, -1332, 396, -1352, 376, -468, 404, -464, 400, -464, 396, -1352, 376, -488, 380, -496, 376, -1348, 376, -1356, 376, -488, 376, -1348, 376, -492, 372, -492, 376, -1348, 372, -1348, 376, -496, 372, -1356, 368, -1356, 368, -500, 368, -496, 368, -1356, 368, -500, 364, -508, 368, -1356, 392, -476, 368, -500, 388, -480, 364, -500, 368, -500, 368, -504, 368, -500, 384, -484, 368, -496, 368, -524, 368, -500, 344, -524, 368, -504, 340, -524, 340, -524, 344, -520, 368, -500, 368, -500, 344, -528, 364, -500, 368, -1360, 340, -524, 340, -528, 344, -524, 344, -524, 344, -520, 340, -1384, 340, -1388, 340, -528, 320, -544, 320, -548, 316, -576, 292, -1432, 292, -1432, 292, -576, 316, -552, 288, -576, 288, -576, 288, -580, 312, -556, 288, -1432, 292, -1456, 264, -604, 264, -1460, 264, -1464, 264, -604, 264, -628, 216, -652, 240, -632, 212, -1540, 212, -652, 184, -684, 180, -1568, 180,
Raw: (583) 3404, -1784, 412, -1312, 372, -1352, 412, -424, 356, -512, 360, -508, 444, -1312, 328, -508, 500, -376, 356, -1396, 328, -1396, 416, -420, 356, -1400, 412, -424, 428, -440, 440, -1316, 412, -1312, 348, -492, 440, -1312, 404, -1328, 344, -492, 356, -512, 360, -1396, 372, -468, 440, -424, 404, -1356, 324, -512, 404, -468, 356, -516, 444, -424, 360, -508, 360, -508, 404, -468, 356, -512, 444, -424, 444, -424, 444, -420, 440, -428, 404, -468, 508, -368, 444, -424, 356, -512, 440, -424, 444, -424, 356, -512, 440, -424, 440, -428, 444, -424, 356, -508, 400, -468, 356, -516, 404, -468, 356, -1392, 412, -1312, 400, -444, 440, -428, 440, -424, 444, -428, 440, -1312, 328, -1396, 412, -424, 356, -512, 404, -464, 432, -440, 404, -476, 356, -512, 404, -1352, 480, -1252, 328, -520, 440, -1312, 412, -1316, 328, -512, 440, -424, 400, -468, 356, -508, 356, -1396, 328, -508, 444, -376, 424, -1376, 412, -1312, 412, -428, 440, -428, 356, -508, 444, -424, 432, -444, 376, -492, 440, -424, 440, -424, 440, -424, 356, -508, 380, -492, 444, -420, 356, -512, 440, -424, 368, -500, 360, -508, 440, -428, 484, -388, 468, -408, 440, -424, 404, -468, 440, -424, 440, -420, 444, -424, 372, -496, 404, -464, 356, -508, 428, -440, 440, -424, 356, -516, 440, -424, 440, -424, 440, -424, 444, -424, 376, -492, 444, -428, 404, -468, 440, -424, 404, -464, 444, -424, 356, -508, 376, -492, 440, -424, 376, -492, 360, -512, 440, -424, 504, -372, 444, -428, 440, -432, 440, -428, 440, -424, 356, -508, 440, -424, 404, -468, 440, -424, 356, -512, 440, -424, 440, -1284, 440, -428, 424, -1304, 440, -1284, 436, -428, 436, -428, 436, -1284, 436, -1288, 436, -17040, 3544, -1752, 432, -1296, 460, -1276, 400, -468, 408, -460, 376, -488, 400, -1332, 376, -484, 404, -464, 432, -1296, 404, -1324, 404, -464, 400, -1364, 408, -440, 400, -468, 400, -1348, 376, -1348, 380, -492, 376, -1344, 376, -1352, 384, -484, 376, -492, 376, -1348, 376, -488, 380, -488, 372, -1356, 376, -492, 396, -472, 376, -500, 376, -492, 376, -492, 376, -492, 376, -496, 372, -496, 372, -500, 368, -496, 368, -496, 368, -500, 396, -476, 372, -508, 368, -496, 392, -476, 368, -500, 368, -496, 368, -500, 368, -496, 368, -500, 368, -500, 368, -496, 392, -476, 368, -508, 392, -476, 368, -1352, 392, -1336, 392, -476, 364, -504, 392, -476, 392, -476, 368, -1360, 364, -1356, 368, -500, 368, -500, 368, -500, 364, -504, 392, -484, 392, -476, 368, -1380, 368, -1356, 368, -480, 372, -1372, 344, -1396, 344, -520, 344, -524, 344, -528, 340, -524, 368, -1360, 340, -528, 344, -520, 344, -1396, 340, -1376, 368, -504, 340, -524, 368, -500, 344, -524, 340, -528, 364, -504, 344, -524, 340, -524, 368, -500, 368, -504, 364, -504, 368, -500, 344, -524, 344, -520, 340, -524, 364, -504, 344, -524, 340, -528, 368, -500, 344, -520, 368, -504, 368, -508, 340, -524, 344, -524, 340, -524, 344, -520, 368, -500, 368, -500, 344, -524, 344, -520, 364, -504, 368, -500, 368, -504, 340, -524, 340, -524, 344, -520, 360, -512, 344, -524, 340, -528, 340, -524, 344, -524, 340, -528, 340, -524, 340, -524, 364, -508, 340, -524, 340, -528, 340, -520, 368, -504, 340, -524, 344, -524, 320, -552, 316, -548, 320, -544, 316, -548, 316, -548, 316, -552, 340, -1408, 292, -552, 316, -1432, 316, -1408, 320, -552, 316, -548, 320, -1404, 296, -1428, 316,
I tried giving the above raw data as input to invoke the ON and OFF command according to the temperature conditions. The AC still does not respond. What should I do now?
I'm not from the computer science or the electrical domain, so I'm unsure of the technicalities of this project.
Please help me out here.