<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[Raspberry Pi 使用温湿度传感器(AM2302)]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[系统架构与硬件]]></category>
<pubDate>Fri, 20 Sep 2013 10:59:42 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：孵化时不得不要温度监控。AM2302 (wired DHT22) temperature-humidity sensor -价格有点高，但不用写代码。<br/>淘宝上卖得有点高：http://item.taobao.com/item.htm?spm=a230r.1.0.0.uWRxwK&amp;id=18906174315<br/>参考：http://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/overview<br/><br/>1.连线:<br/><br/>am2302不需要使用电阻，只需连接三个针脚即可（1，2，4）<br/><br/>1--&gt;3.3v 既第一个针脚<br/><br/>2--&gt;GPIO 可随意连接一个gpio针脚 (第7个阵脚，对应的是gpio pin 4)<br/><br/>3--&gt;GND 连接接地针(连接的是第6个针脚)<br/><br/>然后参考http://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/software-install，下载安装执行命令即可<br/><br/> <br/><br/>简单记录仅供备忘。。。<br/><br/>来自：http://www.cnblogs.com/yaoshan/archive/2013/03/14/2924701.html<br/><br/>Adapting the DHT C code<br/><br/>Since the DHT sensors use a low-level &quot;Manchester-esque&quot; timing protocol to send data, we need to be able to read the pin they are connected to at very high speeds. The python libraries aren&#039;t fast enough, but the low level C libraries are! The code we wrote is a good example of how to deal with bitbang in user space, without the need to write a kernel driver<br/><br/>Grab the lowlevel BCM2835 C Library from http://www.open.com.au/mikem/bcm2835/index.html<br/>$ wget http://www.open.com.au/mikem/bcm2835/bcm2835-1.8.tar.gz<br/>$ tar -zxvf bcm2835-1.8.tar.gz<br/>$ cd bcm2835-1.8<br/>$ ./configure<br/>$ make<br/>$ sudo make install<br/>Then compile the Adafruit_DHT program with<br/><br/>gcc Adafruit_DHT.c -l bcm2835 -std=gnu99 -o Adafruit_DHT
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Raspberry Pi 使用温湿度传感器(AM2302)]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>