http://lifestyle201.com/wiki/index.php?action=history&feed=atom&title=%28SKU%3ARB-02S092%29_%E5%85%A8%E5%BD%A9_LED_%E6%A8%A1%E5%9D%97 国产伦一区二区三区高清,久久久久久久性潮,国产人免费视频成69 2025-03-14T19:23:22Z 本wiki的該頁面的版本歷史 MediaWiki 1.21.2 http://lifestyle201.com/wiki/index.php?title=(SKU:RB-02S092)_%E5%85%A8%E5%BD%A9_LED_%E6%A8%A1%E5%9D%97&diff=4640&oldid=prev Arduino77:/* 例子程序 */ 2015-12-30T08:05:18Z <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;">2015年12月30日 (三) 08:05的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第21行:</td> <td colspan="2" class="diff-lineno">第21行:</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>[[文件:02S09203.png|700px|縮略圖|居中]]</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>[[文件:02S09203.png|700px|縮略圖|居中]]</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'>?</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">在程序上傳前需要點(diǎn)此下載庫文件,放到 </del>Arduino 軟件安裝目錄下的 libraries 文件夾下,否則會(huì)出現(xiàn)編譯不成功問題。 &#160;</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">在程序上傳前需要[http://pan.baidu.com/s/1jGYbPd0 點(diǎn)此下載]庫文件,放到 </ins>Arduino 軟件安裝目錄下的 libraries 文件夾下,否則會(huì)出現(xiàn)編譯不成功問題。 &#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>&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>#include &quot;Makeblock.h&quot;</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>#include &quot;Makeblock.h&quot;</div></td></tr> <tr><td colspan="2" class="diff-lineno">第51行:</td> <td colspan="2" class="diff-lineno">第51行:</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 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>===實(shí)驗(yà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>===實(shí)驗(yàn)效果===</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>將上述例程復(fù)制到 Arduino IDE 中,上傳無誤的情況下,正確連接模塊 LED 交替發(fā)出七彩光。</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>將上述例程復(fù)制到 Arduino IDE 中,上傳無誤的情況下,正確連接模塊 LED 交替發(fā)出七彩光。</div></td></tr> </table> Arduino77 http://lifestyle201.com/wiki/index.php?title=(SKU:RB-02S092)_%E5%85%A8%E5%BD%A9_LED_%E6%A8%A1%E5%9D%97&diff=4639&oldid=prev Arduino77:以“右 ==產(chǎn)品概述== 此產(chǎn)品具有4個(gè)全彩 WS2812 RGB LED組成。通過單片機(jī),可以單獨(dú)控制每個(gè)LED。通過...”為內(nèi)容創(chuàng)建頁面 2015-12-30T07:47:38Z <p>以“<a href="/wiki/index.php/%E6%96%87%E4%BB%B6:02S09201.png" title="文件:02S09201.png">右</a> ==產(chǎn)品概述== 此產(chǎn)品具有4個(gè)全彩 WS2812 RGB LED組成。通過單片機(jī),可以單獨(dú)控制每個(gè)LED。通過...”為內(nèi)容創(chuàng)建頁面</p> <p><b>新頁面</b></p><div>[[文件:02S09201.png|500px|縮略圖|右]]<br /> ==產(chǎn)品概述==<br /> 此產(chǎn)品具有4個(gè)全彩 WS2812 RGB LED組成。通過單片機(jī),可以單獨(dú)控制每個(gè)LED。通過混合不同量的紅,綠,藍(lán),調(diào)整其亮度和創(chuàng)造任何顏色。此款產(chǎn)品數(shù)據(jù)接口采用防插反插頭,接口兩側(cè)分別有字母“D”代表信號(hào)類型為數(shù)字信號(hào),和 “RGB”標(biāo)識(shí)代表模塊類型,特設(shè)4顆M3固定安裝孔,調(diào)節(jié)方向與固定方便易用,美觀大方。<br /> ==規(guī)格參數(shù)==<br /> #工作電壓 :5v<br /> #尺寸大?。?40mm x 25mm<br /> #重量大?。?g<br /> #信號(hào)類型:數(shù)字輸入<br /> ==引腳定義==<br /> * OUT:級(jí)聯(lián)引腳<br /> * DIN:信號(hào)引腳<br /> * -:電源地<br /> * +:電源正極<br /> [[文件:02S09202.png|500px|縮略圖|居中]]<br /> ==使用方法==<br /> ===工作原理===<br /> 產(chǎn)品由 4 個(gè)全彩 WS2812 RGB LED 組成,WS2812是一個(gè)集控制電路與發(fā)光電路于一體的智能外控LED光源。其外型與一個(gè) 5050 LED 燈珠相同,每個(gè)元件即為一個(gè)像素點(diǎn)。像素點(diǎn)內(nèi)部包含了智能數(shù)字接口數(shù)據(jù)鎖存信號(hào)整形放大驅(qū)動(dòng)電路,還包含有高精度的內(nèi)部振蕩器和12V高壓可編程定電流控制部分,有效保證了像素點(diǎn)光的顏色高度一致。數(shù)據(jù)協(xié)議采用單線歸零碼的通訊方式,像素點(diǎn)在上電復(fù)位以后,DIN端接受從控制器傳輸過來的數(shù)據(jù),首先送過來的24bit數(shù)據(jù)被第一個(gè)像素點(diǎn)提取后,送到像素點(diǎn)內(nèi)部的數(shù)據(jù)鎖存器,剩余的數(shù)據(jù)經(jīng)過內(nèi)部整形處理電路整形放大后通過DO端口開始轉(zhuǎn)發(fā)輸出給下一個(gè)級(jí)聯(lián)的像素點(diǎn),每經(jīng)過一個(gè)像素點(diǎn)的傳輸,信號(hào)減少24bit。像素點(diǎn)采用自動(dòng)整形轉(zhuǎn)發(fā)技術(shù),使得該像素點(diǎn)的級(jí)聯(lián)個(gè)數(shù)不受信號(hào)傳送的限制,僅僅受限信號(hào)傳輸速度要求。LED具有低電壓驅(qū)動(dòng),環(huán)保節(jié)能,亮度高,散射角度大,一致性好,超低功率,超長壽命等優(yōu)點(diǎn)。將控制電路集成于LED上面,電路變得更加簡(jiǎn)單,體積小,安裝更加簡(jiǎn)便。<br /> ===編程原理===<br /> <br /> ===硬件連接圖===<br /> [[文件:02S09203.png|700px|縮略圖|居中]]<br /> ===例子程序===<br /> 在程序上傳前需要點(diǎn)此下載庫文件,放到 Arduino 軟件安裝目錄下的 libraries 文件夾下,否則會(huì)出現(xiàn)編譯不成功問題。 <br /> &lt;pre style='color:blue'&gt;<br /> #include &quot;Makeblock.h&quot;<br /> #include &lt;SoftwareSerial.h&gt;<br /> #include &lt;Wire.h&gt;<br /> MeRGBLed led(PORT_3);<br /> int ledCount = 4;<br /> float j,f,k;<br /> void setup()<br /> {<br /> led.setNumber(ledCount);<br /> }<br /> void loop(){<br /> color_loop();<br /> }<br /> void color_loop()<br /> { <br /> for (uint8_t t = 0; t &lt; ledCount; t++)<br /> {<br /> uint8_t red = 64*(1+sin(t/2.0 + j/4.0 ));<br /> uint8_t green = 64*(1+sin(t/1.0 + f/9.0 + 2.1));<br /> uint8_t blue = 64*(1+sin(t/3.0 + k/14.0 + 4.2));<br /> led.setColorAt(t, red,green,blue);<br /> }<br /> led.show();<br /> j+=random(1,6)/6.0;<br /> f+=random(1,6)/6.0;<br /> k+=random(1,6)/6.0;<br /> }<br /> &lt;/pre&gt;<br /> ===實(shí)驗(yàn)效果===<br /> 將上述例程復(fù)制到 Arduino IDE 中,上傳無誤的情況下,正確連接模塊 LED 交替發(fā)出七彩光。<br /> ==視頻演示==<br /> [[File:RGB LED.png|400px|居中|link=http://v.youku.com/v_show/id_XMTI5NjEzMzQ5Mg==.html?from=y1.7-1.2]]<br /> ==產(chǎn)品相關(guān)推薦==<br /> [[文件:erweima.png|230px|無框|右]]<br /> ===產(chǎn)品購買地址===<br /> [http://lifestyle201.com/goods-724.html Arduino RGB LED 發(fā)光模塊]<br /> ===周邊產(chǎn)品推薦===<br /> [http://lifestyle201.com/goods-66.html Arduino LED發(fā)光模塊 食人魚燈 藍(lán)色高亮]&lt;br/&gt;<br /> [http://lifestyle201.com/goods-62.html Arduino LED發(fā)光模塊 食人魚燈 白光高亮]&lt;br/&gt;<br /> [http://lifestyle201.com/goods-67.html Arduino LED發(fā)光模塊 食人魚燈 綠色高亮]&lt;br/&gt;<br /> [http://lifestyle201.com/goods-63.html Arduino LED發(fā)光模塊 黃光高亮 食人魚燈]&lt;br/&gt;<br /> [http://lifestyle201.com/goods-133.html Arduino LED發(fā)光模塊 食人魚燈 紅光高亮]&lt;br/&gt;<br /> [http://lifestyle201.com/goods-700.html Arduino 條形LED模塊 10段條狀數(shù)碼管 發(fā)光模塊]&lt;br/&gt;<br /> ===相關(guān)問題解答===<br /> ===相關(guān)學(xué)習(xí)資料===<br /> [http://www.makerspace.cn/portal.php 奧松機(jī)器人技術(shù)論壇]&lt;br/&gt;</div> Arduino77