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
M5StickCでのIMU開発
Search
Yosuke Nakano
February 04, 2020
Programming
2.3k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
M5StickCでのIMU開発
M5StickCでIMUのデータを無線で送信する開発を行いました。
Yosuke Nakano
February 04, 2020
More Decks by Yosuke Nakano
See All by Yosuke Nakano
Zenject.SceneTestFixture and DI
naninunenoy
0
1.7k
最近行った焼肉屋
naninunenoy
0
520
M5Stack with Unity
naninunenoy
3
3k
M5Stack x IMU x BLE
naninunenoy
1
880
Other Decks in Programming
See All in Programming
Embedded Swiftで作る自作USBデバイス によるiOSデバイスの自動テスト / iOSDC Japan 2026 glassfiber
glassfiber
0
290
プロダクトコードからライブラリの境界を見つける
elmetal
PRO
0
100
R8 の設定見直しでアプリサイズ削減
andpad
0
140
すこし踏み込む CancellationToken
htkym
2
1.6k
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
180
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.5k
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
330
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
130
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Workers Cache を知る
syumai
0
340
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
34
15k
Security issues being discussed on Web Platforms
petamoriken
0
1.4k
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
350
How to train your dragon (web standard)
notwaldorf
96
6.8k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
770
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
540
Google's AI Overviews - The New Search
badams
0
1.6k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
How GitHub (no longer) Works
holman
316
150k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
Navigating Weather and Climate Data
rabernat
0
550
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Speed Design
sergeychernyshev
33
2.1k
Docker and Python
trallard
47
4.2k
Transcript
M5StickC IMU開発の 自分の歩み 中野洋輔 @naninuneno_y
こんなの作ってました(もう1年前か…) GitHub naninunenoy/GrayBlue M5Stackユーザーミーティング vol.4 (2019/4/15)にてLT MPU-9250ありきなのでもう使えない
5000円くらい (当時) 安い! ・ESP32(BLE/wi-fi対応) ・9軸IMU ・液晶 ・ボタン3つ ・バッテリー 当時でもこんな安いのかと驚きましたが、
1980円 !!? ・ESP32(BLE/wi-fi対応) ・6軸IMU ・液晶 ・ボタン2つ ・バッテリー さらにお手頃に
• 加速度センサの値がひっくり返してもマイナスにならない • 公式コードのビット演算にミスあり • しかし、値域が-0.9~+1.1とかになるんですけど と思ってたら SH200Qとの戦い 結合してから キャストしよう
MPU6886に切り替えてく • センサの性能が上がるのはいいけど、 パターン増えるんかーと思ってたら、
有志の方が解決してくれた • OSSってありがたい
で、新しく作ったのが GitHub naninunenoy/AxisOrange
SPPを採用することで受信側のプログラムを簡単に SPP System.IO.Ports IMU Button Quaternion 参考 パソコン上のM5Stackの3Dモデルを、M5Stackの動きに合わせて動かす GitHub naninunenoy/AxisOrange
GitHub naninunenoy/AxisOrangeUnity
開発のポイント • 受信側(PC側)はSerial Portのプログラムを書けば良い • iOSはSPP非対応(らしい) • xTaskCreate()によるタスク分割 • loop()でセンサ更新->SPP送信を行うのでなく、センサ更新と送信を別タス
クで実行 • vTaskDelay()で処理を明け渡すの大事 • ジャイロセンサの0出力をデバイスで計算+保存 • 特定の命令で静止時のジャイロセンサ出力を保存し、オフセットとして扱う • センサの個体に寄らない姿勢計算が可能(なはず)
ありがとうございました (多分展示も出します)