SlideShare ist ein Scribd-Unternehmen logo
1 von 11
micro:witch で Tello を
制御する方法
山梨学院大学 伊藤栄一郎
Tello はUDPで制御できる
● Tello は無線LANのアクセスポイントとなります。(SSID: Tello-xxxxx )
● アドレス 192.168.1.10 のポート番号 8889 へ UDP で文字列を送ると、Tello
を制御することができます。
● なお、起動直後に「command」を送る必要があります。
コマンドの例 内容
takeoff 離陸する
land 着陸する
up 30 30cm上昇する
forward 50 50cm前進する
「04 Tello Commands | Telloのコマンド一覧」より抜粋
https://drone-an.pro/tellosdk_trans/04_tello_commands/
MakeCode で Tello を制御する
● micro:bit とPCを使って Tello を制御する方法があります。
魔法の杖(micro:bit)でトイドローンTelloを操作してみた[Magic Wand]
https://qiita.com/daiking1756/items/4e96e10514231e2cef1c
● micro:bit と PC とをBluetooth で接続します。
● PC 上の node.js のプログラムが Bluetooh のメッセージを受け取り、そのメ
ッセージをUDP送信します。
MicroPython は Bluetooth が使えない
micro:witch が利用している MicroPython では、Bluetooth での通信をサポートし
ていません。(Bluetooth - BBC micro:bit MicroPython ページより)
MicroPython では Bluetooth ではなく、radio モジュールによる通信を推奨してい
ます。
radio
送信
UART
送信
micro:bit (A) micro:bit (B) M5StickC Tello
UDP
送信
2台の micro:bit と M5StickC を使う
● 1台目の micro:bit (A) は、Tello のコマンドをradio で送信する。
● 2台目の micro:bit (B) は、radio で受信したコマンドを UART に出力する。
● M5StickC は UART で受信したコマンドをUDP で送信する。
● UDPで受信したコマンドで Tello が動く。
Tello サーバ
micro:bit (B) と M5StickC の接続方法
micro:bit (B) M5StickC
Pin 0 G36
3V 3V3
GND GND
micro:bit (B) の電源は
M5StickC から供給します。
micro:bit (A) のサンプルプログラム
● 無線メッセージで Tello のコマンドを送るプ
ログラムであれば何でも構いません。
micro:bit (B) のプログラム
● UARTの設定が行われた後、micro:witch での制御が効かなくなります。
● 基本的に修正の必要はありませんが、プログラムを変更したい場合、start の
表示が終わる前までに接続して、Stop を押して止める必要があります。
M5StickC の操作方法
電源オン 電源ボタンを押します。自動的にTello に接続します。
電源オフ 電源ボタンを6秒長押しします。
離陸 モードボタンで take off にして、M5ボタンを押します。
着陸 モードボタンで land にして、M5ボタンを押します。
【注意事項】
● M5StickC のバッテリー容量が少ないので、モバイルバッテリー等に接続して使ってください。
● バッテリーを完全に放電させると、起動しないことがあります。30分ほど充電させてから、電源
オン・オフの操作を繰り返してみてください。
【ディスプレイ表示】
1行目: 状態
2行目: Tello のアクセスポイント名
3行目: Tello のIPアドレス・ポート番号
4行目: 送信メッセージ
6行目: M5StickC のバッテリー残量
7行目: 制御モード
電源
ディスプレイ
モード
M5
長所と短所
【長所】
● Tello の制御のためのPCを必要としない。
● 勝手に Tello と接続してくれる。
● 多(micro:bit)対一(Tello)の制御ができる。
【短所】
● M5StickC が必要。
● micro:bit が2台以上必要。
利用したソフトウェアについて
micro:witch
https://github.com/EiichiroIto/microwitch
M5StickC UART to UDP bridge
https://github.com/EiichiroIto/m5stickcUartUdpBridge

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Kürzlich hochgeladen (6)

東京工業大学 環境・社会理工学院 建築学系 大学院入学入試・進学説明会2024_v2
東京工業大学 環境・社会理工学院 建築学系 大学院入学入試・進学説明会2024_v2東京工業大学 環境・社会理工学院 建築学系 大学院入学入試・進学説明会2024_v2
東京工業大学 環境・社会理工学院 建築学系 大学院入学入試・進学説明会2024_v2
 
2024年度 東京工業大学 工学院 機械系 大学院 修士課程 入試 説明会 資料
2024年度 東京工業大学 工学院 機械系 大学院 修士課程 入試 説明会 資料2024年度 東京工業大学 工学院 機械系 大学院 修士課程 入試 説明会 資料
2024年度 東京工業大学 工学院 機械系 大学院 修士課程 入試 説明会 資料
 
次世代機の製品コンセプトを描く ~未来の機械を創造してみよう~
次世代機の製品コンセプトを描く ~未来の機械を創造してみよう~次世代機の製品コンセプトを描く ~未来の機械を創造してみよう~
次世代機の製品コンセプトを描く ~未来の機械を創造してみよう~
 
