M5Core2とAtom Liteで作る宅内IOTリモートスイッチ

© CC BY 4+ visibility557
© CC BY 4+
visibility557

タッチパネルなM5Core2のアニメーション付スイッチで、遠隔でM5Atom経由で3D Printerやシーリングライトを制御するシステム

link https://github.com/Katsushun89/m5_home_remote_switches
動画
開発素材

デバイス

システム構成
system image

[JP] タッチパネル方式になったM5Core2のアニメーション付スイッチで、遠隔でM5Atom経由で3D Printerやシーリングライトを制御するシステム

タッチパネルで操作するボタンのUI構成と、操作対称のスイッチはこのようにしています。

ボタンの構成

  • 中央の円形のボタン:遠隔で操作するスイッチをオンオフ
  • 左右の三角ボタン:操作対称のスイッチの切り替え
  • 対象とするスイッチ

工作室のシーリングライト(赤外線で制御) 3Dプリンタの電源スイッチ(サーボモーターで制御) 操作される側にはAtom Liteがつながっています。

また、M5Core2, Atom LiteはFirebase RTDB経由でスイッチの状態を同期しています。 M5Core2, Atom Liteどちらもスイッチの役目も果たせるので、どちらかのスイッチを押せば、FirebaseのRTDBが更新され、スイッチの状態が変更されます。


[ENG] System to control 3D Printer and ceiling light via M5Atom remotely with M5Core2 switch with animation, which is now a touch panel system.

The UI configuration of the buttons to be operated by the touch panel and the operation symmetry switches are shown in this figure.

Button configuration

  • Center circular button: turns on/off the switch to be operated remotely
  • Triangular buttons on the left and right: Toggle switches for operation symmetry
  • Switches to be targeted

Ceiling light in the craft room (controlled by IR) Power switch of a 3D printer (controlled by a servo motor) Atom Lite is connected to the side to be operated.

M5Core2 and Atom Lite are synchronized with each other via Firebase RTDB. Both the M5Core2 and the Atom Lite can serve as switches, so pressing either switch will update the Firebase RTDB and change the switch status.

Translated with www.DeepL.com/Translator (free version)

ストーリー

[JP] いつもM5Stackシリーズで電子工作的なものを作って遊んでいるんですが、今回はIOTリモコン的なものを作ってみました。 今回の肝は、FirebaseのRTDBは勝手に更新されるので、ソースコードのスイッチを追加していけばいくつでもスイッチを増やせる点です。


[ENG] I'm always playing with the M5Stack series to make electronic things, and this time I made an IOT remote control thing. The key this time is that Firebase's RTDB is updated by itself, so you can add as many switches as you want by adding switches in the source code.

メンバー
  • user
    KatsuShun89 @katsushun89

関連イベント
  • event M5Stack Japan Creativity Contest 20212021-07-15 開催
関連リンク

同じニオイがする作品
  • event M5Stackがスタックできる超音波風速計
  • event 電子工作をもっと簡単、便利に!イケてる「ブレッドボードホルダー」を作ったよ!
  • event Raspberry Pi Pico 搭載多機能マイコンボード 「Turtle Pico 」
  • event ラズパイPico/WのGPIOが一発でわかる!GPIOガイドカバー「GPIO Master」

Proto lovers ♥
user
user

作品を登録しよう

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

close

目次


Proto lovers ♥
user
user