<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenAirStar Inc. </title>
	<atom:link href="http://www.openairstar.com/tag/aitendo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openairstar.com</link>
	<description>We Love OpenSourceHardware!</description>
	<lastBuildDate>Tue, 19 Nov 2019 06:34:25 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>RaspberryHabu + PIRセンサモジュール(その2)</title>
		<link>http://www.openairstar.com/habupir2/</link>
		<comments>http://www.openairstar.com/habupir2/#comments</comments>
		<pubDate>Thu, 24 Apr 2014 07:46:42 +0000</pubDate>
		<dc:creator><![CDATA[syamamoto]]></dc:creator>
				<category><![CDATA[BLOG]]></category>
		<category><![CDATA[FabLib]]></category>
		<category><![CDATA[作例]]></category>
		<category><![CDATA[aitendo]]></category>
		<category><![CDATA[OpenAirStar]]></category>
		<category><![CDATA[RaspberryHabu]]></category>
		<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[Wiring Pi]]></category>
		<category><![CDATA[wiringPi]]></category>

		<guid isPermaLink="false">http://www.openairstar.com/?p=198</guid>
		<description><![CDATA[前回の続きでPIRセンサをいじっていきます。 まずはWiringPiをRaspberryPiに入れましょう。RaspberryHabuの組み立てTogetterにて動作確認のために入れていれば問題ないです。 そして簡単な … <a href="http://www.openairstar.com/habupir2/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
				<content:encoded><![CDATA[<p>前回の続きでPIRセンサをいじっていきます。</p>
<p>まずはWiringPiをRaspberryPiに入れましょう。RaspberryHabuの組み立てTogetterにて動作確認のために入れていれば問題ないです。<br />
そして簡単なデジタルINのプログラムを書いてみます。ピンは1番です。</p>
<p><a href="http://www.openairstar.com/wp-content/uploads/2014/04/pirtest-c.png" rel="lightbox[198]"><img class="alignnone  wp-image-201" src="http://www.openairstar.com/wp-content/uploads/2014/04/pirtest-c.png" alt="pirtest-c" width="280" height="290" /></a></p>
<p>特に目立ったことはしてないです。digitalRead(pin番号)という関数がWiringPiでデジタル入力信号を取ってくる関数ですね。1秒ごとにHighで1、LOWで0が返ってきます。</p>
<p>cc -o プログラム名 ファイル名 -lwiringPi<br />
でコンパイルして実行すると</p>
<p><a href="http://www.openairstar.com/wp-content/uploads/2014/04/pirtest-off.png" rel="lightbox[198]"><img class="alignnone  wp-image-200" src="http://www.openairstar.com/wp-content/uploads/2014/04/pirtest-off.png" alt="pirtest-off" width="220" height="245" /></a><a href="http://www.openairstar.com/wp-content/uploads/2014/04/pirtest-on.png" rel="lightbox[198]"><img class="alignnone  wp-image-199" src="http://www.openairstar.com/wp-content/uploads/2014/04/pirtest-on.png" alt="pirtest-on" width="220" height="245" /></a></p>
<p>こうなります。人が止まっているときやいないときはセンサからLOWが返ってくるのでOFFと表示されます。動いたらセンサからHIGHが返ってきてONと表示されています。写真ではわかりにくいですが、僕はOFFになるまでじっと待っていました。センサの調整ねじを回せば同じ信号を出し続ける時間が長くなります。</p>
<p>このプログラムはHIGHやLOWだけを出すようなほかのセンサでも応用できるので便利です。<br />
スイッチにも使えますね。すでに実装されてますが。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openairstar.com/habupir2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RaspberryHabu + PIRセンサモジュール(その1)</title>
		<link>http://www.openairstar.com/habupir/</link>
		<comments>http://www.openairstar.com/habupir/#comments</comments>
		<pubDate>Wed, 23 Apr 2014 04:19:20 +0000</pubDate>
		<dc:creator><![CDATA[syamamoto]]></dc:creator>
				<category><![CDATA[BLOG]]></category>
		<category><![CDATA[作例]]></category>
		<category><![CDATA[aitendo]]></category>
		<category><![CDATA[FabLib]]></category>
		<category><![CDATA[OpenAirStar]]></category>
		<category><![CDATA[RaspberryHabu]]></category>
		<category><![CDATA[RaspberryPi]]></category>

		<guid isPermaLink="false">http://www.openairstar.com/?p=161</guid>
		<description><![CDATA[皆様、はじめまして。ヤマモトと申します。これからFabLibの製品であるRaspberryHabuの作例を紹介して行きたいと思います。 今回の作例はPIRセンサをRaspberryPiで使ってみよう！です。 PIRセンサ … <a href="http://www.openairstar.com/habupir/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
				<content:encoded><![CDATA[<p style="text-align: left;">皆様、はじめまして。ヤマモトと申します。これからFabLibの製品であるRaspberryHabuの作例を紹介して行きたいと思います。</p>
<p style="text-align: left;">今回の作例はPIRセンサをRaspberryPiで使ってみよう！です。</p>
<p style="text-align: left;">PIRセンサのはaitendoさんのA500Pです。4.5V-20Vで駆動し、<span style="color: #666666;">人体が近づくとON信号（Highレベル電圧）が出力されるセンサーモジュールです。今回は5VをRaspberryHabuから給電しました。</span></p>
<p><a href="http://www.openairstar.com/wp-content/uploads/2014/04/2V2A6625.png" rel="lightbox[161]"><img class="alignnone  wp-image-164" src="http://www.openairstar.com/wp-content/uploads/2014/04/2V2A6625.png" alt="A500P-front" width="173" height="121" /></a><a href="http://www.openairstar.com/wp-content/uploads/2014/04/2V2A6769.png" rel="lightbox[161]"><img class="alignnone size-full wp-image-165" src="http://www.openairstar.com/wp-content/uploads/2014/04/2V2A6769.png" alt="A500P-back" width="100" height="121" /></a></p>
<p style="text-align: left;">デジタル入力を使うので使用したHabuはBasicです。</p>
<p><a href="http://www.openairstar.com/wp-content/uploads/2014/04/2V2A6622.png" rel="lightbox[161]"><img class="alignnone size-full wp-image-162" src="http://www.openairstar.com/wp-content/uploads/2014/04/2V2A6622.png" alt="A500P+Pi" width="100" height="55" /></a></p>
<p style="text-align: left;">写真のようにつなぐと、人体を感知したときにセンサがON信号を流してチェック用のLEDが光ります。</p>
<p style="text-align: left;">ON信号が流れる時間はPIRセンサモジュールの可変抵抗をいじると変更できるようです。</p>
<p><a href="http://www.openairstar.com/wp-content/uploads/2014/04/2V2A6623.png" rel="lightbox[161]"><img class="alignnone size-full wp-image-163" src="http://www.openairstar.com/wp-content/uploads/2014/04/2V2A6623.png" alt="A500P+Pi-up" width="100" height="67" /></a></p>
<p style="text-align: left;">下準備だけですが、今回はここまで。次回はRaspberryPi上でいろいろいじりたいと思います。</p>
<p style="text-align: right;">writer: ヤマモト</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openairstar.com/habupir/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
