実装方法
ATOM Babiesの実装にはUIFlow版とArduino版(2022年3月1日追加)の2種類あります。
UIFlow版はM5Stack社がM5Stackシリーズ向けに提供しているブロックプログラミング環境であるUIFlow を使って実装できます。ATOM Babies用のカスタムブロックを提供しているので,誰でもかんたんにATOM Babiesをつくることができます。
ATOM Babies用のカスタムブロックは,M5Stack社が提供しているUIFlow Block Makerではなく,自作したUIFlow Custom Block Generatorを使用して生成しています。JSONファイルとMicroPythonファイル(.py
)からカスタムブロックファイル(.m5b
)を生成することができるので,Gitなどのバージョン管理システムでの管理もしやすいですし,ブロックの順序を自由に決められるなど,さまざまな利点があります。
UIFlowにはさまざまなブロックが用意されており,例えばESP-NOWで複数体を同期させたり,WiFiやBluetoothを利用して他のロボットや機器と連携させることもできます。
例えば,以下のツイートにある動画では,左のATOM Babiesの胴体にはENV Hatが,右のATOM Babiesの胴体にはM5StickC Proto Hat の中にCO2センサボードを入っているので,左の子からは温湿度と気圧が,右の子からCO2濃度がESP-NOWを使って定期的にM5Paperに送られ,グラフとして可視化することができています。
https://twitter.com/saitotetsuya/status/1579409258025979904
Arduino版はVisual Studio Codeで動くPlatformIO IDE for VS Codeで実装できます。UIFlowで対応していない機能を使いたい場合はこちらを使用してください。
ハードウェア構成
ATOM BabiesはATOM Matrixを顔にしています。ATOMシリーズにM5Stick C用のHatを接続できるATOM Mateを使用してHatを接続して胴体にしたり,ATOM MatrixのGroove互換インタフェースにM5Stackシリーズ用のUnitを接続することで,ATOM Babiesにさまざまな能力を持たせることができます。
ATOM BabiesをPCに接続したり電源を供給するUSB-Cケーブルは,3COINSが販売しているスタンド型タイプCケーブルを使うとかわいく立てられておすすめです。
写真に写っているATOM Babiesの手は,バンダイのハロプラシリーズのハロの手のひらと足を流用しています。肩の部分はホビーベースのボールジョイント ミニ(クリア,PPC-Tn70)のノーマルタイプ(5mm)を使い,Hatに直径3mmの穴を開けて差し込んでいます。
利用方法
実際にATOM Babiesで何ができるのかは以下を参照ください。
また,M5Burner v3でファームウェアを公開しています。ATOM Matrixがあれば簡単にインストールできますので,是非試してみてください。M5Burnerの使いかたについては「M5Burner v3の使いかた」を参照してください。
ファームウェア v0.0.1ではATOM Matrixの向きに合わせて顔が表示されるようになっています。また,顔を押すとまばたきを開始し,もう一度顔を押すとまばたきを停止します。
Implementation Methods
There are two types of implementations for ATOM Babies: UIFlow Version and Arduino Version (added on March 1, 2022).
The UIFlow Version uses UIFlow, a block programming environment provided by M5Stack for the M5Stack series. Custom blocks for ATOM Babies are available, allowing anyone to easily create ATOM Babies.
The custom blocks for ATOM Babies are generated using a self-made UIFlow Custom Block Generator instead of the UIFlow Block Maker provided by M5Stack. You can generate custom block files (.m5b
) from JSON and MicroPython files (.py
). This makes it easier to manage using Git or other version control systems, and offers various advantages like being able to freely determine block order.
UIFlow offers a range of blocks that allow functionalities like syncing multiple units using ESP-NOW, and integrating with other robots and devices using WiFi or Bluetooth.
For instance, in the video linked in the tweet below, the left ATOM Babies' torso has an ENV Hat, and the right ATOM Babies' torso contains a CO2 sensor board within the M5StickC Proto Hat. Data like temperature, humidity, air pressure, and CO2 levels are regularly sent to M5Paper via ESP-NOW and visualized as graphs.
https://twitter.com/saitotetsuya/status/1579409258025979904
The Arduino Version can be implemented using PlatformIO IDE for VS Code which runs on Visual Studio Code.
Hardware Configuration
ATOM Babies use ATOM Matrix as their face. You can use ATOM Mate to connect Hats to the ATOM series.
The USB-C cable used for power and connectivity is 3COINS' Stand Type C Cable.
The hands of the ATOM Babies shown in the photo use palms and legs from Bandai's Haropla series. The shoulder parts use the normal type (5mm) of Hobby Base's Ball Joint Mini(Clear, PPC-Tn70) , with 3mm holes drilled into the Hat to insert them.
Usage
For what you can actually do with ATOM Babies, please refer to:
- ATOM Babies Project
- ATOM Babies Repository
- ATOM Babies YouTube Channel
- Summary of Tweets about ATOM Babies(In Japanese)
Firmware is available on M5Burner v3. Instructions can be found in How to use M5Burner v3(In Japanese).
In firmware v0.0.1, the face display aligns with the orientation of the ATOM Matrix. Pressing the face initiates blinking, and pressing it again stops it.
YouTubeで紹介させていただきました!
https://youtu.be/t0_B5ZasJHE
ありがとうございました!手に関して追記しておきました。
YouTubeで紹介させていただきました!
https://youtu.be/sSob5clPO2A
作者の方はこういう小さな置物を作るのがとても上手で、自分なりの個性がでており、可愛くて生活に溶け込む作品です