物理リモコンから発信される赤外線信号をM5ATOM Liteにつなげた赤外線受信機で受信します。
M5ATOM LiteとRaspberry PiはopnizというRPCフレームワークにより同期しており、opnizによって赤外線信号情報をM5ATOM LiteからRaspberry Piに転送されます。
Raspberry Pi上のNode.jsプログラムにてSpotify Web APIを組み合わせたSpotify操作関数が実装されており、M5ATOM Liteから受け取った赤外線信号をもとに対応したSpotify操作を行います。
Infrared signals emitted from the physical remote control are received by an infrared receiver connected to M5ATOM Lite.
M5ATOM Lite and Raspberry Pi are synchronized by an RPC framework called opniz, and the infrared signal information is transferred from M5ATOM Lite to Raspberry Pi by opniz.
A Spotify operation function combined with the Spotify Web API is implemented in a Node.js program on the Raspberry Pi, which performs the corresponding Spotify operation based on the infrared signal received from M5ATOM Lite.
物理リモコンはダイソーで300円で購入できる簡易リモコンに対応していますが、より強い信号出力のため家に余っていた日立製シーリングライトのリモコンにも対応させました。
NECフォーマット、AEHAフォーマットの赤外線信号に対応しているので、他の多くの種類のリモコンも使用できます。
The physical remote control is compatible with a simple remote control that can be purchased at Daiso for 300 yen, but for stronger signal output, we also made it compatible with a Hitachi ceiling light remote control that we had left over at home.
It supports NEC-format and AEHA-format infrared signals, so many other types of remote controls can also be used.
本作ではSpotify Web APIの実装をNode.jsで行った関係上、opnizを介してRaspberry PiからSpotify Web APIを実行していますが、M5ATOM Liteから直接Spotify Web APIを実行することも可能です。
In this work, the Spotify Web API is executed from the Raspberry Pi via opniz due to the implementation of the Spotify Web API in Node.js, but it is also possible to execute the Spotify Web API directly from the M5ATOM Lite.