Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
M5Stack CoreS3とZephyr(RTOS)で Edge AIっぽいことしてみた
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
misoji engineer
April 25, 2026
Technology
720
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
M5Stack CoreS3とZephyr(RTOS)で Edge AIっぽいことしてみた
ミソジ 2026/4/27
M5 Japan Tour 2026 Spring Nagoya
#M5JPTOUR2026
misoji engineer
April 25, 2026
More Decks by misoji engineer
See All by misoji engineer
ハードウェアコンペでもAI駆動開発が進んでいる話
iotengineer22
0
52
FPGAの開発コンペでZephyrを使ってみた
iotengineer22
0
580
FPC(フレキシブル)基板にZephyr実装してみた。
iotengineer22
0
600
ラズパイ & Picoで入門:Zephyr(RTOS)の環境構築からビルドまでの紹介
iotengineer22
1
870
Zephyr(RTOS)でARMとRISC-Vのコア間通信をしてみた
iotengineer22
0
470
Zephyr(RTOS)でOpenPLCを実装してみた
iotengineer22
0
540
Zephyr RTOS の発表をOpen Source Summit Japan 2025で行った件
iotengineer22
0
1.7k
Debugging Edge AI on Zephyr and Lessons Learned
iotengineer22
0
810
Challenging Hardware Contests with Zephyr and Lessons Learned
iotengineer22
0
2.1k
Other Decks in Technology
See All in Technology
プロダクト価値を、 チームが使える判断軸に変える
vivion
0
120
SREでアラート疲れを 解決しよう!
kairim0
1
200
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
230
[2026 Oracle Technical Deep Dive] オンプレミスDBのCloud移行アプローチ:移行計画に基づくメソッドとツールの選択 (2026年9月17日開催)
oracle4engineer
PRO
0
150
いちAWSエンジニアのAI活用を振り返る #devio2026 / devio osaka 2026 kawahara
masahirokawahara
2
390
HolmesGPTで始めるSREエージェント入門!プラットフォームの障害調査はAIにお任せ 〜
leveragestech
PRO
0
150
自主式軟體工廠
philipz
0
220
[2026-09-30]ロックンロールは鳴り止まないっ - 信頼性かまってちゃん - 「データ駆動を投げ捨ててまで。」追いかける信頼性改善に向けた取り組みの話
tosite
0
210
FactoryBotアンチパターン / factory_bot anti-patterns
toshimaru
0
140
検証フェーズはAIの回答を判断するための学習機会
toru_kubota
2
500
ai_cording_with_k8s_knowledge.pdf
mochizuki875
1
300
AI時代のAPI開発を加速する品質ガードレール / API Quality Guardrails in the AI Era
yokawasa
0
150
Featured
See All Featured
Six Lessons from altMBA
skipperchong
29
4.5k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
930
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
370
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Chasing Engaging Ingredients in Design
codingconduct
0
340
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Evolving SEO for Evolving Search Engines
ryanjones
0
310
Heart Work Chapter 1 - Part 1
lfama
PRO
10
36k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
590
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
450
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Transcript
M5Stack CoreS3とZephyr(RTOS)で Edge AIっぽいことしてみた ミソジ 2026/4/27 M5 Japan Tour 2026
Spring Nagoya #M5JPTOUR2026
自己紹介 名前: ミソジ @misoji_engineer ブログ: エンジニアの電気屋さん(https://misoji-engineer.com/) ハードウェアのエンジニアで、趣味でブログとか書いてます
アジェンダ • Zephyr(RTOS)とは • M5StackでのZephyr(RTOS)のサポート具合 • Edge AIっぽいテストしてみた。 • RTOSを使うことのメリット
Zephyr(RTOS)でM5Stackを遊んでみた話
Zephyr(RTOS)とは
Zephyr(RTOS) 「Linux Foundation」がホストする、RTOSのプロジェクト https://www.zephyrproject.org/ RTOS… Real-time operating system リアルタイムオペレーションシステム https://www.linuxfoundation.org/
Use Cases ? 「組み込み」や「IoT」など、小さいデバイスでよく使われています。 https://www.zephyrproject.org/zephyr-overview/ https://www.zephyrproject.org/portf olio/halo-smartglasses/ メモリ、ROMも超小さい。 「K(キロ)ByteのOS」
M5StackでのZephyr(RTOS)の サポート具合
M5Stack × Zephyr(RTOS) 多くの機種をサポート。M5Stack CoreS3 を始めてみた。 Zephyrのドキュメント: https://docs.zephyrproject.org/latest/boards/m5stack/index.html 3週間前(2026/4/6) CoreS3を購入してみた!
USB1本で入門できて良い感じ Zephyr(RTOS)の環境があれば、直ぐにテストできた M5Stackを始めたブログ記事: https://misoji-engineer.com/archives/m5-zephyr.html ・デフォルト ・Hello Worldのディスプレイ表示 サンプルをビルド+書き込み samples/subsys/display /lvgl
Edge AIっぽいテストしてみた。
M5Stack + Zephyr(RTOS) + Edge Impulse M5Stackの加速度センサで、ジェスチャー認識 M5Stack CoreS3 加速度
センサ内蔵 Edge Impulse *Edge AIモデル作成のプラットフォーム 軽量のEdgeAI モデル作成 AIモデル作成の概要まとめたブログ記事: https://misoji-engineer.com/archives/m5stack-edge-impulse.html
ざっくりプログラム概要 Zephyr(RTOS)で加速度センサとEdge AIモデルを結合 ・Zephyr(RTOS)に必要なファイル main.cpp …メインプログラム Makelist …CMake prj.conf …コンフィグ
・Edge ImpulseのC++出力モデル →簡単なジェスチャー認識モデル (Idle, Knock, Updown, Flick) ・M5Stack_CoreS3のoverlay →I2Cの加速度センサをON (デバイスツリー上書き)
GitHubのリポジストリ先 雑に作ったので、興味があれば参考までに リポジストリのURL https://github.com/iotengineer22/zephyr-m5-ei-imu/tree/main
デモ動画 https://youtu.be/h2TyvIFuZGY
RTOSを使うことのメリット。
Zephyr(RTOS)で優先度+スレッド処理 RTOSが「ええ感じ」にセンサ値の取得 + Edge AI処理 [ Timeline: RTOS Multi-threaded Concurrent
Processing ] Time(ms) | 0 10 20 ... 1000 1010 1020 ... 1500 ... 2000 ----------|------------------------------------------------------------------------- 1. Sensor | # # # ... #(*) # # ... # ... #(*) (Pri: 5) | | | | | | | | | Buffers |[features_buffer] | [ features_buffer (next frame) ] | | +-> [ inference_buffer copy & notify ] +-> ----------|------------------------------------------------------------------------- 2. GUI | @ @ @ ... @ @ @ ... @ <*Text Updated*> ... @ (Pri: 6) | ¥--(10ms draw) | | | ----------|------------------------------------------------------------------------- 3.Edge AI | (--- waiting ---) = == == == (--- waiting ---) = (Pri: 7) | ^ | ^ | ¥--(read buffer) ¥--(Mutex safe update) • # : Sensor Sampling (100Hz) • @ : LVGL GUI Task Handler (100Hz) • = : AI Inference Processing (Edge Impulse) • (*) : Buffer is full. Trigger inference (Semaphore Give) センサデータは 逃がさない! 加速度センサ値は 常に取得 Edge AI処理は 隙間時間で GUI、AI処理は 優先度(低)
まぁ、今日は難しい話は置いといて…
「カワイイ!」は正義 M5StackのLCD・センサの一体感はいいですね! LCDの表示が 良い感じ! LVGLで顔の表現 (軽量のGUI)
展示内容 タブレットでログ出しながら、展示してます。 https://youtu.be/ayb-T4G0Hwg CPU負荷・センサ取得時間など ログ表示 Zephyr(RTOS)でセンサ取得を優先、 隙間時間でGUI+Edge AI https://youtu.be/vk44Q4eOBug
まとめ
・M5Stackの多くの機種で、Zephyr(RTOS)がサポート (今回はメジャーのCoreS3でテストしてみた) ・USB1本でプログラム書き込めるし、始めやすい (Hello WorldのLCD表示、加速度センサ取得も簡単でした) ・Edge AIの例で、RTOSの良い感じのデモできました (優先度+スレッド処理をOSが助けてくれます) まとめ Zephyr(RTOS)を
M5Stackで実装+遊べた! 今回のまとめブログ記事: https://misoji-engineer.com/archives/m5stack-zephyr-edge.html