美的 空调红外遥控器 编码 学习 基于arduino的atmega328P
时间:10-02
整理:3721RD
点击:
用arduino的Iremote库里的IRreceivedump例子接收美的 空调红外遥控器 的编码 一直是 未知类型,看了论坛上,把收到的 关功能的 编码复制到数组 rawcodes[]里面,把第一个放到最后,红外接收管就无法接收到了,是什么原因?空调也没有关的反应。除了用红外编码分析仪,还有其他方法解决吗?
接收关的编码 也一直是变化的 如:
unsigned int rawCodes_close_one[200] = {14800,4400,-4350,550,-1550,550,-550,550,-1600,500,-1600,550,-550,500,
-550,550,-1600,500,-550,550,-500,550,-1600,550,-500,550,-550,550,-1550,550,-1600,550,-550,500,-1600,550,-550,
500,-1600,550,-1600,500,-1650,500,-1600,550,-550,500,-1600,550,-1600,500,-1650,500,-550,500,-550,550,-550,500,
-550,550,-1600,500,-550,550,-550,500,-1600,550,-1600,500,-1650,500,-550,500,-550,550,-550,500,-550,550,-500,550,
-550,550,-500,550,-500,550,-1600,550,-1600,550,-1550,550,-1600,550,-1550,550,-5150,4350,-4350,500,-1600,550,-550,
500,-1600,550,-1600,500,-600,500,-550,500,-1600,550,-550,500,-600,450,-1650,500,-600,500,-550,500,-1600,500,-1650,
500,-600,500,-1600,500,-600,500,-1600,500,-1650,500,-1600,550,-1600,500,-600,500,-1600,500,-1600,550,-1600,550,-550,
500,-600,450,-600,500,-550,500,-1650,500,-550,500,-600,450,-1650,500,-1650,500,-1600,550,-550,500,-550,500,-600,500,
-550,500,-550,500,-600,500,-550,500,-600,500,-1600,500,-1650,500,-1600,500,-1650,500,-1650,500};
unsigned int rawCodes_close_two[200] = {-1546,4450-4250,600,-1500,600,-500,600,-1500,600,-1550,600,-450,600,
-500,600,-1500,650,-450,600,-450,600,-1550,600,-450,600,-550,550,-1500,600,-1550,600,-450,600,-1600,550,-500,
550,-1550,600,-1500,650,-1500,650,-1500,600,-450,600,-1550,600,-1550,600,-1500,650,-450,600,-450,600,-450,650,
-450,600,-1500,650,-500,550,-450,600,-1550,600,-1500,650,-1500,600,-450,650,-450,600,-450,600,-500,600,-450,
600,-550,550,-450,600,-450,650,-1550,550,-1550,600,-1500,600,-1600,550,-1500,650,-5050,4400,-4250,650,-1500,
600,-500,600,-1500,600,-1550,600,-500,550,-500,600,-1550,550,-500,600,-450,600,-1550,600,-450,600,-500,600,
-1500,600,-1550,600,-450,600,-1550,600,-500,550,-1550,600,-1550,600,-1500,600,-1600,550,-450,600,-1550,600,
-1500,600,-1550,600,-500,600,-450,600,-450,600,-500,600,-1550,550,-500,600,-450,600,-1550,600,-1550,600,-1500,
600,-500,600,-450,600,-500,550,-500,600,-500,550,-450,650,-450,600,-450,600,-1550,600,-1500,650,-1550,550,-1550,
接收关的编码 也一直是变化的 如:
unsigned int rawCodes_close_one[200] = {14800,4400,-4350,550,-1550,550,-550,550,-1600,500,-1600,550,-550,500,
-550,550,-1600,500,-550,550,-500,550,-1600,550,-500,550,-550,550,-1550,550,-1600,550,-550,500,-1600,550,-550,
500,-1600,550,-1600,500,-1650,500,-1600,550,-550,500,-1600,550,-1600,500,-1650,500,-550,500,-550,550,-550,500,
-550,550,-1600,500,-550,550,-550,500,-1600,550,-1600,500,-1650,500,-550,500,-550,550,-550,500,-550,550,-500,550,
-550,550,-500,550,-500,550,-1600,550,-1600,550,-1550,550,-1600,550,-1550,550,-5150,4350,-4350,500,-1600,550,-550,
500,-1600,550,-1600,500,-600,500,-550,500,-1600,550,-550,500,-600,450,-1650,500,-600,500,-550,500,-1600,500,-1650,
500,-600,500,-1600,500,-600,500,-1600,500,-1650,500,-1600,550,-1600,500,-600,500,-1600,500,-1600,550,-1600,550,-550,
500,-600,450,-600,500,-550,500,-1650,500,-550,500,-600,450,-1650,500,-1650,500,-1600,550,-550,500,-550,500,-600,500,
-550,500,-550,500,-600,500,-550,500,-600,500,-1600,500,-1650,500,-1600,500,-1650,500,-1650,500};
unsigned int rawCodes_close_two[200] = {-1546,4450-4250,600,-1500,600,-500,600,-1500,600,-1550,600,-450,600,
-500,600,-1500,650,-450,600,-450,600,-1550,600,-450,600,-550,550,-1500,600,-1550,600,-450,600,-1600,550,-500,
550,-1550,600,-1500,650,-1500,650,-1500,600,-450,600,-1550,600,-1550,600,-1500,650,-450,600,-450,600,-450,650,
-450,600,-1500,650,-500,550,-450,600,-1550,600,-1500,650,-1500,600,-450,650,-450,600,-450,600,-500,600,-450,
600,-550,550,-450,600,-450,650,-1550,550,-1550,600,-1500,600,-1600,550,-1500,650,-5050,4400,-4250,650,-1500,
600,-500,600,-1500,600,-1550,600,-500,550,-500,600,-1550,550,-500,600,-450,600,-1550,600,-450,600,-500,600,
-1500,600,-1550,600,-450,600,-1550,600,-500,550,-1550,600,-1550,600,-1500,600,-1600,550,-450,600,-1550,600,
-1500,600,-1550,600,-500,600,-450,600,-450,600,-500,600,-1550,550,-500,600,-450,600,-1550,600,-1550,600,-1500,
600,-500,600,-450,600,-500,550,-500,600,-500,550,-450,650,-450,600,-450,600,-1550,600,-1500,650,-1550,550,-1550,