http://m.lifestyle201.com/wiki/index.php?action=history&feed=atom&title=SKU%3ARB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8 榴莲app官网,99久久精品九九亞洲精品 2024-10-30T02:22:21Z 本wiki的該頁面的版本歷史 MediaWiki 1.21.2 http://m.lifestyle201.com/wiki/index.php?title=SKU:RB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8&diff=8449&oldid=prev Zhangxin:/* 相關(guān)資料 */ 2021-06-22T02:23:41Z <p>?<span dir="auto"><span class="autocomment">相關(guān)資料</span></span></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2021年6月22日 (二) 02:23的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第188行:</td> <td colspan="2" class="diff-lineno">第188行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:erweima.png|230px|無框|右]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:erweima.png|230px|無框|右]]</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 產(chǎn)品資料</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 產(chǎn)品資料</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">下載鏈接:https</del>://pan.baidu.com/s/<del class="diffchange diffchange-inline">1zWegrll_Al4aDEDn1FZhHg </del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">下載鏈接 :https</ins>://pan.baidu.com/s/<ins class="diffchange diffchange-inline">1PIhK8fWJPkd3ux5J9J5fmg </ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">提取碼:uock </del> <del class="diffchange diffchange-inline">&lt;br/&gt;</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">提取碼:316p </ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 產(chǎn)品購買鏈接:http://m.lifestyle201.com/goods-174.html</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160; * 產(chǎn)品購買鏈接:http://m.lifestyle201.com/goods-174.html</div></td></tr> </table> Zhangxin http://m.lifestyle201.com/wiki/index.php?title=SKU:RB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8&diff=8338&oldid=prev Arduino77:/* 相關(guān)資料 */ 2019-10-28T03:58:02Z <p>?<span dir="auto"><span class="autocomment">相關(guān)資料</span></span></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2019年10月28日 (一) 03:58的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第188行:</td> <td colspan="2" class="diff-lineno">第188行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:erweima.png|230px|無框|右]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:erweima.png|230px|無框|右]]</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 產(chǎn)品資料</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 產(chǎn)品資料</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>下載鏈接:https://pan.baidu.com/s/<del class="diffchange diffchange-inline">1zi9SKv01_QcNp_HxiSbCTg </del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>下載鏈接:https://pan.baidu.com/s/<ins class="diffchange diffchange-inline">1zWegrll_Al4aDEDn1FZhHg </ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">提取碼:wag5 </del> &lt;br/&gt;</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">提取碼:uock </ins> &lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 產(chǎn)品購買鏈接:http://m.lifestyle201.com/goods-174.html</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 產(chǎn)品購買鏈接:http://m.lifestyle201.com/goods-174.html</div></td></tr> </table> Arduino77 http://m.lifestyle201.com/wiki/index.php?title=SKU:RB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8&diff=8050&oldid=prev Arduino77:/* 程序效果 */ 2018-09-28T08:59:29Z <p>?<span dir="auto"><span class="autocomment">程序效果</span></span></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2018年9月28日 (五) 08:59的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第178行:</td> <td colspan="2" class="diff-lineno">第178行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;/pre&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;/pre&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">====</del>程序效果<del class="diffchange diffchange-inline">====</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* </ins>程序效果</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>完成以上步驟后,首先給系統(tǒng)上電。系統(tǒng)上電后,按下大按鈕(使水泵運(yùn)轉(zhuǎn)),從而讓水流流過水流傳感器,系統(tǒng)就可以測試流量了。&lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>完成以上步驟后,首先給系統(tǒng)上電。系統(tǒng)上電后,按下大按鈕(使水泵運(yùn)轉(zhuǎn)),從而讓水流流過水流傳感器,系統(tǒng)就可以測試流量了。&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>下圖為水流流量測試系統(tǒng)測試時(shí)串行1602液晶顯示圖:</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>下圖為水流流量測試系統(tǒng)測試時(shí)串行1602液晶顯示圖:</div></td></tr> </table> Arduino77 http://m.lifestyle201.com/wiki/index.php?title=SKU:RB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8&diff=8049&oldid=prev 2018年9月28日 (五) 08:58 Arduino77 2018-09-28T08:58:28Z <p></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2018年9月28日 (五) 08:58的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第27行:</td> <td colspan="2" class="diff-lineno">第27行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 流量---脈沖特性參照表</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 流量---脈沖特性參照表</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor02.jpg|800px|有框|居中]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor02.jpg|800px|有框|居中]]</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">==</del>引腳定義<del class="diffchange diffchange-inline">==</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* </ins>引腳定義</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">* </del>紅色線(IN):接正極(+)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>紅色線(IN):接正極(+)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">* </del>黃色線(OUT):信號(hào)輸出線</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>黃色線(OUT):信號(hào)輸出線</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">* </del>黑色線(GND):接負(fù)極(-)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>黑色線(GND):接負(fù)極(-)</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==Water Flow Sensor模塊結(jié)構(gòu)圖==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==Water Flow Sensor模塊結(jié)構(gòu)圖==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor03.jpg|400px|有框|居中]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor03.jpg|400px|有框|居中]]</div></td></tr> <tr><td colspan="2" class="diff-lineno">第42行:</td> <td colspan="2" class="diff-lineno">第43行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>此款水流傳感器嚴(yán)禁劇烈沖擊以及化學(xué)物質(zhì)的侵蝕。嚴(yán)禁拋擲或碰撞。檢測介質(zhì)不宜超過120℃。安裝方式為垂直于地面,且傾斜度不超過5度。&lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>此款水流傳感器嚴(yán)禁劇烈沖擊以及化學(xué)物質(zhì)的侵蝕。嚴(yán)禁拋擲或碰撞。檢測介質(zhì)不宜超過120℃。安裝方式為垂直于地面,且傾斜度不超過5度。&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">==使用方法==</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">=</del>==工作原理<del class="diffchange diffchange-inline">=</del>==</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==工作原理==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>水流量傳感器又可以叫做霍爾傳感器,傳感器整體是由 ABS 工程塑料制成,上下兩端為 4 分螺牙,中間為一個(gè)圓柱體結(jié)構(gòu),并有三根導(dǎo)線接出,紅色為正極、黑色負(fù)極、黃色信號(hào)輸出端。其內(nèi)部還有一個(gè)五葉輪和霍爾元件,背面有一個(gè)箭頭,這個(gè)箭頭表示水流的方向,所以如果更換的時(shí)候不能裝反。&lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>水流量傳感器又可以叫做霍爾傳感器,傳感器整體是由 ABS 工程塑料制成,上下兩端為 4 分螺牙,中間為一個(gè)圓柱體結(jié)構(gòu),并有三根導(dǎo)線接出,紅色為正極、黑色負(fù)極、黃色信號(hào)輸出端。其內(nèi)部還有一個(gè)五葉輪和霍爾元件,背面有一個(gè)箭頭,這個(gè)箭頭表示水流的方向,所以如果更換的時(shí)候不能裝反。&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>霍爾傳感器中,五葉輪連接磁性轉(zhuǎn)子,轉(zhuǎn)子置于線圈中,線圈即為霍爾集成元件,當(dāng)水通過水流轉(zhuǎn)子組件時(shí),磁性轉(zhuǎn)子轉(zhuǎn)動(dòng)并且轉(zhuǎn)速隨著流量變化而變化,霍爾傳感器輸出相應(yīng)脈沖信號(hào),反饋給控制器,由控制器判斷水流量的大小,進(jìn)行調(diào)控。&lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>霍爾傳感器中,五葉輪連接磁性轉(zhuǎn)子,轉(zhuǎn)子置于線圈中,線圈即為霍爾集成元件,當(dāng)水通過水流轉(zhuǎn)子組件時(shí),磁性轉(zhuǎn)子轉(zhuǎn)動(dòng)并且轉(zhuǎn)速隨著流量變化而變化,霍爾傳感器輸出相應(yīng)脈沖信號(hào),反饋給控制器,由控制器判斷水流量的大小,進(jìn)行調(diào)控。&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===編程原理===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">內(nèi)部結(jié)構(gòu)圖:</ins>&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">水流量傳感器共引出三個(gè)引腳,分別是信號(hào)S、電源正Vcc、電源地GND,實(shí)際使用時(shí)可以將傳感器連接到 Arduino UNO 控制器的數(shù)字引腳,例如數(shù)字引腳2號(hào),</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">[[文件:02S034100.png|500px|縮略圖|居中]]</ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">脈沖特性:水平測試脈沖頻率(Hz)=[8.1Q -3 ]±10%(水平測試) (Q 為流量L/min )</del>&lt;br/&gt;</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>===<del class="diffchange diffchange-inline">硬件連接1</del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==<ins class="diffchange diffchange-inline">編程原理</ins>=<ins class="diffchange diffchange-inline">=</ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 水流量傳感器的黃色線連接到 Arduino UNO 控制器的數(shù)字引腳 2</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">水流量傳感器共引出三個(gè)引腳,分別是信號(hào)S、電源正Vcc、電源地GND,實(shí)際使用時(shí)可以將傳感器連接到 Arduino UNO 控制器的數(shù)字引腳,例如數(shù)字引腳2號(hào)&lt;br/&gt;</ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">* </del>水流量傳感器的紅色線連接到 Arduino UNO 控制器的電源正引腳 V 上</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">脈沖特性:&lt;br/&gt;</ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">* </del>水流量傳感器的黑色線連接到 Arduino UNO 控制器的電源負(fù)引腳 G 上</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">水平測試脈沖頻率(Hz)=[8.1Q -3 ]±10%(水平測試) (Q 為流量L/min )&lt;br/&gt;</ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===例子程序1===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">==使用方法==</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">===example1_Arduino</ins>===</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">硬件連接</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>水流量傳感器的黃色線連接到 Arduino UNO 控制器的數(shù)字引腳 2</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>水流量傳感器的紅色線連接到 Arduino UNO 控制器的電源正引腳 V 上</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>水流量傳感器的黑色線連接到 Arduino UNO 控制器的電源負(fù)引腳 G 上</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* 示例程序</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>volatile int NbTopsFan; //定義函數(shù) NbTopsFan 為整形</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>volatile int NbTopsFan; //定義函數(shù) NbTopsFan 為整形</div></td></tr> <tr><td colspan="2" class="diff-lineno">第82行:</td> <td colspan="2" class="diff-lineno">第90行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>}</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>}</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;/pre&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;/pre&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===程序效果1===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* 程序效果</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>將例子程序上傳到 Arduino UNO 控制器中,如果上傳無誤,Arduino IDE 的串口監(jiān)視器中會(huì)顯示當(dāng)前測試的流量值,如下圖所示:</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>將例子程序上傳到 Arduino UNO 控制器中,如果上傳無誤,Arduino IDE 的串口監(jiān)視器中會(huì)顯示當(dāng)前測試的流量值,如下圖所示:</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:02S03404.png|500px|有框|居中]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:02S03404.png|500px|有框|居中]]</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>===<del class="diffchange diffchange-inline">例子程序2</del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>===<ins class="diffchange diffchange-inline">example2_Arduino</ins>===</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">====硬件設(shè)備====</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* 主要硬件</ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Starduino UNO R 3 控制器 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* Starduino UNO R 3 控制器 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Arduino 傳感器擴(kuò)展板 V5.0 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* Arduino 傳感器擴(kuò)展板 V5.0 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Water Flow Sensor * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* Water Flow Sensor * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* RS360 齒輪自吸直流小水泵 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* RS360 齒輪自吸直流小水泵 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 繼電器模塊 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* 繼電器模塊 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 大按鈕模塊 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* 大按鈕模塊 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Serial LCD1602 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* Serial LCD1602 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 7.4V 鋰電池 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* 7.4V 鋰電池 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 3P 傳感器連接線 * 2個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* 3P 傳感器連接線 * 2個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Water Flow Sensor 連接轉(zhuǎn)接線 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* Water Flow Sensor 連接轉(zhuǎn)接線 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 水泵進(jìn)水管 * 1根</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* 水泵進(jìn)水管 * 1根</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 水泵出水-Water Flow Sensor 進(jìn)水轉(zhuǎn)接管(自制,實(shí)際應(yīng)接6 分管)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* 水泵出水-Water Flow Sensor 進(jìn)水轉(zhuǎn)接管(自制,實(shí)際應(yīng)接6 分管)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Water Flow Sensor 輸水管(自制,實(shí)際應(yīng)接6 分管)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* Water Flow Sensor 輸水管(自制,實(shí)際應(yīng)接6 分管)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 9V 1A 電源適配器 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:</ins>* 9V 1A 電源適配器 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">====接線示意圖====</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* 硬件連接</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor04.jpg|400px|有框|居中]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor04.jpg|400px|有框|居中]]</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>具體連接順序?yàn)椋?amp;lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>具體連接順序?yàn)椋?amp;lt;br/&gt;</div></td></tr> <tr><td colspan="2" class="diff-lineno">第109行:</td> <td colspan="2" class="diff-lineno">第119行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 大按鈕連接到傳感器擴(kuò)展板數(shù)字口4</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 大按鈕連接到傳感器擴(kuò)展板數(shù)字口4</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 串行1602液晶連接到串口&lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 串行1602液晶連接到串口&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">====應(yīng)用程序====</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* 示例程序</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>volatile int NbTopsFan; //定義函數(shù)NbTopsFan 為整形</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>volatile int NbTopsFan; //定義函數(shù)NbTopsFan 為整形</div></td></tr> <tr><td colspan="2" class="diff-lineno">第164行:</td> <td colspan="2" class="diff-lineno">第175行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>else if (HIGH == digitalRead(key))//如果digitalRead 為高電平則執(zhí)行下面的語句</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>else if (HIGH == digitalRead(key))//如果digitalRead 為高電平則執(zhí)行下面的語句</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{digitalWrite(on,HIGH);}//on 輸出高電平</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{digitalWrite(on,HIGH);}//on 輸出高電平</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>}&lt;/pre&gt;</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>}</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&lt;/pre&gt;</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>====程序效果====</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>====程序效果====</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>完成以上步驟后,首先給系統(tǒng)上電。系統(tǒng)上電后,按下大按鈕(使水泵運(yùn)轉(zhuǎn)),從而讓水流流過水流傳感器,系統(tǒng)就可以測試流量了。&lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>完成以上步驟后,首先給系統(tǒng)上電。系統(tǒng)上電后,按下大按鈕(使水泵運(yùn)轉(zhuǎn)),從而讓水流流過水流傳感器,系統(tǒng)就可以測試流量了。&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">下圖為水流流量測試系統(tǒng)初始時(shí)串行1602液晶顯示圖:</del></div></td><td colspan="2">&#160;</td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">[[文件:Water Flow Sensor05.jpg|400px|有框|居中]]</del></div></td><td colspan="2">&#160;</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>下圖為水流流量測試系統(tǒng)測試時(shí)串行1602液晶顯示圖:</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>下圖為水流流量測試系統(tǒng)測試時(shí)串行1602液晶顯示圖:</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor06.jpg|400px|有框|居中]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor06.jpg|400px|有框|居中]]</div></td></tr> </table> Arduino77 http://m.lifestyle201.com/wiki/index.php?title=SKU:RB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8&diff=8048&oldid=prev Arduino77:/* 產(chǎn)品相關(guān)推薦 */ 2018-09-28T08:50:54Z <p>?<span dir="auto"><span class="autocomment">產(chǎn)品相關(guān)推薦</span></span></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2018年9月28日 (五) 08:50的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第174行:</td> <td colspan="2" class="diff-lineno">第174行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==應(yīng)用視頻==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==應(yīng)用視頻==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:shui liu liang 01.png|400px|居中|link=http://v.youku.com/v_show/id_XMzc2MDY0MzA0.html?from=y1.7-2]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:shui liu liang 01.png|400px|居中|link=http://v.youku.com/v_show/id_XMzc2MDY0MzA0.html?from=y1.7-2]]</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>==<del class="diffchange diffchange-inline">產(chǎn)品相關(guān)推薦</del>==</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==<ins class="diffchange diffchange-inline">相關(guān)資料</ins>==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:erweima.png|230px|無框|右]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:erweima.png|230px|無框|右]]</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===購買地址===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* 產(chǎn)品資料</ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[http</del>://<del class="diffchange diffchange-inline">www</del>.<del class="diffchange diffchange-inline">alsrobot</del>.<del class="diffchange diffchange-inline">cn</del>/<del class="diffchange diffchange-inline">goods-174.html 水流量傳感器]</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">下載鏈接:https</ins>://<ins class="diffchange diffchange-inline">pan</ins>.<ins class="diffchange diffchange-inline">baidu</ins>.<ins class="diffchange diffchange-inline">com</ins>/<ins class="diffchange diffchange-inline">s</ins>/<ins class="diffchange diffchange-inline">1zi9SKv01_QcNp_HxiSbCTg </ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===周邊產(chǎn)品推薦===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">提取碼:wag5&#160; </ins>&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[http:</del>/<del class="diffchange diffchange-inline">/m.lifestyle201.com/goods-167.html Arduino 旋轉(zhuǎn)角度傳感器]&lt;br/&gt;</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* 產(chǎn)品購買鏈接:http</ins>://m.lifestyle201.com/goods-<ins class="diffchange diffchange-inline">174</ins>.html</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[http://m.lifestyle201.com/goods-626.html 水蒸氣傳感器 雨水探測器 液位開關(guān)]</del>&lt;br/&gt;</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[http</del>://m.lifestyle201.com/goods-<del class="diffchange diffchange-inline">196</del>.html <del class="diffchange diffchange-inline">通用傳感器連接線 3P杜邦連接線]&lt;br/&gt;</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===相關(guān)問題解答===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[http://www.makerspace.cn/forum.php?mod=viewthread&amp;tid=1291&amp;highlight=%E6%B0%B4%E6%B5%81%E9%87%8F 水流量傳感器輸出什么信號(hào)?]&lt;br/&gt;</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===相關(guān)學(xué)習(xí)資料===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[http://www.makerspace.cn/portal.php 奧松機(jī)器人技術(shù)論壇]</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr> </table> Arduino77 http://m.lifestyle201.com/wiki/index.php?title=SKU:RB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8&diff=8047&oldid=prev Arduino77:/* Water Flow Sensor模塊結(jié)構(gòu)圖 */ 2018-09-28T08:49:00Z <p>?<span dir="auto"><span class="autocomment">Water Flow Sensor模塊結(jié)構(gòu)圖</span></span></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2018年9月28日 (五) 08:49的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第33行:</td> <td colspan="2" class="diff-lineno">第33行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==Water Flow Sensor模塊結(jié)構(gòu)圖==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==Water Flow Sensor模塊結(jié)構(gòu)圖==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor03.jpg|400px|有框|居中]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:Water Flow Sensor03.jpg|400px|有框|居中]]</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">'''管徑說明:'''&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">:G1/2&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">:G -- 55 度非螺紋密封管螺紋,屬惠氏螺紋家族.標(biāo)記為 G 代表圓柱螺紋.國家標(biāo)準(zhǔn)可查閱 GB/T7307-2001&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">:1/2 -- 4分管&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">:說明:將1英寸化為8分,4分即管外徑為4/8*25.4 = 12.7mm&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Water Flow Sensor使用注意事項(xiàng):&lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Water Flow Sensor使用注意事項(xiàng):&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>此款水流傳感器嚴(yán)禁劇烈沖擊以及化學(xué)物質(zhì)的侵蝕。嚴(yán)禁拋擲或碰撞。檢測介質(zhì)不宜超過120℃。安裝方式為垂直于地面,且傾斜度不超過5度。</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>此款水流傳感器嚴(yán)禁劇烈沖擊以及化學(xué)物質(zhì)的侵蝕。嚴(yán)禁拋擲或碰撞。檢測介質(zhì)不宜超過120℃。安裝方式為垂直于地面,且傾斜度不超過5度。<ins class="diffchange diffchange-inline">&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&#160;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==使用方法==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==使用方法==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===工作原理===</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===工作原理===</div></td></tr> </table> Arduino77 http://m.lifestyle201.com/wiki/index.php?title=SKU:RB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8&diff=7472&oldid=prev Arduino77:/* 使用方法 */ 2017-04-26T01:13:22Z <p>?<span dir="auto"><span class="autocomment">使用方法</span></span></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2017年4月26日 (三) 01:13的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第42行:</td> <td colspan="2" class="diff-lineno">第42行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>水流量傳感器共引出三個(gè)引腳,分別是信號(hào)S、電源正Vcc、電源地GND,實(shí)際使用時(shí)可以將傳感器連接到 Arduino UNO 控制器的數(shù)字引腳,例如數(shù)字引腳2號(hào),</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>水流量傳感器共引出三個(gè)引腳,分別是信號(hào)S、電源正Vcc、電源地GND,實(shí)際使用時(shí)可以將傳感器連接到 Arduino UNO 控制器的數(shù)字引腳,例如數(shù)字引腳2號(hào),</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>脈沖特性:水平測試脈沖頻率(Hz)=[8.1Q -3 ]±10%(水平測試) (Q 為流量L/min )&lt;br/&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>脈沖特性:水平測試脈沖頻率(Hz)=[8.1Q -3 ]±10%(水平測試) (Q 為流量L/min )&lt;br/&gt;</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===硬件連接1===</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===硬件連接1===</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 水流量傳感器的黃色線連接到 Arduino UNO <del class="diffchange diffchange-inline">控制器的信號(hào)引腳 S 上</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* 水流量傳感器的黃色線連接到 Arduino UNO <ins class="diffchange diffchange-inline">控制器的數(shù)字引腳 2</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 水流量傳感器的紅色線連接到 Arduino UNO 控制器的電源正引腳 V 上</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 水流量傳感器的紅色線連接到 Arduino UNO 控制器的電源正引腳 V 上</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 水流量傳感器的黑色線連接到 Arduino UNO 控制器的電源負(fù)引腳 G 上</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 水流量傳感器的黑色線連接到 Arduino UNO 控制器的電源負(fù)引腳 G 上</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===例子程序1===</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===例子程序1===</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>volatile int NbTopsFan; //<del class="diffchange diffchange-inline">定義函數(shù)NbTopsFan </del>為整形</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>volatile int NbTopsFan; //<ins class="diffchange diffchange-inline">定義函數(shù) NbTopsFan </ins>為整形</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>int Calc; //<del class="diffchange diffchange-inline">定義函數(shù)Calc </del>為整形變量</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>int Calc; //<ins class="diffchange diffchange-inline">定義函數(shù) Calc </ins>為整形變量</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>int hallsensor = 2; //<del class="diffchange diffchange-inline">定義hallsensor </del>為數(shù)字口2</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>int hallsensor = 2; //<ins class="diffchange diffchange-inline">定義 hallsensor </ins>為數(shù)字口2</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>int flag; //<del class="diffchange diffchange-inline">定義flag </del>為整形變量</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>int flag; //<ins class="diffchange diffchange-inline">定義 flag </ins>為整形變量</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>void rpm ()</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>void rpm ()</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{</div></td></tr> <tr><td colspan="2" class="diff-lineno">第78行:</td> <td colspan="2" class="diff-lineno">第79行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:02S03404.png|500px|有框|居中]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:02S03404.png|500px|有框|居中]]</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>===<del class="diffchange diffchange-inline">應(yīng)用例程</del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>===<ins class="diffchange diffchange-inline">例子程序2</ins>===</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>====硬件設(shè)備====</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>====硬件設(shè)備====</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Arduino </del>UNO 控制器 * 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Starduino </ins>UNO <ins class="diffchange diffchange-inline">R 3 </ins>控制器 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Arduino 傳感器擴(kuò)展板 V5.0 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Arduino 傳感器擴(kuò)展板 V5.0 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Water Flow Sensor * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Water Flow Sensor * 1個(gè)</div></td></tr> <tr><td colspan="2" class="diff-lineno">第87行:</td> <td colspan="2" class="diff-lineno">第88行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 大按鈕模塊 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 大按鈕模塊 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Serial LCD1602 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Serial LCD1602 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">ACE 鋰聚合物電池 </del>* 1個(gè)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">7.4V 鋰電池 </ins>* 1個(gè)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 3P 傳感器連接線 * 2個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 3P 傳感器連接線 * 2個(gè)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Water Flow Sensor 連接轉(zhuǎn)接線 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Water Flow Sensor 連接轉(zhuǎn)接線 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">* 鱷魚夾-JST 電池連接線 * 1個(gè)</del></div></td><td colspan="2">&#160;</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 水泵進(jìn)水管 * 1根</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 水泵進(jìn)水管 * 1根</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 水泵出水-Water Flow Sensor 進(jìn)水轉(zhuǎn)接管(自制,實(shí)際應(yīng)接6 分管)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 水泵出水-Water Flow Sensor 進(jìn)水轉(zhuǎn)接管(自制,實(shí)際應(yīng)接6 分管)</div></td></tr> <tr><td colspan="2" class="diff-lineno">第101行:</td> <td colspan="2" class="diff-lineno">第101行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 繼電器連接到傳感器擴(kuò)展板數(shù)字口3(另一端連接電源連接線上)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 繼電器連接到傳感器擴(kuò)展板數(shù)字口3(另一端連接電源連接線上)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 大按鈕連接到傳感器擴(kuò)展板數(shù)字口4</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 大按鈕連接到傳感器擴(kuò)展板數(shù)字口4</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">串行1602液晶連接到COM口</del>&lt;br/&gt;</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">串行1602液晶連接到串口</ins>&lt;br/&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>====應(yīng)用程序====</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>====應(yīng)用程序====</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td></tr> </table> Arduino77 http://m.lifestyle201.com/wiki/index.php?title=SKU:RB-02S034_%E6%B0%B4%E6%B5%81%E9%87%8F%E4%BC%A0%E6%84%9F%E5%99%A8&diff=5998&oldid=prev Arduino77:以“<br/> 右 ==產(chǎn)品介紹== Water Flow Sensor 水流傳感器,主要由塑料閥體 、水流轉(zhuǎn)子組件和霍爾傳感器組...”為內(nèi)容創(chuàng)建頁面 2016-06-22T08:06:08Z <p>以“&lt;br/&gt; <a href="/wiki/index.php/%E6%96%87%E4%BB%B6:02S03401.png" title="文件:02S03401.png">右</a> ==產(chǎn)品介紹== Water Flow Sensor 水流傳感器,主要由塑料閥體 、水流轉(zhuǎn)子組件和霍爾傳感器組...”為內(nèi)容創(chuàng)建頁面</p> <p><b>新頁面</b></p><div>&lt;br/&gt;<br /> [[文件:02S03401.png|500px|有框|右]]<br /> ==產(chǎn)品介紹==<br /> Water Flow Sensor 水流傳感器,主要由塑料閥體 、水流轉(zhuǎn)子組件和霍爾傳感器組成。此傳感器應(yīng)用于水的流量測控系統(tǒng),例如安裝在熱水器進(jìn)水端,對水的流量進(jìn)行檢測。Water Flow Sensor 外觀輕巧靈便,體積小,便于安裝,葉輪內(nèi)部鑲有不銹鋼珠,永久耐磨,密封圈采用上、下受力的結(jié)構(gòu)永不漏水?;魻栐捎玫聡M(jìn)口。并且用灌封膠封裝防止進(jìn)水,永不老化。所有原材料均有符合ROHS 檢測標(biāo)準(zhǔn)??梢赃m合各種控制器和開發(fā)板,如:Arduino 控制器、STC 單片機(jī)、AVR 單片機(jī)等。<br /> ==規(guī)格參數(shù)==<br /> # 進(jìn)水口內(nèi)徑:8.5mm<br /> # 進(jìn)水口、出水口外徑:20.12 mm<br /> # 輸出波形:方波<br /> # 工作電壓范圍:DC +3V~+24V<br /> # 最大工作電流:15mA(DC +5V)<br /> # 負(fù)載能力:≤10mA(DC +5V)<br /> # 使用溫度范圍:≤80℃<br /> # 使用濕度范圍:35%~90%RH(無結(jié)霜狀態(tài))<br /> # 允許耐壓:水壓1.75Mpa 以下<br /> # 保存溫度:-25℃~80℃<br /> # 保存濕度:25%~95%RH<br /> # 輸出脈沖高電平:>DC 4.5V(輸入電壓DC +5V)<br /> # 輸出脈沖低電平:<DC 0.5V(輸入電壓DC +5V)<br /> # 精度(流量——脈沖輸出):1~30L/min±1%以內(nèi)<br /> # 輸出脈沖占空比:50±10%<br /> # 輸出上升時(shí)間:0.04uS<br /> # 輸出下降時(shí)間:0.18uS 流量<br /> # 耐熱性:在80±3℃環(huán)境中放置48h ,返回常溫1-2h 無異常,且零件無裂紋、松馳、膨脹、變形等現(xiàn)象,精度變化10%以內(nèi)。<br /> # 耐寒性:在-20±3℃環(huán)境中放置48h ,返回常溫1-2h 無異常,且零件無裂紋、松馳、膨脹、變形等現(xiàn)象,精度變化10%以內(nèi)。<br /> # 耐濕性:在40±2℃,相對濕度90%~95%RH 環(huán)境中放置72h 取出后,絕緣電阻1MΩ以上。<br /> # 耐久性:在常溫下,從水口通入0.1Mpa 水壓,以接通1S,斷開0.5S 為一循環(huán)。<br /> # 流量---脈沖特性參照表<br /> [[文件:Water Flow Sensor02.jpg|800px|有框|居中]]<br /> ==引腳定義==<br /> * 紅色線(IN):接正極(+)<br /> * 黃色線(OUT):信號(hào)輸出線<br /> * 黑色線(GND):接負(fù)極(-)<br /> ==Water Flow Sensor模塊結(jié)構(gòu)圖==<br /> [[文件:Water Flow Sensor03.jpg|400px|有框|居中]]<br /> Water Flow Sensor使用注意事項(xiàng):&lt;br/&gt;<br /> 此款水流傳感器嚴(yán)禁劇烈沖擊以及化學(xué)物質(zhì)的侵蝕。嚴(yán)禁拋擲或碰撞。檢測介質(zhì)不宜超過120℃。安裝方式為垂直于地面,且傾斜度不超過5度。<br /> ==使用方法==<br /> ===工作原理===<br /> 水流量傳感器又可以叫做霍爾傳感器,傳感器整體是由 ABS 工程塑料制成,上下兩端為 4 分螺牙,中間為一個(gè)圓柱體結(jié)構(gòu),并有三根導(dǎo)線接出,紅色為正極、黑色負(fù)極、黃色信號(hào)輸出端。其內(nèi)部還有一個(gè)五葉輪和霍爾元件,背面有一個(gè)箭頭,這個(gè)箭頭表示水流的方向,所以如果更換的時(shí)候不能裝反。&lt;br/&gt;<br /> 霍爾傳感器中,五葉輪連接磁性轉(zhuǎn)子,轉(zhuǎn)子置于線圈中,線圈即為霍爾集成元件,當(dāng)水通過水流轉(zhuǎn)子組件時(shí),磁性轉(zhuǎn)子轉(zhuǎn)動(dòng)并且轉(zhuǎn)速隨著流量變化而變化,霍爾傳感器輸出相應(yīng)脈沖信號(hào),反饋給控制器,由控制器判斷水流量的大小,進(jìn)行調(diào)控。&lt;br/&gt;<br /> ===編程原理===<br /> 水流量傳感器共引出三個(gè)引腳,分別是信號(hào)S、電源正Vcc、電源地GND,實(shí)際使用時(shí)可以將傳感器連接到 Arduino UNO 控制器的數(shù)字引腳,例如數(shù)字引腳2號(hào),<br /> 脈沖特性:水平測試脈沖頻率(Hz)=[8.1Q -3 ]±10%(水平測試) (Q 為流量L/min )&lt;br/&gt;<br /> ===硬件連接1===<br /> * 水流量傳感器的黃色線連接到 Arduino UNO 控制器的信號(hào)引腳 S 上<br /> * 水流量傳感器的紅色線連接到 Arduino UNO 控制器的電源正引腳 V 上<br /> * 水流量傳感器的黑色線連接到 Arduino UNO 控制器的電源負(fù)引腳 G 上<br /> ===例子程序1===<br /> &lt;pre style='color:blue'&gt;<br /> volatile int NbTopsFan; //定義函數(shù)NbTopsFan 為整形<br /> int Calc; //定義函數(shù)Calc 為整形變量<br /> int hallsensor = 2; //定義hallsensor 為數(shù)字口2<br /> int flag; //定義flag 為整形變量<br /> void rpm ()<br /> {<br /> NbTopsFan++; //函數(shù)自動(dòng)+1<br /> }<br /> void setup()<br /> {<br /> pinMode(hallsensor, INPUT); //定義hallsensor 為輸入信號(hào)<br /> Serial.begin(9600); //定義波特率為9600,<br /> Serial.print(&quot;Welcome to www.robotbase.cn&quot;); <br /> delay(1000);<br /> attachInterrupt(0, rpm, RISING); //定義中斷進(jìn)程<br /> }<br /> void loop ()<br /> {<br /> NbTopsFan = 0; //NbTops 初始值為0<br /> sei(); //初始化中斷<br /> delay (1000); //延遲1 秒<br /> cli(); //禁用中斷<br /> Calc = (NbTopsFan * 60 / 8.1); //(脈沖頻率×60)/ 8.1 Q,=流量L /小時(shí)<br /> Serial.println(Calc);<br /> }<br /> &lt;/pre&gt;<br /> ===程序效果1===<br /> 將例子程序上傳到 Arduino UNO 控制器中,如果上傳無誤,Arduino IDE 的串口監(jiān)視器中會(huì)顯示當(dāng)前測試的流量值,如下圖所示:<br /> [[文件:02S03404.png|500px|有框|居中]]<br /> <br /> ===應(yīng)用例程===<br /> ====硬件設(shè)備====<br /> * Arduino UNO 控制器 * 1個(gè)<br /> * Arduino 傳感器擴(kuò)展板 V5.0 * 1個(gè)<br /> * Water Flow Sensor * 1個(gè)<br /> * RS360 齒輪自吸直流小水泵 * 1個(gè)<br /> * 繼電器模塊 * 1個(gè)<br /> * 大按鈕模塊 * 1個(gè)<br /> * Serial LCD1602 * 1個(gè)<br /> * ACE 鋰聚合物電池 * 1個(gè)<br /> * 3P 傳感器連接線 * 2個(gè)<br /> * Water Flow Sensor 連接轉(zhuǎn)接線 * 1個(gè)<br /> * 鱷魚夾-JST 電池連接線 * 1個(gè)<br /> * 水泵進(jìn)水管 * 1根<br /> * 水泵出水-Water Flow Sensor 進(jìn)水轉(zhuǎn)接管(自制,實(shí)際應(yīng)接6 分管)<br /> * Water Flow Sensor 輸水管(自制,實(shí)際應(yīng)接6 分管)<br /> * 9V 1A 電源適配器 * 1個(gè)<br /> ====接線示意圖====<br /> [[文件:Water Flow Sensor04.jpg|400px|有框|居中]]<br /> 具體連接順序?yàn)椋?amp;lt;br/&gt;<br /> * Water Flow Sensor連接到傳感器擴(kuò)展板的數(shù)字口2<br /> * 繼電器連接到傳感器擴(kuò)展板數(shù)字口3(另一端連接電源連接線上)<br /> * 大按鈕連接到傳感器擴(kuò)展板數(shù)字口4<br /> * 串行1602液晶連接到COM口&lt;br/&gt;<br /> ====應(yīng)用程序====<br /> &lt;pre style='color:blue'&gt;<br /> volatile int NbTopsFan; //定義函數(shù)NbTopsFan 為整形<br /> int Calc; //定義函數(shù)Calc 為整形變量<br /> int on = 3; //定義on 為數(shù)字口3<br /> int key = 4; //定義key 為數(shù)字口4<br /> int hallsensor = 2; //定義hallsensor 為數(shù)字口2<br /> int flag; //定義flag 為整形變量<br /> void rpm ()<br /> {<br /> NbTopsFan++; //函數(shù)自動(dòng)+1<br /> }<br /> void setup()<br /> {<br /> pinMode(key,INPUT); //定義key 為輸入信號(hào)<br /> pinMode(on, OUTPUT); //定義on 為輸出入信號(hào)<br /> digitalWrite(on,HIGH); //定義on 初始信號(hào)為高電平<br /> pinMode(hallsensor, INPUT); //定義hallsensor 為輸入信號(hào)<br /> Serial.begin(9600); //定義波特率為9600,<br /> Serial.print(&quot;$CLEAR\r\n&quot;); //清屏<br /> Serial.print(&quot;$GO 1 4\r\n&quot;);//顯示的地址為第1 行第4 列<br /> Serial.print(&quot;$PRINT Welcome to\r\n&quot;); //打印字符Welcome to<br /> Serial.print(&quot;$GO 2 1\r\n&quot;);//顯示的地址為第2 行第1 列<br /> Serial.print(&quot;$PRINT www.robotbase.cn\r\n&quot;);//打印字符www.robotbase.cn<br /> Serial.print(&quot;$CURSOR 1 1\r\n&quot;);//光標(biāo)移動(dòng)到第1 行第1 列<br /> delay(1000);<br /> attachInterrupt(0, rpm, RISING); //定義中斷進(jìn)程<br /> }<br /> void loop ()<br /> {<br /> NbTopsFan = 0; //NbTops 初始值為0<br /> sei(); //初始化中斷<br /> delay (1000); //延遲1 秒<br /> cli(); //禁用中斷<br /> Calc = (NbTopsFan * 60 / 8.1); //(脈沖頻率×60)/ 8.1 Q,=流量L /小時(shí)<br /> cc();<br /> if(flag != Calc)<br /> {<br /> Serial.print(&quot;$CLEAR\r\n&quot;); //清屏<br /> Serial.print(&quot;$CLEAR\r\n&quot;); //清屏<br /> Serial.print(&quot;$GO 1 6\r\n&quot;);//顯示的地址為第1 行第6 列<br /> Serial.print(&quot;$PRINT &quot;);<br /> Serial.print(Calc);Serial.print(&quot; L/h \r\n&quot;); //打印字符&quot; L/h &quot;<br /> Serial.print(&quot;$GO 2 1\r\n&quot;);//顯示的地址為第2 行第1 列<br /> Serial.print(&quot;$PRINT Flow Measurement\r\n&quot;);//打印字符&quot; Flow Measurement &quot;<br /> Serial.print(&quot;$CURSOR 1 1\r\n&quot;);//光標(biāo)移動(dòng)到第1 行第1 列<br /> flag = Calc;<br /> }<br /> }<br /> void cc()<br /> {<br /> if (LOW == digitalRead(key))//如果digitalRead 為低電平則執(zhí)行下面的語句<br /> {digitalWrite(on,LOW);}//on 輸出低電平<br /> else if (HIGH == digitalRead(key))//如果digitalRead 為高電平則執(zhí)行下面的語句<br /> {digitalWrite(on,HIGH);}//on 輸出高電平<br /> }&lt;/pre&gt;<br /> ====程序效果====<br /> 完成以上步驟后,首先給系統(tǒng)上電。系統(tǒng)上電后,按下大按鈕(使水泵運(yùn)轉(zhuǎn)),從而讓水流流過水流傳感器,系統(tǒng)就可以測試流量了。&lt;br/&gt;<br /> 下圖為水流流量測試系統(tǒng)初始時(shí)串行1602液晶顯示圖:<br /> [[文件:Water Flow Sensor05.jpg|400px|有框|居中]]<br /> 下圖為水流流量測試系統(tǒng)測試時(shí)串行1602液晶顯示圖:<br /> [[文件:Water Flow Sensor06.jpg|400px|有框|居中]]<br /> <br /> ==應(yīng)用視頻==<br /> [[File:shui liu liang 01.png|400px|居中|link=http://v.youku.com/v_show/id_XMzc2MDY0MzA0.html?from=y1.7-2]]<br /> ==產(chǎn)品相關(guān)推薦==<br /> [[文件:erweima.png|230px|無框|右]]<br /> ===購買地址===<br /> [http://m.lifestyle201.com/goods-174.html 水流量傳感器]<br /> ===周邊產(chǎn)品推薦===<br /> [http://m.lifestyle201.com/goods-167.html Arduino 旋轉(zhuǎn)角度傳感器]&lt;br/&gt;<br /> [http://m.lifestyle201.com/goods-626.html 水蒸氣傳感器 雨水探測器 液位開關(guān)]&lt;br/&gt;<br /> [http://m.lifestyle201.com/goods-196.html 通用傳感器連接線 3P杜邦連接線]&lt;br/&gt;<br /> ===相關(guān)問題解答===<br /> [http://www.makerspace.cn/forum.php?mod=viewthread&amp;tid=1291&amp;highlight=%E6%B0%B4%E6%B5%81%E9%87%8F 水流量傳感器輸出什么信號(hào)?]&lt;br/&gt;<br /> ===相關(guān)學(xué)習(xí)資料===<br /> [http://www.makerspace.cn/portal.php 奧松機(jī)器人技術(shù)論壇]</div> Arduino77