<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4345454953031214164</id><updated>2024-12-19T12:24:28.124+09:00</updated><category term="HomeAutomation"/><category term="RaspberryPi"/><category term="AVR"/><category term="赤外線リモコン"/><category term="RaspberryPi2"/><category term="基板作成"/><category term="OS X"/><category term="elecrow"/><category term="KiCad"/><category term="SiriProxy"/><category term="Yosemite"/><category term="ESP8266"/><category term="ESP_WROOM-02"/><category term="El Capitan"/><category term="HomeKit"/><category term="EAGLE"/><category term="電動化"/><category term="homebridge"/><category term="node.js"/><category term="HAP-nodeJS"/><category term="Siri"/><category term="Virical Brind"/><category term="バーチカルブラインド"/><category term="音声認識"/><category term="PHILIPS Hue"/><category term="forever"/><category term="自動起動"/><category term="RaspberryPi3"/><category term="玄関"/><category term="電気錠"/><category term="HangGlider"/><category term="init.d"/><category term="rc script"/><category term="修理"/><category term="起動スクリプト"/><title type='text'>空飛ぶエンジニアの実験室</title><subtitle type='html'>家の設備を外から制御できる仕組みを作っています。&#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>195</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-9068824856110808066</id><published>2016-08-16T20:44:00.000+09:00</published><updated>2016-08-22T14:34:54.322+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="node.js"/><category scheme="http://www.blogger.com/atom/ns#" term="PHILIPS Hue"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi3"/><title type='text'>PHILIPS Hueを67個制御してみた</title><content type='html'>&lt;br /&gt;
暫く更新をサボってしまいました。&lt;br /&gt;
&lt;br /&gt;
今回機会に恵まれて、会社のFabLabを開設するプロジェクトに参加して照明システムを作ってみました。フロア全体の設計はNOIZ ARCHITECTSさんにお願いしています。&lt;br /&gt;
&lt;br /&gt;
約400平米のフロア全体にPHILIPS Hueを67個(うち2個はHue light ribbon 6m)入れて、Hue Bridge2台をRaspberryPiにいれたnode.jsでWebアプリを立てて制御するシステムを組んでいます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GUIはこんな感じで、右半分で制御対象のランプを矩形、もしくは領域選択ボタンで指定して左側のColorPickerで色と明るさを指定するというものです。&lt;br /&gt;
ColorPickerの下のボタンは色を登録しておくボタン、SCENE SELECTボタンは全体の状態を登録しておくボタンです。&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmHDUzwLQo1rMuz3o9qMhKavYlBD7GOwRpGxRTXjq97qf9rc_3PST6c9yy-6NyVO2b24ZwGhqKb91kHHaGd27PRzD_yAXZF2nqTG0Qw7vKcglJLQZQi1tVKdamp2OU6Psaj9k2J9tPei1M/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-08-22+14.34.13.png&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
こちらは管理者向け画面で、SCAN LIGHTSでlinkされてないHue lampを探して左側にオレンジの丸で表示し、それをDragすると実物のランプが赤くフラッシュし続けるので右画面のマップ上の位置にDropするとその位置に登録します。67個を如何に手を抜いて設置＆設定をするかを考えた末のUIです。&lt;br /&gt;
マップ上のランプの色の違いはつながっているBridgeの違いを表しています。&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjncFWZjQNht5UUkLjor0El6uL4j-haDYW02Jl-pM3qFgLAki4sk4EKM041w9Kv0RTaiF-5tOy0_pJ20u6eXMNl89xzXGSy3Ybfw6auxidLC3V5uBGTtNi9bsqV9dssdd5nhwnkcZ4-I_Qo/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-08-16+10.41.07.png&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Hueのスターターキット(第2世代 Bridgeが四角のHomeKit対応のもの)を2セット借用して自宅で色々APIを叩いてなんとかなるだろうと高をくくっていたのですが、67個を制御しようとするとそう簡単ではなく色々とうまくいかないところが出てきてスケジュールぎりぎりにようやく動かすことが出来ました。&lt;br /&gt;
Googleで検索しても数個を制御している例しか見つからないので、引っかかったポイントを記しておきます。&lt;br /&gt;
&lt;br /&gt;
1．一度Hueのランプを1つのHue Bridgeとペアリングさせると、Delete ligthsで登録を削除しても他のHue Bridgeとペアリング出来ないことがある。(出来ることもあったので条件が何かあるのかもしれません。)&lt;br /&gt;
&lt;br /&gt;
やってみたこと&lt;br /&gt;
　・Hue Bridgeを2台使用して1台目のBridgeとペアリングして制御できる状態のランプをDelete lightsして、2台目のBridgeでSearch new lightsでbodyを空の状態で検索&lt;br /&gt;
　　-&amp;gt; なにも見つからない&lt;br /&gt;
　・同じく2台目のBridgeでSearch new lightsでbodyにランプのシリアルNoを指定して検索&lt;br /&gt;
　　-&amp;gt; ランプが点滅して繋がったように見えるが、検索結果には何も見つからない&lt;br /&gt;
　ただ、不思議な事に1つのランプだけは他のBridgeに移動することが出来た&lt;br /&gt;
　スターターキットはBridgeとランプ3個が既にペアリングされた状態になっているので、結果的に片方のBridgeには4個がペアリングされた状態になり、もう片方には2個がペアリングされた状態になってしまいました。時間切れでこの件はこれ以上追っていません。&lt;br /&gt;
&lt;br /&gt;
2.HueのランプはAPIからはUniqueIDやBridgeに登録されているLightの番号は引けるけど、Search new lightsではランプの側面に書かれているシリアル番号が必要になる可能性があるため取り付け前にシリアル番号を控えておく必要がある。&lt;br /&gt;
　今回は、ランプが全て設置された状態からセットアップだったので全て外して確認するのは大変だと思ったのですが、Search new lightsでbodyが空でも全てのランプが検索できたので外さずに済みました。&lt;br /&gt;
&lt;br /&gt;
3．数が多いので制御対象を都度group登録してstateを変更して制御しようとしたけど、連続してAPIを叩くと色々とエラーになって指定してないランプの色まで変わってしまったり、ところどころ色が変わらなかったりする。特にon/offの制御を取りこぼすと1つだけ点いていたりして目立つのでちょっとNGかな。&lt;br /&gt;
　-&amp;gt; 結局、groupでの制御はやめて、set light stateで個別制御を制御対象全てのランプに投げてエラーが返ってきたものについてはretryを3回ほど投げる仕様にして、その後2秒間GUIの制御が無い場合は全ランプの最終stateの状態を2度投げることでリカバリーすることにした。これはSuccessが返ってきているにもかかわらず、Stateが正しくないランプがあったので念の為にこうしている。&lt;br /&gt;
&lt;br /&gt;
色々と書きましたが、色の均一性とか表現範囲はHueが一番かと思います。これだけ並べて色が均一に出ているのが素晴らしいです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/9068824856110808066/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/08/philips-hue67.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/9068824856110808066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/9068824856110808066'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/08/philips-hue67.html' title='PHILIPS Hueを67個制御してみた'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmHDUzwLQo1rMuz3o9qMhKavYlBD7GOwRpGxRTXjq97qf9rc_3PST6c9yy-6NyVO2b24ZwGhqKb91kHHaGd27PRzD_yAXZF2nqTG0Qw7vKcglJLQZQi1tVKdamp2OU6Psaj9k2J9tPei1M/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-08-22+14.34.13.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-515742827755271235</id><published>2016-04-27T00:17:00.000+09:00</published><updated>2016-04-27T00:17:53.692+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="homebridge"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi3"/><title type='text'>RaspberryPi 3 Model B</title><content type='html'>RaspberryPi 3 Model Bをようやく入手しました。&lt;br /&gt;
これまでRaspberryPi 2 Model Bを使用していたうちのシステムに入れ替えたところ早速トラブりました。&lt;br /&gt;
まず、XBee制御に使用していた/dev/ttyAMA0はWiFi/BT用に使用されるとのことで、40pinのコネクタに出ているUARTは/dev/ttyS0に変更されています。&lt;br /&gt;
BCM2835の仕様書とGPIOのPinMuxの設定値を調べてみると、なかなか微妙な仕様になっていました。&lt;br /&gt;
&lt;br /&gt;
RaspberryPi 2の場合&lt;br /&gt;
40pinコネクタの8,910,11,36はTXD0,RXD0,RTS0,CTS0で/dev/ttyAMA0にアサインされていて、UARTのIPはARM PrimeCell PL011です。&lt;br /&gt;
RaspberryPi 3の場合&lt;br /&gt;
40pinコネクタはTXD1,RXD1,RTS1,CTS1で/dev/ttyS0にアサインされてIPは16550 UART下位互換のMiniUARTになっています。&lt;br /&gt;
これは対応ボーレートが476bps~31.25Mbpsになっていますが、一般的な115200とかのボーレートの場合誤差がそれなりにありそうです。(ちゃんと計算してませんが)&lt;br /&gt;
&lt;br /&gt;
それでもまぁ大丈夫だろうと取り敢えず試してみようと繋いでみましたが、最初動作しているのに暫くすると動かなくなる現象が発生しました。&lt;br /&gt;
通信路を見ていると途中から周波数が変化している現象が発生しています。&lt;br /&gt;
ネットで色々調べてみると、CPUのcore clockがIPのCLKになっているようで、現状のraspbianではCPU周波数が変動するとMiniUARTのクロックも一緒に変動してしまうようで使い物になりません。&lt;br /&gt;
これは対策として/boot/config.txtにcore_freq=250を追加することで対応できるようです。&lt;br /&gt;
そのうちクロックソースを固定のものから供給する設定になる気がしますがいまのところこの対策しかないようです。&lt;br /&gt;
&lt;br /&gt;
もう1つRaspberryPi3で発生した問題が、PWR-LEDの問題です。&lt;br /&gt;
/sys/class/leds/led1が消えていたのでPWR LEDが消せなくなってしまいました。&lt;br /&gt;
どうもPWR-LEDの制御がメインCPUのGPIOから他の所のGPIOに移動したようで、直接制御できなくなってしまったようです。&lt;br /&gt;
そのうち、対応策が出てくることを期待して取り敢えず置いておきます。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/515742827755271235/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/04/raspberrypi-3-model-b.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/515742827755271235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/515742827755271235'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/04/raspberrypi-3-model-b.html' title='RaspberryPi 3 Model B'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-7630678846851625492</id><published>2016-04-01T23:51:00.001+09:00</published><updated>2016-04-04T23:34:07.327+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="elecrow"/><category scheme="http://www.blogger.com/atom/ns#" term="HAP-nodeJS"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="homebridge"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><category scheme="http://www.blogger.com/atom/ns#" term="音声認識"/><title type='text'>RP-5基板の組み立て</title><content type='html'>KiCadで設計してElecrowに注文していた基板も上がってきて、部品も揃ったので組み立ててみました。&lt;br /&gt;
&lt;br /&gt;
ちなみに今回はFedExにしてみました。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;3/15火曜日の夜 出図&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;3/16水曜日 製造開始&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;3/22火曜日 写真付きで基板できたよとの連絡&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;3/23水曜日&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;17:32&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;出荷地のFedEx営業所を出発 &amp;nbsp;YUEN LONG HK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;21:50&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ＦｅｄＥｘ経由地に到着 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GUANGZHOU CN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;3/24木曜日&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;03:13&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ＦｅｄＥｘ経由地を出発 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GUANGZHOU CN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;05:06&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;輸送中/処理中 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GUANGZHOU CN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;07:32&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;仕向国仕分け場所 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NARITA-SHI JP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;11:57&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;輸送中/処理中 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TOKYO-KOTO-KU JP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;14:14&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;国際輸送許可 - 輸入 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TOKYO-KOTO-KU JP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;20:16&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;輸送中/処理中 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TOKYO-KOTO-KU JP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;3/25金曜日&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;10:02&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;FedEx 営業所 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TOKYO JP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;13:24&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;配達完了&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
製造開始から土日を挟んで9日間で到着しています。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今回はTAKACHIのケースに合わせて基板を設計しました。&lt;/div&gt;
&lt;div&gt;
当然ながらピッタリと収まっています。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-sPTtieVdHJD1pS2WUcbW0lw7I5o5xdTpTjsBPrlL8GBYq9iDBF4AuQald1aRv48italOLJnU1x39LCY7xkvc8Xj_S5dlRB-9gGDpCclbeXT4IiU47-IB6Acg8XkxJzH7k7xd0Kso6JC0/s1600/IMG_6472.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-sPTtieVdHJD1pS2WUcbW0lw7I5o5xdTpTjsBPrlL8GBYq9iDBF4AuQald1aRv48italOLJnU1x39LCY7xkvc8Xj_S5dlRB-9gGDpCclbeXT4IiU47-IB6Acg8XkxJzH7k7xd0Kso6JC0/s320/IMG_6472.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
レーザーカッターで1.5mm乳白色半透明のアクリル板を切り出して赤外線LEDと受光部の窓を作っています。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvIzi6aBs5v1aJqx6we1TMYa54PHjNepQyIR0-g3XPU4XmgZ5sozP9Oz5yCjSk696wSLimVB7JInhszmF1hmZgn-nvipgdStpWJlb9soX7ydXU_ms0WnpiA4ojWPUUiLpH0pdGoJnmHptZ/s1600/IMG_6475.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvIzi6aBs5v1aJqx6we1TMYa54PHjNepQyIR0-g3XPU4XmgZ5sozP9Oz5yCjSk696wSLimVB7JInhszmF1hmZgn-nvipgdStpWJlb9soX7ydXU_ms0WnpiA4ojWPUUiLpH0pdGoJnmHptZ/s320/IMG_6475.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
後ろ側も同じ板で電源とUSB、Etherの口をRaspberryPi 2 Model-Bの穴位置に合わせて加工しています。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg44I170jGWeK-4kHTYBrqH8ipoHPM0k9kyXK-tdB2w1z-fHUNfPap2ZFxETnoroN-A7JRPh8kjXF7BX5wdWdB6QAGb3glSuOgzP6CQqLhV8bzPrPVGEuWMEh0YqoreEdN1SxgjhcfcasXY/s1600/IMG_6476.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg44I170jGWeK-4kHTYBrqH8ipoHPM0k9kyXK-tdB2w1z-fHUNfPap2ZFxETnoroN-A7JRPh8kjXF7BX5wdWdB6QAGb3glSuOgzP6CQqLhV8bzPrPVGEuWMEh0YqoreEdN1SxgjhcfcasXY/s320/IMG_6476.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
本当は段差が無いようにできればいいのですが、素人の加工としてはこのくらいが限度でしょうか。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/7630678846851625492/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/04/rp-5.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/7630678846851625492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/7630678846851625492'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/04/rp-5.html' title='RP-5基板の組み立て'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-sPTtieVdHJD1pS2WUcbW0lw7I5o5xdTpTjsBPrlL8GBYq9iDBF4AuQald1aRv48italOLJnU1x39LCY7xkvc8Xj_S5dlRB-9gGDpCclbeXT4IiU47-IB6Acg8XkxJzH7k7xd0Kso6JC0/s72-c/IMG_6472.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-7446194362937955350</id><published>2016-03-24T20:00:00.000+09:00</published><updated>2016-03-24T20:00:26.498+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HAP-nodeJS"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="homebridge"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="node.js"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="Siri"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="玄関"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><category scheme="http://www.blogger.com/atom/ns#" term="電動化"/><category scheme="http://www.blogger.com/atom/ns#" term="電気錠"/><category scheme="http://www.blogger.com/atom/ns#" term="音声認識"/><title type='text'>HomeServerのinstall</title><content type='html'>GitHubにRaspberryPi 2 Model Bを使ったSiri対応の学習リモコンのコードを&lt;a href=&quot;https://github.com/mnakada/ha1control&quot;&gt;公開&lt;/a&gt;しました。&lt;br /&gt;
RaspberryPi Model A+/B+でも動くと思います。RaspberryPi 3に関しては確認できたら報告します。&lt;br /&gt;
&lt;br /&gt;
■このソフトで現時点で出来ること&lt;br /&gt;
&amp;nbsp;・赤外線リモコン、HA端子(JEM-A端子)、弱電スイッチなどの制御&lt;br /&gt;
&amp;nbsp;・赤外線リモコン信号、HA端子、弱電スイッチ、各種センサーなどのステータス情報取得&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;- telnet(socket)経由での上記制御と情報取得(human-readble IF, JSON IF)&lt;br /&gt;
&amp;nbsp;- HomeKit対応アプリからの上記制御と情報取得（HAP-nodeJS経由)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;AppleTV(3rd generation以降)を経由して外出先からの上記制御と情報取得&lt;br /&gt;
&amp;nbsp; &amp;nbsp;iPhoneのsiriによる上記制御と情報取得&lt;br /&gt;
&amp;nbsp; &amp;nbsp;※ ただしAppleがHomeKitの認証を強化すると動かなくなる可能性あり&lt;br /&gt;
&amp;nbsp;- javascript(node.js)での制御&lt;br /&gt;
&amp;nbsp; &amp;nbsp;センサー等の変化や30sec intervalのイベントでjavascriptの関数が呼び出されるので条件を設定して制御することが可能&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;日没にあわせてシャッターを閉める、あかりをつける&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;玄関のロックが5分間開いていたらメールする&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;雨が降ってきたら窓を閉める&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;室温に応じて起床前にエアコンをつける&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;窓を開けたらエアコン停止&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;etc&lt;br /&gt;
&lt;br /&gt;
■今後追加していきたい機能(余裕があれば)&lt;br /&gt;
&amp;nbsp;- リモコンの学習、各種設定のWebUI化&lt;br /&gt;
&amp;nbsp;- javascriptでの制御部分のVisualPrograming化&lt;br /&gt;
&lt;br /&gt;
■下のブレッドボード用回路の機能&lt;br /&gt;
&amp;nbsp;- 赤外線リモコン送信・受信&lt;br /&gt;
&lt;br /&gt;
■RP-5基板の機能&lt;br /&gt;
&amp;nbsp;- 赤外線リモコン送信・受信&lt;br /&gt;
&amp;nbsp;- ZigBee(XBee)経由でのリモート子機(HA-5)制御&lt;br /&gt;
&amp;nbsp;- HA-5子機の故障診断とファームウェアアップデート、ペアリング&lt;br /&gt;
&lt;br /&gt;
■HA-5基板の機能&lt;br /&gt;
&amp;nbsp;- 赤外線リモコン送信・受信&lt;br /&gt;
&amp;nbsp;- HA端子(JEM-A端子)での家電制御、ステータス確認&lt;br /&gt;
&amp;nbsp;- 弱電（24V以下）のスイッチ制御・ステータス確認（電動シャッターなどのスイッチ）&lt;br /&gt;
&amp;nbsp;- 各種センサー情報の取得（温度、湿度、雨、人感、etc）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ブレッドボード用回路は以下のとおりです。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_kHS4S6aODygEfTghxkLjO0G2BpWneriobs55x4PXb8yWWfdW6iSKdNmFMwkvpZsvtGTcf4kjWyw9S_mB-lKRYw_SWdlOa3mFw9qM3Fv8jSUjH7VTv7YFPhOx3Ci0esirgvAGJcd5_s55/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-24+18.25.16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_kHS4S6aODygEfTghxkLjO0G2BpWneriobs55x4PXb8yWWfdW6iSKdNmFMwkvpZsvtGTcf4kjWyw9S_mB-lKRYw_SWdlOa3mFw9qM3Fv8jSUjH7VTv7YFPhOx3Ci0esirgvAGJcd5_s55/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-24+18.25.16.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
リモコン学習時のブザー音とリモコン発光時の発光音が不要なら真ん中のブザー音出力ブロックは不要です。&lt;br /&gt;
&lt;br /&gt;
LED101/102はリモコン用の940nmあたりの波長の赤外線LEDなら大体動くと思います。&lt;br /&gt;
ちゃんと赤外線LEDが発光しているかどうかはデジカメ等で見ながら発光させると確認できます。&lt;br /&gt;
ただし、iPhoneはカメラに赤外線フィルターが入っているようで見えませんでした。&lt;br /&gt;
&lt;br /&gt;
赤外線受光モジュールは電源が逆になっているデバイスもあるので他のものを使う場合は気をつけて下さい。&lt;br /&gt;
&lt;br /&gt;
FETもNchで耐圧がOKなら動くかと思います。こちらもピン配置を確認して使って下さい。&lt;br /&gt;
&lt;br /&gt;
installの大まかな手順を書いておきます。&lt;br /&gt;
詳細手順は&lt;a href=&quot;https://github.com/mnakada/ha1control&quot;&gt;こちらのREADME.md&lt;/a&gt;を御覧ください。(下の方です)&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;※scriptからダウンロードするので、gitをcloneする必要はありません。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.最新版のRASPBIAN JESSIE LITEをダウンロードしてSDカードに書き込みます。&lt;br /&gt;
2.SDカードをRaspberryPiにセットしてNetworkを接続し起動後loginします。&lt;br /&gt;
3.setup scriptを実行する&lt;br /&gt;
&amp;nbsp;&amp;gt; curl -O https://raw.githubusercontent.com/mnakada/ha1control/master/setup.sh&lt;br /&gt;
&amp;nbsp;&amp;gt; sudo bash setup.sh&lt;br /&gt;
4.piのアカウントpasswordを変更する&lt;br /&gt;
5.reboot&lt;br /&gt;
6.HomeKit対応アプリをiPhoneにinstall&lt;br /&gt;
7.対応アプリでHA1HomeServerを登録&lt;br /&gt;
&lt;br /&gt;
国内のエアコン等も大抵のものは動くかと思います。&lt;br /&gt;
Daikin/Panasonic/三菱重工は確認しました。&lt;br /&gt;
&lt;br /&gt;
AppleTVの第３世代以降があってiCloudの設定をしてあれば外出先からもアクセス出来ます。&lt;br /&gt;
ただし、AppleTVの自動updateをonにしているとupdate後自動起動してくれるのですが、iCloudのloginを一度解除してからもう一度loginし直さないとアクセスできなくなってしまいます。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/7446194362937955350/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/03/homeserverinstall.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/7446194362937955350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/7446194362937955350'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/03/homeserverinstall.html' title='HomeServerのinstall'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_kHS4S6aODygEfTghxkLjO0G2BpWneriobs55x4PXb8yWWfdW6iSKdNmFMwkvpZsvtGTcf4kjWyw9S_mB-lKRYw_SWdlOa3mFw9qM3Fv8jSUjH7VTv7YFPhOx3Ci0esirgvAGJcd5_s55/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-24+18.25.16.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-3594876769724557200</id><published>2016-03-19T00:02:00.000+09:00</published><updated>2016-03-19T00:02:35.243+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="elecrow"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP8266"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP_WROOM-02"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="Siri"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><title type='text'>RP-5基板</title><content type='html'>最近XBeeの新型のS2Cが出たり、ATmega328も昨年からATmega328pbが出ていてRaspberryPi3も出るし、Kicadも最新版をbuildしたので、回路を見なおして基板を起こし直すことにしました。&lt;br /&gt;
これまで親機の方はアクリル板をレーザーカッターで切り抜いてケースを作っていましたが、曲げ加工とか手間がかかるのでTAKACHIの&lt;a href=&quot;http://www.takachi-el.co.jp/data/a_newproduct/images/201409_03.pdf&quot;&gt;PF-15-3-10W&lt;/a&gt;を使ってみることにしました。&lt;br /&gt;
赤外線を通す必要があるので、このケースの前後のパネル部分の代わりに乳白色の半透明アクリル板をレーザーカッターで加工して使ってみます。&lt;br /&gt;
赤外線LEDや受光部、RaspberryPiの各種コネクタの位置をパネルの範囲に入るように配置しながら高さ方向の適当な位置を考えていきます。&lt;br /&gt;
下の図の赤い線で書かれているのがRP-5基板とRaspberryPiの位置になります。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidliLorkR7jQKxblwIAHP8Zx8vOPR93X-q7m2LGIw4FAsICTKnG9wMYi7FDedxi1spN90SsxZ0vLIqciWatm_eDUS-BxRC6hL3PIgidEcw2-urL8ttc-PBuRlkwlbFbpL6O-UY8BOnPBP1/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.30.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidliLorkR7jQKxblwIAHP8Zx8vOPR93X-q7m2LGIw4FAsICTKnG9wMYi7FDedxi1spN90SsxZ0vLIqciWatm_eDUS-BxRC6hL3PIgidEcw2-urL8ttc-PBuRlkwlbFbpL6O-UY8BOnPBP1/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.30.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
最初は基板固定用のM2.3用ボスで基板を固定することを考えたのですが、この高さで固定するとRaspberryPiのコネクタがパネルの高さ内に収まらないため3mm程度スペーサーで嵩上げする必要があります。&lt;br /&gt;
そこで、ケースの固定用の支柱部分に基板をいれて上側に適当なクッションを入れることでちょうどいい高さに収まらないかと考えています。&lt;br /&gt;
&lt;br /&gt;
基板の回路はこれまでとほとんど変わってませんが、RaspberryPiと接続してIRリモコンの学習用の受光部と発光部、子機との通信用のXBeeと将来置き換えていけるようにESP8266用の回路を入れています。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibEv5nDZjRSPn_kLfV_-RVuTtBVh9ycrk6NdZXp8eAB8t0xMvyCOJc5xOwvrGwZI6WK85_sn6TCB2Hkhc4qKPNpnodHPv-RgO_ygWmbuw_7Z3dnHc93fUyfQXkZ-Ci1e2k7q3Wk0FO_ADS/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibEv5nDZjRSPn_kLfV_-RVuTtBVh9ycrk6NdZXp8eAB8t0xMvyCOJc5xOwvrGwZI6WK85_sn6TCB2Hkhc4qKPNpnodHPv-RgO_ygWmbuw_7Z3dnHc93fUyfQXkZ-Ci1e2k7q3Wk0FO_ADS/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.43.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
RaspberryPiと接続して使う場合は下の回路だけ部品をのせることで親機としての機能になります。&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZF0UQOpkBZsT8EF0CURAuw7P0pr1Dfgd0nLSXdsgFxOXrb4XxBVFgrBBbDNpMIIPlCePAgyFhIa0WwZIS8H6phU0d1W_0DVgGJwzJPK05c_GEG2BTagdOgWksT-UF6gUnsNWKmiBOzQBC/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.56.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZF0UQOpkBZsT8EF0CURAuw7P0pr1Dfgd0nLSXdsgFxOXrb4XxBVFgrBBbDNpMIIPlCePAgyFhIa0WwZIS8H6phU0d1W_0DVgGJwzJPK05c_GEG2BTagdOgWksT-UF6gUnsNWKmiBOzQBC/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.56.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Bee経由で子機として使う場合はATmega328pbでリモコン機能を中継する形になります。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
回路はシンプルで電源とマイコン、XBee、赤外線受発光部だけになります。&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_ocSKifbb7dxY-7FNvlNN4kOCrWvzVm0ZHaB089jaPqMfiBrV4ndxjECan9e8zaag7LSVtIzz1QsLOg-ixffmLC8kVQbf0p0Mo8YEzbhvvO1kql6k7z0_volfXTUn5yESuPsYwNnqIM3G/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.45.04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;277&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_ocSKifbb7dxY-7FNvlNN4kOCrWvzVm0ZHaB089jaPqMfiBrV4ndxjECan9e8zaag7LSVtIzz1QsLOg-ixffmLC8kVQbf0p0Mo8YEzbhvvO1kql6k7z0_volfXTUn5yESuPsYwNnqIM3G/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.45.04.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
この回路を丁度ケースに入るような形で設計したのが下の基板です。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1_GO1hketLRUXzx-JFCd1h7en4qPU4MsZehNvN4xaRO4J2qJPRZm4lleEi4-dnPsFt-zMPO2FRf-P2xuIp1_ZyjnHVvqhjoQ8Z9SA33dMxOpLbPNNrFsE42fp7TfNSUv15sAijNt2ZHLV/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;257&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1_GO1hketLRUXzx-JFCd1h7en4qPU4MsZehNvN4xaRO4J2qJPRZm4lleEi4-dnPsFt-zMPO2FRf-P2xuIp1_ZyjnHVvqhjoQ8Z9SA33dMxOpLbPNNrFsE42fp7TfNSUv15sAijNt2ZHLV/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.16.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
それほど面積は要らないのですが、ケースに固定する部分の関係で10x15cmに入る位の大きさになってしまいました。&lt;br /&gt;
もう1つのFriskサイズの子機基板と一緒にElecrowに発注しました。&lt;br /&gt;
今月末くらいに届く予定です。&lt;br /&gt;
&lt;br /&gt;
もう1枚の基板については次回書きます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/3594876769724557200/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/03/rp-5.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3594876769724557200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3594876769724557200'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/03/rp-5.html' title='RP-5基板'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidliLorkR7jQKxblwIAHP8Zx8vOPR93X-q7m2LGIw4FAsICTKnG9wMYi7FDedxi1spN90SsxZ0vLIqciWatm_eDUS-BxRC6hL3PIgidEcw2-urL8ttc-PBuRlkwlbFbpL6O-UY8BOnPBP1/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-03-18+23.44.30.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-7919065269148234663</id><published>2016-03-05T22:22:00.001+09:00</published><updated>2016-03-05T22:22:49.089+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="修理"/><category scheme="http://www.blogger.com/atom/ns#" term="玄関"/><category scheme="http://www.blogger.com/atom/ns#" term="電気錠"/><title type='text'>玄関の電気錠の修理</title><content type='html'>うちの玄関はユーシン・ショウワの電気錠なのですが、最近冬場になると鍵を掛けてもステータスが解錠状態のままになっている現象が発生するようになってきてしまいました。&lt;br /&gt;
&lt;br /&gt;
この現象何が困るのかというと、うっかり解錠状態だと思って施錠ボタンを押してしまうと施錠状態なのにさらに施錠しようとしてretryを繰り返し盛大に施錠音が繰り返され、さらにダメ押しに施錠できなかったことを知らせる電子音が鳴り響きます。&lt;br /&gt;
子供が寝てる時にうっかりやると確実に起こしてしまうことになります。&lt;br /&gt;
&lt;br /&gt;
最近発生頻度が高くなってきたので、修理見積もりをお願いしたのですが、部品代２万円、工賃１万円の合計３万円だそうです。どうもよくある故障らしいです。&lt;br /&gt;
最悪３万円で修理できる事が判ったので、自分で分解修理してみて出来なければ依頼することにしました。&lt;br /&gt;
&lt;br /&gt;
まず、玄関ドアから電気錠のユニットを取り外します。&lt;br /&gt;
ユーシン・ショウワ製のN-EPPX-51という製品です。&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh4QPqgJHkqmbRTrvFHRLs63Bz3A_EcCpffY66EdrIjf7cJ1jlQCHNAyOYrvqKjBvmuUD20L_9FbacSbFzmcToFFrc1u4E2gFo_dqmYHJlyApVq2Ow6V11CtoC7qow4vVl1Qtbv-zeUJmb/s400/IMG_5897.jpg&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
シールの下もふくめて４本のネジを外して表の金属板を外します。&lt;br /&gt;
開けてみるとモーターでギアを回してユニット内のデッドボルトの出し入れをしているのと同時に、右側の白いラックを上下させてドアのダブルロックのもう一方側を制御する仕組みです。&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd6qtFGWkrBMCLZqD_1NyVGZEah7OVUry9feGzBVkgXgZjFnpXWZHW0Us5fbxRqn7ggGogrFlUhl8wUUSYONKrib-IOVTpObsjD0cUWbIsIvuV9uApCV6EfR0gNeRrYqeF0qk4jYS3oZWI/s400/IMG_6232.jpg&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
ラックの内側にある金属のプレートが上下することで上下に付いているマイクロスイッチを押して施錠、解錠の状態を見ているようです。&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7oGA4sNfUEskjv597iPK9yRn89dbGbVBOIUojf2k60XfoKyOs0Be3kwQWArL9LOzVxJ7XprmYo8-Z1amF8P4Z-tmVjjGDn-mcVw2bToln9NC_giKvmTxFEv8HZRdo2A8JzNyxFYNvsfhyphenhyphen/s400/IMG_6229.jpg&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;
マイクロスイッチの不良か、半田クラックかと見当をつけて基板を取り出して見てみました。&lt;br /&gt;
マイクロスイッチ自体はテスターで見てみると問題ありません。&lt;br /&gt;
そしてハンダ部分をよく見るとクラックが発生していました。&lt;br /&gt;
構造的な問題かと思います。（基板の写真撮り忘れてしまいました）&lt;br /&gt;
施錠、開場時にスイッチを押す金属プレートは結構な勢いでマイクロスイッチにぶつかっています。&lt;br /&gt;
このマイクロスイッチは力がかかるところなのに３本の脚をハンダ付けして留めてるだけでネジなどで固定されていません。施錠、解錠を繰り返すうちに半田にクラックが発生するのも当然かと思います。&lt;br /&gt;
本来なら下面の金属に対して上面からネジ止めするべきなのでしょうが、加工が大変なので基板側からタッピングビスでマイクロスイッチを固定しておきます。&lt;br /&gt;
バラす時にギアとラックの位置関係が判るようにマジック等で印を付けてから外していかないと後で苦労します。&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvMGCKRvOr0B2dPVw_XPrYGA-3YHgIfIoHi39Nto5YLFEWk8auyB_K-KK-jeXhce18G5xXBOrKY7eGB47Yn0yVKnacK09qcJ3JQPlEbhRHvjS6F2cLJjYyfrjhpOKBEsUuaT_2ksrg3uZw/s400/IMG_6237.jpg&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
うっかり印を付け忘れたため、最適な位置にするために何度も組みバラしすることになってしまいました。&lt;br /&gt;
最終的に、バラした手順で仮組みし、コネクタを接続して正常に動くことを確認後取り付けて完了です。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/7919065269148234663/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/03/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/7919065269148234663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/7919065269148234663'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/03/blog-post.html' title='玄関の電気錠の修理'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh4QPqgJHkqmbRTrvFHRLs63Bz3A_EcCpffY66EdrIjf7cJ1jlQCHNAyOYrvqKjBvmuUD20L_9FbacSbFzmcToFFrc1u4E2gFo_dqmYHJlyApVq2Ow6V11CtoC7qow4vVl1Qtbv-zeUJmb/s72-c/IMG_5897.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-1390772399504307428</id><published>2016-03-01T23:21:00.003+09:00</published><updated>2016-03-11T12:53:06.248+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><title type='text'>KiCad 4.0.2 bzr6238 for OS-X</title><content type='html'>&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;OS-Xに関連するbugが今のところfixしているようなので、KiCad 4.0.2 bzr6238をbuildしたイメージを&lt;/span&gt;&lt;a href=&quot;https://drive.google.com/open?id=0B5LhqdaY_M_BQUxNVno3OGhNYTg&quot; style=&quot;color: #6699cc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; text-decoration: none;&quot;&gt;ここ&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;においておきます。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;(すみません。日本語fontを入れ忘れてたため更新しました。3/11)&lt;/span&gt;&lt;br /&gt;
サイズが大きいのでGoogleドライブのウィルススキャン出来ないと警告が出ますが、そのままダウンロードを選択してください。&lt;br /&gt;
&lt;br /&gt;
念のためSHA1のhash値です。&lt;br /&gt;
&amp;gt; openssl sha1&amp;nbsp;kicad-4.0.2_bzr6238j.dmg&lt;br /&gt;
SHA1(kicad-4.0.2_bzr6238j.dmg)= 3b1fe687a90742ead03cb6ae08bdd15c14e8fa5c&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;標準のbuildとは下記の点が異なっています。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;- TrackPad/MagicMouseの動作をMacの標準的な動作に変更しています&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;- Library/Application Support/kicad/internat/ja/のリソースを読むように修正しています&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;- fontが日本語対応になっています&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;変更分のpatchは&lt;/span&gt;&lt;a href=&quot;https://drive.google.com/file/d/0B5LhqdaY_M_BQjNXd0tSb0p2b2M/view?usp=sharing&quot; style=&quot;background-color: transparent; color: #6699cc; font-family: arial, tahoma, helvetica, freesans, sans-serif; text-decoration: none;&quot;&gt;これ&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;です。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;あと、なぜかオフィシャルパッケージのkicad-4.0.1.dmgからinternat以下の各国語リソースが抜けてるので、追加してあります。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;Bazaarのツリーの方はbzr6225に4.0.2のTagが打たれていますが、公式パッケージは4.0.1が最新のようです。&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;イメージをダウンロードして開くとkicadアプリケーションとkicadディレクトリがあります。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;kicad.appは/Applications&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;kicadは/Library/Application\ Support&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;にそれぞれコピーします。(finderで開いた時の矢印のとおりにDrag&amp;amp;Dropして下さい)&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;
ライブラリをgitではなくlocalで持ちたい場合はKiCad extrasも&lt;a href=&quot;http://kicad-pcb.org/download/osx/&quot;&gt;ここ&lt;/a&gt;からダウンロードして展開、modulesとfp-lib-tableをREADME.txtの通りisntallしてください。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;最初の１回めは開発元が未確認のため開けませんと言われてしまうので、/Applicationフォルダを開いてKiCadを右クリックし「開く」を選択して、ダイアログボックスの「開く」を選択すると起動します。&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;詳細とbuildの手順はRC2.0の時に書いたので&lt;/span&gt;&lt;a href=&quot;http://flying-engineer.blogspot.jp/2015/11/kicad40rc2.html&quot; style=&quot;color: #6699cc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; text-decoration: none;&quot;&gt;こちら&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;freesans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;を参照して下さい。&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/1390772399504307428/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/03/kicad-402-bzr6238-for-os-x.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/1390772399504307428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/1390772399504307428'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/03/kicad-402-bzr6238-for-os-x.html' title='KiCad 4.0.2 bzr6238 for OS-X'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-985383623328422959</id><published>2016-02-27T14:05:00.000+09:00</published><updated>2016-02-27T14:05:52.554+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="forever"/><category scheme="http://www.blogger.com/atom/ns#" term="HAP-nodeJS"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="homebridge"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="node.js"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="Siri"/><category scheme="http://www.blogger.com/atom/ns#" term="SiriProxy"/><category scheme="http://www.blogger.com/atom/ns#" term="自動起動"/><category scheme="http://www.blogger.com/atom/ns#" term="音声認識"/><title type='text'>HomeBridge改めHAP-nodeJSと接続してsiriで家をコントロール　その4</title><content type='html'>Siriとの会話に疲れてきたので、現状のコードを整理してGitHubに上げました。&lt;br /&gt;
とりあえずdemoModeに設定してあるので単独で動いて同じネットワーク上のiPhoneから繋がります。&lt;br /&gt;
demoModeではコントロールサーバーにコマンドを投げる所をconsole.logの出力だけ、statusなどを受ける所をダミーデータに置き換えています。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://github.com/mnakada/HA1HomeBridge.git&quot;&gt;https://github.com/mnakada/HA1HomeBridge.git&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
動作確認済み環境&lt;br /&gt;
　MacBookPro OS-X El Capitan 10.11.3&lt;br /&gt;
　RaspberryPi2 RASPBIAN JESSIE LITE kernel 4.1.17&lt;br /&gt;
　node.js v4.3.1はnodejs.orgからinstall&lt;br /&gt;
　多分v5系でも動くと思います(未確認)。&lt;br /&gt;
&lt;br /&gt;
iPhone側の環境は&lt;br /&gt;
　iPhone6S iOS9.3beta4&lt;br /&gt;
&amp;nbsp; &amp;nbsp;(beta3以前の場合、package.sonファイルのhap-nodejsのversion指定を0.2.4にすると動くかもしれません)&lt;br /&gt;
　HomeKitアプリはElgato Eve (App Storeでhomekitで検索すると出てきます)&lt;br /&gt;
&lt;br /&gt;
&amp;gt; git clone https://github.com/mnakada/HA1HomeBridge.git&lt;br /&gt;
&lt;div&gt;
で取得後、&lt;/div&gt;
&lt;div&gt;
&amp;gt; cd HA1HomeBridge&lt;/div&gt;
&lt;div&gt;
&amp;gt; nam install&lt;/div&gt;
&lt;div&gt;
&amp;gt; node .&lt;/div&gt;
&lt;div&gt;
でHomeKitのBridgeとして起動し、PINを表示します。&lt;/div&gt;
&lt;div&gt;
あとでこのPINの画面を取り込むのでそのままにしておきます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
iPhoneをWiFi接続にしてElgato Eveを起動&lt;/div&gt;
&lt;div&gt;
-&amp;gt; アクセサリを追加&lt;/div&gt;
&lt;div&gt;
-&amp;gt; 自動でホームの名前が入るので適当に修正して右上の次へ&lt;/div&gt;
&lt;div&gt;
-&amp;gt; アクセサリを選択でHA1HomeBridgeを選択&lt;/div&gt;
&lt;div&gt;
-&amp;gt; 真ん中のXXX-XX-XXXが囲われているところを選択&lt;/div&gt;
&lt;div&gt;
-&amp;gt; HomeKitアクセサリを追加のDialogでこのまま追加を選択&lt;/div&gt;
&lt;div&gt;
-&amp;gt; iPhoneのカメラで先ほどのPINの画面をキャプチャすると自動で接続してくれます。&lt;/div&gt;
&lt;div&gt;
(もしPINが読み込めないようでしたら、下の方にある手動で登録から登録します)&lt;/div&gt;
&lt;div&gt;
-&amp;gt; 部屋を選択は後で設定できるので取り敢えず次へ&lt;/div&gt;
&lt;div&gt;
-&amp;gt; 追加済みのアクセサリで完了&lt;/div&gt;
&lt;div&gt;
-&amp;gt; ホーム(デフォルトの部屋)を選択するとコントロール画面にたどり着きます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
この状態でアプリからスイッチなどをいじってnode.js側にそれらしいコマンドの表示が出ていれば正常につながっています。&lt;br /&gt;
&lt;br /&gt;
siriで使えるコマンドはclient.uiファイル内でsiriNameのarrayで記述されているものになります。&lt;br /&gt;
ここのsiriNameで記述されているものがEveのコントロール画面の項目名として見えていて、siriへの指示はこの項目名に対して指示を出します。&lt;br /&gt;
例えば&lt;br /&gt;
「玄関の鍵を開けて・閉めて」「風呂のお湯を入れて・止めて」「南側のエアコンを一八度に設定して」「ダウンライトを点けて・消して」「リビングの湿度は？」「寝室の温度は？」&lt;br /&gt;
などが動いています。&lt;br /&gt;
現状、わかっている問題点は&lt;br /&gt;
1．「南側の窓を開けて」は「100%に設定しました」と答えて動くけど「南側の窓を閉めて」も「100%に設定しました」といわれて窓が開いてしまう&lt;br /&gt;
シャッター、ブラインドも同様&lt;br /&gt;
2.エアコンの温度は設定できるけど、暖房、冷房のモード切替が出来ない、エアコンをoff出来ない&lt;br /&gt;
3.「NHKをつけて」はWebの’NHKをつけて’を検索に行ってしまう&lt;br /&gt;
と言った感じです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/985383623328422959/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/02/homebridgehap-nodejssiri4.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/985383623328422959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/985383623328422959'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/02/homebridgehap-nodejssiri4.html' title='HomeBridge改めHAP-nodeJSと接続してsiriで家をコントロール　その4'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-6698493660846446524</id><published>2016-02-27T00:25:00.000+09:00</published><updated>2016-02-27T00:25:14.819+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="forever"/><category scheme="http://www.blogger.com/atom/ns#" term="HAP-nodeJS"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="homebridge"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="node.js"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="Siri"/><category scheme="http://www.blogger.com/atom/ns#" term="SiriProxy"/><category scheme="http://www.blogger.com/atom/ns#" term="Yosemite"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><category scheme="http://www.blogger.com/atom/ns#" term="音声認識"/><title type='text'>HomeBridge改めHAP-nodeJSと接続してsiriで家をコントロール　その3</title><content type='html'>コントロールサーバーの動いているRaspberryPi2の上にhomebridgeを動かして、pluginとしてコントロールサーバーと接続しようとしていたのですが、いろいろ実装していく内にhomebridgeの下のレイヤーであるHAP-nodeJSと直接繋ぎこんだ方が良さそうなことがわかってきて繋ぎ方を改めました。&lt;br /&gt;
ところが、実装を切り替えて試してみてもEveで初期設定まではうまくいくのですが、接続されたホームの中にAccessoryが何もない状態になってしまいます。&lt;br /&gt;
そんなこんなをしている内にHomeBridgeとの接続も同じ状態になってしまい訳がわからなくなってしまいました。&lt;br /&gt;
2日ほどわからない状態だったのですが、色々と試している内に最初に試していたdirectoryのイメージを起動するとちゃんと繋がることに気が付きました。&lt;br /&gt;
差分を切り分けるために実験していくとHAP-nodeJSのVersionが0.2.4以前ならちゃんと繋がることが分かりました。&lt;br /&gt;
どうも0.2.5でHomeKitの最新のプロトコルにupdateされていたようで、自分のiPhoneがiOS9.3beta3だったため繋がらなかったようです。&lt;br /&gt;
iOS9.3beta4にupdateして、HAP-nodeJSも0.2.5にしたら無事に繋がるようになりました。&lt;br /&gt;
このdebugの過程でdebug情報を色々出していたのですが、何故かAppleTVとの通信をしているlogが残っていました。&lt;br /&gt;
AppleのHomeKitのページをよく読むと、うちにある第3世代のAppleTVだとHomeKitの外からのアクセスを中継してくれるようです。&lt;br /&gt;
AppleTVのiCloudの設定を再度し直して、LTE回線からiPhoneでEveを起動してみるとちゃんと繋がり、コントロールもできています。&lt;br /&gt;
LTE回線経由でもsiriでのコントロールもちゃんとできました。&lt;br /&gt;
なかなかいい感じです。&lt;br /&gt;
&lt;br /&gt;
siriとの会話の方は相変わらず実験中で、まだエアコンとシャッター、電動窓、TVはNHKがうまくコントロールできていません。&lt;br /&gt;
エアコンは温度設定はできるのですが、暖房、冷房を指定することが出来ません。&lt;br /&gt;
エアコンを切ることも出来ていません。&lt;br /&gt;
シャッター、電動窓は開くことは出来ても閉じることが出来ません。&lt;br /&gt;
「シャッターを開けて」で「100％に設定しました」と言われてシャッターが開きますが、「シャッターを閉めて」でも「100％に設定しました』と言われてしまいます。これはsiriのbugのような気がします。&lt;br /&gt;
「NHKをつけて」はNHKをつけてをwebで検索されてしまいます。&lt;br /&gt;
もう少し会話の練習が続きそうです。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/6698493660846446524/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/02/homebridgehap-nodejssiri3.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/6698493660846446524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/6698493660846446524'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/02/homebridgehap-nodejssiri3.html' title='HomeBridge改めHAP-nodeJSと接続してsiriで家をコントロール　その3'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-3377894401088833935</id><published>2016-02-19T23:36:00.000+09:00</published><updated>2016-02-26T23:56:43.053+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HAP-nodeJS"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="homebridge"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="node.js"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="Siri"/><category scheme="http://www.blogger.com/atom/ns#" term="SiriProxy"/><category scheme="http://www.blogger.com/atom/ns#" term="自動起動"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><category scheme="http://www.blogger.com/atom/ns#" term="音声認識"/><title type='text'>homebridgeと接続してsiriで家をコントロール　その2</title><content type='html'>homebridgeを使って自宅システムをsiriでコントロール出来るようにするために色々と試しています。&lt;br /&gt;
とりあえずざっくりとしたつなぎ込みは出来て、eveというhomekit対応のアプリで接続できるようになりました。&lt;br /&gt;
&lt;br /&gt;
ステータスを取得する方は結構つながってきました。&lt;br /&gt;
&lt;br /&gt;
「リビングの湿度は？」『34%に設定されています』ちょっと日本語が変ですが値は返ってきます。&lt;br /&gt;
「寝室の湿度は？」『56％にせっていされています』こちらも日本語がおかしいですが値は返ってきます。&lt;br /&gt;
「2階の温度は？」『4.7度から17．6度です』これは全ての温度デバイスの値を読み込んで範囲を回答してます。&lt;br /&gt;
「1階の温度は？」-&amp;gt;「外の温度は」(文字が勝手に外に置き換わる) -&amp;gt; 自宅周辺の天気予報から温度を答えてくる&lt;br /&gt;
「外の気温は？」　-&amp;gt; 同じく自宅周辺の天気予報から回答&lt;br /&gt;
&lt;br /&gt;
制御の方もなんとなく動いてきてます。&lt;br /&gt;
「リビングの床暖房をつけて」『デバイスからの応答がありません』eveからは制御できています。&lt;br /&gt;
「ダイニングの床暖房をつけて」『デバイスからの応答がありません』こちらもeveからは制御できています。&lt;br /&gt;
「風呂のお湯を入れて」-&amp;gt; OK&lt;br /&gt;
「冷暖房の自動運転を入れて」-&amp;gt; OK&lt;br /&gt;
「テレビを消して」『私には無理です』&lt;br /&gt;
「テレビをオフして」-&amp;gt;OK&lt;br /&gt;
「NHKをつけて」-&amp;gt;WebからNHKをつけてに関する情報を表示&lt;br /&gt;
「日本テレビをつけて」『よくわかりません』&lt;br /&gt;
「Eテレをつけて」-&amp;gt;OK&lt;br /&gt;
「日テレをつけて」-&amp;gt;OK&lt;br /&gt;
「TBSをつけて」-&amp;gt;OK&lt;br /&gt;
「テレビ東京をつけて」-&amp;gt;OK&lt;br /&gt;
「テレビ朝日をつけて」-&amp;gt;OK&lt;br /&gt;
「テレ朝をつけて」-&amp;gt;OK&lt;br /&gt;
「フジテレビをつけて」-&amp;gt;OK&lt;br /&gt;
「テーブル照明をつけて・消して」-&amp;gt;OK&lt;br /&gt;
「スポット照明をつけて・消して」-&amp;gt;OK&lt;br /&gt;
「間接照明をつけて・消して」-&amp;gt;OK&lt;br /&gt;
「ダウンライトをつけて・消して」-&amp;gt;OK&lt;br /&gt;
「カウンター照明をつけて・消して」-&amp;gt;OK&lt;br /&gt;
「南側のエアコンを18度にして」-&amp;gt;OK&lt;br /&gt;
「南側のエアコンを消して」『デバイスからの応答が有りませんでした』&lt;br /&gt;
「西側のエアコンを20度にして」「西川のエアコンを20度にして」(勝手に変換される)『私には出来ません』&lt;br /&gt;
「西川のエアコン」も登録するとOK&lt;br /&gt;
&lt;br /&gt;
なかなか難しいです。&lt;br /&gt;
『デバイスからの応答が有りません』系は何かプログラムに問題がある気がするのでもう少し検討ですね。&lt;br /&gt;
他の勝手に違う単語に置き換えられる系はその単語も登録してしまう作戦で行くことにします。&lt;br /&gt;
もう少しSiriとの会話？戦い？は続きそうです。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/3377894401088833935/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/02/homebridgesiri2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3377894401088833935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3377894401088833935'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/02/homebridgesiri2.html' title='homebridgeと接続してsiriで家をコントロール　その2'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-1191811334376357037</id><published>2016-01-30T23:39:00.000+09:00</published><updated>2016-02-26T23:56:25.155+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="HAP-nodeJS"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="homebridge"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeKit"/><category scheme="http://www.blogger.com/atom/ns#" term="node.js"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="Siri"/><category scheme="http://www.blogger.com/atom/ns#" term="SiriProxy"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><category scheme="http://www.blogger.com/atom/ns#" term="音声認識"/><title type='text'>homebridgeと接続してsiriで家をコントロール</title><content type='html'>最近homebridgeというopen sourceのHomeKitのブリッジソフトが流行っているようなので、自宅のシステムと仮接続してみました。&lt;br /&gt;
とりあえず、まだTVのon/offだけですが動作させることが出来ました。&lt;br /&gt;
ただ、siriがどんなコマンドを受け付けてくれてサービスをどう登録するのかがよく判りません。&lt;br /&gt;
「テレビをonして」「テレビをoffして」は動きますが「テレビをつけて」はダメでした。&lt;br /&gt;
放送局とかを指定したりボリュームをコントロールするには何と言えばいいんですかね？&lt;br /&gt;
&lt;br /&gt;
とりあえず、呼び出される関数の中でhomebridge.hap.Serviceをdumpすることで&lt;br /&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AccessoryInformation: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; AirQualitySensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; BatteryService: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; BridgingState: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; CarbonDioxideSensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; CarbonMonoxideSensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; ContactSensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; Door: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; Fan: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; GarageDoorOpener: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; HumiditySensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; LeakSensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; LightSensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; Lightbulb: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; LockManagement: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; LockMechanism: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; MotionSensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; OccupancySensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; Outlet: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; SecuritySystem: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; SmokeSensor: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; StatefulProgrammableSwitch: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; StatelessProgrammableSwitch: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; Switch: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; TemperatureSensor: [Circular],&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; Thermostat: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; Window: { [Function] super_: [Circular] },&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #00fbb2; font-family: &#39;Courier New&#39;; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; WindowCovering: { [Function] super_: [Circular] } } }&lt;/div&gt;
&lt;div&gt;
といったサービスの種類があることは分かりました。&lt;/div&gt;
&lt;div&gt;
現状はSwitchにTVのon/offを接続しているだけなのですが、少しずつ他のWindowとかDoorやLightあたりを掘っていってみようかと考えています。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/1191811334376357037/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/01/home-bridgesiri.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/1191811334376357037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/1191811334376357037'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/01/home-bridgesiri.html' title='homebridgeと接続してsiriで家をコントロール'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-298728390667399148</id><published>2016-01-15T22:46:00.000+09:00</published><updated>2016-01-15T22:46:56.066+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="Virical Brind"/><category scheme="http://www.blogger.com/atom/ns#" term="バーチカルブラインド"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="電動化"/><title type='text'>バーチカルブラインドの電動化その後</title><content type='html'>&lt;a href=&quot;http://flying-engineer.blogspot.jp/2015/07/blog-post_10.html&quot;&gt;以前電動化したバーチカルブラインド&lt;/a&gt;ですが、やはりちょっとモーターの出力に対して負荷が重いようで、たまにきちんと閉まらなかったりしてました。&lt;br /&gt;
&lt;br /&gt;
現在使っているモーターはSWITCHSCHIENCEさんで売っている&lt;a href=&quot;https://www.switch-science.com/catalog/1784/&quot;&gt;Pololuの75:1ギアドモーター&lt;/a&gt;なのですがギア比をもう少し高くして低速化することでトルクを確保しようかと検討してみました。&lt;br /&gt;
&lt;br /&gt;
たまたま立ち寄った千石電商で&lt;a href=&quot;http://daisen-netstore.com/shopdetail/000000000101/Motor-Wheel/page2/brandname/&quot;&gt;ダイセン電子工業の132:1ギアドモーター&lt;/a&gt;が置いてあったのですが3.3V品でパワーがあまり出なさそう。&lt;br /&gt;
しかもPololuのモーターでエンコーダーを取り付けている後ろ側のシャフトが出ていません。&lt;br /&gt;
ただ、ギア部分の寸法が同じなのでうまく組み替えてPololuのモーターを132:1に出来るかもしれないと買ってみました。&lt;br /&gt;
&lt;br /&gt;
ギアボックス部のネジ2本をはずして取り外して見てみたところ軸に付いているギアの歯数が違うので圧入されているギアも一度外して組み替える必要がありました。&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTrbBW_BKU8qmVBiISBHjNvvHRSGO9snqbKK12gzvgktfTYNhn5_zC36OV3ogniIpPGmi74mGkUPZz40Sijh1iEDTquhcveId9NPs6ooL4j_RDdzOQfBSzp4GScw8G34rgDSrIUt-2mvb5/s1600/IMG_5925.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;/a&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP7t6pcvcoXgABeuhc9NOwMkU-jWRczE_ovQ-k-dPZE1R4MEB8dGV2xJVjtLpbbxlK5SURITq0PnLh8EjE1vheYoVTFCE4UpSId7FMOsDgZ9222iFA2fsopRy1HYFygv8Uc2MxUHxBFulD/s320/IMG_5929.jpg&quot; width=&quot;320&quot; /&gt;&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTrbBW_BKU8qmVBiISBHjNvvHRSGO9snqbKK12gzvgktfTYNhn5_zC36OV3ogniIpPGmi74mGkUPZz40Sijh1iEDTquhcveId9NPs6ooL4j_RDdzOQfBSzp4GScw8G34rgDSrIUt-2mvb5/s320/IMG_5925.jpg&quot; width=&quot;320&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
なんとか外して組み替えてPololuのモーターに132:1のギアボックスを組み合わせ、取り付けてみました。&lt;br /&gt;
&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg008nnLquolnl0CvkIBXczt3HP4FMAs8513Uxo9-NHjPL1VaeUh9iAAYMbQVF6Mn9bYfst_6WP0ApixGYtYtbMt3JlkSzAIBvgbiPQa-syNPMLYX0OPhHhHpMjflVtwXv2lKPDRJpfXxjz/s320/IMG_6143.jpg&quot; width=&quot;320&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
これを組み付けて&lt;br /&gt;
&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNLzEf0ogaeWve_F71Cn4eMpIs7Qqn4KxBqETibmzEW9jtYmumpRsRPyARAjWLKMPlYzfeqLp6UZsp1tegbd4hmXcyM0X3O9-JaJlec8Mrd4weQWkjnuFpGtE5ac8Ygb0WUeJy9RdAg3cs/s320/IMG_5038.jpg&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNLzEf0ogaeWve_F71Cn4eMpIs7Qqn4KxBqETibmzEW9jtYmumpRsRPyARAjWLKMPlYzfeqLp6UZsp1tegbd4hmXcyM0X3O9-JaJlec8Mrd4weQWkjnuFpGtE5ac8Ygb0WUeJy9RdAg3cs/s1600/IMG_5038.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNLzEf0ogaeWve_F71Cn4eMpIs7Qqn4KxBqETibmzEW9jtYmumpRsRPyARAjWLKMPlYzfeqLp6UZsp1tegbd4hmXcyM0X3O9-JaJlec8Mrd4weQWkjnuFpGtE5ac8Ygb0WUeJy9RdAg3cs/s1600/IMG_5038.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRnjyzKJsPtOridqapAUd3y-4q6x9Ej57rsDGIFqNB-H0E1EWaD8aiuQ_TQKp_P6z2gKuLvpEFCc8Ua11v7aVgkKw2x9_Vqv5Nnx4l57Ll_-WAnrEriWuZHUO_L2EWKgqjr8TLBJI5LqH7/s320/IMG_5041.jpg&quot; width=&quot;320&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
取り付けます。&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNLzEf0ogaeWve_F71Cn4eMpIs7Qqn4KxBqETibmzEW9jtYmumpRsRPyARAjWLKMPlYzfeqLp6UZsp1tegbd4hmXcyM0X3O9-JaJlec8Mrd4weQWkjnuFpGtE5ac8Ygb0WUeJy9RdAg3cs/s1600/IMG_5038.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6BBkx23wU9W-A03ktU5CV5E_EQJFJD1-J0KqlWjU9U7LXMr4KkXTiYO9bVb55PMjSohgQbmNJ8GJ7gl63SJPufMYdoKX-FGWNAwkzrxaFlDUSQ8VpYDTuv0zottwbqMfTwwdvy5Z6h2vT/s320/IMG_5307.jpg&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNLzEf0ogaeWve_F71Cn4eMpIs7Qqn4KxBqETibmzEW9jtYmumpRsRPyARAjWLKMPlYzfeqLp6UZsp1tegbd4hmXcyM0X3O9-JaJlec8Mrd4weQWkjnuFpGtE5ac8Ygb0WUeJy9RdAg3cs/s1600/IMG_5038.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;/a&gt;&lt;br /&gt;
ちゃんと速度が半分くらいになって多少の負荷でもきちんと開閉出来るようになりました。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dzEw8qRGLWk0XXLKjJ31-8EayjtbFcsxTykWvOpAo5jcsW7aJlBrTLFmOVaT2TvFsPX-lDuxqvYACZjX0hV3Q&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dyCNtu5K823_f8t9xIrigEiabxTrxR6TJrTMFqmmvAOM0B4oVWfb1wdbp8ZJJfofOiI3lJwJqSmDsjxQ1irMQ&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/298728390667399148/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/01/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/298728390667399148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/298728390667399148'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/01/blog-post.html' title='バーチカルブラインドの電動化その後'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP7t6pcvcoXgABeuhc9NOwMkU-jWRczE_ovQ-k-dPZE1R4MEB8dGV2xJVjtLpbbxlK5SURITq0PnLh8EjE1vheYoVTFCE4UpSId7FMOsDgZ9222iFA2fsopRy1HYFygv8Uc2MxUHxBFulD/s72-c/IMG_5929.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-3811246552123169042</id><published>2016-01-04T22:51:00.001+09:00</published><updated>2016-01-04T22:51:48.828+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="forever"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="init.d"/><category scheme="http://www.blogger.com/atom/ns#" term="node.js"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="rc script"/><category scheme="http://www.blogger.com/atom/ns#" term="自動起動"/><category scheme="http://www.blogger.com/atom/ns#" term="起動スクリプト"/><title type='text'>node.js foreverをRaspberryPi起動時に自動起動するように設定する</title><content type='html'>node.jsをRaspberryPiでnvm管理下で使っていたのですが、サービスを常時動かしておこうとするとforever等で管理することになります。&lt;br /&gt;
ところが、foreverはinit.dに登録されているわけではないのでRaspberryPiを再起動すると自動で動いてくれません。&lt;br /&gt;
最初nvmを使ってnode.jsをinstallしていたのですが、nvmだと自分のアカウントのhomeの.nvmというディレクトリ以下に色々とinstallされてしまいシステムの起動スクリプトに記述するには気持ち悪い事になってしまいます。(まぁ、そこはそういうものだと割りきってしまっても良いのですが)&lt;br /&gt;
nvmは開発用の環境であって運用のための環境ではないということかと思います。&lt;br /&gt;
次に考えたのはapt-getでnode.jsをinstallすることですが、versionが0.10.29と古いため結局試行錯誤の末node.js自体はnodejs.orgのDOWNLOADSのLTSのv4.2.4を入れることにしました。&lt;br /&gt;
今回は/usr/local/にダウンロードしてきたイメージを展開して/usr/local/nodeにシンボリックリンクを張って運用しています。&lt;br /&gt;
ダウンロードの実体は/usr/local/node-v4.2.4-linux-armv7l/以下に展開されて、そこに/usr/local/nodeからシンボリックリンクされているという形です。&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ PATH=/usr/local/node/bin/:$PATH&lt;/span&gt;&lt;br /&gt;
とpathを通してから&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ npm install -g forever&lt;/span&gt;&lt;br /&gt;
でforverをinstallします。&lt;br /&gt;
これでnode, npm, foreverが準備出来たので、次に/etc/init.d/に起動スクリプトを用意します。&lt;br /&gt;
&lt;br /&gt;
以下の例は/etc/init.d/ha1observerという名前で/var/ha1/ha1observer.jsにパラメータを付けて起動するためのものです。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;-----&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;### BEGIN INIT INFO&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Provides: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ha1observer.js&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Required-Start: &amp;nbsp; &amp;nbsp;$network $syslog&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Required-Stop: &amp;nbsp; &amp;nbsp; $network $syslog&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Default-Start: &amp;nbsp; &amp;nbsp; 2 3 4 5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Default-Stop: &amp;nbsp; &amp;nbsp; &amp;nbsp;0 1 6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Short-Description: forever running ha1observer.js&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;### END INIT INFO&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;USER=ha1observer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;SCRIPT=/var/ha1/EventValidate.js&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;PIDFILE=/var/run/ha1observer.pid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;LOGFILE=/var/ha1/ha1observer.log&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;PATH=/usr/local/node/bin:$PATH&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;FOREVER=/usr/local/node/bin/forever&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;NODE=/usr/local/node/bin/node&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;NODEAPP=/var/ha1/HA1Observer/ha1observer.js&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;start() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; $FOREVER start --pidFile $PIDFILE -l $LOGFILE -a -d -c &quot;$NODE $NODEAPP -u $USER -f $SCRIPT&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; RETVAL=$?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;restart() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; $FOREVER restart $NODEAPP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; RETVAL=$?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;stop() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; $FOREVER stop $NODEAPP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; RETVAL=$?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;status() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; $FOREVER list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; RETVAL=$?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;case &quot;$1&quot; in&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; start)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; start&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; stop)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; stop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; status)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; status&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; restart)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; restart&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; *)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; echo &quot;Usage: &amp;nbsp;{start|stop|status|restart}&quot; &amp;gt;&amp;amp;2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; exit 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;esac&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;exit $RETVAL&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;-----&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
ha1observer.jsは起動後に-uで渡されたユーザーにprocess.setuid()で切り替えて実行されます。&lt;br /&gt;
init.dからはrootで実行されるのでsetuidしないと色々と危険です。&lt;br /&gt;
これを準備したあと&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ update-rc.d ha1observer defaults 3 1&lt;/span&gt;&lt;br /&gt;
を実行することでrc?.dにシンボリックリンクが張られます。&lt;br /&gt;
再起動して&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ ps aux | grep ha1observer&lt;/span&gt;&lt;br /&gt;
で確認するときちんと実行されていることが分かります。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/3811246552123169042/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2016/01/nodejs-foreverraspberrypi.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3811246552123169042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3811246552123169042'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2016/01/nodejs-foreverraspberrypi.html' title='node.js foreverをRaspberryPi起動時に自動起動するように設定する'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-3179982353226625136</id><published>2015-12-11T21:58:00.000+09:00</published><updated>2015-12-11T21:58:35.205+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="Yosemite"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><title type='text'>KiCad 4.0.1 (bzr6195)</title><content type='html'>KiCadが立て続けに更新されてます。&lt;br /&gt;
&lt;br /&gt;
KiCad 4.0.1をbuildしたイメージを&lt;a href=&quot;https://drive.google.com/file/d/0B5LhqdaY_M_BbUR0SFFpendsSTg/view?usp=sharing&quot;&gt;ここ&lt;/a&gt;においておきます。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;標準のbuildとは下記の点が異なっています。&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;- TrackPad/MagicMouseの動作をMacの標準的な動作に変更しています&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;- Library/Application Support/kicad/internat/ja/のリソースを読むように修正しています&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;- fontが日本語対応になっています&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;変更分のpatchは&lt;a href=&quot;https://drive.google.com/file/d/0B5LhqdaY_M_BQjNXd0tSb0p2b2M/view?usp=sharing&quot;&gt;これ&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;イメージをダウンロードして開くとkicadアプリケーションとkicadディレクトリがあります。&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;kicad.appは/Applications&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;kicadは/Library/Application\ Support&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;にそれぞれコピーします。(finderで開いた時の矢印のとおりにDrag&amp;amp;Dropして下さい)&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;最初の１回めは開発元が未確認のため開けませんと言われてしまうので、/Applicationフォルダを開いてKiCadを右クリックし「開く」を選択して、ダイアログボックスの「開く」を選択すると起動します。&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;br style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;詳細とbuildの手順はRC2.0の時に書いたので&lt;/span&gt;&lt;a href=&quot;http://flying-engineer.blogspot.jp/2015/11/kicad40rc2.html&quot; style=&quot;color: #6699cc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; text-decoration: none;&quot;&gt;こちら&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px;&quot;&gt;を参照して下さい。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/3179982353226625136/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/12/kicad-401-bzr6195.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3179982353226625136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3179982353226625136'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/12/kicad-401-bzr6195.html' title='KiCad 4.0.1 (bzr6195)'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-3616867074040784331</id><published>2015-12-08T22:04:00.000+09:00</published><updated>2015-12-08T22:05:30.474+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="Yosemite"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><title type='text'>KiCad4.0.0 (bzr6194)</title><content type='html'>KiCad4.0 stable releaseが出ました。&lt;br /&gt;
buildしたのでイメージを&lt;a href=&quot;https://drive.google.com/open?id=0B5LhqdaY_M_BVXpoQWdvMHkzajA&quot;&gt;ここ&lt;/a&gt;に置いておきます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
標準のbuildとは下記の点が異なっています。&lt;br /&gt;
- TrackPad/MagicMouseの動作をMacの標準的な動作に変更しています&lt;br /&gt;
- Library/Application Support/kicad/internat/ja/のリソースを読むように修正しています&lt;br /&gt;
- fontが日本語対応になっています&lt;br /&gt;
&lt;br /&gt;
イメージをダウンロードして開くとkicadアプリケーションとkicadディレクトリがあります。&lt;br /&gt;
kicad.appは/Applications&lt;br /&gt;
kicadは/Library/Application\ Support&lt;br /&gt;
にそれぞれコピーします。(finderで開いた時の矢印のとおりにDrag&amp;amp;Dropして下さい)&lt;br /&gt;
&lt;br /&gt;
最初の１回めは開発元が未確認のため開けませんと言われてしまうので、/Applicationフォルダを開いてKiCadを右クリックし「開く」を選択して、ダイアログボックスの「開く」を選択すると起動します。&lt;br /&gt;
&lt;br /&gt;
詳細とbuildの手順はRC2.0の時に書いたので&lt;a href=&quot;http://flying-engineer.blogspot.jp/2015/11/kicad40rc2.html&quot;&gt;こちら&lt;/a&gt;を参照して下さい。&lt;br /&gt;
&lt;br /&gt;
一つだけ、buildするのに引っかかった点を書いておきます。&lt;br /&gt;
brewでboostをいれているとpcbnewを起動した時にExceptionで落ちてしまうようです。&lt;br /&gt;
自分でbuildする場合はbuildする前にbrew uninstall boostでuninstallしておいて下さい。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/3616867074040784331/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/12/kicad400-bzr6194.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3616867074040784331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3616867074040784331'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/12/kicad400-bzr6194.html' title='KiCad4.0.0 (bzr6194)'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-6490641655154104966</id><published>2015-11-27T22:32:00.001+09:00</published><updated>2015-11-27T22:32:56.256+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="電動化"/><title type='text'>スマートロック</title><content type='html'>ちょっと頼まれて普通の鍵の玄関を電気錠化して遠隔制御を出来るようにしてみました。&lt;br /&gt;
自宅は建てた時から電気錠だったのでHA端子接続で簡単につなげられていたため、これまで普通の鍵を置き換える検討をしてませんでした。&lt;br /&gt;
&lt;br /&gt;
今回鍵の電気錠化の部分は㈱ユーシン・ショウワの&lt;a href=&quot;http://www.u-shin-showa.co.jp/products/reborn2.html&quot;&gt;リ・ボーンII&lt;/a&gt;を使います。&lt;br /&gt;
&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOqYIb8mkc5yUOyIWjc5VcDmSJx4Wc33n0zqYBobhYwGmGHpqx3POdQC0Q8mnM1Yfk0yHZKoDWPiesQlv4-wzbXjhkywpg8HCLhab3ndPV4w_4hHMsCsfA1uEL70BMm4ENk_SGdwOm_6Fl/s320/IMG_5776.jpg&quot; width=&quot;320&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
最初はAkerunとかQrioSmartLockとかも検討したのですが、どちらもBluetooth接続で暗号化されているのと鍵という性質上セキュリティが厳しくHack出来ないと考え別のものを探してみました。&lt;br /&gt;
リ・ボーンIIは玄関のサムターン部分を外して代わりにつけるタイプで、AkerunやQrioSmartLockと比べて面倒ですが、リモコンキーで制御なのでリモコンキーのボタンを制御できればどうとでもなるはずと考えて、とりあえず入手して検討します。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
蓋をあけるとDIP-SWがあります。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
今回はAutoLockはこちらで制御するので単純にopen/closeのリモコンでの制御通りに動くモードに設定します。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuzK_IgNP2jvmL2TnmKjqQ2g5heQ3GDT-_dLaZAFspS5cX8XBFFjwWZiIX4_WlJ2EYpABY34iy8G0ran64J9SBYjLkdq1cP9rpIsXhg-fl56Q9Q76JMkh9VCQOzappnUGGKTLPLBjYWold/s320/IMG_5775.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZYxNPFNXCJeIqREoYLT7uiT61KmSOtnpjLqGvnUo0hx47VqsWfdNregO981NwbedkEnj6lKCIR6ea7YF8sZF17_ZnORP2taaVkNmawcoTmLPhNti7auigxc6kB0nskq0CfwUcfIFH2xbf/s320/IMG_5767.jpg&quot; width=&quot;240&quot; /&gt;&lt;br /&gt;
まず、リモコンキーをバラして確認していきます。&lt;br /&gt;
&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiINVNllLnyfEQGMfsPH8zPZeNO6laacCTWtRNSpHBkbR2DoMLRvc1swUSGEe-v-Wmn_uwqkmc03l091tIHdIX-GwN1MAhsSrRz-eTDTk0i3b3mHU-gn5jN6eLOYgQgd2cM0FC0j8Cbo2yR/s320/IMG_5771.jpg&quot; width=&quot;240&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
CR2032電池なので公証3Vですが回路は電池の初期電圧とかも当然対応しているので3.3Vでも大丈夫でしょう。&lt;br /&gt;
&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhStmKEl1yQlwTzhg7Bfr0nRlYNO94xX7y4oiIbG7pafFNndbeDezUuhUF6XJOsARKjbKv4a5ds6Vo6U0bZUZ_pZdiHSeo9vMpSuEclgHFP653WttGqu5xZSthYYS64-v7w2TEONx-SoG0l/s320/IMG_5773.jpg&quot; width=&quot;240&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
open/closeのpush-swがあって、片方の端子がGNDにつながっています。もう片方がpull-upされているようで、sw-offで3V,sw-onでGNDになります。&lt;br /&gt;
なので、ここをコントロールすれば鍵を制御できます。&lt;br /&gt;
&lt;br /&gt;
改造に邪魔なので電池ホルダーをはずして、制御モジュールのコネクタと配線を繋いでいきます。&lt;br /&gt;
電源の3.3V,GNDの線とFET-SWの線をopen,closeのpush-swのpull-up側に接続します。&lt;br /&gt;
これで鍵自体は制御できました。&lt;br /&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUBcl3c6nUf0fj0pyiOXNBeMewg6v_FL6yb7WL3W0Sx3Os8znluNXM3INmwthC7Uk0MrAeLCzxY6EBn_v5AVGM0zDX7mjLvbPh_kAmqVoGqfEgg5dCxDQNy3Ufs0wf3tjpN3hycIK2Us-D/s320/IMG_5774.jpg&quot; width=&quot;240&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
これにドアが開いているかを検知するセンサーと内側からドアを開けたい場合に押すスイッチを追加して完成です。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNa5LglU7Pl6YwpsmlgQidLKU9Gtzl_Jf6MkbJlujczo25CLzE2e08k3lW3hElVMXmtPAXnUytPXJxeTAbi3_S5JMpt1YuJ6ozRF34CNTcD8w0S5FhrqOfVqxN60tzWwRv7VD3MX67jJAe/s320/IMG_5823.jpg&quot; width=&quot;240&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/6490641655154104966/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/11/blog-post_27.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/6490641655154104966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/6490641655154104966'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/11/blog-post_27.html' title='スマートロック'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOqYIb8mkc5yUOyIWjc5VcDmSJx4Wc33n0zqYBobhYwGmGHpqx3POdQC0Q8mnM1Yfk0yHZKoDWPiesQlv4-wzbXjhkywpg8HCLhab3ndPV4w_4hHMsCsfA1uEL70BMm4ENk_SGdwOm_6Fl/s72-c/IMG_5776.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-5297505365867264675</id><published>2015-11-20T22:57:00.000+09:00</published><updated>2015-11-20T22:57:10.716+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><title type='text'>車のバッテリーチェック</title><content type='html'>以前、車の室内灯を点けっぱなしで一週間おいてしまいバッテリーが上がってしまったことがありました。&lt;br /&gt;
室内灯のスイッチがPush-Pushのスイッチなので頭があたったか何かで点いてしまったのかもしれません。&lt;br /&gt;
そのときは近所の人にブースターケーブルで繋いでもらい暫く走ってなんとか復活したのですが、なんとかしないとまたやりそうなので対策を作ってみました。&lt;br /&gt;
回路は簡単でバッテリーの12VをDC-DCコンバータで3.3Vに落としてXBeeの電源とし、同じ12Vを33Kと2Kで分圧してXBeeのADCに入れています。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcPtxnxzL-l7Ag4WZGBHTAL51dEbwmij26iiNe6HDp0z-g5-KmkGT23OQxBQ-AidAj3GZelxRraLUi2izQEHBXOekxKc3jeTnTHre9PsWKyrdoNL66Ms1FkxpqxZo2JFcJLbT0Me-CwnG5/s1600/IMG_5786.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcPtxnxzL-l7Ag4WZGBHTAL51dEbwmij26iiNe6HDp0z-g5-KmkGT23OQxBQ-AidAj3GZelxRraLUi2izQEHBXOekxKc3jeTnTHre9PsWKyrdoNL66Ms1FkxpqxZo2JFcJLbT0Me-CwnG5/s320/IMG_5786.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
DC-DCを使ったのは12Vから3.3Vにレギュレータで落とすとちょと損失が大きくなるためです。&lt;br /&gt;
実測するとXBeeの送信時に10mA程度、sleep時には0.1mA程度で３０秒に１回500ms程度通信するので問題なさそうです。&lt;br /&gt;
サーバーのほうはXBeeが送ってくる電圧が12Vを切ったらメールするように設定したのでバッテリーが上る前に気がつけると思います。&lt;br /&gt;
&lt;br /&gt;
FRISKケースに入れて&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtZ9L9sNn9nFXNVWng07DMx8ufAn2bfRpfGo5m2PgLtA-X6IlgEA-cA4Sr7MhsBOYg6pA3EP9GABRJiJAkic5aI7PHkI1AellRHOaBq-zcmuIQyKwZ0GQLhTjM8Hst5-SY3ERX5hB6kQTB/s1600/IMG_5785.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtZ9L9sNn9nFXNVWng07DMx8ufAn2bfRpfGo5m2PgLtA-X6IlgEA-cA4Sr7MhsBOYg6pA3EP9GABRJiJAkic5aI7PHkI1AellRHOaBq-zcmuIQyKwZ0GQLhTjM8Hst5-SY3ERX5hB6kQTB/s320/IMG_5785.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;車の中のバッテリー電源に接続します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_eyKudEKHfJVeqfiUMPuCDoRrDwwSB4OyFXXsKGZWr3YWBrdP9qvV5HMVBdoGERJm1MiJZB-8XYE1dgjgwt3MkAxqmWQPQkKdncaqRhK4DdyPNDhr2l5v7cDm52RUtXaufPcaHhLJBEzT/s1600/IMG_5802.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_eyKudEKHfJVeqfiUMPuCDoRrDwwSB4OyFXXsKGZWr3YWBrdP9qvV5HMVBdoGERJm1MiJZB-8XYE1dgjgwt3MkAxqmWQPQkKdncaqRhK4DdyPNDhr2l5v7cDm52RUtXaufPcaHhLJBEzT/s320/IMG_5802.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
金属部品だらけなので電波が飛ぶか心配でしたが家のすぐ前なので大丈夫でした。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/5297505365867264675/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/11/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/5297505365867264675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/5297505365867264675'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/11/blog-post.html' title='車のバッテリーチェック'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcPtxnxzL-l7Ag4WZGBHTAL51dEbwmij26iiNe6HDp0z-g5-KmkGT23OQxBQ-AidAj3GZelxRraLUi2izQEHBXOekxKc3jeTnTHre9PsWKyrdoNL66Ms1FkxpqxZo2JFcJLbT0Me-CwnG5/s72-c/IMG_5786.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-3489339857549818926</id><published>2015-11-14T14:16:00.000+09:00</published><updated>2015-11-16T23:02:07.457+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><title type='text'>KiCad4.0RC2</title><content type='html'>KiCad4.0RC2が出ました。&lt;br /&gt;
buildしたのでイメージを&lt;a href=&quot;https://drive.google.com/file/d/0B5LhqdaY_M_Bd2NJclY5dHRSaGc/view?usp=sharing&quot; rel=&quot;nofollow&quot;&gt;KiCad4.0RC2.dmg&lt;/a&gt;に置いておきます。&lt;br /&gt;
&lt;br /&gt;
標準のbuildとは下記の点が異なっています。&lt;br /&gt;
- TrackPad/MagicMouseの動作をMacの標準的な動作に変更しています&lt;br /&gt;
- /Library/Application Support/kicad/internatが読まれてないので検索パスを追加しています&lt;br /&gt;
- fontを日本語対応のものに差し替えています&lt;br /&gt;
&lt;br /&gt;
イメージをダウンロードして開くとkicadアプリケーションとkicadディレクトリがあります。&lt;br /&gt;
kicad.appは/Applications&lt;br /&gt;
kicadは/Library/Application\ Support&lt;br /&gt;
にそれぞれコピーします。&lt;br /&gt;
(finderで開いた時の矢印のとおりにDrag&amp;amp;Dropして下さい)&lt;br /&gt;
&lt;br /&gt;
最初の１回めは開発元が未確認のため開けませんと言われてしまうので、/Applicationフォルダを開いてKiCadを右クリックし「開く」を選択して、ダイアログボックスの「開く」を選択すると起動します。&lt;br /&gt;
&lt;br /&gt;
変更の詳細とbuildの手順を以下のとおりです。&lt;br /&gt;
今回はKiCadのbuildよりもOS X El Capitanに入れ替えた影響で色々とはまってしまいました。&lt;br /&gt;
&lt;br /&gt;
変更内容はRC1の時にも書きましたが、もう一度書いておきます。&lt;br /&gt;
&lt;br /&gt;
build済みはNightlyBuildが&lt;a href=&quot;http://downloads.kicad-pcb.org/osx/&quot;&gt;http://downloads.kicad-pcb.org/osx/&lt;/a&gt;にありますが、TrackPad/MagicMouseの使い勝手がMacの標準的な使い方とあっていません。&lt;br /&gt;
具体的にはTrackPadならピンチで拡大・縮小、２本指の操作で指を動かす方向にスクロール、MagicMaouseなら１本指で指を動かした方向にスクロールというのが標準的な使い方かと思います。（人によっては異論があるかもしれませんが、私はこれに慣れてしまっています）&lt;br /&gt;
NightlyBuildの方はTrackPadのピンチは効かず、２本指の操作で拡大／縮小、MagicMouseの１本指の操作も拡大／縮小になっています。&lt;br /&gt;
これはWindowsマウスのホイール動作に拡大／縮小が割り当てられているためと思われますが、クリック感があり上下にしか動かないホイールの動作とTrackPad/MagicMouseの360°操作では使い勝手が大きく違って、何をするにも画面が大きく拡大／縮小されてしまって使い物になりません。&lt;br /&gt;
仕方がないので自分でbuildします。&lt;br /&gt;
&lt;br /&gt;
幸いなことに、この件に関するpatchがKiCadの中に既に含まれていて必要なpatchを当ててbuildしてくれるscriptが用意されています。&lt;br /&gt;
以前~gcorral/kicad/osx-trackpad-gesturesというbranchで進んでいたOSXのtrackpad対応が入っているようです。&lt;br /&gt;
これでbuildしてみて実行してみましたが、どうも以前のようにうまく行きません。&lt;br /&gt;
TrackPadのピンチで拡大／縮小が出来るようになっているのですが、２本指での操作でも拡大／縮小になってしまいます。MagicMouseの方も同様です。&lt;br /&gt;
osx-trackpad-gesturesと4.0のツリーを比較してみると関係ありそうな所が数箇所あったので修正してみました。&lt;br /&gt;
後々の為にpatchにしておきます。（あとでbuildの詳細でやり方を説明します）&lt;br /&gt;
これでbuildすると、当初の目論見どおり２本指の操作でスクロール、MagicMouseでもスクロールに出来ました。&lt;br /&gt;
さらに基板に日本語でシルクを入れられるように日本語フォント対応も追加します。&lt;br /&gt;
Windows環境が必要ですが、ここの手順どおりで日本語フォントを含んだnewstroke_font.cppを作成出来ます。&lt;br /&gt;
　&lt;a href=&quot;http://wiki.kicad.jp/%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%B8%E6%89%8B%E9%A0%86&quot;&gt;http://wiki.kicad.jp/日本語フォントのマージ手順&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ここまででひと通り準備が整ったので、以下buildの詳細手順です。&lt;br /&gt;
&lt;br /&gt;
最初に面倒くさいところからやっていきます。&lt;br /&gt;
1.brewの対応のための/usr/local/の作成(これは既にbrewをinstallされてれば存在しているので不要です)&lt;br /&gt;
2.boostのbuildの対応のために/usr/libにsymbolic-linkを貼ります&lt;br /&gt;
こちらは/usr/libに幾つかdylibが存在しないためエラーになるための対応です。&lt;br /&gt;
&lt;br /&gt;
El Capitanの場合、通常は/usr以下はroot権限でも書込みできません。&lt;br /&gt;
そのため以下の手順で一旦書き込みできる状態にして、変更後に書き込みできない状態に戻します。&lt;br /&gt;
&lt;br /&gt;
⌘-Rを押しながら再起動してリカバリーモードに入ります。&lt;br /&gt;
ユーティリティのTerminalを起動し&lt;br /&gt;
# csrutil disable&lt;br /&gt;
を設定し再起動&lt;br /&gt;
# sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/*.dylib /usr/lib&lt;br /&gt;
でsymbolic linkを作成&lt;br /&gt;
もし/usr/local/を作ってない場合は作成します。&lt;br /&gt;
# sudo mkdir /usr/local&lt;br /&gt;
# sudo chown $(whoami):admin /usr/local&lt;br /&gt;
一応セキュリティリスクを減らすためにrootlessをenableに戻します。&lt;br /&gt;
再度⌘-Rを押しながら再起動し&lt;br /&gt;
Terminalで&lt;br /&gt;
# csrutil enable&lt;br /&gt;
にもどして再起動&lt;br /&gt;
&lt;br /&gt;
以下はXcodeとCommandLineTools、brewが入っている前提で書きますので無い場合は入れて下さい。&lt;br /&gt;
&lt;br /&gt;
まずはbrewを最新の状態にして必要な物をinstallします。&lt;br /&gt;
# brew update&lt;br /&gt;
# brew upgrade&lt;br /&gt;
# brew install cmake bzr glew cairo swig openssl&lt;br /&gt;
&lt;br /&gt;
bzrに自分の名前とメールアドレスを設定します。&lt;br /&gt;
# bzr whoami &#39;自分の名前 &amp;lt;name@example.net&amp;gt;&#39;&lt;br /&gt;
&lt;br /&gt;
適当なところにKiCad build用のdirectoryを掘ります。&lt;br /&gt;
# mkdir KiCad4.0&lt;br /&gt;
# cd KiCad4.0&lt;br /&gt;
&lt;br /&gt;
KiCad 4.0のソースコード入手&lt;br /&gt;
# bzr branch lp:kicad/4.0&lt;br /&gt;
&lt;br /&gt;
wxPythonソースコード入手&lt;br /&gt;
http://www.wxpython.org/download.php#source&lt;br /&gt;
から下の方にあるwxPython-srcのlinkをたどってtar-ballを取得し先ほどのdirectoryに移動し展開します。ブラウザで辿ってもいいですが下記で取得できます。&lt;br /&gt;
# curl -O http://jaist.dl.sourceforge.net/project/wxpython/wxPython/3.0.2.0/wxPython-src-3.0.2.0.tar.bz2&lt;br /&gt;
# tar xjvf wxPython-src-3.0.2.0.tar.bz2&lt;br /&gt;
&lt;br /&gt;
展開されたdirectory名を変更しておきます。&lt;br /&gt;
# mv wxPython-src-3.0.2.0 wx-src&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://drive.google.com/file/d/0B5LhqdaY_M_BUVFZLVdBdVZ4eWc/view?usp=sharing&quot; rel=&quot;nofollow&quot;&gt;kicad4.0rc2_macosx_patch.tgz&lt;/a&gt;をダウンロードして先ほどのdirectoryに移動し展開します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
kicad_macosx_scroll.patch&lt;br /&gt;
kicad_macosx_internat.patch&lt;br /&gt;
newstroke_font.cpp_j&lt;br /&gt;
の３のつのファイルができます。&lt;br /&gt;
&lt;br /&gt;
TrackPad、MagicMouseのスクロール対応とEl Capitan対応&lt;br /&gt;
# cd 4.0&lt;br /&gt;
# patch -p0 &amp;lt; ../kicad_maxosx_scroll.patch&lt;br /&gt;
&lt;br /&gt;
このpatchで&lt;br /&gt;
common/draw_panel.cpp&lt;br /&gt;
common/view/wx_view_controls.cpp&lt;br /&gt;
scripts/osx_build_wx.sh&lt;br /&gt;
の３つのファイルを修正しています。&lt;br /&gt;
&lt;br /&gt;
/Library/Application Support/kicad/internatのパスを検索していないようなので修正&lt;br /&gt;
# patch -p0 &amp;lt; ../kicad_macosx_internat.patch&lt;br /&gt;
&lt;br /&gt;
このpatchで&lt;br /&gt;
common/pgm_base.cpp&lt;br /&gt;
のファイルを修正しています。&lt;br /&gt;
&lt;br /&gt;
日本語フォント対応&lt;br /&gt;
# cp ../newstroke_font.cpp_j common/newstroke_font.cpp&lt;br /&gt;
&lt;br /&gt;
更になぜか私の環境ではbzr-svnで/Library/Python/2.6/site-packages/subvertpy/client.soを呼び出しているところでrpathが設定されておらず下のようなエラーが発生します。&lt;br /&gt;
&lt;br /&gt;
bzr: ERROR: Unable to import library &quot;subvertpy&quot;: bzr-svn: Unable to load subvertpy extensions: dlopen(/Library/Python/2.6/site-packages/subvertpy/client.so, 2): Library not loaded: @rpath/lib/libsvn_diff-1.0.dylib&lt;br /&gt;
&amp;nbsp; Referenced from: /usr/lib/libsvn_client-1.0.dylib&lt;br /&gt;
&amp;nbsp; Reason: image not found&lt;br /&gt;
&lt;br /&gt;
これは私の環境だけかもしれないのでエラーが出たら以下の対処をして下さい。&lt;br /&gt;
/Library/Python/2.6/site-packages/subvertpy/client.soに細工をします。&lt;br /&gt;
# cd /Library/Python/2.6/site-packages/subvertpy&lt;br /&gt;
戻せるようにbackupをとって&lt;br /&gt;
# sudo cp client.so client.so_org&lt;br /&gt;
client.soにrpathを/usrとして追加&lt;br /&gt;
# sudo install_name_tool -add_rpath /usr client.so&lt;br /&gt;
これでbzr-svnのエラーが出なくなります。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
次にwxPythonのbuildです。結構時間がかかります。&lt;br /&gt;
# sh scripts/osx_build_wx.sh ../wx-src ../wx-bin ./ 10.11 -j4&lt;br /&gt;
# cd ..&lt;br /&gt;
&lt;br /&gt;
kicad本体のbuild。こちらもかなり時間がかかります。&lt;br /&gt;
# mkdir build&lt;br /&gt;
# cd buld&lt;br /&gt;
# cmake ../4.0 \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DCMAKE_C_COMPILER=clang \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DCMAKE_CXX_COMPILER=clang++ \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DPYTHON_EXECUTABLE=`which python` \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DKICAD_SCRIPTING=ON \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DKICAD_SCRIPTING_MODULES=ON \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DKICAD_SCRIPTING_WXPYTHON=ON \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DwxWidgets_CONFIG_EXECUTABLE=../wx-bin/bin/wx-config \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DPYTHON_SITE_PACKAGE_PATH=`pwd`/../wx-bin/lib/python2.7/site-packages \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DCMAKE_INSTALL_PREFIX=../bin \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DUSE_IMAGES_IN_MENUS=ON \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -DCMAKE_BUILD_TYPE=Release&lt;br /&gt;
# make&lt;br /&gt;
# make install&lt;br /&gt;
# cd ..&lt;br /&gt;
&lt;br /&gt;
次にその他のリソースをNightlyBuildから持ってきて無理やりパッケージし直します。&lt;br /&gt;
&lt;a href=&quot;http://downloads.kicad-pcb.org/osx/&quot;&gt;http://downloads.kicad-pcb.org/osx/&lt;/a&gt;のRC2相当はkicad-r6303なのでこれをダウンロードしてマウントします。&lt;br /&gt;
&lt;br /&gt;
# curl -O http://downloads.kicad-pcb.org/osx/kicad-r6303.20151109-045453.dmg&lt;br /&gt;
&lt;br /&gt;
そのままではReadOnlyなのでRW出来るように変換します。&lt;br /&gt;
&lt;br /&gt;
# hdiutil convert kicad-r6303.20151109-045453.dmg -format UDSP -o kicad-r6303.sparseimage&lt;br /&gt;
# hdiutil attach kicad-r6303.sparseimage&lt;br /&gt;
&lt;br /&gt;
アプリケーション本体を置き換えるため大文字のKiCadディレクトリを削除します。&lt;br /&gt;
# rm -rf /Volumes/KiCad/Kicad&lt;br /&gt;
finder上の位置合わせをconsoleからできないのでfinderでbin/KiCad.appを開いているKiCad Volume上のKiCadディレクトリがあったところにコピーします。&lt;br /&gt;
&lt;br /&gt;
フォルダを開いたままの状態でdiskimageをdetachします。&lt;br /&gt;
# hdiutil detach /Volumes/KiCad&lt;br /&gt;
&lt;br /&gt;
イメージの未使用領域を開放します。&lt;br /&gt;
# hdiutil compact kicad-r6303.sparseimage&lt;br /&gt;
&lt;br /&gt;
最終的なReadOnly圧縮イメージに変換します。&lt;br /&gt;
# hdiutil convert kicad-r6303.sparseimage -format UDZO -o KiCad4.0RC2.dmg&lt;br /&gt;
&lt;br /&gt;
このイメージが一番上のほうに置いてあるイメージになります。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/3489339857549818926/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/11/kicad40rc2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3489339857549818926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/3489339857549818926'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/11/kicad40rc2.html' title='KiCad4.0RC2'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-261823000878640028</id><published>2015-11-07T22:06:00.001+09:00</published><updated>2015-11-07T22:06:31.420+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="elecrow"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP8266"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP_WROOM-02"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><title type='text'>KiCad 4.0RC1でESP-WROOM-02用基板作成　その6</title><content type='html'>次はESP-WROOM-02版です。&lt;br /&gt;
&lt;br /&gt;
RP-3基板&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzXGTG-Nxm8Ss96Od9lTGWQhOUQe-3FNCb4Rvb1pgywBKp2fRfJjRiwANjncuml8yRvHZmPm-_32pp3_5rkPFQL2MF775C2W-FTHP7z8udK8LL-3M5tV5CsVgYi7R9zPsJbMf9MbCLL9Oh/s320/IMG_5690.jpg&quot; width=&quot;240&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzXGTG-Nxm8Ss96Od9lTGWQhOUQe-3FNCb4Rvb1pgywBKp2fRfJjRiwANjncuml8yRvHZmPm-_32pp3_5rkPFQL2MF775C2W-FTHP7z8udK8LL-3M5tV5CsVgYi7R9zPsJbMf9MbCLL9Oh/s1600/IMG_5690.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzXGTG-Nxm8Ss96Od9lTGWQhOUQe-3FNCb4Rvb1pgywBKp2fRfJjRiwANjncuml8yRvHZmPm-_32pp3_5rkPFQL2MF775C2W-FTHP7z8udK8LL-3M5tV5CsVgYi7R9zPsJbMf9MbCLL9Oh/s1600/IMG_5690.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
HA-4基板&lt;/div&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsE7cqsrke-pOnrEXZPzgezZUmmYpMu8cTcKj-thYimZE_hvUkltAep_tm58-M-kgGRigV71epDEZGP12Ai2gLmvDkU_iKZs5yq88GanybbqgYBWMwT04Basx8jkNY7zkAUuY2zW2U_wEF/s320/IMG_5688.jpg&quot; width=&quot;240&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
こちらの基板はXBeeの裏面に書かれているアドレスを読み取れるようにXBeeの下のところに穴を開けてあるのですが、ESP-WROOM-02を載せると丁度放熱用のPadのところが穴に位置してしまってあまりよろしくないかもしれません。&lt;br /&gt;
&lt;br /&gt;
まだ、ESP-WROOM-02をどう使うか悩み中です。ATコマンドのままでうまく使っていくのか、何らかの独自のバイナリのI/Fを定義してAVRと通信させるのか、とか考えてるところです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/261823000878640028/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/11/kicad-40rc1esp-wroom-026.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/261823000878640028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/261823000878640028'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/11/kicad-40rc1esp-wroom-026.html' title='KiCad 4.0RC1でESP-WROOM-02用基板作成　その6'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzXGTG-Nxm8Ss96Od9lTGWQhOUQe-3FNCb4Rvb1pgywBKp2fRfJjRiwANjncuml8yRvHZmPm-_32pp3_5rkPFQL2MF775C2W-FTHP7z8udK8LL-3M5tV5CsVgYi7R9zPsJbMf9MbCLL9Oh/s72-c/IMG_5690.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-6383227094148518918</id><published>2015-10-31T10:49:00.001+09:00</published><updated>2015-11-07T22:06:43.032+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="elecrow"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP8266"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP_WROOM-02"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><title type='text'>KiCad 4.0RC1でESP-WROOM-02用基板作成　その5</title><content type='html'>基板が上がってきたので部品をマウントしてみます。&lt;br /&gt;
まずは従来通りのXBee版です。&lt;br /&gt;
&lt;br /&gt;
RP-3基板&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGSQGp1id-5L-mFXaW8FIUMRW63CBisO8tiLGS5PjAUjlj7VLrHuYijYBXbYFiEg4c9zT3ItdUkjQ4WJyKgXDoxUe-qONhebej2xizt51vPPKQQxA6mP1MaJLCx_GeH0LOU7XiYAF43c9b/s320/IMG_5684.jpg&quot; width=&quot;240&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
いい感じです。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
HA-4基板&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0Efy83s2R-9F0oC9vMgsTPrLQR3AvlnnV5oiBJbU3Mj-c4cwTUjztLjJ5apvqeb3MU_G2CgQDWRePwssiB0qXgeW9Xsh4Yn8N0NGvAeLNk6zvT9GuBA4AFe97xZ0QhjEnQ7pQBn55AqsX/s320/IMG_5686.jpg&quot; width=&quot;240&quot; /&gt;&lt;/div&gt;
こちらもいい感じです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RP-3基板をRaspberryPi2と組み合わせます。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHgoyHKa024lVNMkl1QGav6b5o73BBFFmQylUqNjyXfY_a7-mIkQeXOZO51b_xnZMc8BvunOP2Eohym1xUypLka_9_1BAk0xJqogE8YX4mMQlSwyJLG6s4FapHwDSK_X3qlYeU4FCf-Ps4/s320/IMG_5692.jpg&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHgoyHKa024lVNMkl1QGav6b5o73BBFFmQylUqNjyXfY_a7-mIkQeXOZO51b_xnZMc8BvunOP2Eohym1xUypLka_9_1BAk0xJqogE8YX4mMQlSwyJLG6s4FapHwDSK_X3qlYeU4FCf-Ps4/s1600/IMG_5692.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHgoyHKa024lVNMkl1QGav6b5o73BBFFmQylUqNjyXfY_a7-mIkQeXOZO51b_xnZMc8BvunOP2Eohym1xUypLka_9_1BAk0xJqogE8YX4mMQlSwyJLG6s4FapHwDSK_X3qlYeU4FCf-Ps4/s1600/IMG_5692.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;あれ？&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB26BHCvLswE5x-27mSovqID3LKnjz2uks4167_MhFYw6GwlY6-0P_cvoiwYFSeAq-9QIB-Kh8HVzh_y3wTuNj9Thh-uvLlaR_SHR0NE_8D87N0ratjtOmGbqzSJG4Be0U8sWvP5HGzain/s320/IMG_5691.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
RP-3基板のHA-4基板書き込み用のコネクタがRaspberryPi2のHDMI、Audioコネクタと干渉しています。&lt;br /&gt;
CAD上で基板の板端をギリギリで避けたつもりだったのですが、コネクタの出っ張りを考慮するのを忘れてました。&lt;br /&gt;
実物確認しなかったためのミスです。&lt;br /&gt;
回路動作チェックをしてソフト書いたらもう一度出し直しです.......&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/6383227094148518918/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1esp-room-025.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/6383227094148518918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/6383227094148518918'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1esp-room-025.html' title='KiCad 4.0RC1でESP-WROOM-02用基板作成　その5'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGSQGp1id-5L-mFXaW8FIUMRW63CBisO8tiLGS5PjAUjlj7VLrHuYijYBXbYFiEg4c9zT3ItdUkjQ4WJyKgXDoxUe-qONhebej2xizt51vPPKQQxA6mP1MaJLCx_GeH0LOU7XiYAF43c9b/s72-c/IMG_5684.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-5027434919894858383</id><published>2015-10-23T22:00:00.000+09:00</published><updated>2015-11-07T22:06:51.626+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="elecrow"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP8266"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP_WROOM-02"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><title type='text'>KiCad 4.0RC1でESP-WROOM-02用基板作成　その4</title><content type='html'>日曜日に届きました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJI3TKmmholBGK3sa7NpzwZXu0BmPdqBeBZs65tTU5wYXGmMO-9KPY45dR-j6zuO-4CMYyyhwoaqXOmVIsSVf2_VI0SAOD5NI1BO9qSXooUeUun5InTXd8F0m5hyH2sHLCWRBlXaR7Cqrj/s1600/IMG_5635.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJI3TKmmholBGK3sa7NpzwZXu0BmPdqBeBZs65tTU5wYXGmMO-9KPY45dR-j6zuO-4CMYyyhwoaqXOmVIsSVf2_VI0SAOD5NI1BO9qSXooUeUun5InTXd8F0m5hyH2sHLCWRBlXaR7Cqrj/s320/IMG_5635.jpg&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
速かったです。注文してから8日です。&lt;br /&gt;
10/10(土)の朝に出して10/14(水)の夕方には基板が上がってきてDHLに渡されています。&lt;br /&gt;
business day 4-7日となっていたのに土日も動いてくれてるんですね。&lt;br /&gt;
そのあと39時間後の10/16(金)の朝には国内についてますが、そこから配達されるまで49時間もかかってます。&lt;br /&gt;
実際の配達は佐川急便でした。&lt;br /&gt;
深センから成田のほうが成田から東京より近いようですね。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Wednesday, October 14, 2015&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;1 Shipment picked up&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;SHENZHEN - CHINA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18:50&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;2 Processed at SHENZHEN - CHINA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22:59&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;3 Departed Facility in SHENZHEN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23:04&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;4 Clearance event SHENZHEN - CHINA, PEOPLES REPUBLIC 23:18&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Thursday, October 15, 2015&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;5 Customs status updated&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:16&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;6 Clearance processing complete at SHENZHEN - CHINA &amp;nbsp;01:19&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;7 Arrived at Sort Facility HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 03:17&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;8 Processed at HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06:37&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;9 Clearance processing complete at HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06:37&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;10 Processed at HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;19:15&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;11 Departed Facility in HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22:34&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Friday, October 16, 2015&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;12 Customs status updated&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03:07&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;13 Transferred through TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 08:42&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;14 Arrived at Sort Facility TOKYO - JAPAN&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;10:00&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;15 Clearance event TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10:37&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;16 Processed for clearance at TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10:37&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;17 Customs status updated&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22:42&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;18 Clearance processing complete at TOKYO - JAPAN &amp;nbsp; &amp;nbsp;22:56&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Saturday, October 17, 2015&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;19 Processed at TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01:21&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;20 Departed Facility in TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01:45&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;21 Arrived at Delivery Facility in TOKYO - JAPAN &amp;nbsp; &amp;nbsp; 08:13&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;22 Forwarded for delivery&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;09:33&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Sunday, October 18, 2015&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;23 Delivery attempted; recipient not home &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10:58&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;24 Delivered - Signed for by : DLVD BY AGNT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;19:31&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/5027434919894858383/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1esp-room-024.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/5027434919894858383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/5027434919894858383'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1esp-room-024.html' title='KiCad 4.0RC1でESP-WROOM-02用基板作成　その4'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJI3TKmmholBGK3sa7NpzwZXu0BmPdqBeBZs65tTU5wYXGmMO-9KPY45dR-j6zuO-4CMYyyhwoaqXOmVIsSVf2_VI0SAOD5NI1BO9qSXooUeUun5InTXd8F0m5hyH2sHLCWRBlXaR7Cqrj/s72-c/IMG_5635.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-1789024448530063730</id><published>2015-10-16T22:00:00.000+09:00</published><updated>2015-11-07T22:06:58.900+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="elecrow"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP8266"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP_WROOM-02"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><title type='text'>KiCad 4.0RC1でESP-WROOM-02用基板作成　その3</title><content type='html'>とくにパターン的におかしくなかったのでElecrowに出してみました。&lt;br /&gt;
Elecrowの注文のページは以前はクレジットカードもPayPalのシステム経由だったのでちゃんとしていたけど、今回は直接クレジットカードの番号を入れるように変わってました。&lt;br /&gt;
ただ、このページhttpで暗号化されていません。クレジットカードの入力が暗号化されてないのはちょっと不安なのでpaypalにしました。&lt;br /&gt;
送料は820gでShenzhen DHLが$20.44、Registerd Air Parcelが$17.02と$3位の差なのでDHLを選択。&lt;br /&gt;
片方はpanelize有りなので+1日かな。国慶節の連休明けなので注文が溜まってるから動きが遅そう。&lt;br /&gt;
10/10(土)に出したので月曜日から作業し始めてbusiness dayで10日くらいとすると10/26の週に到着ぐらいかな.....と思っていたら10/10の内に&lt;br /&gt;
10/10/2015&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;In production&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Dear Customer,&lt;br /&gt;
We have put your design into production, it will needs about 4-7 business days. Thank you!&lt;br /&gt;
Best Regards&lt;br /&gt;
Elecrow&lt;br /&gt;
と返ってきました。それでも混んでるから7business daysだろうと考えていたのですが10/15(木)の朝に写真付きで出荷の連絡がきました。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn1ERfJlH2H6rCZ-LUxWzxFSsStpAcw6QCP56CzCKvErUJVk2XIAnKxLflhNOjSXFewHLT5JLCy5ikXXgCmhm2yeAD2YVant72Pb7Qy0mUicrZx6n46cL18qFVZuwRosB9DTDpIfcJoGuH/s1600/23902.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn1ERfJlH2H6rCZ-LUxWzxFSsStpAcw6QCP56CzCKvErUJVk2XIAnKxLflhNOjSXFewHLT5JLCy5ikXXgCmhm2yeAD2YVant72Pb7Qy0mUicrZx6n46cL18qFVZuwRosB9DTDpIfcJoGuH/s320/23902.png&quot; width=&quot;227&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
この辺がElecrowのいいところですね。深センは時差の関係で10/14(水)です。&lt;br /&gt;
&lt;br /&gt;
DHLのTrackingを確認すると&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Wednesday, October 14, 2015&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;1 Shipment picked up&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;SHENZHEN - CHINA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18:50&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;2 Processed at SHENZHEN - CHINA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22:59&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;3 Departed Facility in SHENZHEN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23:04&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;4 Clearance event SHENZHEN - CHINA, PEOPLES REPUBLIC 23:18&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Thursday, October 15, 2015&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;5 Customs status updated&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:16&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;6 Clearance processing complete at SHENZHEN - CHINA &amp;nbsp;01:19&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;7 Arrived at Sort Facility HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 03:17&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;8 Processed at HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06:37&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;9 Clearance processing complete at HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06:37&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;10 Processed at HONG KONG &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;19:15&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;11 Departed Facility in HONG KONG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22:34&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Friday, October 16, 2015&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;12 Customs status updated TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03:07&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;13 Transferred through TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 08:42&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;14 Arrived at Sort Facility TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; 10:00&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;15 Clearance event TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10:37&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;16 Processed for clearance at TOKYO - JAPAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10:37&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
この調子だと週末か週明けには到着しそうです。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/1789024448530063730/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1esp-room-023.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/1789024448530063730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/1789024448530063730'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1esp-room-023.html' title='KiCad 4.0RC1でESP-WROOM-02用基板作成　その3'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn1ERfJlH2H6rCZ-LUxWzxFSsStpAcw6QCP56CzCKvErUJVk2XIAnKxLflhNOjSXFewHLT5JLCy5ikXXgCmhm2yeAD2YVant72Pb7Qy0mUicrZx6n46cL18qFVZuwRosB9DTDpIfcJoGuH/s72-c/23902.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-108877757541820997</id><published>2015-10-09T22:00:00.000+09:00</published><updated>2015-11-07T22:07:06.606+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="El Capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="elecrow"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP8266"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP_WROOM-02"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><title type='text'>KiCad 4.0RC1でESP-WROOM-02用基板作成　その2</title><content type='html'>2つ目の基板を作成してみました。&lt;br /&gt;
HA端子、SW制御、赤外線リモコン送信、受信、GPIO、ADC機能の子基板で以前XBee用に設計したものをESP-WROOM-02対応とダイオード、FETが小さすぎてハンダ付けがしにくいのでひとまわり大きいものに変更したり、機能を変更したりしました。&lt;br /&gt;
&lt;br /&gt;
回路図は以下のとおり&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEI9Nl465mVImv9YTAR4tylw_uWv_qHi5VsEs-C9AK2tgu5E-QWz-xhwamLTidsWvIx0-y4TprXTgBEmnFgDSmmK_VXoRGRvXW8P9bpAYxrU_ry-o0Q-UCH1ABVcUb8MGR6CIjKcEJT6Ry/s1600/HA-4_Schematics.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEI9Nl465mVImv9YTAR4tylw_uWv_qHi5VsEs-C9AK2tgu5E-QWz-xhwamLTidsWvIx0-y4TprXTgBEmnFgDSmmK_VXoRGRvXW8P9bpAYxrU_ry-o0Q-UCH1ABVcUb8MGR6CIjKcEJT6Ry/s320/HA-4_Schematics.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
出来上がったパターンは以下のとおりです。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaJarPNnhdMqu4CLe538-lO4HwiePPL4h9jwLNMKyif4AbRemShUG7eZ3bIlckJsTVWrIOOuxk5-INmx0BgfgojzV4cE76-FnqCeY65r1z0cT1MbQfSLEQepkRw3TQgnOa2jJgAIlmQZkz/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-07+22.34.04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaJarPNnhdMqu4CLe538-lO4HwiePPL4h9jwLNMKyif4AbRemShUG7eZ3bIlckJsTVWrIOOuxk5-INmx0BgfgojzV4cE76-FnqCeY65r1z0cT1MbQfSLEQepkRw3TQgnOa2jJgAIlmQZkz/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-07+22.34.04.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
KiCADのバグでしょうか？&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5aobFyJZAzchWfGYQCnVC9x9NkxeZLb3c6s8aC_sHCVdQDHDJDJ_4X81KiuLISFx9_E7mpjKAm9-5w8bXqS3XiCvyw1skHp4ruNtay3cmLR8H2EuycB0aigA9rFy42yu0FACwqxeuF-b/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-07+22.34.54.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5aobFyJZAzchWfGYQCnVC9x9NkxeZLb3c6s8aC_sHCVdQDHDJDJ_4X81KiuLISFx9_E7mpjKAm9-5w8bXqS3XiCvyw1skHp4ruNtay3cmLR8H2EuycB0aigA9rFy42yu0FACwqxeuF-b/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-07+22.34.54.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
DRCの未配線は無いので大丈夫だと思うのですが、KiCADのpcbnewをOpenGLモードで見ていると下側のStatusのところの未配線が2になっています。&lt;br /&gt;
&lt;br /&gt;
これが表示設定を標準にすると0になります。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNbpaPUTQwGrMrc1GyxTE0feNB_IyN4QDkqvstfF1VpQQISlkTE88Xd5Bh67qLDZzdlQkX3BDZwEcg6dx1jCdoRDdE64VP1xwM1ISB2hWx7Dlout3cLexKiANUJuKb1CMv5l3GCzZmMv-r/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-07+22.35.08.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;131&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNbpaPUTQwGrMrc1GyxTE0feNB_IyN4QDkqvstfF1VpQQISlkTE88Xd5Bh67qLDZzdlQkX3BDZwEcg6dx1jCdoRDdE64VP1xwM1ISB2hWx7Dlout3cLexKiANUJuKb1CMv5l3GCzZmMv-r/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-07+22.35.08.png&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
KiCADのBZR5814とかで作った前回のパターンからいじったのでどこかにゴミデータでも残っているのかもしれませんが、よくわかりません。BZR5814で開くとOpenGLモードでも未配線が0になります。&lt;br /&gt;
最初から4.0RC1で作成したRP-3基板はOpenGLモードでも未配線0なので、この基板データ固有の問題かもしれません。&lt;br /&gt;
&lt;br /&gt;
急いでも仕方が無いので週末にガーバーの確認をしてから出図しようかと思います。&lt;br /&gt;
Elecrowも国慶節明けで混んでそうなので、週明けくらいに出してもあまり変わらないかと。&lt;br /&gt;
&lt;br /&gt;
今回の基板は10cm x 10cmに3枚面つけでV-Cutの予定です。&lt;br /&gt;
RP-3基板と今回の基板それぞれ10枚で、まとめると送料が安くなりそうです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/108877757541820997/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1esp-room-022.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/108877757541820997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/108877757541820997'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1esp-room-022.html' title='KiCad 4.0RC1でESP-WROOM-02用基板作成　その2'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEI9Nl465mVImv9YTAR4tylw_uWv_qHi5VsEs-C9AK2tgu5E-QWz-xhwamLTidsWvIx0-y4TprXTgBEmnFgDSmmK_VXoRGRvXW8P9bpAYxrU_ry-o0Q-UCH1ABVcUb8MGR6CIjKcEJT6Ry/s72-c/HA-4_Schematics.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-341073597310182880</id><published>2015-10-02T22:00:00.000+09:00</published><updated>2015-10-02T22:00:02.103+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="elecrow"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP8266"/><category scheme="http://www.blogger.com/atom/ns#" term="ESP_WROOM-02"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="KiCad"/><category scheme="http://www.blogger.com/atom/ns#" term="OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="基板作成"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><title type='text'>KiCad 4.0RC1でRaspberryPi2用のESP-WROOM-02用基板作成</title><content type='html'>KiCad 4.0RC1をせっかくbuildしたのでESP-WROOM-02用の基板を作成してみました。&lt;br /&gt;
RaspberryPi2用の基板ですがHAT規格ではありません。合わせられる所はHAT規格に合わせてますが、ACアダプタ用のコネクタを後ろ側から出すため基板外形を変更しています。&lt;br /&gt;
ケースは&lt;a href=&quot;http://flying-engineer.blogspot.jp/2015/04/rp-2_17.html&quot;&gt;以前作成したRP-2基板用のもの&lt;/a&gt;を流用する予定です。&lt;br /&gt;
&lt;br /&gt;
回路は色々と余計なものがついていますが、基本的にはRaspberryPi2の電源をUSB-miniからではなくACアダプタ用のコネクタを背面側に出すための回路と、XBeeモジュール・ESP-WROOM-02のいずれか経由で子機と接続するための回路、RaspberryPi2に赤外線リモコンの送受信機能を追加するための回路、子機として使う時のためのAVRマイコン回路で必要に応じてマウント部品を変更して使うようにしています。&lt;br /&gt;
&lt;br /&gt;
回路図は以下のとおり&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji2fhlgQZWfm4rYiN3K8iG1f4gtm_UDr-1SByL9FuH-EWIwdWGigEa7w2CLEmPNOsmwKbcMU3EUrm4U8EK2hHGbWprzd0aM7wTOF4U6sKIZtutymcIMOFjIe7y2PN7xhTkd9vSUbFKOTRn/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-01+22.44.38.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji2fhlgQZWfm4rYiN3K8iG1f4gtm_UDr-1SByL9FuH-EWIwdWGigEa7w2CLEmPNOsmwKbcMU3EUrm4U8EK2hHGbWprzd0aM7wTOF4U6sKIZtutymcIMOFjIe7y2PN7xhTkd9vSUbFKOTRn/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-01+22.44.38.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji2fhlgQZWfm4rYiN3K8iG1f4gtm_UDr-1SByL9FuH-EWIwdWGigEa7w2CLEmPNOsmwKbcMU3EUrm4U8EK2hHGbWprzd0aM7wTOF4U6sKIZtutymcIMOFjIe7y2PN7xhTkd9vSUbFKOTRn/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-01+22.44.38.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji2fhlgQZWfm4rYiN3K8iG1f4gtm_UDr-1SByL9FuH-EWIwdWGigEa7w2CLEmPNOsmwKbcMU3EUrm4U8EK2hHGbWprzd0aM7wTOF4U6sKIZtutymcIMOFjIe7y2PN7xhTkd9vSUbFKOTRn/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-01+22.44.38.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;222&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji2fhlgQZWfm4rYiN3K8iG1f4gtm_UDr-1SByL9FuH-EWIwdWGigEa7w2CLEmPNOsmwKbcMU3EUrm4U8EK2hHGbWprzd0aM7wTOF4U6sKIZtutymcIMOFjIe7y2PN7xhTkd9vSUbFKOTRn/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-01+22.44.38.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
で出来上がったパターンが以下のとおりです。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmtfk0SuDk52ETjaOmKsI4MsgAv71qAR185ZSne6ITAkcQhz3799kOrIvrc9fuGnRuBc9bQD-z4UKb36HXkJC5pKlEum3NKRZgCcvBBzvhtXDFyUm1LyV8WjDeDqQ3BCvgdkqzffo9M1Xt/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-01+22.37.53.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img adlesse_been_here=&quot;true&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmtfk0SuDk52ETjaOmKsI4MsgAv71qAR185ZSne6ITAkcQhz3799kOrIvrc9fuGnRuBc9bQD-z4UKb36HXkJC5pKlEum3NKRZgCcvBBzvhtXDFyUm1LyV8WjDeDqQ3BCvgdkqzffo9M1Xt/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-01+22.37.53.png&quot; width=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
SWITCH-SCHIENCEがSeedStudioのPCB作成サービスの取り扱いを始めたのでこちらでお願いするか、以前出したElecrowに出すか、どちらが安いのか比較してみます。&lt;br /&gt;
今回は10cm x 10cm x 1.0mm panelizeなし、黒レジスト、10枚です。&lt;br /&gt;
&lt;br /&gt;
SWITCH-SCHIENCEの場合&lt;br /&gt;
&amp;nbsp;Greenレジスト 10cmX10cm基板で3074円&lt;br /&gt;
&amp;nbsp;それ以外のレジスト 10cmX10cm基板で5882円&lt;br /&gt;
&amp;nbsp;+パブリックベータ期間なら送料324円、通常は1080円&lt;br /&gt;
で緑レジストの最安なら3398円&lt;br /&gt;
黒レジストにすると6206円&lt;br /&gt;
&lt;br /&gt;
Elecrowの場合&lt;br /&gt;
&amp;nbsp;Greenレジスト 10cmX10cm基板$14&lt;br /&gt;
&amp;nbsp;それ以外のレジスト 10cmX10cm基板$15.9&lt;br /&gt;
&amp;nbsp;+ 送料(Registerd Airmaailで$10.37,DHLで$16.37)&lt;br /&gt;
で緑レジストの最安で$24.37 = 2924円　($1=120円換算)&lt;br /&gt;
黒レジストにすると$26.27 = 3152円&lt;br /&gt;
DHLにすると+720円&lt;br /&gt;
&lt;br /&gt;
価格は緑レジストにすればいい勝負ですが他の色の場合はElecrowの方が半額近いですね。&lt;br /&gt;
納期はSWITCH-SCHIENCEは14-21日、ElecrowはこれまでDHLでの経験では1回目14日、2回目v-cutありでも14日だったので、こちらもそれほどの違いはなさそう。&lt;br /&gt;
ということで今回は黒色にしたいのでElecrowでRegisterd Airmailを試してみます。&lt;br /&gt;
.........&lt;br /&gt;
ところが、注文しようとしたらElecrowは国慶節で10/7までお休みでした。&lt;br /&gt;
別に急いでないので、もう1つの基板も描いてまとめて注文しようかと思います。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/341073597310182880/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1raspberrypi2esp-wroom-02.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/341073597310182880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/341073597310182880'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/10/kicad-40rc1raspberrypi2esp-wroom-02.html' title='KiCad 4.0RC1でRaspberryPi2用のESP-WROOM-02用基板作成'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji2fhlgQZWfm4rYiN3K8iG1f4gtm_UDr-1SByL9FuH-EWIwdWGigEa7w2CLEmPNOsmwKbcMU3EUrm4U8EK2hHGbWprzd0aM7wTOF4U6sKIZtutymcIMOFjIe7y2PN7xhTkd9vSUbFKOTRn/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2015-10-01+22.44.38.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4345454953031214164.post-7371833178185637429</id><published>2015-09-25T22:00:00.000+09:00</published><updated>2015-09-25T22:00:02.725+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="HomeAutomation"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi"/><category scheme="http://www.blogger.com/atom/ns#" term="RaspberryPi2"/><category scheme="http://www.blogger.com/atom/ns#" term="赤外線リモコン"/><title type='text'>angular.jsとonsenUI</title><content type='html'>node.js、express、mongoDBときているので次はangular.jsです。&lt;br /&gt;
UIはどうしようかと思ったのですが、angular.jsと相性が良さそうで日本語で情報が豊富なonsenUIにしてみました。&lt;br /&gt;
ちょっとまだソースコードがグチャグチャなのでもう少し整理してから後ほどGitにでもあげようと思います。&lt;br /&gt;
まだ、どの処理をサーバーのnode.js側で処理してどの処理をクライアントのangular.js側で処理するのがいいのかを悩み中です。&lt;br /&gt;
最初はほとんどの処理をangular.js側に持っていったのですが、mongoDBから読みだしたデータを大量に送った場合にかなり動作が重たくなることがわかったので、ある程度サーバーサイドで処理して扱いやすい形に変換してからクライアントサイドでUIに表示する形にしたほうがいいようです。&lt;br /&gt;
サーバーを動かしているさくらVPSのx86仮想サーバーとiPhone5sのARM系64bitCPUではやはりパフォーマンスが違いますね。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flying-engineer.blogspot.com/feeds/7371833178185637429/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://flying-engineer.blogspot.com/2015/09/angularjsonsenui.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/7371833178185637429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4345454953031214164/posts/default/7371833178185637429'/><link rel='alternate' type='text/html' href='http://flying-engineer.blogspot.com/2015/09/angularjsonsenui.html' title='angular.jsとonsenUI'/><author><name>flyingengineer</name><uri>http://www.blogger.com/profile/12060247154158895638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>