ゲーム理論 BASIC 演習106 -価格の交渉ゲーム-#ゲーム理論 #gametheory #数学
ゲーム理論 BASIC 演習106 -価格の交渉ゲーム-#ゲーム理論 #gametheory #数学ゲーム理論 BASIC 演習106 -価格の交渉ゲーム-#ゲーム理論 #gametheory #数学
ゲーム理論 BASIC 演習106 -価格の交渉ゲーム-#ゲーム理論 #gametheory #数学
 
世界を変えるクレーンを生み出そう! 高知エンジニアリングキャンプ2024プログラム
世界を変えるクレーンを生み出そう! 高知エンジニアリングキャンプ2024プログラム世界を変えるクレーンを生み出そう! 高知エンジニアリングキャンプ2024プログラム
世界を変えるクレーンを生み出そう! 高知エンジニアリングキャンプ2024プログラム
 
生成AIの回答内容の修正を課題としたレポートについて:お茶の水女子大学「授業・研究における生成系AIの活用事例」での講演資料
生成AIの回答内容の修正を課題としたレポートについて:お茶の水女子大学「授業・研究における生成系AIの活用事例」での講演資料生成AIの回答内容の修正を課題としたレポートについて:お茶の水女子大学「授業・研究における生成系AIの活用事例」での講演資料
生成AIの回答内容の修正を課題としたレポートについて:お茶の水女子大学「授業・研究における生成系AIの活用事例」での講演資料
 

Empfohlen

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Controlling tello using microwitch

  • 1. micro:witch で Tello を 制御する方法 山梨学院大学 伊藤栄一郎
  • 2. Tello はUDPで制御できる ● Tello は無線LANのアクセスポイントとなります。(SSID: Tello-xxxxx ) ● アドレス 192.168.1.10 のポート番号 8889 へ UDP で文字列を送ると、Tello を制御することができます。 ● なお、起動直後に「command」を送る必要があります。 コマンドの例 内容 takeoff 離陸する land 着陸する up 30 30cm上昇する forward 50 50cm前進する 「04 Tello Commands | Telloのコマンド一覧」より抜粋 https://drone-an.pro/tellosdk_trans/04_tello_commands/
  • 3. MakeCode で Tello を制御する ● micro:bit とPCを使って Tello を制御する方法があります。 魔法の杖(micro:bit)でトイドローンTelloを操作してみた[Magic Wand] https://qiita.com/daiking1756/items/4e96e10514231e2cef1c ● micro:bit と PC とをBluetooth で接続します。 ● PC 上の node.js のプログラムが Bluetooh のメッセージを受け取り、そのメ ッセージをUDP送信します。
  • 4. MicroPython は Bluetooth が使えない micro:witch が利用している MicroPython では、Bluetooth での通信をサポートし ていません。(Bluetooth - BBC micro:bit MicroPython ページより) MicroPython では Bluetooth ではなく、radio モジュールによる通信を推奨してい ます。
  • 5. radio 送信 UART 送信 micro:bit (A) micro:bit (B) M5StickC Tello UDP 送信 2台の micro:bit と M5StickC を使う ● 1台目の micro:bit (A) は、Tello のコマンドをradio で送信する。 ● 2台目の micro:bit (B) は、radio で受信したコマンドを UART に出力する。 ● M5StickC は UART で受信したコマンドをUDP で送信する。 ● UDPで受信したコマンドで Tello が動く。 Tello サーバ
  • 6. micro:bit (B) と M5StickC の接続方法 micro:bit (B) M5StickC Pin 0 G36 3V 3V3 GND GND micro:bit (B) の電源は M5StickC から供給します。
  • 7. micro:bit (A) のサンプルプログラム ● 無線メッセージで Tello のコマンドを送るプ ログラムであれば何でも構いません。
  • 8. micro:bit (B) のプログラム ● UARTの設定が行われた後、micro:witch での制御が効かなくなります。 ● 基本的に修正の必要はありませんが、プログラムを変更したい場合、start の 表示が終わる前までに接続して、Stop を押して止める必要があります。
  • 9. M5StickC の操作方法 電源オン 電源ボタンを押します。自動的にTello に接続します。 電源オフ 電源ボタンを6秒長押しします。 離陸 モードボタンで take off にして、M5ボタンを押します。 着陸 モードボタンで land にして、M5ボタンを押します。 【注意事項】 ● M5StickC のバッテリー容量が少ないので、モバイルバッテリー等に接続して使ってください。 ● バッテリーを完全に放電させると、起動しないことがあります。30分ほど充電させてから、電源 オン・オフの操作を繰り返してみてください。 【ディスプレイ表示】 1行目: 状態 2行目: Tello のアクセスポイント名 3行目: Tello のIPアドレス・ポート番号 4行目: 送信メッセージ 6行目: M5StickC のバッテリー残量 7行目: 制御モード 電源 ディスプレイ モード M5
  • 10. 長所と短所 【長所】 ● Tello の制御のためのPCを必要としない。 ● 勝手に Tello と接続してくれる。 ● 多(micro:bit)対一(Tello)の制御ができる。 【短所】 ● M5StickC が必要。 ● micro:bit が2台以上必要。