SlideShare a Scribd company logo
1 of 68
Download to read offline
Unity お・と・な のLT大会 2015
束田 大介
Unity × ミニ四駆 Pert2
さて野郎ども、
ポロリの時間だ。
今年のミニ四駆
やばかった
ジャパンカップ
サーキット紹介
ハイパーダッシュサーキット2015
メビウスチェンジャー
何故か新橋のコースに登場
ぶっ壊れっからやめろの声も、
平気だからと強行
注意書きいるよねーといいな
がらダセーからやめろとの声
ミニ四駆ジャパンカップ2015
東京大会3
会場は全日本模型ホビーショーが開催されている東京
ビッグサイトの屋外展示場。
朝方、雨の降る時間もありましたがその後天候は回復。
参加選手は合計4,051名を記録しました。
コロコロアニキ2号より
ハイパーダッシュ四駆郎
連載スタート!!
武井宏之 (シャーマンキング)
シャーマンキングの作者、武井宏之先
生が描く、ハイパーダッシュ四駆郎の
連載がスタート
なんと武井先生は、ダッシュ3号シュー
ティングスターの原案者(当時中学生)
時を超えて、新たなるシューティング
スターをデザイン
…そのシューティングスターとは?
シューティング・プラウド・スター
シューティング・プラウド・スター
シューティングスターの象徴とされる、大きなエア
インテークをシェイプアップ
流線型の車体をさらに鋭くし、空気抵抗をカット
シャーシは駆動効率を重視したMAシャーシ
シューティング・プラウド・スター
ジャパンカップ2015のシンボルマシンにもなった
コロコロアニキにはゴールドメッキのシューティン
グスターが付属
リアルアバンテ
実写サイズのアバンテが登場!
リアルアバンテ
実際のバギーのシャーシを流用して骨組みを作成
ガチで走る
もちろん公道はアウト
リアルアバンテ
ローラーが必要なのかとかいう野暮なツッコミやめろ
そのバンパーでガードレール云々的な野暮なツッコミやめろ
スポンジタイヤはつくのかとか野暮なツッコミやめろ
その車高でリアウイングいるのかって野暮なツッコミやめろ
軽量化が(ry
年々盛り上がりを見せるミニ四駆!
来年もさらなるテンションアップを期待したい!
ん?なんだこの違和感…
あぁ。今日はUnityの日か。
嘘乙。
ちゃんと準備しておりやすw
Unity × ミニ四駆
前回までのTWENTY (ry
構想一年やっと具現化
元々ミニ四駆の走行データをシミュレーションした
かったのが事の経緯
マイコン積んでラジコンとかはダセぇ
センサーを集めてみたら事の他データの規模が大き
かった(加速度センサーに関しては平均7G)
ミニ四駆のデータベースを
あのサイズ、コースに含まれるデータの価値
スイッチを入れ、手を離してからの予測値の計算
グレードアップパーツの効果
最終的にはシミュレーター
蓄積されたデータを元に走行シミュレーションがで
きるように
各パーツの性能も記録を取ってみたい
コンディションによるセッティングの改善も
今年の成果
ミニ四駆クライアントサイド
無線化する部分に大きく工数をとられ、チップ選定
に大幅に時間を使った
センサーチップに関してはその間進化しており、様々
なセンシング可能な小型チップが多数販売
やはりというか回転数を取るためのセンサーは難易
度高し
データレシーブサイド
mbedを使って直接インターネットにデータを送る
ケースも評価
完全Iotもいいが、状態のデバックが難しいため、一
旦検討の余地あり
マイコンチップが別途必要になるが、トワイライト・
トコスティックによるシリアル通信が有効
ここまで:Unity出番なし
まぁ待て。
ミニ四駆とは?
ミニ四駆とは
毎度の愚痴だが、ミニ四駆をコントロールしような
んて邪道
こちとら、もう20年以上前にラジコンのサーボのっ
けてやってんだYO!
それを無線でやろうとかちょっとアレ
ミニ四駆とは?
プラスチックのシャーシに単三電池2本をぶっこん
で、マブチ130モーターを限界までぶん回して、決
まったレーンを一直線に走りきる、大枚叩いたマシ
ンがコースアウトでぶっ壊れるかもしれないドM事案
そう。電池です。
視覚化できる充電器を作ろう
Unityで。
Unityで充電器を作る
概要
通常の充電器
基本2セルセットでの充電
性能がいいやつだと放電器
も付いている
ちょっとギークな充電器
ものものしい
ソフトウェアが古め
もちろん対応OSも古め
ミニ四駆における電池
一定の電圧をニカド電池、リチュウムイオン電池に
流し込み、電気を貯める
電池には性能があり、ミニ四駆界には「電池の育成」
なるものが存在する
もちろん同じ電池でも放電時の性能、蓄電時の性能
など個体差が出る
電池の育成
具体的な方法は様々だが、普通2売っている充電器で
はできそうもない
通常の充電器でできるのは、満充電後に使用し、空
になったらまた充電などといった使い方
過度の電流、電圧は、電池の寿命も縮める
パルス充電
パルス充電
一定の電流、電圧を断続的に流しながら行う充電方式
マイコンではPWMと呼ばれる方式
アナログアウトなどはこのPWMによるアウトプット
パルス充電
充電と休憩を繰り返すため、電池への負担が軽い
もちろんパルスの間隔で充電のパフォーマンスは変わる
Arduino側の実装
Arduino
テスト時はベーシックな
ArduinoUnoでおk
今回は、バッテリーの計測
と、充電を繰り返す仕様
アナログINと、デジタル
OUTの2chを使う
Arduinoのパルス放電
アナログアウトのPWM出力を使って、パルス充電を行う
今回使用するArduinoは5Vの信号をアウトプット
このアナログアウトのPWMを、計測した充電中の電池の
電圧に応じてコントロールしようという実装
Firmata
Arduinoのサンプルスケッチにある、Firmataというラ
イブラリをインストールするだけでおk
なので、Arduino側の実装が不要!←ここ重要
あとはGND(マイナス)と、それぞれアナログイン、ア
ナログアウトのチャンネルに、電池のポジティブ(プ
ラス)をつなぐだけ
充電用のピン
5Vの電圧をかけることになるので、ここを調整
正確には電流を調整するために、抵抗を挟む
過充電を防ぐために380Ωの固定抵抗をつけます
Unity側の実装
使用Asset
Uniduino
言わずと知れたUnity × Arduinoの連動アセット
とにかく勝手がよくI2Cにも対応
幾つかサンプルがあるがマイコン側の実装が必要な
いのでとても楽
GraphMaker
簡単にグラフが使えるアセッ
ト
いろいろな種類のグラフが
使用でき、設定内容も豊富
なんとuGUI対応!Canvas
直下に配置することでラク
ラクセットアップ
G2U
GoogleDocにデータを保管し
てくれくれる便利アセット
データベースを準備できない
ので、結果をスプレッドシー
トに保管
まだ使えてなく順次テスト
Make!
Uniduinoテスト
Firmataをインストールした
Arduinoをつなぐ
UniduinoTestPanel.unityを開き
実行
実行時に→のウインドウが出
るので、サポートパッチをイ
ンストール
Uniduinoテスト
シーンを開くと何も出てい
ないが、正しくデバイスが
接続されていれば、自動で
右のような画面が出る
ポートは勝手にスキャンし
てくれるのでまずは黙って
起動
Uniduinoトラップ
テストシーンで、Arduino
クラスがアクティブになっ
ていない
チェクが付いていないと
Firmataのバージョンを
チェックせぇと、エラー
でなくメッセージが返っ
てくる
実装シーン
AnalogRead.unity
このシーンで使わててい
るAnalogRead.csを改変し
て使用
読み取った値(電圧)で、充
電するかを判断させる
ニカド電池は基本1.2Vな
ので、それ以上充電はし
ないように条件分岐
初期化などはそのまま流用
基本アップデート内で処理を書く
今回はパルスの周波数を決め、電圧をかける時間をコ
ルーチンで設定
デモ機
多大なる忘れ物と自身のやったはず詐欺により、本
日は無しよ
去年に比べてだいぶ うもの ったので、来年はい
ろいろ実機デモしたい
ご静聴ありがとうございます。
みなさま、今年もお世話になりました!

More Related Content

Recently uploaded

持続可能なDrupal Meetupのコツ - Drupal Meetup Tokyoの知見
持続可能なDrupal Meetupのコツ - Drupal Meetup Tokyoの知見持続可能なDrupal Meetupのコツ - Drupal Meetup Tokyoの知見
持続可能なDrupal Meetupのコツ - Drupal Meetup Tokyoの知見Shumpei Kishi
 
TaketoFujikawa_台本中の動作表現に基づくアニメーション原画システムの提案_SIGEC71.pdf
TaketoFujikawa_台本中の動作表現に基づくアニメーション原画システムの提案_SIGEC71.pdfTaketoFujikawa_台本中の動作表現に基づくアニメーション原画システムの提案_SIGEC71.pdf
TaketoFujikawa_台本中の動作表現に基づくアニメーション原画システムの提案_SIGEC71.pdfMatsushita Laboratory
 
IFIP IP3での資格制度を対象とする国際認定(IPSJ86全国大会シンポジウム)
IFIP IP3での資格制度を対象とする国際認定(IPSJ86全国大会シンポジウム)IFIP IP3での資格制度を対象とする国際認定(IPSJ86全国大会シンポジウム)
IFIP IP3での資格制度を対象とする国際認定(IPSJ86全国大会シンポジウム)ssuser539845
 
ARスタートアップOnePlanetの Apple Vision Proへの情熱と挑戦
ARスタートアップOnePlanetの Apple Vision Proへの情熱と挑戦ARスタートアップOnePlanetの Apple Vision Proへの情熱と挑戦
ARスタートアップOnePlanetの Apple Vision Proへの情熱と挑戦Sadao Tokuyama
 
2024 01 Virtual_Counselor
2024 01 Virtual_Counselor 2024 01 Virtual_Counselor
2024 01 Virtual_Counselor arts yokohama
 
情報処理学会86回全国大会_Generic OAMをDeep Learning技術によって実現するための課題と解決方法
情報処理学会86回全国大会_Generic OAMをDeep Learning技術によって実現するための課題と解決方法情報処理学会86回全国大会_Generic OAMをDeep Learning技術によって実現するための課題と解決方法
情報処理学会86回全国大会_Generic OAMをDeep Learning技術によって実現するための課題と解決方法ssuser370dd7
 
20240326_IoTLT_vol109_kitazaki_v1___.pdf
20240326_IoTLT_vol109_kitazaki_v1___.pdf20240326_IoTLT_vol109_kitazaki_v1___.pdf
20240326_IoTLT_vol109_kitazaki_v1___.pdfAyachika Kitazaki
 
「今からでも間に合う」GPTsによる 活用LT会 - 人とAIが協調するHumani-in-the-Loopへ
「今からでも間に合う」GPTsによる 活用LT会 - 人とAIが協調するHumani-in-the-Loopへ「今からでも間に合う」GPTsによる 活用LT会 - 人とAIが協調するHumani-in-the-Loopへ
「今からでも間に合う」GPTsによる 活用LT会 - 人とAIが協調するHumani-in-the-LoopへTetsuya Nihonmatsu
 
2024 02 Nihon-Tanken ~Towards a More Inclusive Japan~
2024 02 Nihon-Tanken ~Towards a More Inclusive Japan~2024 02 Nihon-Tanken ~Towards a More Inclusive Japan~
2024 02 Nihon-Tanken ~Towards a More Inclusive Japan~arts yokohama
 

Recently uploaded (12)

持続可能なDrupal Meetupのコツ - Drupal Meetup Tokyoの知見
持続可能なDrupal Meetupのコツ - Drupal Meetup Tokyoの知見持続可能なDrupal Meetupのコツ - Drupal Meetup Tokyoの知見
持続可能なDrupal Meetupのコツ - Drupal Meetup Tokyoの知見
 
TaketoFujikawa_台本中の動作表現に基づくアニメーション原画システムの提案_SIGEC71.pdf
TaketoFujikawa_台本中の動作表現に基づくアニメーション原画システムの提案_SIGEC71.pdfTaketoFujikawa_台本中の動作表現に基づくアニメーション原画システムの提案_SIGEC71.pdf
TaketoFujikawa_台本中の動作表現に基づくアニメーション原画システムの提案_SIGEC71.pdf
 
IFIP IP3での資格制度を対象とする国際認定(IPSJ86全国大会シンポジウム)
IFIP IP3での資格制度を対象とする国際認定(IPSJ86全国大会シンポジウム)IFIP IP3での資格制度を対象とする国際認定(IPSJ86全国大会シンポジウム)
IFIP IP3での資格制度を対象とする国際認定(IPSJ86全国大会シンポジウム)
 
ARスタートアップOnePlanetの Apple Vision Proへの情熱と挑戦
ARスタートアップOnePlanetの Apple Vision Proへの情熱と挑戦ARスタートアップOnePlanetの Apple Vision Proへの情熱と挑戦
ARスタートアップOnePlanetの Apple Vision Proへの情熱と挑戦
 
What is the world where you can make your own semiconductors?
What is the world where you can make your own semiconductors?What is the world where you can make your own semiconductors?
What is the world where you can make your own semiconductors?
 
2024 04 minnanoito
2024 04 minnanoito2024 04 minnanoito
2024 04 minnanoito
 
2024 01 Virtual_Counselor
2024 01 Virtual_Counselor 2024 01 Virtual_Counselor
2024 01 Virtual_Counselor
 
情報処理学会86回全国大会_Generic OAMをDeep Learning技術によって実現するための課題と解決方法
情報処理学会86回全国大会_Generic OAMをDeep Learning技術によって実現するための課題と解決方法情報処理学会86回全国大会_Generic OAMをDeep Learning技術によって実現するための課題と解決方法
情報処理学会86回全国大会_Generic OAMをDeep Learning技術によって実現するための課題と解決方法
 
20240326_IoTLT_vol109_kitazaki_v1___.pdf
20240326_IoTLT_vol109_kitazaki_v1___.pdf20240326_IoTLT_vol109_kitazaki_v1___.pdf
20240326_IoTLT_vol109_kitazaki_v1___.pdf
 
「今からでも間に合う」GPTsによる 活用LT会 - 人とAIが協調するHumani-in-the-Loopへ
「今からでも間に合う」GPTsによる 活用LT会 - 人とAIが協調するHumani-in-the-Loopへ「今からでも間に合う」GPTsによる 活用LT会 - 人とAIが協調するHumani-in-the-Loopへ
「今からでも間に合う」GPTsによる 活用LT会 - 人とAIが協調するHumani-in-the-Loopへ
 
2024 02 Nihon-Tanken ~Towards a More Inclusive Japan~
2024 02 Nihon-Tanken ~Towards a More Inclusive Japan~2024 02 Nihon-Tanken ~Towards a More Inclusive Japan~
2024 02 Nihon-Tanken ~Towards a More Inclusive Japan~
 
2024 03 CTEA
2024 03 CTEA2024 03 CTEA
2024 03 CTEA
 

Featured

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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 
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...Applitools
 
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 WorkGetSmarter
 

Featured (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
 

20151206 お・と・なのlt大会