浣犳湁娌℃湁鎯宠繃锛屽閲岄偅浜涗細鍙樿壊鐨勬皼鍥寸伅銆佸晢鍦洪噷娴佸厜婧㈠僵鐨勮楗扮伅锛岀敋鑷虫槸鑸炲彴涓婇叿鐐殑鐏厜绉€锛屸€?strong>鍒板簳鏄€庝箞鍋氬埌鍍忓彉榄旀湳涓€鏍峰垏鎹㈤鑹茬殑锛?/strong> 浠婂ぉ鍜变滑灏变粠涓€涓柊鎵嬪皬鐧界殑瑙掑害锛屾彮寮€杩欎釜鈥滈瓟鏈€濊儗鍚庣殑绉樺瘑鈥斺€斿叏褰㏑GB鐏彔涓茶仈銆?/p>
馃攳 鈥?strong>涓€銆佸暐鏄疪GB鐏彔锛熷厛鎼炴噦鈥滀笁鍘熻壊娣峰悎鍘熺悊鈥濃€?/strong>
鈥嬧€淩GB鈥濊繖浠ㄥ瓧姣嶏紝鎷嗗紑灏辨槸绾紙Red锛夈€佺豢锛圙reen锛夈€佽摑锛圔lue锛夈€傗€?/strong> 杩欎笁绉嶉鑹茬殑鐏彔鎷煎湪涓€璧凤紝灏辫兘閫氳繃璋冩暣浜害姣斾緥娣峰悎鍑哄崈涓囩棰滆壊銆傛瘮濡傦細
- 鈥?strong>绾㈣壊+缁胯壊=榛勮壊
- 鈥?strong>钃濊壊+绾㈣壊=绱壊
- 鈥?strong>涓夌棰滆壊鍏ㄥ紑=鐧借壊
涓句釜馃尠锛屽鏋滀綘鎶婄孩銆佺豢銆佽摑涓変釜鐏彔鐨勪寒搴﹀垎鍒皟鍒?55銆?00銆?0锛屾贩鍚堝嚭鏉ョ殑棰滆壊鍙兘灏辨槸鏌愮姗欒壊璋冿紙鍏蜂綋鏁板€煎緱瀹為檯璋冭瘯锛夈€傗€?strong>璇寸櫧浜嗭紝杩欏氨鏄厜鐨勪笁鍘熻壊鍘熺悊锛屽拰鍜变滑灏忔椂鍊欑帺鐨勬按褰╄皟鑹茬洏涓€涓亾鐞嗭紒鈥?/strong>
鈿?鈥?strong>浜屻€佷覆鑱旇繕鏄苟鑱旓紵閫夊鏂瑰紡寰堥噸瑕侊紒鈥?/strong>
鏂版墜鏈€澶寸柤鐨勯棶棰樻潵浜嗭細鈥?strong>鈥嬧€滃叏褰╃伅鐝犲埌搴曡涓茶仈杩樻槸骞惰仈锛熲€濃€?/strong> 绛旀鏄細鐪嬪満鏅紒
鈥?strong>1. 涓茶仈鐨勪紭鍔?/strong>鈥嬶紙閫傚悎闀胯窛绂汇€侀珮鐢靛帇锛?/h3>
- 鈥?strong>鐢佃矾绠€鍗?/strong>锛氬儚绯栬懌鑺︿竴鏍蜂覆鎴愪竴涓诧紝鍙敤涓€鏍圭嚎灏辫兘浼犱俊鍙峰拰鐢垫簮銆?/li>
- 鈥?strong>绋冲畾鎬ч珮锛氭敮鎸佹柇鐐圭画浼狅紝灏辩畻涓棿鏈変釜鐏彔鍧忎簡锛屽悗闈㈢殑杩樿兘姝e父浜€?/li>
- 鈥?strong>鐪佹潗鏂?/strong>锛氫笉鐢ㄦ瘡涓伅鐝犻兘鎺ョ數婧愮嚎锛岄€傚悎鍋氱伅甯︺€佺伅涓层€?/li>
鈥?strong>2. 涓茶仈鐨勬寫鎴?/strong>鈥嬶紙鏂版墜蹇呯湅锛侊級
- 鈥?strong>鐢靛帇瑕佹眰楂?/strong>锛氭瘮濡傜敤220V瀹剁敤鐢垫簮鏃讹紝寰楃畻濂芥€荤數鍘嬪拰鐏彔鏁伴噺锛屽惁鍒欏彲鑳界儳鍧忋€?/li>
- 鈥?strong>鐒婃帴鎶€鏈棬妲?/strong>锛氱儥閾佹俯搴︿笉鑳借秴杩?20鈩冿紝鐒婃帴鏃堕棿寰楁帶鍒跺湪3绉掑唴锛屽惁鍒欑伅鐝犺兌浣撲細铻嶅寲銆?/li>
鉀戯笍 鈥?strong>閬垮潙鎸囧崡锛氱涓€娆″皾璇曟椂锛屽缓璁厛鐢ㄤ綆鍘嬬數婧愶紙姣斿5V锛夊拰灏戦噺鐏彔缁冩墜锛岄檷浣庣炕杞︽鐜囷紒
馃捇 鈥?strong>涓夈€佹墜鎶婃墜鏁欎綘缂栫▼鎺у埗棰滆壊锛堥檮妗堜緥锛夆€?/strong>
鈥嬧€滅伅鐝犺繛濂戒簡锛屾€庝箞璁╁畠鍚垜鐨勮瘽鍙樿壊锛熲€濃€?/strong> 杩欓噷浠rduino鎺у埗鍣ㄤ负渚嬶紝涓夋鎼炲畾锛?/p>
鈥?strong>1. 纭欢杩炴帴
- 涓绘帶鏉匡紙姣斿Arduino UNO锛夋帴涓奟GB鐏彔妯″潡锛岀敤鍥涜壊绾胯繛鍒版暟瀛楃鍙o紙姣斿D5锛夈€?/li>
- 鐢佃剳鐢═ype-C鏁版嵁绾跨粰涓绘帶鏉夸緵鐢点€?/li>
鈥?strong>2. 杞欢璁剧疆
鎵撳紑绫虫€濆杞欢锛屾壘鍒扳€滈樋鏂戝厰-RGB鍏ㄥ僵鐏ā鍧椻€濓紝璁剧疆绠¤剼鍙蜂负5锛堝拰纭欢瀵瑰簲锛夈€?/p>
鈥?strong>3. 鍐欎釜鍙樿壊绋嬪簭
- 鈥?strong>闅忔満鍙樿壊锛氳绾€佺豢銆佽摑涓変釜鍙橀噺闅忔満鍙?-255鐨勫€硷紝姣忛殧1绉掓崲棰滆壊銆?/li>
// 浼唬鐮佺ず渚嬶紙瀹為檯闇€鎸夎蒋浠舵牸寮忥級
R = 闅忔満鏁?0-255)
G = 闅忔満鏁?0-255)
B = 闅忔満鏁?0-255)
璁剧疆鐏彔棰滆壊(R, G, B)
寤舵椂(1000姣)
- 鈥?strong>娓愬彉鏁堟灉锛氱敤寰幆璇彞璁╃孩鑹蹭粠0鎱㈡參澧炲姞鍒?55锛屽啀鍑忓皯鍥?锛屽疄鐜板懠鍚哥伅鏁堟灉銆?/li>
馃挕 鈥?strong>妗堜緥鍒嗕韩锛氭垜涓婃鐢?0涓伅鐝犲仛浜嗕釜鈥滃僵铏规祦姘寸伅鈥濓紝缂栫▼鏃惰姣忎釜鐏彔鐨勯鑹插欢杩熷彉鍖栵紝缁撴灉鏁堟灉鍫瘮闊充箰鑺傜伅鍏夛紒
馃彔 鈥?strong>鍥涖€佸疄闄呭簲鐢ㄥ満鏅ぇ鎻
鈥?strong>1. 鏅鸿兘瀹跺眳锛堟噿浜哄繀澶団湪锛夆€?/strong>
- 鈥?strong>鐫″墠妯″紡锛氳皟鎴愭殩榛勮壊锛屽府鍔╂斁鏉剧缁忋€?/li>
- 鈥?strong>鑱氫細妯″紡锛氬垏鎹㈡垚涓冨僵闂儊锛岀灛闂寸偣鐕冩皵姘涖€?/li>
鈥?strong>2. 鍟嗕笟灞曠ず锛堝惛鐫涘埄鍣煈€锛夆€?/strong>
- 鏈嶈搴楃敤鐧藉厜绐佸嚭闈㈡枡璐ㄦ劅锛屾殩鍏夋彁鍗囪瘯琛d綋楠屻€?/li>
- 姹借溅灞曞巺鐢ㄨ摑鑹叉祦鍏夌伅甯︼紝绉戞妧鎰熸媺婊°€?/li>
鈥?strong>3. 鎴峰鏅锛堝煄甯傞鍊兼媴褰擆煂冿級鈥?/strong>
- 鍏洯姝ラ亾宓屽叆鍦扮伅锛屽鏅氳嚜鍔ㄥ垏鎹㈤鑹叉寚寮曡矾绾裤€?/li>
- 寤虹瓚澶栧鐢≧GB鐏甫鎷煎嚭鑺傛棩鍥炬锛屾瘮濡傛槬鑺傜殑鈥滀腑鍥界粨鈥濈伅鍏夌銆?/li>
馃 鈥?strong>涓汉瑙傜偣锛欴IY鐨勪箰瓒d笌鍧戠偣
鐜╀簡鍗婂勾RGB鐏彔锛屾垜鎮熷嚭涓€涓亾鐞嗭細鈥?strong>杩欑帺鎰忓効灏卞儚涔愰珮锛屾棦鑳界畝鍗曟嫾瑁呬篃鑳藉鏉傚垱浣滐紝鍏抽敭鐪嬩綘鎯崇帺鍒颁粈涔堢▼搴︺€傗€?/strong>
- 鈥?strong>鎴愬氨鎰熸潵婧?/strong>锛氱涓€娆℃垚鍔熻鐏彔鎸夎嚜宸卞啓鐨勭▼搴忓彉鑹叉椂锛屽樊鐐规縺鍔ㄥ緱璺宠捣鏉ワ紒
- 鈥?strong>韪╄繃鐨勫潙锛氭浘缁忓洜涓虹剨鎺ユ椂闂村お闀匡紝搴熶簡3涓伅鐝狅紱涔熻瘯杩囩畻閿欑數鍘嬶紝瀵艰嚧鏁翠覆鐏彔杩囪浇鍐掔儫鈥︹€?/li>
- 鈥?strong>缁欐柊鎵嬬殑寤鸿锛?
- 鈥?strong>鑰愬績姣旀妧鏈洿閲嶈锛氬埆鎸囨湜涓€娆℃垚鍔燂紝澶氳皟璇曟墠鑳界Н绱粡楠屻€?/li>
- 鈥?strong>瀹夊叏绗竴锛氶珮鍘嬮」鐩姟蹇呮柇鐢垫搷浣滐紝鎴村ソ鎶ょ洰闀滐紒
- 鈥?strong>娲荤敤鐜版垚妯″潡锛氭瘮濡傜敤鈥滃崟绾夸紶杈撶伅鐝犫€濓紙鍐呯疆椹卞姩鑺墖锛夛紝鑳界渷鎺変竴鍫嗛夯鐑︺€?/li>
鏈€鍚庤鍙ュぇ瀹炶瘽锛氣€?strong>鐜㏑GB鐏彔锛屾渶澶х殑鎴愭湰涓嶆槸閽憋紝鑰屾槸鏃堕棿鍜岃€愬績銆傗€?/strong> 浣嗗彧瑕佺啲杩囧墠鏈熷涔犻樁娈碉紝鍚庨潰灏辫兘浜彈鈥滃厜涔嬮瓟鏈笀鈥濈殑蹇箰鍟︼紒