tag:blogger.com,1999:blog-91332687281762722912024-03-13T20:10:55.050+09:00mbedsuupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-9133268728176272291.post-14866340219838559322016-12-10T05:02:00.000+09:002016-12-10T05:03:22.313+09:00mbed LPC1114FN28 で開発して単体LPC1114FN28に乗せ換えて使用するための工夫<span style="font-weight: normal;">これはmbed Advent Calendar 2016 12/10の記事です</span><br />
<br />
<h1>
初めに</h1>
<div class="MsoNormal">
<span lang="EN-US">LPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">はIC単体での入手が容易なので小さなシステムに向いています。ただプログラムの書き込み手段を用意する必要があります。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span lang="EN-US"><a href="https://developer.mbed.org/platforms/LPC1114FN28/">ARMmbed mbedLPC1114FN28</a></span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">は、</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を載せ</span><span lang="EN-US">USB</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">からのプログラム書き込み、</span><span lang="EN-US">USB-Serial</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">によるデータの送受信に対応した</span><span lang="EN-US">mbed</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">ボードになります。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">開発時には</span><span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を使い、開発完了したらボードから</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を取り外しユニットに実装すればよいのですが、2点問題があります。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoListParagraph" style="margin-left: 18.0pt; mso-list: l0 level1 lfo1; mso-para-margin-left: 0gd; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="margin-left: 18.0pt; mso-list: l0 level1 lfo1; mso-para-margin-left: 0gd; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">1.<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">への</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の実装が通常の</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">ソケットなので抜き差し時に</span><span lang="EN-US">Pin</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を破損させる可能性がある。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoListParagraph" style="margin-left: 18.0pt; mso-list: l0 level1 lfo1; mso-para-margin-left: 0gd; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">2.<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">mbedLPC114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">と</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">単体の</span><span lang="EN-US">LPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の</span><span lang="EN-US">Pin</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">間隔が異なるのでそのまま実装できない</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-US">
<span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;">この2点を解消する方法を紹介します。</span></span></div>
<div class="MsoNormal">
<span lang="EN-US"><span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;"><br /></span></span></div>
<h1>
詳細<span lang="EN-US"><o:p></o:p></span></h1>
<h2>
<span style="font-family: "ms ゴシック"; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; mso-fareast-font-family: "MS ゴシック"; mso-fareast-theme-font: major-fareast; mso-hansi-font-family: Arial; mso-hansi-theme-font: major-latin;">1.</span><span lang="EN-US">mbed1114FN28</span><span style="font-family: "ms ゴシック"; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; mso-fareast-font-family: "MS ゴシック"; mso-fareast-theme-font: major-fareast; mso-hansi-font-family: Arial; mso-hansi-theme-font: major-latin;">にゼロプレッシャー</span><span lang="EN-US">IC</span><span style="font-family: "ms ゴシック"; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; mso-fareast-font-family: "MS ゴシック"; mso-fareast-theme-font: major-fareast; mso-hansi-font-family: Arial; mso-hansi-theme-font: major-latin;">ソケットを載せる</span><span lang="EN-US"><o:p></o:p></span></h2>
<div class="MsoNormal">
<span lang="EN-US">mbed1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">ソケットにゼロプレッシャ</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">ソケット</span><span lang="EN-US">(28Pin)</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を実装します。こうすれば、ストレスなく</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を抜き差しできます。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<a href="http://akizukidenshi.com/catalog/g/gP-08682/"><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">秋月通商:</span><span style="background-color: white; color: #2c49b2; font-family: "meiryo" , , "ms pゴシック" , "osaka" , "tahoma" , sans-serif; font-size: 14px; font-weight: bold; letter-spacing: 1.4px;">ゼロプレッシャーICソケット (28P) 300mil</span></a><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">
</span></div>
<div class="MsoNormal">
<span style="font-family: , serif;">で、800円でした。</span><br />
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-seza1WeFLag/WEIvVys-C-I/AAAAAAAADhM/LpXx7vN6bO4sCexR6at-BoBrHz78XbHfwCPcB/s1600/1.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://4.bp.blogspot.com/-seza1WeFLag/WEIvVys-C-I/AAAAAAAADhM/LpXx7vN6bO4sCexR6at-BoBrHz78XbHfwCPcB/s320/1.JPG" width="240" /></a></div>
<a href="https://1.bp.blogspot.com/-McglIxAMGbE/WEIvWZ88WYI/AAAAAAAADhM/gh5IkiPJngQU3bbnP86-RVkEO40yEBkCACPcB/s1600/2.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="https://1.bp.blogspot.com/-McglIxAMGbE/WEIvWZ88WYI/AAAAAAAADhM/gh5IkiPJngQU3bbnP86-RVkEO40yEBkCACPcB/s320/2.JPG" width="240" /></a><br />
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;">ゼロプレッシャーICソケットを載せたところ その上に</span><span lang="EN-US" style="font-family: "century" , "serif"; font-size: 10.5pt;">IC</span><span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;">を載せたところ</span><br />
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"></span><br />
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin; mso-no-proof: yes;">ゼロプレッシャーICソケットは通常の</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin; mso-no-proof: yes;">ソケットより一回り大きいので、下になる</span><span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin; mso-no-proof: yes;">のタクトスイッチなどと干渉しないかを確認してください。また、</span><span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin; mso-no-proof: yes;">の基板からもはみ出すので、</span><span lang="EN-US">IC</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin; mso-no-proof: yes;">を実装するユニット上での部品の干渉に注意してください。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin; mso-no-proof: yes;"><br /></span></div>
<h2>
<span style="font-family: "ms ゴシック"; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; mso-fareast-font-family: "MS ゴシック"; mso-fareast-theme-font: major-fareast; mso-hansi-font-family: Arial; mso-hansi-theme-font: major-latin; mso-no-proof: yes;">2.</span><span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms ゴシック"; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; mso-fareast-font-family: "MS ゴシック"; mso-fareast-theme-font: major-fareast; mso-hansi-font-family: Arial; mso-hansi-theme-font: major-latin; mso-no-proof: yes;">と</span><span lang="EN-US">LPC1114FN28(</span><span style="font-family: "ms ゴシック"; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; mso-fareast-font-family: "MS ゴシック"; mso-fareast-theme-font: major-fareast; mso-hansi-font-family: Arial; mso-hansi-theme-font: major-latin; mso-no-proof: yes;">単体</span><span lang="EN-US">IC)</span><span style="font-family: "ms ゴシック"; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; mso-fareast-font-family: "MS ゴシック"; mso-fareast-theme-font: major-fareast; mso-hansi-font-family: Arial; mso-hansi-theme-font: major-latin; mso-no-proof: yes;">のピン間変換コネクタ</span><span lang="EN-US"><o:p></o:p></span></h2>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の</span><span lang="EN-US">PIN</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">列幅は、</span><span lang="EN-US">LPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">より</span><span lang="EN-US">1Pin</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">分内側に入っています。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-AxTrmgfoEps/WEIvWAjIecI/AAAAAAAADhM/mpHt0tHpAqcwSGM_7xKOpXXm-zJ1XFbkACPcB/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-AxTrmgfoEps/WEIvWAjIecI/AAAAAAAADhM/mpHt0tHpAqcwSGM_7xKOpXXm-zJ1XFbkACPcB/s320/3.JPG" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">開発するユニット側は</span><span lang="EN-US">LPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">のピン間に合わせるので、</span><span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">はそのままでは実装できません。このため変換基板をユニットと</span><span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の間に挟みます。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-mPdOA262xf4/WEIvbYF95bI/AAAAAAAADhM/53nsAzQ3lx0nquKeToBbNcJyZMFpRY0RQCPcB/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-mPdOA262xf4/WEIvbYF95bI/AAAAAAAADhM/53nsAzQ3lx0nquKeToBbNcJyZMFpRY0RQCPcB/s320/4.JPG" width="320" /></a></div>
<br />
左から、mbedLPC1114FN28, LPC1114FN28(単体) , 変換基板<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-a7r6fqh2xdM/WEIvcH46OQI/AAAAAAAADhM/3Vq0q3-KOqA57FHU7pienpr6Kw2EYgXawCPcB/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-a7r6fqh2xdM/WEIvcH46OQI/AAAAAAAADhM/3Vq0q3-KOqA57FHU7pienpr6Kw2EYgXawCPcB/s320/5.JPG" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">変換基板のピン間の違い。左がmbedLPC1114FN28, 右がLPC1114FN28(単体)</span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">変換ソケットでもう一つ配慮する点があります。</span><span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を使う場合は</span><span lang="EN-US">mbed</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">ボード上の</span><span lang="EN-US">USB</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">から電源供給されますが、</span><span lang="EN-US">LPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の場合は別電源を用意します。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US">mbedLPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を使う場合は、</span><span lang="EN-US">mbed</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">ボードの</span><span lang="EN-US">USB</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">と、別電源の2方向から電源が供給される可能性があるので、変換基板の</span><span lang="EN-US">LPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の</span><span lang="EN-US">22Pin</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">に</span><span lang="EN-US">mbed</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">ボードから外にのみ電流が流れるようにダイオードをいれます。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;">こうすると、開発中は</span><span lang="EN-US" style="font-family: "century" , "serif"; font-size: 10.5pt;">mbed</span><span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;">ボードからユニットに電源供給して、開発終了後はユニットから</span><span lang="EN-US" style="font-family: "century" , "serif"; font-size: 10.5pt;">LPC1114FN28</span><span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;">に電源供給することができ、電源に関して配慮が不要になります。</span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-fHtnHg4LN_I/WEIvX2vegII/AAAAAAAADhM/dAqSxOlkod4v9k57CRcIMWSQRjhxrlMqQCPcB/s1600/6a.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="196" src="https://3.bp.blogspot.com/-fHtnHg4LN_I/WEIvX2vegII/AAAAAAAADhM/dAqSxOlkod4v9k57CRcIMWSQRjhxrlMqQCPcB/s640/6a.png" width="640" /></a></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; font-size: 10.5pt;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">以下に全部を組み合わせたところと、使用例の写真を紹介します。</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-svdnYxrclck/WEIveT5wPWI/AAAAAAAADhM/-yQATBj4MpABPVzkxF6E0yR-ZuE64idTgCPcB/s1600/7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-svdnYxrclck/WEIveT5wPWI/AAAAAAAADhM/-yQATBj4MpABPVzkxF6E0yR-ZuE64idTgCPcB/s320/7.JPG" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">ゼロプレッシャーICソケット+</span><span lang="EN-US">mbed</span><span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">+変換基板を組み合わせたところ</span><span lang="EN-US"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-XubOhW4CJCs/WEIvgtL2tXI/AAAAAAAADhM/HdJh_Mn4wOsb_c6APtlA6hK6vyT62aAhQCPcB/s1600/8.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-XubOhW4CJCs/WEIvgtL2tXI/AAAAAAAADhM/HdJh_Mn4wOsb_c6APtlA6hK6vyT62aAhQCPcB/s320/8.JPG" width="320" /></a></div>
<a href="https://3.bp.blogspot.com/--8TwsTp9fKM/WEIvhIWACtI/AAAAAAAADhM/pvKlJqD1sSwLIIFYXNuJt8vYlKK9tHI6ACPcB/s1600/9.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="https://3.bp.blogspot.com/--8TwsTp9fKM/WEIvhIWACtI/AAAAAAAADhM/pvKlJqD1sSwLIIFYXNuJt8vYlKK9tHI6ACPcB/s320/9.JPG" width="240" /></a><br />
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "ms 明朝" , "serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><br /></span></div>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
キッチンタイマーで使用しているところ<br />
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"> キッチンタイマーとmbed</span><br />
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;"><br /></span>
<span style="font-family: , serif;">以上 </span></div>
suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-21462304373254121732016-10-23T18:59:00.000+09:002016-12-23T18:35:49.481+09:00デジタルSW用ライブラリ外部割込みを使うことで、2つ以上でも動くようになりました。(161204)<br />
<strike>SW1つなら動きますが、2つ定義すると動かなくなります。原因わかりません。(161029)</strike><br />
<br />
タクトSWをmbedに接続して、チャタリングキャンセルを行い、SWレベルとOn/Offエッジを検出するライブラリを作りました。<br />
<br />
<a href="https://developer.mbed.org/users/suupen/code/DigitalSw/">mbed web</a><br />
<br />
<br />
SWはよく使うと思いますが、ポート状態を直読みすることが主流のようで、チャタリングによる誤動作や、On,Offエッジ認識ができないことが不満でした。<br />
<br />
ライブラリも探したのですが見つからなかったので作成しました。<br />
<br />
<参考><br />
<a href="https://developer.mbed.org/teams/CQ_I2C_book/wiki/class_libraries">複数のデバイスを定義する方法</a> ”用語:クラスライブラリ”(161029)suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-987293684089559852016-10-23T13:19:00.002+09:002016-10-23T13:22:57.903+09:00ロータリーエンコーダのライブラリ作成メジャーな部品なのでライブラリがあると思ったのだけど、うまく動くものがなかったので作成しました。<br />
<a href="https://developer.mbed.org/users/suupen/code/RotationalEncoder/"><br /></a>
<a href="https://developer.mbed.org/users/suupen/code/RotationalEncoder/">mbedのlibraryページとサンプルプログラムのページ</a><br />
<br />
<br />
補足:<br />
<br />
ライブラリを探していて見つけた資料。初心者にいいかも<br />
<br />
<a href="https://developer.mbed.org/media/uploads/yueee_yt/mbed-----.pdf">mbedの利用方法</a>suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-77714414475256920672014-09-21T18:51:00.000+09:002014-09-21T18:51:09.652+09:00Arduino TFT LCD Screenをmbedで使うswitch scienceで扱っているArduino TFT LCD Screen(<a href="http://www.switch-science.com/catalog/list/?keyword=1390">http://www.switch-science.com/catalog/list/?keyword=1390</a>)をmbed LPC1768で動かしてみました。<br />
詳細はmbed webの<br />
<br />
<sample program><br />
<a href="https://mbed.org/users/suupen/code/ArduinoTFTLCDScreenSample_SPI18TFT/wiki/Homepage">https://mbed.org/users/suupen/code/ArduinoTFTLCDScreenSample_SPI18TFT/wiki/Homepage</a><br />
<br />
<br />
<library><br />
<a href="https://mbed.org/users/suupen/code/ST7735_TFT/wiki/Homepage">https://mbed.org/users/suupen/code/ST7735_TFT/wiki/Homepage</a><br />
<br />
を参照してください。suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-85488561794039542762014-02-23T09:59:00.001+09:002014-02-23T09:59:16.358+09:00Buletoothモジュール(RN-42XVP)の青mbed(LPC1768)での動作確認<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><span style="font-family: Century;">Buletooth</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">モジュール</span><span lang="EN-US"><span style="font-family: Century;">(RN-42XVP)</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の青</span><span lang="EN-US"><span style="font-family: Century;">mbed(LPC1768)</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">での動作確認</span><span lang="EN-US"><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><o:p><span style="font-family: Century;"> </span></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<h2 class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><概要></span></h2>
<h2 class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"></span> </h2>
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">この記事はmbed Webと同じ内容です。</span></div>
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><a href="https://mbed.org/users/suupen/code/RN-42XVPsample/wiki/Homepage?action=edit">https://mbed.org/users/suupen/code/RN-42XVPsample/wiki/Homepage?action=edit</a></span></div>
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"></span> </div>
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">トランジスタ技術</span><span lang="EN-US"><span style="font-family: Century;">2014</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">年</span><span lang="EN-US"><span style="font-family: Century;">3</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">月号 3章の</span><span lang="EN-US"><span style="font-family: Century;">Buletooth</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">モジュール</span><span lang="EN-US"><span style="font-family: Century;">(RN-42XVP)</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">と</span><span lang="EN-US"><span style="font-family: Century;">LPC810</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を使った作例で、</span><span lang="EN-US"><span style="font-family: Century;">LPC810</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を青</span><span lang="EN-US"><span style="font-family: Century;">mbed(LPC1768)</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">に変更して、配線と</span><span lang="EN-US"><span style="font-family: Century;">mbed</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">プログラムを簡素化して動作確認をしやすくしました。</span><span lang="EN-US"><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><o:p><span style="font-family: Century;"> </span></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">動作例動画:</span></div>
<div class="separator" style="clear: both; text-align: center;">
<object width="320" height="266" class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://i1.ytimg.com/vi/JaJ14_dnW2c/0.jpg"><param name="movie" value="https://www.youtube.com/v/JaJ14_dnW2c?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="320" height="266" src="https://www.youtube.com/v/JaJ14_dnW2c?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"></span><span lang="EN-US"><o:p></o:p></span> </div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><a href="http://www.youtube.com/watch?v=JaJ14_dnW2c&list=UUBKFbjZziYG1M-dKWqTlUwA&feature=share"><span style="color: blue; font-family: Century;">http://www.youtube.com/watch?v=JaJ14_dnW2c&list=UUBKFbjZziYG1M-dKWqTlUwA&feature=share</span></a><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><o:p><span style="font-family: Century;"> </span></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><o:p><span style="font-family: Century;"> </span></o:p></span></div>
<h2>
</h2>
<h2 class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><機材準備></span><span lang="EN-US"><o:p></o:p></span></h2>
<span style="font-family: MS Pゴシック;">
</span><br />
<h2 class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">1.配線</span><span lang="EN-US"><o:p></o:p></span></h2>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><span style="font-family: Century;">Buletooth</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">モジュールへの電源供給は</span><span lang="EN-US"><span style="font-family: Century;">mbed</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">から行います。またシリアル通信線2本を</span><span lang="EN-US"><span style="font-family: Century;">mbed</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">に接続します。</span><span lang="EN-US"><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><o:p><span style="font-family: Century;"> </span></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<h2 class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">2.</span><span lang="EN-US">Android</span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">アプリ</span><span lang="EN-US"><o:p></o:p></span></h2>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><span style="font-family: Century;">Android</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">アプリは</span><span lang="EN-US"><span style="font-family: Century;">CQ</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">出版社の</span><span lang="EN-US"><span style="font-family: Century;">web</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">からダウンロードします。</span><span lang="EN-US"><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><a href="http://toragi.cqpub.co.jp/tabid/707/Default.aspx"><span style="color: blue; font-family: Century;">http://toragi.cqpub.co.jp/tabid/707/Default.aspx</span></a><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">パソコンから</span><span lang="EN-US"><span style="font-family: Century;">android</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">へのインストールはトランジスタ技術の記事を参照してください。</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-DqppeFrQRIA/UwlHiP9egMI/AAAAAAAAB3w/8S1lxI4Qw6g/s1600/%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF_%E9%85%8D%E7%B7%9A%E5%86%99%E7%9C%9FP1170621.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-DqppeFrQRIA/UwlHiP9egMI/AAAAAAAAB3w/8S1lxI4Qw6g/s1600/%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF_%E9%85%8D%E7%B7%9A%E5%86%99%E7%9C%9FP1170621.JPG" height="640" width="488" /></a></div>
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"></span><span lang="EN-US"><o:p></o:p></span> </div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US" style="mso-no-proof: yes;"><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="図_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75"
style='width:425.25pt;height:556.5pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\suupen\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg"
o:title="書き込み_配線写真P1170621"/>
</v:shape><![endif]--><!--[if !vml]--><span style="font-family: MS Pゴシック;"><!--[endif]--></span></span><span lang="EN-US"><o:p></o:p></span><br /></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><o:p><span style="font-family: Century;"> </span></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<h2 class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">3.青</span><span lang="EN-US">mbed(LPC1768)</span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">のプログラム</span><span lang="EN-US"><o:p></o:p></span></h2>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><span style="font-family: Century;">Mbed</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の</span><span lang="EN-US"><span style="font-family: Century;">web</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">からダウンロードしてください。</span><span lang="EN-US"><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><a href="http://mbed.org/users/suupen/code/RN-42XVPsample/"><span style="color: blue; font-family: Century;">http://mbed.org/users/suupen/code/RN-42XVPsample/</span></a><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><o:p><span style="font-family: Century;"> </span></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<h2 class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;"><動作></span><span lang="EN-US"><o:p></o:p></span></h2>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><span style="font-family: Century;">Android</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">アプリはテンキー(</span><span lang="EN-US"><span style="font-family: Century;">0</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">~</span><span lang="EN-US"><span style="font-family: Century;">9</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">)と</span><span lang="EN-US"><span style="font-family: Century;">”LED ON/OFF”</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">のボタンがあり、これらのボタンを押すとアスキーコードの</span><span lang="EN-US"><span style="font-family: Century;">’0’</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">~</span><span lang="EN-US"><span style="font-family: Century;">’9’,’+’,’-‘</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">が送信されます。これを青</span><span lang="EN-US"><span style="font-family: Century;">mbed</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">で受信して、</span><span lang="EN-US"><span style="font-family: Century;">mbed</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">上の4つの</span><span lang="EN-US"><span style="font-family: Century;">LED</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">を制御します。また受信したデータを</span><span lang="EN-US"><span style="font-family: Century;">mbed</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">の</span><span lang="EN-US"><span style="font-family: Century;">USB-Serial</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">で外部に送信します。パソコンでターミナルソフト</span><span lang="EN-US"><span style="font-family: Century;">(TeraTarm</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">など</span><span lang="EN-US"><span style="font-family: Century;">)</span></span><span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">で確認できます。</span><span lang="EN-US"><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span lang="EN-US"><o:p><span style="font-family: Century;"> </span></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span><br />
<div class="MsoNormal" style="margin: 0mm 0mm 0pt;">
<span style="font-family: "MS 明朝","serif"; mso-ascii-font-family: Century; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: "MS 明朝"; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Century; mso-hansi-theme-font: minor-latin;">以上</span><span lang="EN-US"><o:p></o:p></span></div>
<span style="font-family: MS Pゴシック;">
</span>suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-71055157532923215562013-12-28T14:47:00.000+09:002013-12-28T14:48:27.328+09:007セグメントLED出力Libraryのサンプルプログラムの説明7セグメントLED出力Libraryのサンプルプログラムの説明<br />
<br />
<h2>
<概要></h2>
8桁までの7セグメントLEDの表示制御を行うLibraryと、Libraryを使用したサンプルプログラムについて説明します。<br />
<br />
Libraryとサンプルプログラムは次のアドレスからダウンロードできます。<br />
Library:<br />
<a href="http://mbed.org/users/suupen/code/SevenSegLed/">http://mbed.org/users/suupen/code/SevenSegLed/</a><br />
<br />
サンプルプログラム:<br />
<a href="http://mbed.org/users/suupen/code/SevenSegmentLedSample/">http://mbed.org/users/suupen/code/SevenSegmentLedSample/</a><br />
<br />
サンプルプログラムの動作<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/jr09w8Pw0Lg?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<a href="http://youtu.be/jr09w8Pw0Lg">http://youtu.be/jr09w8Pw0Lg</a><br />
<br />
<br />
<br />
<h2>
<Libraryについて></h2>
7セグメントLED(正確には“ドット”を含めて8セグメントになります)をダイナミック駆動します。<br />
8桁までの表示に対応しています。LPC1768なら、最初の端子設定で、1~8桁のいずれかを選択できます。(LPC1114FN28では、未使用になるCOM端子があると動作しませんでした。この場合はLibrary自体を修正して、COMの未使用端子部分のコードを削除する必要があります)<br />
LEDは設定変更で、アノードコモン、カソードコモンどちらでも使用できます。また、表示変化方法も、1秒かけてスムーズに変化するものと、遅れ無しに変化するモードを選択することが出来ます。<br />
COM端子の切り替え周期は1[ms]ですので、8桁表示(8本のCOM端子)の場合は8[ms]で全桁の表示を行います。<br />
スムース表示は、10[ms]毎に表示輝度を変化させています。<br />
<br />
<h3>
このLibraryで使用するmbed機能</h3>
<b>・ チッカータイマー(Ticker) 1[us]単位、1[ms]周期</b><br />
<br />
<b>使用可能な端子(LPC1768)</b><br />
DigitalOut 設定が出来る端子。SEG端子、COM端子に割付の条件はありません。<br />
<br />
<b>使用可能な端子(LPC1114FN28)</b><br />
DigitalOut 設定が出来る端子。<br />
ただし、dp5,27 はopen drainなので、端子に電流を流し込む(アノードコモンのSEG端子、カソードコモンのCOM端子)の設定しかできません。<br />
<br />
<b>LPC1114FN28用の表示桁数変更</b><br />
LPC1114FN28では、未使用のCOM端子があると動作しません。このため、4桁表示専用の定義を用意しました。<br />
LPC1114FN28で4桁表示をする場合は、ヘッダファイルにある”USECOM4”の定義を有効にしてください。<br />
(LPC1114FN28では、4,8桁以外では使えないことになります。これ以外の桁数の場合は、Libraryを改造してCOM端子の数を増減してください)<br />
<br />
LPC1768では、上記の制限はありません。設定無しで、1~8桁表示のいずれかを選択できます。<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-h0CO1mFyyRE/Ur5kd6cJkfI/AAAAAAAABxQ/GJLo00NFaVI/s1600/0-4%25E8%25A1%25A8%25E7%25A4%25BA%25E6%2596%25B9%25E6%25B3%2595%25E5%25A4%2589%25E6%259B%25B4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-h0CO1mFyyRE/Ur5kd6cJkfI/AAAAAAAABxQ/GJLo00NFaVI/s1600/0-4%25E8%25A1%25A8%25E7%25A4%25BA%25E6%2596%25B9%25E6%25B3%2595%25E5%25A4%2589%25E6%259B%25B4.JPG" height="404" width="640" /></a></div>
<br />
<b>SevenSegLed.hの設定箇所</b><br />
<br />
<br />
<b> Libraryの使い方</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-_wjodbVeoGM/Ur5kdf6Ny5I/AAAAAAAABxE/D2y0urx9_pE/s1600/0-2_Library%25E3%2581%25AE%25E4%25BD%25BF%25E3%2581%2584%25E6%2596%25B9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-_wjodbVeoGM/Ur5kdf6Ny5I/AAAAAAAABxE/D2y0urx9_pE/s1600/0-2_Library%25E3%2581%25AE%25E4%25BD%25BF%25E3%2581%2584%25E6%2596%25B9.JPG" height="640" width="608" /></a></div>
<br />
<b>サンプルプログラムより</b><br />
<br />
7セグメントLED出力する端子の指定:SevenSegLed <br />
7セグメントLEDへのデータ出力関数:sevenSegLed_main(数字部配列変数ポインタ、ドット部配列変数ポインタ)<br />
<br />
表示データ格納用配列バッファは数字部、ドット部それぞれ用意してください。<br />
サンプルプログラムでは、4桁表示なので、<br />
数字部用 uint8_t D_7seg[4]<br />
ドット部用 uint8_t D_dot[4]<br />
としています。<br />
<br />
<h2>
<サンプルプログラムについて></h2>
<div class="separator" style="clear: both; text-align: center;">
</div>
mbed(LPC1768)を使用しています。<br />
7セグメントLEDは、秋月通商(<a href="http://akizukidenshi.com/catalog/g/gI-03673/%EF%BC%89%E3%81%AEOSL40562-LR">http://akizukidenshi.com/catalog/g/gI-03673/)のOSL40562-LR</a>を使用しています。<br />
電流制限抵抗は、100[Ω]を8本(SEG端子数分)使用しています。<br />
<br />
電源はUSBから供給します。<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-3iPA7t213Bk/Ur5kdZwxfuI/AAAAAAAABxI/zniv0_MPurU/s1600/0-3%25E5%259B%259E%25E8%25B7%25AF%25E5%259B%25B3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-3iPA7t213Bk/Ur5kdZwxfuI/AAAAAAAABxI/zniv0_MPurU/s1600/0-3%25E5%259B%259E%25E8%25B7%25AF%25E5%259B%25B3.JPG" height="554" width="640" /></a></div>
<br />
<b>回路図</b><br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-fhtdoNDU9fk/Ur5kfbQTo2I/AAAAAAAABxk/8Zk_nAmEyNU/s1600/%25E3%2583%2596%25E3%2583%25AC%25E3%2583%2583%25E3%2583%2588%25E3%2583%259C%25E3%2583%25BC%25E3%2583%2589P1170487.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-fhtdoNDU9fk/Ur5kfbQTo2I/AAAAAAAABxk/8Zk_nAmEyNU/s1600/%25E3%2583%2596%25E3%2583%25AC%25E3%2583%2583%25E3%2583%2588%25E3%2583%259C%25E3%2583%25BC%25E3%2583%2589P1170487.JPG" height="590" width="640" /></a></div>
<br />
<b>ブレットボードでの配線</b><br />
<br />
<b>プログラムの動作内容</b><br />
<br />
USBから電源を供給すると、カウントアップ表示をします。<br />
左側2桁が16進数表示、右側2桁が10進数表示です。左から2、4桁目のドットが1秒毎に交互に点滅します。<br />
<br />
サンプルプログラムの設定は、スムース表示モードですが、端子設定か、設定変更用関数で、スムース表示と、ハード表示を変更できます。<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-h0CO1mFyyRE/Ur5kd6cJkfI/AAAAAAAABxQ/GJLo00NFaVI/s1600/0-4%25E8%25A1%25A8%25E7%25A4%25BA%25E6%2596%25B9%25E6%25B3%2595%25E5%25A4%2589%25E6%259B%25B4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-h0CO1mFyyRE/Ur5kd6cJkfI/AAAAAAAABxQ/GJLo00NFaVI/s1600/0-4%25E8%25A1%25A8%25E7%25A4%25BA%25E6%2596%25B9%25E6%25B3%2595%25E5%25A4%2589%25E6%259B%25B4.JPG" height="404" width="640" /></a></div>
<br />
<b>表示変更方法</b><br />
<br />
以上suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-19484743918655749002013-12-22T20:58:00.001+09:002013-12-22T21:13:25.862+09:00SW認識Library(SWAnalog)のサンプルプログラムの説明SW認識Library(SWAnalog)のサンプルプログラムの説明<br />
<br />
<h2>
<概要></h2>
SW認識させるLibrary(SwAnalog)と、Libraryを使用したサンプルプログラムについて説明します。<br />
<br />
Libraryとサンプルプログラムは次のアドレスからダウンロードできます。<br />
Library:<br />
<a href="http://mbed.org/users/suupen/code/SwAnalog_LPC1768/">http://mbed.org/users/suupen/code/SwAnalog_LPC1768/</a><br />
<br />
<br />
サンプルプログラム:<br />
<a href="http://mbed.org/users/suupen/code/SwAnalogInputLibraryExampleProgram/">http://mbed.org/users/suupen/code/SwAnalogInputLibraryExampleProgram/</a><br />
<br />
<br />
サンプルプログラムの動作<br />
<div class="separator" style="clear: both; text-align: center;">
<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://ytimg.googleusercontent.com/vi/junEOuqq_RE/0.jpg" height="266" width="320"><param name="movie" value="https://www.youtube.com/v/junEOuqq_RE?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="320" height="266" src="https://www.youtube.com/v/junEOuqq_RE?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<br />
<a href="http://www.youtube.com/watch?v=junEOuqq_RE&feature=share&list=UUBKFbjZziYG1M-dKWqTlUwA">http://www.youtube.com/watch?v=junEOuqq_RE&feature=share&list=UUBKFbjZziYG1M-dKWqTlUwA</a><br />
<br />
<br />
<br />
<h2>
<Libraryについて></h2>
SWの状態を、抵抗による電圧の分圧比の変化で認識します。<br />
使用する抵抗は、精度±1[%]のもの(金属皮膜抵抗)を使います。<br />
(共立エレショップ:<a href="http://eleshop.jp/shop/c/c110312/">http://eleshop.jp/shop/c/c110312/</a>)<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-9yRIJRXygNw/UrbRzNjIK4I/AAAAAAAABv4/TqgDjCcqrv4/s1600/analogSw%25E5%259B%259E%25E8%25B7%25AF.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-9yRIJRXygNw/UrbRzNjIK4I/AAAAAAAABv4/TqgDjCcqrv4/s1600/analogSw%25E5%259B%259E%25E8%25B7%25AF.JPG" height="640" width="466" /></a></div>
<br />
<b>SW認識回路</b><br />
<br />
アナログポートから読み込んだアナログ認識値から、SWのON,OFF状態を判定します。この判定値を10[ms]毎に更新して、判定値が3回一致したら、その判定値を確定値として認識します。このため、SW操作をして認識値が変化するまでに30[ms]必要になります。<br />
複数回のレベル認識をして確定値を決めるので、SW操作によるチャタリングノイズの除去が可能です。<br />
<br />
<h3>
<b>このLibraryで使用するmbed機能</b></h3>
・ チッカータイマー(Ticker) 1[us]単位、10[ms]周期<br />
・ アナログ入力(AnalogIn)<br />
<br />
<h3>
<b>SW入力に設定可能な端子(LPC1768)</b></h3>
p15~p20 の内の6本 <br />
(各端子に3本のSW認識が可能で、合計18本のSW認識が可能)<br />
<br />
<h3>
<b>SW認識処理の変更方法</b></h3>
SwDitital.h内の定義を変更することで、以下の条件を変更できます。<br />
SW認識周期:Z_matchcycle 設定範囲:10[ms](10000)~100[ms](100000) (1[us/count]) <br />
SW一致回数:Z_itchPattern 設定範囲:3~8[回]<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-vxTQIgrRV5Q/UrbRzOLbX-I/AAAAAAAABwE/J8eY59HScSo/s1600/SW%25E8%25AA%258D%25E8%25AD%2598%25E6%2596%25B9%25E6%25B3%2595%25E3%2581%25AE%25E8%25A8%25AD%25E5%25AE%259A%25E7%25AE%2587%25E6%2589%2580.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-vxTQIgrRV5Q/UrbRzOLbX-I/AAAAAAAABwE/J8eY59HScSo/s1600/SW%25E8%25AA%258D%25E8%25AD%2598%25E6%2596%25B9%25E6%25B3%2595%25E3%2581%25AE%25E8%25A8%25AD%25E5%25AE%259A%25E7%25AE%2587%25E6%2589%2580.JPG" height="466" width="640" /></a></div>
<br />
<b>SwAnalog.hの設定箇所</b><br />
<br />
<h3>
<b> Libraryの使い方</b></h3>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-g3RSzQmlXlA/UrbR0BGelxI/AAAAAAAABwQ/2j2tfMZEFaY/s1600/%25E3%2583%25A9%25E3%2582%25A4%25E3%2583%2596%25E3%2583%25A9%25E3%2583%25AA%25E3%2581%25AE%25E4%25BD%25BF%25E3%2581%2584%25E6%2596%25B9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-g3RSzQmlXlA/UrbR0BGelxI/AAAAAAAABwQ/2j2tfMZEFaY/s1600/%25E3%2583%25A9%25E3%2582%25A4%25E3%2583%2596%25E3%2583%25A9%25E3%2583%25AA%25E3%2581%25AE%25E4%25BD%25BF%25E3%2581%2584%25E6%2596%25B9.JPG" height="640" width="552" /></a></div>
<br />
<b>サンプルプログラムより</b><br />
<br />
SW認識する端子の指定: swAnalog <br />
SWのレベル認識関数 :checkLevel(swNo)<br />
SWのONエッジ認識関数 :checkEdgeOn(swNo)<br />
SWのOFFエッジ認識関数:checkEdgeOff(swNo)<br />
引数のswNoは、端子定義関数のswAnalogの第一引数には,0,1,2、第二引数には3,4,5と割り振られていきます。<br />
<br />
<h2>
<サンプルプログラムについて></h2>
mbed(LPC1768)を使用しています。SWは3つ使用しており、<br />
アナログポートの、P20に接続します。<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-tcg3LJMQCCg/UrbRzHQoLVI/AAAAAAAABwA/JVedsOCP-M4/s1600/sampleSw%25E5%259B%259E%25E8%25B7%25AF.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-tcg3LJMQCCg/UrbRzHQoLVI/AAAAAAAABwA/JVedsOCP-M4/s1600/sampleSw%25E5%259B%259E%25E8%25B7%25AF.JPG" height="418" width="640" /></a></div>
<br />
<b>回路図</b><br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-GXQTLTluR_k/UrbRz_yWhZI/AAAAAAAABwM/puCqA_05zsI/s1600/%25E3%2583%2596%25E3%2583%25AC%25E3%2583%2583%25E3%2583%2588%25E3%2583%259C%25E3%2583%25BC%25E3%2583%2589P1170483.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-GXQTLTluR_k/UrbRz_yWhZI/AAAAAAAABwM/puCqA_05zsI/s1600/%25E3%2583%2596%25E3%2583%25AC%25E3%2583%2583%25E3%2583%2588%25E3%2583%259C%25E3%2583%25BC%25E3%2583%2589P1170483.JPG" height="640" width="588" /></a></div>
<br />
<b>ブレットボードでの配線</b><br />
<br />
<h3>
<b>プログラムの動作内容</b></h3>
SW0、SW1では、SWのレベル認識(OFFなのかONなのかを判定)する例です。<br />
SW0は、ONしている間、LED1を点灯させます。<br />
SW1は、OFFしている間、LED2を点灯させます。<br />
<br />
SW2では、SWのエッジ認識(OFF→ON、ON→OFF)する例です。<br />
SW2のONエッジ(OFF→ON)の時に、LED3の出力を反転させます。<br />
SW2のOFFエッジ(ON→OFF)の時に、LED4の出力を反転させます。<br />
<br />
以上suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-9434955757538556102013-12-21T20:32:00.003+09:002013-12-22T08:21:53.447+09:00SW認識Library(SwDigital)と、サンプルプログラムの説明SW認識Library(SwDigital)と、サンプルプログラムの説明<br />
<br />
<h2>
<概要></h2>
SW認識させるLibrary(SWDigital)と、Libraryを使用したサンプルプログラムについて説明します。<br />
<br />
Libraryとサンプルプログラムは次のアドレスからダウンロードできます。<br />
Library:<br />
<a href="http://mbed.org/users/suupen/code/SwDigital/#af5fbc75b7bf">http://mbed.org/users/suupen/code/SwDigital/#af5fbc75b7bf</a><br />
<br />
サンプルプログラム:<br />
<a href="http://mbed.org/users/suupen/code/SwDigitalLibraryExampleProgram/file/3f5813718d33/SwDigital.lib">http://mbed.org/users/suupen/code/SwDigitalLibraryExampleProgram/file/3f5813718d33/SwDigital.lib</a><br />
<br />
サンプルプログラムの動作動画<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/xOMO2EiWHH8?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<br />
<br />
<h2>
<Libraryについて></h2>
SWのレベルを10[ms]毎に認識して、レベルが3回一致したら、そのレベルを確定値として認識します。このため、SW操作をして認識値が変化するまでに30[ms]必要になります。<br />
複数回のレベル認識をして確定値を決めるので、SW操作によるチャタリングノイズの除去が可能です。<br />
<br />
SW認識に使用する端子は、mbed内部でプルアップしているので、外部にプルアップ抵抗を接続する必要はありません。<br />
<br />
<b>このLibraryで使用するmbed機能</b><br />
・ チッカータイマー(Ticker) 1[us]単位、10[ms]周期<br />
・ デジタル入力(DigitalIn) プルアップ有効<br />
<b><br />SW入力に設定可能な端子(LPC1768)</b><br />
p5~p30 の内の20本<br />
<br />
<b>SW認識処理の変更方法</b><br />
SwDitital.h内の定義を変更することで、以下の条件を変更できます。<br />
SW認識周期:Z_matchcycle 設定範囲:10[ms](10000)~100[ms](100000) (1[us/count]) <br />
SW一致回数:Z_itchPattern 設定範囲:3~8[回]<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-JKFRIuktNzE/UrV7RF6y9_I/AAAAAAAABvU/yjQWonklivY/s1600/SW%25E8%25AA%258D%25E8%25AD%2598%25E5%2587%25A6%25E7%2590%2586%25E6%259D%25A1%25E4%25BB%25B6%25E3%2581%25AE%25E8%25A8%25AD%25E5%25AE%259A.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-JKFRIuktNzE/UrV7RF6y9_I/AAAAAAAABvU/yjQWonklivY/s1600/SW%25E8%25AA%258D%25E8%25AD%2598%25E5%2587%25A6%25E7%2590%2586%25E6%259D%25A1%25E4%25BB%25B6%25E3%2581%25AE%25E8%25A8%25AD%25E5%25AE%259A.JPG" height="354" width="640" /></a></div>
<br />
<b>SwDigital.hの設定箇所</b><br />
<br />
<br />
<b> Libraryの使い方</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YpECXbzwDoQ/UrV7RDSMGvI/AAAAAAAABvQ/i-vWB5FDLls/s1600/SWDigitalLibrary%25E3%2581%25AE%25E4%25BD%25BF%25E3%2581%2584%25E6%2596%25B9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-YpECXbzwDoQ/UrV7RDSMGvI/AAAAAAAABvQ/i-vWB5FDLls/s1600/SWDigitalLibrary%25E3%2581%25AE%25E4%25BD%25BF%25E3%2581%2584%25E6%2596%25B9.JPG" height="436" width="640" /></a></div>
<br />
<b>サンプルプログラムより</b><br />
<br />
SW認識する端子の指定: swDigital <br />
SWのレベル認識関数 :checkLevel(swNo)<br />
SWのONエッジ認識関数 :checkEdgeOn(swNo)<br />
SWのOFFエッジ認識関数:checkEdgeOff(swNo)<br />
引数のswNoは、端子定義関数のswDigitalの引数のポートの順番(0~19)<br />
<br />
<br />
<h2>
<サンプルプログラムについて></h2>
mbed(LPC1768)を使用しています。SWは2つ使用しており、<br />
SW1 : P10<br />
SW2 : P20<br />
に接続します。<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-RNz7zBYEl40/UrV7RHlxsnI/AAAAAAAABvY/NbwUuYePwY4/s1600/%25E5%259B%259E%25E8%25B7%25AF%25E5%259B%25B3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-RNz7zBYEl40/UrV7RHlxsnI/AAAAAAAABvY/NbwUuYePwY4/s1600/%25E5%259B%259E%25E8%25B7%25AF%25E5%259B%25B3.JPG" height="466" width="640" /></a></div>
<b><br />回路図</b><br />
<br />
SW1ではSWのレベル認識(OFFなのかONなのかを判定)させてLED1、LED2を制御します。<br />
SW1 がOFFのときは、mbed(LPC1768)のLED2が点灯します。<br />
ON の時は、 LED1が点灯します。<br />
<br />
SW2ではSWのエッジ認識(OFF→ON、ON→OFFの変化)させてLED3,LED4を制御します。<br />
SW2 をOFF→ON、ON→OFFの変化をカウントしてLED3,LED4を点滅させます。<br />
<br />
<br />
以上<br />
<br />suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-6052975563229528342013-12-15T10:25:00.002+09:002013-12-15T10:25:12.490+09:00ADXL345(三軸加速度センサーモジュール)のmbed(LPC1768)での動作確認ADXL345(三軸加速度センサーモジュール)のmbed(LPC1768)での動作確認<br /><br />
<h2>
<概要></h2>
ADXL345(三軸加速度センサーモジュール)(秋月通販コードM-06724)の動作確認をmbed(LPC1768)で行いました。<br /><br />mbedには、このセンサー用のサンプルプログラム<br />(<a href="https://mbed.org/users/jrha/code/ADXL345/">https://mbed.org/users/jrha/code/ADXL345/</a>)<br />がありますが、mbedとの接続図が無かったのでこの点を補足します。<br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-meGz8hSFKLM/Uq0DiPnr7qI/AAAAAAAABtw/2nzhjjSvtYw/s1600/ADXL345-I2CmbedLibraryWeb.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-SUai8ZtXXbM/Uq0EHVauUTI/AAAAAAAABuI/qJb7N9bFmiQ/s1600/ADXL345-I2CmbedSampleProgramWeb.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-SUai8ZtXXbM/Uq0EHVauUTI/AAAAAAAABuI/qJb7N9bFmiQ/s1600/ADXL345-I2CmbedSampleProgramWeb.JPG" height="336" width="400" /></a></div>
<br /><b>サンプルプログラムのmbed Web</b><br /><br /><br />サンプルプログラムで使用している Libraryは<br /><a href="http://mbed.org/users/nimbusgb/code/ADXL345_I2C/">http://mbed.org/users/nimbusgb/code/ADXL345_I2C/</a><br />です。<br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-meGz8hSFKLM/Uq0DiPnr7qI/AAAAAAAABtw/2nzhjjSvtYw/s1600/ADXL345-I2CmbedLibraryWeb.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-meGz8hSFKLM/Uq0DiPnr7qI/AAAAAAAABtw/2nzhjjSvtYw/s1600/ADXL345-I2CmbedLibraryWeb.JPG" height="336" width="400" /></a></div>
<br /><b>ADXL345 mbed Library </b><br /><br />
<h2>
<mbedとの接続図></h2>
このLibraryでは、mbedとセンサーとの間をI2Cで通信しています。<br />使用するI2C端子は、P9(sda),P10(scl)を使っています。<br /><br />センサの電源は3.3[V]を使うので、mbedのGND,VOUTを使っています。<br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-k7Rs4gHOH1c/Uq0DiSGNvpI/AAAAAAAABts/KQrgsinVoYA/s1600/ADXL345-mbed%25E6%258E%25A5%25E7%25B6%259A%25E5%259B%25B3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-k7Rs4gHOH1c/Uq0DiSGNvpI/AAAAAAAABts/KQrgsinVoYA/s1600/ADXL345-mbed%25E6%258E%25A5%25E7%25B6%259A%25E5%259B%25B3.JPG" height="353" width="400" /></a></div>
<br /><b>ADXL345 - mbed(LPC1768)との接続図</b><br /><br /><br />センサの情報はUSB-Serialでパソコンに送信します。パソコン側で、ターミナルソフト(Tera Tramなど)を使って表示させます。<br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-dmMXENDqd_w/Uq0Djip3_CI/AAAAAAAABt8/5xSMMoKTJoY/s1600/%25E3%2582%25BF%25E3%2583%25BC%25E3%2583%259F%25E3%2583%258A%25E3%2583%25AB%25E3%2582%25BD%25E3%2583%2595%25E3%2583%2588%25E3%2581%25AE%25E8%25A8%25AD%25E5%25AE%259A%25E3%2581%25A8%25E8%25A1%25A8%25E7%25A4%25BA.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-dmMXENDqd_w/Uq0Djip3_CI/AAAAAAAABt8/5xSMMoKTJoY/s1600/%25E3%2582%25BF%25E3%2583%25BC%25E3%2583%259F%25E3%2583%258A%25E3%2583%25AB%25E3%2582%25BD%25E3%2583%2595%25E3%2583%2588%25E3%2581%25AE%25E8%25A8%25AD%25E5%25AE%259A%25E3%2581%25A8%25E8%25A1%25A8%25E7%25A4%25BA.JPG" height="245" width="400" /></a></div>
<br /><b>ターミナルソフトの設定と、センサ情報表示例</b><br />
<br />
<br /><br />以上suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-69652107373642680012013-09-23T11:07:00.005+09:002013-09-23T11:07:59.583+09:00LPC1114FN28“いか醤油ぽっぽ焼き”プログラムの作業手順(“いか醤油ぽっぽ焼き”使用)<h2>
LPC1114FN28でのLチカ手順まとめ(“いか醤油ぽっぽ焼き”使用)</h2>
<br />
<h3>
<概要></h3>
LPC1114FN28をmbedとして動作させる手順をまとめました。分かってしまえばなんでもない作業ですが、それなりに準備や手順が多いのではじめての場合は戸惑うと思います。そのためのまとめです。<br /><br />LPC1114FN28への書き込みは青mbed(LPC1768)を使用した“いか醤油ぽっぽ焼き”の方法をとります。<br /><br />LPC1114FN28のPin14(LED1)にLEDを接続して、点滅させるプログラムで動作確認をします。<br /><br />
<h3>
<手順概要></h3>
<b>1. ブレットボードに青mbed、LPC1114FN28で回路を組む<br />2. 青mbed(LPC1768)に“いか醤油ぽっぽ焼き”のプログラムを書き込む<br />3. パソコン上のmbed CompilerにLPC1114FN28をdevice登録してCompileする<br />4. パソコンからLPC1114FN28の実行ファイルを青mbedに転送して、LPC1114FN28に書き込み&実行</b><br /><br />
<h3>
<手順詳細></h3>
<b>1. ブレットボードに青mbed、LPC1114FN28で回路を組む</b><br />青mbedとLPC1114FN28との接続は<br /><a href="http://mbed.org/users/okano/code/ika_shouyu_poppoyaki/wiki/Homepage">http://mbed.org/users/okano/code/ika_shouyu_poppoyaki/wiki/Homepage</a><br />を参照。これにLPC1114FN28のPin14にLEDを接続します。<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-MzAo3CW66eU/Uj-grKZM-cI/AAAAAAAABiQ/QqC1YU0xhoI/s1600/%25E5%259B%259E%25E8%25B7%25AF%25E5%259B%25B3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-MzAo3CW66eU/Uj-grKZM-cI/AAAAAAAABiQ/QqC1YU0xhoI/s1600/%25E5%259B%259E%25E8%25B7%25AF%25E5%259B%25B3.JPG" height="460" width="640" /></a></div>
<br /> 回路図<br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-GD7PkmPPzcY/Uj-gqXRwNvI/AAAAAAAABiM/7UEKdt0Ae6M/s1600/%25E3%2583%2596%25E3%2583%25AC%25E3%2583%2583%25E3%2583%2588%25E3%2583%259C%25E3%2583%25BC%25E3%2583%2589%25E5%259B%259E%25E8%25B7%25AFP1170287.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-GD7PkmPPzcY/Uj-gqXRwNvI/AAAAAAAABiM/7UEKdt0Ae6M/s1600/%25E3%2583%2596%25E3%2583%25AC%25E3%2583%2583%25E3%2583%2588%25E3%2583%259C%25E3%2583%25BC%25E3%2583%2589%25E5%259B%259E%25E8%25B7%25AFP1170287.JPG" height="550" width="640" /></a></div>
<br />ブレットボードでの配線<br /><br /><b>2. 青mbed(LPC1768)に“いか醤油ぽっぽ焼き”のプログラムを書き込む</b><br />mbedのwebから<br /><a href="http://mbed.org/users/okano/code/ika_shouyu_poppoyaki/">http://mbed.org/users/okano/code/ika_shouyu_poppoyaki/</a><br />プログラムをダウンロードして、コンパイル・青mbedへの転送を行う。<br /><br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-_QHimviWSvQ/Uj-gqRFBy0I/AAAAAAAABiY/A0-skSMVACY/s1600/%25E3%2581%2584%25E3%2581%258B%25E9%2586%25A4%25E6%25B2%25B9%25E3%2581%25AEmbed%25E3%2581%25B8%25E3%2581%25AE%25E6%259B%25B8%25E3%2581%258D%25E8%25BE%25BC%25E3%2581%25BF.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-_QHimviWSvQ/Uj-gqRFBy0I/AAAAAAAABiY/A0-skSMVACY/s1600/%25E3%2581%2584%25E3%2581%258B%25E9%2586%25A4%25E6%25B2%25B9%25E3%2581%25AEmbed%25E3%2581%25B8%25E3%2581%25AE%25E6%259B%25B8%25E3%2581%258D%25E8%25BE%25BC%25E3%2581%25BF.JPG" height="640" width="384" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-gewgaesPJCc/Uj-gqUCAJrI/AAAAAAAABiE/Y5Y4ifMHbug/s1600/LPC1114FN28_device%25E7%2599%25BB%25E9%258C%25B2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
“いか醤油ぽっぽ焼き”プログラムの作業手順<br /><br /><b>3. パソコン上のmbed CompilerにLPC1114FN28をdevice登録してCompileする</b><br />mbedオンラインCompilerにLPC1114FN28をdevice登録して、サンプルプログラムをコンパイルする。<br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-gewgaesPJCc/Uj-gqUCAJrI/AAAAAAAABiE/Y5Y4ifMHbug/s1600/LPC1114FN28_device%25E7%2599%25BB%25E9%258C%25B2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-gewgaesPJCc/Uj-gqUCAJrI/AAAAAAAABiE/Y5Y4ifMHbug/s1600/LPC1114FN28_device%25E7%2599%25BB%25E9%258C%25B2.JPG" /></a></div>
LPC1114FN28のdevice登録<br /><br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-yr1kee27O44/Uj-gpciPGoI/AAAAAAAABh4/TwVOeqzqW2I/s1600/LPC1114FN28sampleProgram.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-yr1kee27O44/Uj-gpciPGoI/AAAAAAAABh4/TwVOeqzqW2I/s1600/LPC1114FN28sampleProgram.JPG" /></a></div>
サンプルプログラムのコンパイル<br /><br /><b>4. パソコンからLPC1114FN28の実行ファイルを青mbedに転送して、LPC1114FN28に書き込み&実行</b><br /><br />青mbedにLPC1114FN28の実行ファイル(*.bin)を書き込んで、ファイル名を”bin”に変更(拡張子はつけない)した上で、青mbedのリセットボタンを押すと、書き込み&LPC1114FN28プログラムの自動実行 となる<br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-plBS5AI-cxg/Uj-gr8rKNtI/AAAAAAAABic/IrbH4YZSnUg/s1600/%25E6%259B%25B8%25E3%2581%258D%25E8%25BE%25BC%25E3%2581%25BF%25E3%2581%258B%25E3%2582%2589%25E5%25AE%259F%25E8%25A1%258C.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-plBS5AI-cxg/Uj-gr8rKNtI/AAAAAAAABic/IrbH4YZSnUg/s1600/%25E6%259B%25B8%25E3%2581%258D%25E8%25BE%25BC%25E3%2581%25BF%25E3%2581%258B%25E3%2582%2589%25E5%25AE%259F%25E8%25A1%258C.JPG" height="640" width="464" /></a></div>
書き込み&自動実行<br /><br />suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-60583463008792529152012-06-30T19:39:00.006+09:002013-07-24T20:50:11.524+09:00mbedオフライン開発<h2>
mbedオフライン開発</h2>
<br />
<h3>
<概要></h3>
mbedでのプログラミング、コンパイルをオフラインで行う手段として、「LPCXpresso IDE」を使う方法があります。<br />
これに関して、いくつかHPでの紹介<br />
(<a href="http://jksoft.cocolog-nifty.com/blog/2012/02/mbed-9a57.html">http://jksoft.cocolog-nifty.com/blog/2012/02/mbed-9a57.html</a>)<br />
(<a href="http://mbed.org/users/okano/programs/__hello_mbed_world_in_lpcxpresso/m1c3lf">http://mbed.org/users/okano/programs/__hello_mbed_world_in_lpcxpresso/m1c3lf</a>)<br />
<br />
がありますが、mbedのprogramWorkspaceのオンラインからオフラインへの移行方法が違っていたので、ここにまとめます。<br />
<br />
補足:<br />
「LPCXpresso IDE」のインストールについては、<br />
こちら(<a href="http://toragi.cqpub.co.jp/tabid/440/Default.aspx">http://toragi.cqpub.co.jp/tabid/440/Default.aspx</a>)を参照してください。<br />
<br />
<mbed program Workspaceのオフラインへの移行手順><br />
オンラインから、オフラインへの移行で問題になるのは、mbedのlibraryの扱いです。このlibraryをLPCXpresso IDE用のものに置き換えた上で、移行させる必要があります。<br />
<br />
ここでは、program Workspaceを新規に作成した場合に出来る、”main.cpp”を例にとって移行手順を示します。<br />
<br />
<h3>
1.libraryの差し替え</h3>
“mbed” libraryを”export” libraryに差し替えます。ただ、通常の方法では”export” library”は見つけられず、program WorkspaceをExportするときに差し替えするための窓が開きます。<br />
<br />
図1-1の”01sample”を移行させます。<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-2jpXN7PUoWE/T-7WRAiqtPI/AAAAAAAAATo/30GzhrPxuWQ/s1600/01_%25E5%25AF%25BE%25E8%25B1%25A1program.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-2jpXN7PUoWE/T-7WRAiqtPI/AAAAAAAAATo/30GzhrPxuWQ/s320/01_%25E5%25AF%25BE%25E8%25B1%25A1program.JPG" height="209" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
図1-1 移行対象のprogram Workspace(01sample)<br />
<br />
通常のExport手順と同じように、”01sample”のところで右クリックして、”Export Program”を選択します(図1-2)<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-7R2_jMcUV2s/T-7WRIB_8MI/AAAAAAAAATs/8oa6_AFkSj4/s1600/02_Export%25E9%2581%25B8%25E6%258A%259E.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-7R2_jMcUV2s/T-7WRIB_8MI/AAAAAAAAATs/8oa6_AFkSj4/s320/02_Export%25E9%2581%25B8%25E6%258A%259E.JPG" height="320" width="297" /></a></div>
<br />
図1-2 Export選択<br />
<br />
“Export To”で”code_red Red Suite 4”を選択して、Exportボタンを押します。(図1-3)<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-zTBPWEgpBio/T-7WRBrxBXI/AAAAAAAAATw/9WM5t4EvBkg/s1600/03_export%25E5%2585%2588%25E9%2581%25B8%25E6%258A%259E.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-zTBPWEgpBio/T-7WRBrxBXI/AAAAAAAAATw/9WM5t4EvBkg/s320/03_export%25E5%2585%2588%25E9%2581%25B8%25E6%258A%259E.JPG" height="139" width="320" /></a></div>
<br />
図1-3 Export 先選択<br />
<br />
ここで、Exportするに当たって、libraryが違うと警告が出ます。警告窓のリンクをクリックします。(図1-4)<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Bw_GSN8bDOM/T-7WR-6EMMI/AAAAAAAAAUE/7PNgX6Q5DXA/s1600/04_library%25E5%25A4%2589%25E6%259B%25B4%25E6%258C%2587%25E7%25A4%25BA.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-Bw_GSN8bDOM/T-7WR-6EMMI/AAAAAAAAAUE/7PNgX6Q5DXA/s320/04_library%25E5%25A4%2589%25E6%259B%25B4%25E6%258C%2587%25E7%25A4%25BA.JPG" height="87" width="320" /></a></div>
<br />
図1-4 libraryの警告<br />
<br />
リンクをクリックすると、別窓が開き、”export” libraryのImport先の設定窓が開きます。ここで、”01sample”を選択して、”OK”ボタンを押します。(図1-5)<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-vTAjpYrMJlU/T-7WR0O93vI/AAAAAAAAAT0/VqLIgIu-7l4/s1600/05_%25E5%2588%25A5%25E7%25AA%2593%25E9%2596%258B%25E3%2581%258Dexport%25E5%2585%2588%25E9%2581%25B8%25E6%258A%259E.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-vTAjpYrMJlU/T-7WR0O93vI/AAAAAAAAAT0/VqLIgIu-7l4/s320/05_%25E5%2588%25A5%25E7%25AA%2593%25E9%2596%258B%25E3%2581%258Dexport%25E5%2585%2588%25E9%2581%25B8%25E6%258A%259E.JPG" height="161" width="320" /></a></div>
<br />
図1-5 export library Import先設定<br />
“01sample”に “export” libraryが有るのを確認します。(図1-6)<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Nzj685_iDls/T-7WSLVJKQI/AAAAAAAAAT8/Czcv13cI504/s1600/06_export%25E8%25BF%25BD%25E5%258A%25A0.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-Nzj685_iDls/T-7WSLVJKQI/AAAAAAAAAT8/Czcv13cI504/s320/06_export%25E8%25BF%25BD%25E5%258A%25A0.JPG" height="168" width="320" /></a></div>
<br />
図1-6 export libraryの確認<br />
<br />
次に、”mbed” libraryを削除します。”mbed”のところで右クリックして、”Delet library...”をクリックします。(図1-7)<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-hWzS5TZCUy8/T-7WSWgJz_I/AAAAAAAAAUI/XO_epdX_MiU/s1600/07_mbedLibrary%25E5%2589%258A%25E9%2599%25A4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-hWzS5TZCUy8/T-7WSWgJz_I/AAAAAAAAAUI/XO_epdX_MiU/s320/07_mbedLibrary%25E5%2589%258A%25E9%2599%25A4.JPG" height="284" width="320" /></a></div>
<br />
図1-7 mbed library削除<br />
<br />
以上で、libraryの差し替えが終わりました。この後Exportすれば問題なくローカルに保存できます。<br />
<br />
<h3>
2.program Workspaceのexport</h3>
“01sample”で右クリックして、”Export Program”をクリック(図2-1)<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-FdniwpGdpGQ/T-7WS88cFxI/AAAAAAAAAUM/mInaPFyNaGQ/s1600/10_programExport%25E6%258C%2587%25E7%25A4%25BA.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-FdniwpGdpGQ/T-7WS88cFxI/AAAAAAAAAUM/mInaPFyNaGQ/s320/10_programExport%25E6%258C%2587%25E7%25A4%25BA.JPG" height="311" width="320" /></a></div>
<br />
図2-1 program WorkspaceのExport指示<br />
<br />
“Export To”で”code_red Red Suite 4”を選択して、”Export”ボタンを押す。(図2-2)<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-cE42nops8y4/T-7WTEto5mI/AAAAAAAAAUg/SeD2rYrcDms/s1600/11_export%25E5%25BD%25A2%25E5%25BC%258F%25E9%2581%25B8%25E6%258A%259E.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-cE42nops8y4/T-7WTEto5mI/AAAAAAAAAUg/SeD2rYrcDms/s320/11_export%25E5%25BD%25A2%25E5%25BC%258F%25E9%2581%25B8%25E6%258A%259E.JPG" height="141" width="320" /></a></div>
<br />
図2-2 Export形式指示<br />
<br />
“保存”ボタンを押す。(図2-3)<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-9LwwCXk4ETI/T-7WUklWdQI/AAAAAAAAAUs/gL7brq9d_X8/s1600/12_%25E4%25BF%259D%25E5%25AD%2598%25E6%258C%2587%25E5%25AE%259A.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-9LwwCXk4ETI/T-7WUklWdQI/AAAAAAAAAUs/gL7brq9d_X8/s320/12_%25E4%25BF%259D%25E5%25AD%2598%25E6%258C%2587%25E5%25AE%259A.JPG" height="169" width="320" /></a></div>
<br />
図2-3 保存指示<br />
<br />
保存先のフォルダ指定(図2-4)<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-VYJOmC5fBp8/T-7WTt_E3cI/AAAAAAAAAUU/40re8NIBp3c/s1600/13_%25E4%25BF%259D%25E5%25AD%2598%25E5%2585%2588%25E6%258C%2587%25E5%25AE%259A.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-VYJOmC5fBp8/T-7WTt_E3cI/AAAAAAAAAUU/40re8NIBp3c/s320/13_%25E4%25BF%259D%25E5%25AD%2598%25E5%2585%2588%25E6%258C%2587%25E5%25AE%259A.JPG" height="187" width="320" /></a></div>
<br />
図2-4 保存先フォルダ指定<br />
<br />
<br />
保存されたzipファイルを”LPCXpresso”で読み込めば、ローカルでの開発が出来ます。<br />
この操作については、こちら(<a href="http://jksoft.cocolog-nifty.com/blog/2012/02/mbed-9a57.html">http://jksoft.cocolog-nifty.com/blog/2012/02/mbed-9a57.html</a>)<br />
を参照してください。suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-57940498061675810632012-06-27T20:35:00.001+09:002013-07-24T20:50:20.867+09:00アクリル7セグメントLED時計<h2>
アクリル7セグメントLED時計</h2>
<div class="separator" style="clear: both; text-align: center;">
<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://i.ytimg.com/vi/NI4xr_fsaXw/0.jpg" height="266" width="320"><param name="movie" value="http://www.youtube.com/v/NI4xr_fsaXw?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" />
<param name="bgcolor" value="#FFFFFF" />
<param name="allowFullScreen" value="true" />
<embed width="320" height="266" src="http://www.youtube.com/v/NI4xr_fsaXw?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<br />
iModela(iM-01)でアクリル板を削り出して7セグメントLEDを作りました。<br />
それを使って、デジタル時計の試作品を作りました。<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-k0rJP7bCCUM/T-ruryrEElI/AAAAAAAAAQ0/T0zkvc-vFZU/s1600/120627%25E6%2599%2582%25E8%25A8%2588%25E5%2585%25A8%25E6%2599%25AFP1140136.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-k0rJP7bCCUM/T-ruryrEElI/AAAAAAAAAQ0/T0zkvc-vFZU/s1600/120627%25E6%2599%2582%25E8%25A8%2588%25E5%2585%25A8%25E6%2599%25AFP1140136.JPG" /></a><a href="http://3.bp.blogspot.com/-YZ_c18NmSN0/T-rurFuD3nI/AAAAAAAAAQk/Xw5Ix0s5HLc/s1600/120627%25E5%2585%25A8%25E6%2596%2587%25E5%25AD%2597%25E6%258B%25A1%25E5%25A4%25A7P1140133.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-YZ_c18NmSN0/T-rurFuD3nI/AAAAAAAAAQk/Xw5Ix0s5HLc/s1600/120627%25E5%2585%25A8%25E6%2596%2587%25E5%25AD%2597%25E6%258B%25A1%25E5%25A4%25A7P1140133.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-tY-E7QtDyEw/T-rutO-YcSI/AAAAAAAAARM/QPiyxEuAmO8/s1600/120627%25E6%2599%2582%25E8%25A8%2588%25E5%2585%25A8%25E6%2599%25AFP1140136+%25284%2529.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-tY-E7QtDyEw/T-rutO-YcSI/AAAAAAAAARM/QPiyxEuAmO8/s1600/120627%25E6%2599%2582%25E8%25A8%2588%25E5%2585%25A8%25E6%2599%25AFP1140136+%25284%2529.JPG" /></a></div>
<a href="http://3.bp.blogspot.com/-uJpj3gBBaXo/T-rurSvIo9I/AAAAAAAAAQo/7kdOSHNPKp4/s1600/120627%25E6%2596%2587%25E5%25AD%2597%25E6%258B%25A1%25E5%25A4%25A71P1140134.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://3.bp.blogspot.com/-uJpj3gBBaXo/T-rurSvIo9I/AAAAAAAAAQo/7kdOSHNPKp4/s1600/120627%25E6%2596%2587%25E5%25AD%2597%25E6%258B%25A1%25E5%25A4%25A71P1140134.JPG" /></a><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-4Vj7ULGg6rc/T-ruqktOKII/AAAAAAAAAQg/i8RES_Y7kf8/s1600/120627_7%25E3%2582%25BB%25E3%2582%25B0%25E5%25BA%2595%25E9%259D%25A2P1140136+%25282%2529.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://3.bp.blogspot.com/-4Vj7ULGg6rc/T-ruqktOKII/AAAAAAAAAQg/i8RES_Y7kf8/s1600/120627_7%25E3%2582%25BB%25E3%2582%25B0%25E5%25BA%2595%25E9%259D%25A2P1140136+%25282%2529.JPG" /></a><a href="http://2.bp.blogspot.com/-z6xJ_yAxmQA/T-ruqpht72I/AAAAAAAAAQY/nccvTToZNH4/s1600/120627_7%25E3%2582%25BB%25E3%2582%25B0%25E6%2596%2587%25E5%25AD%2597%25E9%259D%25A2_%25E5%2581%25B4%25E9%259D%25A2P1140136+%25281%2529.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-z6xJ_yAxmQA/T-ruqpht72I/AAAAAAAAAQY/nccvTToZNH4/s1600/120627_7%25E3%2582%25BB%25E3%2582%25B0%25E6%2596%2587%25E5%25AD%2597%25E9%259D%25A2_%25E5%2581%25B4%25E9%259D%25A2P1140136+%25281%2529.JPG" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-UwNXIRFKjBg/T-ruq2ruNBI/AAAAAAAAAQc/9RGzg7v6DaQ/s1600/120627_7%25E3%2582%25BB%25E3%2582%25B0%25E9%2583%25A8%25E5%2593%25811140136+%25283%2529.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-UwNXIRFKjBg/T-ruq2ruNBI/AAAAAAAAAQc/9RGzg7v6DaQ/s1600/120627_7%25E3%2582%25BB%25E3%2582%25B0%25E9%2583%25A8%25E5%2593%25811140136+%25283%2529.JPG" /></a></div>
<br />suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0tag:blogger.com,1999:blog-9133268728176272291.post-2588723207532087132012-06-24T20:30:00.005+09:002013-07-24T20:50:33.242+09:00mbedでキッチンタイマ<h2>
mbedでキッチンタイマ</h2>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
iModela(iM-01)でプリント基板を作成する例題として、mbedでキッチンタイマを作りました。<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/6qpCR2SIxGg?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/yctyI8YGa88?feature=player_embedded' frameborder='0'></iframe></div>
<br />
mbedのプログラムや、回路図はこちら<br />
<a href="http://mbed.org/users/suupen/notebook/pcb-diyimodela-im-01--winstar-pcb-for-imodela/">http://mbed.org/users/suupen/notebook/pcb-diyimodela-im-01--winstar-pcb-for-imodela/</a><br />
<br />
製作の詳細はこちら<br />
<a href="http://www.eleki-jack.com/KitsandKids2/imodela/cat986/"> http://www.eleki-jack.com/KitsandKids2/imodela/cat986/</a><br />
<br />
<br />
<br />
<br />suupenhttp://www.blogger.com/profile/00653083732307754325noreply@blogger.com0