A minimal implementation of infrared sender/receiver like IRKit by ESP8266
Arduino
Latest commit 3031600 Jan 15, 2017 @9SQ committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
minirum small fix. Sep 19, 2016
README.md Update README.md Jan 14, 2017

README.md

minIRum

A minimal implementation of infrared sender/receiver like IRKit by ESP8266

Description

IRKitの GET,POST /messages 同様の機能だけをESP8266で実現する最小限の実装です

ESP-WROOM-02で動作確認済み

Maybe it will work on other ESP* boards.

How to use

以下の通り接続

  • GPIO 12 - Infrared LED
  • GPIO 14 - Infrared receiver

赤外線リモコン受信モジュールはOSRB38C9AAなどの3.3V駆動可能のものを利用します

以下の2か所を適宜変更

const char* ssid = "**********"; // Wi-FiアクセスポイントのSSID
const char* password = "**********"; // パスワード

See also

回路図とパーツリストはブログ記事を参照してください。

ミニマルなIRKitクローンを作ってiOSから家電を制御する : Eleclog.

Example Requests

GET /messages

curl -i http://minirum-a492cd.local/messages
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 383
Connection: close
Access-Control-Allow-Origin: *

{"format":"raw","freq":38,"data":[3550,1700,500,400,500,400,500,1300,500,1300,500,400,500,1300,500,400,500,400,500,400,500,1300,500,400,500,400,500,1300,500,400,500,1300,500,400,500,1300,500,400,500,400,500,1300,500,400,500,400,500,400,500,400,500,1300,500,400,500,1300,500,1300,500,400,500,1300,500,400,500,400,500,400,500,400,500,1300,500,400,500,400,500,1300,500,400,500,400,500]}

POST /messages

curl -i http://minirum-a492cd.local/messages -d'{"format":"raw","freq":38,"data":[3550,1700,500,400,500,400,500,1300,500,1300,500,400,500,1300,500,400,500,400,500,400,500,1300,500,400,500,400,500,1300,500,400,500,1300,500,400,500,1300,500,400,500,400,500,1300,500,400,500,400,500,400,500,400,500,1300,500,400,500,1300,500,1300,500,400,500,1300,500,400,500,400,500,400,500,400,500,1300,500,400,500,400,500,1300,500,400,500,400,500]}'
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 2
Connection: close
Access-Control-Allow-Origin: *

Requirements