如何在arduino中发送复杂的红外十六进制代码

时间:2016-05-26 02:26:10

标签: arduino infrared

我想用arduino控制我的空调

我遵循以下指示:http://www.instructables.com/id/Arduino-Remote-Control-Less-10/?ALLSTEPS

我用我的MP3遥控器的ON按钮测试,在第二步中,我有结果:

unsigned int raw1[68] = {9000,4350,600,500,600,500,600,500,650,450,650,500,600,500,600,500,600,500,600,1650,550,1650,550,1700,500,1700,500,1700,550,1650,550,1700,500,1700,550,1650,550,1650,550,600,500,600,550,550,500,600,550,1650,550,600,500,550,550,600,500,1700,550,1700,500,1700,500,1700,550,550,550,1650,550,};
irsend.sendRaw(raw1,68,38);

我使用arduino来运行它,它可以工作

之后,我用我的东芝空调的ON按钮测试,我有结果

unsigned int raw2[100] = {4550,4100,750,1400,750,1400,700,1450,700,1450,700,350,700,350,700,1450,650,450,600,450,600,500,600,450,600,500,550,1600,550,1550,600,500,550,1600,550,500,550,500,550,550,550,550,500,550,500,550,550,1600,500,1650,500,1650,500,1650,500,1600,550,1600,500,1650,500,1650,500,550,550,550,500,550,500,600,500,550,500,550,550,550,500,550,500,600,500,1600,550,550,500,550,500,600,500,550,500,550,550,550,500,550,500,600,500,};
irsend.sendRaw(raw2,100,38);

我使用arduino来运行它,它不起作用

我用很多遥控器尝试了很多次,我看到当raw []有 100 元素时,它不起作用,但是当raw []有 68 元素时:它的工作

请帮助我!

抱歉我的英文不好

由于

0 个答案:

没有答案