Submit Search
Upload
.NET MicroFrameworkとC#でお手軽組込み開発
•
Download as PPTX, PDF
•
4 likes
•
6,107 views
S
shohaga
Follow
C#の素晴らしさを語る会@2013/10/12 発表資料
Read less
Read more
Technology
Report
Share
Report
Share
1 of 20
Download now
Recommended
IoT 入門 ~ .NET Gadgeteer で簡単プログラミング
IoT 入門 ~ .NET Gadgeteer で簡単プログラミング
Yoshitaka Seo
Adaptive Cardのデザインツール
Adaptive Cardのデザインツール
Yoshitaka Seo
C# で QnA Bot
C# で QnA Bot
Yoshitaka Seo
.NET Gadgeteer の紹介
.NET Gadgeteer の紹介
Yoshitaka Seo
初めてでも大丈夫!SharePoint 開発の第一歩
初めてでも大丈夫!SharePoint 開発の第一歩
Yoshitaka Seo
ラジコンをROSで制御してみた
ラジコンをROSで制御してみた
shohaga
20111029 qt勉強会スライド
20111029 qt勉強会スライド
shohaga
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Recommended
IoT 入門 ~ .NET Gadgeteer で簡単プログラミング
IoT 入門 ~ .NET Gadgeteer で簡単プログラミング
Yoshitaka Seo
Adaptive Cardのデザインツール
Adaptive Cardのデザインツール
Yoshitaka Seo
C# で QnA Bot
C# で QnA Bot
Yoshitaka Seo
.NET Gadgeteer の紹介
.NET Gadgeteer の紹介
Yoshitaka Seo
初めてでも大丈夫!SharePoint 開発の第一歩
初めてでも大丈夫!SharePoint 開発の第一歩
Yoshitaka Seo
ラジコンをROSで制御してみた
ラジコンをROSで制御してみた
shohaga
20111029 qt勉強会スライド
20111029 qt勉強会スライド
shohaga
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
WSO2
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
sn679259
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Hiroshi Tomioka
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
CRI Japan, Inc.
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
CRI Japan, Inc.
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
atsushi061452
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
Toru Tamaki
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
Toru Tamaki
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
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 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
More Related Content
Recently uploaded
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
WSO2
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
sn679259
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Hiroshi Tomioka
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
CRI Japan, Inc.
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
CRI Japan, Inc.
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
atsushi061452
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
Toru Tamaki
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
Toru Tamaki
Recently uploaded
(11)
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
Featured
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
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 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
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
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 Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
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...
Applitools
Featured
(20)
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO 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)
How 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 Insights
Trends 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 summary
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
Google'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
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The 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...
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...
.NET MicroFrameworkとC#でお手軽組込み開発
1.
.NET MicroFrameworkとC#で お手軽組込み開発 C#の素晴らしさを語る会 2012/10/12 @shohaga
2.
本日の内容 自己紹介 .NET MicroFrameworkって? .NET MicroFramework対応のハードウェアについて 実際に使ってみたらこうなった まとめ
3.
自己紹介
4.
自己紹介 芳賀です。 ネット上ではshagaと名乗ってます。 Twitterアカウントは@shohagaです。 仕事はソフトウェアの受託開発してます。 業務経験としては、Windowsを使ったFA向けソフト開発や組込みリアルタイムOSの ポーティング、ソフトウェア開発者向けのサポート、Linuxを使ったロボット制御な ど何でもやってます。 ガジェット好きです。 とりあえずデバイスとか呼ばれるものは好物です。 組込みの開発もその辺が具体化した趣味から始まってます。
5.
.NET MicroFrameworkって?
6.
.NET MicroFramewokって? Microsoftが提供している組込み機器向けの小型フレームワークです。 ARMやSHなどの組込みCPUで動くことを前提にして、小さなRAMでも動きます。 .NET Frameworkのサブセットとなっているので、.NET
Frameworkの経験があれば 導入もわかりやすいはずです。 これ自体がOSの機能も提供しているので、リアルタイムOSがなくても動かせるよう になっています。 オープンソースで開発されています。 netduinoや.NET Gadgeteerなどオープンハードウェアとしてリファレンスボードも あるので使いはじめるのは結構楽です。
7.
.NET MicroFrameworkのいいところ(1) VisualStudioで開発できる! IDEとしてVisualStudioはよくできていて便利です。 PCと同じ感覚で開発ができるので、新しくIDEの使い方から勉強する必要がありません。 あくまでリファレンスボードの話ですが… 導入が簡単。VisualStudio に加えて.NET
MicroFrameworkとボード向けのSDKをインストー ルするだけ。それで、ソリューション作成のウィザードまで準備されちゃいます。 ブレークポイントがそのまま使える。ICEや特別なソフトを用意しなくても、そのまますぐ に使える。 繰り返しになりますが、netduinoやGadgeteerといったリファレンスボードでは確認してますが、実 際のポーティングされた時はわかりません。
8.
.NET MicroFrameworkのいいところ(2) 割込み処理の記述が簡単 組込み開発で手間がかかる割込みはイベントとして登録できる。 ライブラリ側で対応しているので、ポーティング時は注意が必要かも? PC 向けに作った処理やライーライブラリや処理が簡単に再利用できる。 PCと通信する機器を開発する場合、PC側もC#やVBで作ってしまえば、プロトコルの 共通化もお手軽に。 PCでテストした上で移殖なんてこともお手軽に!
9.
.NET MicroFrameworkの 難点 所詮はサブセット。 .NET
Frameworkのすべての機能が実装されている訳ではありません。 例えば、組込みではよくあるメモリを直接操作するようなunsafeなコードを書けま せん。 なので、 Ardninoのライブラリを移殖しようと思ったら頭を抱える結果になりました。 実際の開発に向いてない? リファレンスボードを使った開発ではとても楽ちんなのですが、では実際にボード を一から作った場合、ポーティングやドライバの開発はどうするんだ?っていう問題 があります。 Ardainoはそのまま回路を作り直せば、バイナリはそのまま使える。
10.
実際に使ってみたらこうなった
11.
ハードウェアについて なるベく半田付けしないで実現 回路は売り物を利用。 I2Cモータードライバ SPI無線コントローラー Breakoutモジュール FEZ Spider 電源回路 配線もブレッドボードを利用。 メカはタミヤの工作キットを組み合 わせ。
12.
モータードライバー ドライバー回路はStrawberryLinux製DRV8830 上位のCPUとI2Cで通信をして、指定された電圧をモーターに出力する。 今回は、Breakoutモジュールを使って、FEZ Spiderと通信。。 I2Cの利用は既存のライブラリを利用。
13.
コントローラー ジャンク品を購入。 技術者向けなのでマニュアルが簡略。 上位とSPI通信をし、リクエストに 対してコントローラーの状態を返答。 上下ボタンを左モーターの前後動に、 △×ボタンを右モーターの前後動に 割り当てる。
14.
マルチカラーLED Gadgeteerのモジュール。 赤、青、緑の三色を独立で点灯でき、その組合せで色を表現できる。 左右のモーターの状態を表す。 消灯なら停止。 緑なら前進。 青なら後退。
15.
ブログラシング(1) モーター制御クラス I2Cを使うソケットとドライバのアドレスから、I2C通信オブジエクトを生成。 SetSpeedメソッドで速度を指定 コントローラー状態クラス SPIを使うモジュールとSSに使うピンから、SPI通信オブジェクトを生成。 Updateメソッドで状態を取得、更新。 IsXXXプロパティでボタンの状態を取得。
16.
プログラミング(2) 初期化処理 コントローラー状態オブジェクトを生成。 左右のモーター制御オブジェクトを生成。 コントローラー監視タイマー オブジエクトを生成。 コントローラー監視タイマー処理 コントローラーの状態を更新。 エラーなら何もしない。 ただし、エラーが連続5回発生なら停止。 上下ボタンの状態から、左のLEDとモーターの状態を更新。 △×ボタンの状態から、右のLEDとモーターの状態を更新。
17.
こんなんなった
18.
まとめ
19.
まとめ とりあえず、組込み開発をはじめるならばオススメ。 今は便利なモジュールが多く売っているので、回路の知識が尐なくてもなんと かできる。 業務で使うには他との比較するだけの知識が必要なので、あまりオススメはで きないかも?
20.
参考 共立電子 http://www.kyohritsu.com/ エレシヨップ http://eleshop.jp/ デジット http://digit.kyohritsu.com/ シリコンハウス http://siliconhouse.jp/ 千石通商 http://www.sengoku.co.jp/ GHI https://www.ghielectronics.com/ Gadgeteer https://www.ghielectronics.com/technologies/gadgeteer netdaino http://netduino.com/ デバイスドライバーズ http://www.devdrv.co.jp/ TINEYCLR.JP http://tinyclr.jp/
Download now