W-ROOM2でエアコン制御

暑い季節になったので、W-ROOM2を使って、エアコンをコントロールしよう。

付属リモコンをなくしてしまっているので、互換リモコンを使ってるんだけど、タイマー設定ができないので、ちょいちょい朝までついているという・・・

自分で、半田付けしても良いんだけど、いつのまにか(?)赤外線対応のW-ROOMを買っていたので、それを使って、ちょちょいと。

ここからダウンロードできるファイルを使って設定。

リモコンコードの記録は、ESPrIR_dumperを使って、記録。シリアルモニタに表示されるデータをコピーして、リモコンコード送信側のコードに追記。

リモコンコード送信は、RSPrIR_senderを使う。

シリアル書き込みのたびに、PROG/RUNを切り替えるのが少しだけ面倒だけど、あっという間に完成。

あとは、38mmx32mmx10mmのボードが入るケースを探そう。

自分メモ:以下、東芝エアコン用リモコンコード

unsigned int airConOn[199] = {
4536,4406,623,1562,622,466,652,1537,648,1534,625,467,621,467,622,1561,732,370,648,441,648,1537,621,465,654,440,622,1558,652,1533,652,440,622,1576,648,1532,623,465,622,1563,626,1563,622,1563,622,1563,622,1563,648,1545,622,467,622,1563,625,467,622,465,627,461,626,463,621,467,626,474,622,466,652,1537,648,441,621,465,622,467,621,471,595,493,622,480,622,1557,626,463,652,1537,621,1562,622,1563,648,1537,648,1537,626,1563,625,5171,4549,4403,625,1560,625,467,622,1563,626,1559,622,467,625,463,625,1564,622,474,622,466,622,1564,625,463,625,467,622,1563,622,1558,625,467,625,1573,622,1558,653,435,627,1562,623,1562,627,1558,622,1563,622,1563,626,1567,627,461,626,1563,622,467,625,467,622,466,622,461,626,463,626,474,627,462,627,1561,622,467,622,466,622,467,625,461,628,465,627,474,622,1560,621,465,654,1537,646,1537,648,1537,622,1563,622,1563,628,1561,648,
};

unsigned int oneHourOff[199] = {
4499,4307,622,1554,622,467,619,1554,622,1554,622,464,622,467,648,1527,622,465,648,440,622,1548,705,383,626,461,648,1528,648,1525,648,441,621,1553,648,440,622,465,621,467,648,439,621,467,616,471,621,1549,627,1548,622,1552,628,1548,622,1552,622,1554,648,1525,648,1528,622,465,621,467,622,1552,621,1554,622,465,622,1548,627,465,622,1548,627,462,621,465,622,1554,621,1554,649,1527,620,1554,622,1550,625,1549,751,1424,622,1558,621,5016,4508,4308,652,1523,648,441,646,1528,621,1554,648,441,621,465,622,1550,622,465,648,440,648,1528,646,440,622,467,646,1528,621,1551,625,461,622,1554,621,467,622,465,621,467,622,467,646,440,622,467,621,1549,625,1550,646,1528,622,1554,621,1554,647,1528,649,1522,622,1553,622,465,622,467,647,1527,647,1528,756,332,622,1552,648,441,621,1549,625,463,622,465,625,1550,646,1528,622,1554,621,1554,648,1528,646,1524,622,1552,648,1531,622,
};


unsigned int airConOff[199] = {
4564,4370,659,1523,665,426,666,1522,664,1536,673,419,643,448,644,1526,660,453,648,443,618,1566,673,418,648,426,1094,1110,618,1566,643,444,648,1535,882,249,824,1337,643,1545,643,1543,779,1388,660,445,621,1565,648,1554,643,1539,643,445,725,349,639,470,644,443,673,1515,642,445,621,462,872,1315,665,1540,642,1524,795,313,670,418,647,427,660,445,648,435,661,369,718,430,766,344,673,1515,668,1514,643,1524,664,1544,644,1526,665,5153,4572,4369,635,1547,879,257,617,1527,661,1540,621,471,618,469,622,1548,665,453,643,426,661,1545,643,449,616,453,639,1567,616,1567,643,449,616,1580,644,426,665,1540,644,1522,666,1522,664,1540,643,428,661,1527,659,1538,659,1540,644,448,643,428,664,427,661,449,643,1522,660,445,648,435,661,1543,648,1540,670,1513,648,444,777,310,648,445,646,441,648,453,643,444,673,419,751,336,804,1388,643,1539,618,1565,752,1436,621,1554,639,
};

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.