Spotify物理リモコン

© CC BY 4+ visibility942
© CC BY 4+
visibility942

SpotifyをアプリやWeb UIからではなく、物理的なリモコンから操作できるようにします。

動画
開発素材
システム構成

image

物理リモコンから発信される赤外線信号を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.

ストーリー

Spotify物理リモコンがほしい背景
Background for Spotify physical remote control.

  • 普段スマートスピーカーからSpotifyで音楽を流すけど、曲選択や音量調整といった操作は音声ではやりづらい

    I usually play music on Spotify from my smart speaker, but it's hard to use my voice to select songs or adjust the volume.
  • なのでWeb Playerを使ってPCから操作してるけど、 PCのあるところに行かないといけなかったり、 ウインドウ切り替えたりと地味にめんどくさい

    So I use Web Player to control it from my PC, but I have to go to a place where there is a PC, or switch windows, which is a real pain in the ass.

コンポのリモコンみたいなので操作したい
I want to operate it like a remote control for a compo.

理想はコンポのリモコン感覚で物理ボタンをポチポチすればSpotifyをコントロールできたらいいなと思い本作品を作成しました。

Ideally, I would like to be able to control Spotify by just flicking a physical button, just like a remote control for a composter, so I created this work.

img

メンバー
  • user
    田中みそ @miso_develop

関連イベント
  • event ヒーローズ・リーグ 20222022-09-05 開催
  • event M5Stack Japan Creativity Contest 20222022-07-15 開催
関連リンク

同じニオイがする作品
  • event すしどらいばー - 可変速度回転寿司 -
  • event 林家Pay
  • event TRICK SCOOP
  • event Ba-Chang Car - 次世代「お婆ちゃんがよく押してる謎のカート」

Proto lovers ♥
user
user
user
user
user
user

作品を登録しよう

モノづくりしている人に、つくった作品を見てもらえ、リアクションがもらえるかも?

close

目次


Proto lovers ♥
user
user
user
user
user
user