Arduino在上传程序是出现错误 Arduino上传总是失败!示例程序也不行,什么原因啊,求助
Arduino\u704c\u5165\u7a0b\u5f0f\u7684\u65f6\u5019\u603b\u4f1a\u51fa\u73b0\u9519\u8bef!?= =\u6211\u64e6\uff0c\u6211\u4e5f\u521a\u78b0\u5230\u8fd9\u4e2a\u95ee\u9898~~\u627e\u5230\u4e00\u4e2a\u8461\u8404\u7259\u8bed\u7684\u7f51\u7ad9\u00b7\u00b7\u00b7
\u8bd5\u56fe\u53d6\u4ee3ATMega328/168\u8c01\u5728\u8239\u4e0a\u4e0e\u5176\u4ed6\u5f15\u5bfc\u7a0b\u5e8f\u6765
\u6b63\u5e38\u3002
\u6211\u60f3\u6211\u5df2\u7ecf\u6709\u8fd9\u4e2a\u9519\u8bef\uff0c\u6240\u4ee5\u6211\u9000\u51fa\u4e3a\u4ed6\u6309\u4e0b\u590d\u4f4d
USB\u7535\u7f06\u3002
ATMega328/168\u53d6\u4ee3\u963f\u5c14\u675c\u4f0a\u8bfa\uff0c\u91cd\u8fd4\u5de5\u4f5c\u5c97\u4f4d.. \u81f3\u4eca\u6ca1\u6709
\u6211\u505c\u4e0b\u6765\u91cd\u5199\u5f15\u5bfc\u7a0b\u5e8f\u3002
---
\u5361\u6d1b\u65af\u7231\u5fb7\u534e\u201c\u5409\u7965\u7269\u201d\u52a0\u897f\u4e9a\u5fb7\u5361\u74e6\u7565
\u201c\u627f\u8ba4\u4ed6\u5728\u6240\u6709\u7684\u65b9\u5f0f\uff0c\u4ed6\u5fc5\u6307\u5f15\u4f60\u7684\u8def\u3002\u201d
\u7bb4\u8a0006.03
\uff0821\uff098125-1737
Skype\u7684\uff1acarloseduardo.gc
\u8c8c\u4f3c\u6211\u770bGoogle\u7ffb\u8bd1\u7684\u4e5f\u770b\u4e0d\u61c2~~
\u53c8\u627e\u4e86\u4e2a~~
Arduino\u70e7\u5199\u65f6\u51fa\u73b0\u9519\u8bef\u7684\u89e3\u51b3\u529e\u6cd5
\u672a\u9009\u62e9\u6b63\u786e\u7684\u5f00\u53d1\u677f\u7c7b\u578b
\u672a\u8bbe\u5b9a\u6b63\u786e\u7684\u7aef\u53e3\u53f7
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
\u5728PC\u7684\u8bbe\u5907\u7ba1\u7406\u5668\u4e2d\u67e5\u770bArduino\u5f00\u53d1\u677f\u7684COM\u7aef\u53e3\u53f7\uff0c\u7136\u540e\u5728Arduino\u8f6f\u4ef6\u7684\u3010tools\u3011\u3010Serial Port\u3011\u4e2d\u8bbe\u7f6e\u4e3a\u5bf9\u5e94\u7684COM\u7aef\u53e3\u3002
\u6211\u4e5f\u89c9\u5f97\u53ea\u53ef\u80fd\u662f\u8fd9\u4e2a\u95ee\u9898\u4e86~~
\u6211\u8fd9\u53ef\u80fd\u662f\u4e4b\u524d\u88c5\u8fc7\u865a\u62df\u4e32\u53e3\u7684\u7a0b\u5e8f\u6240\u6709\u6709\u70b9\u95ee\u9898~
\u539f\u56e0\u53ef\u80fd\u662f\uff1a\u4e3bIC\u7684BOOTLOAD\u88ab\u7834\u574f\uff1b\u95ee\u9898\u7248\u672c\uff1bUSB\u7ebf\u88ab\u62c9\u626f\u5230\u6216\u8005\u5728\u4f7f\u7528\u4e32\u53e3\u901a\u4fe1\u7684\u65f6\u5019\u64cd\u4f5c\u4e0d\u5f53\uff1b\u5728\u6676\u632f\u65c1\u8fb9\u7684\u7535\u5bb9\u710a\u5f97\u4e0d\u5bf9\u3002
\u4ee5\u4e0a\u51fa\u73b0\u95ee\u9898\u539f\u56e0\u7684\u89e3\u51b3\u529e\u6cd5\uff1a
\u4e3bIC\u7684BOOTLOAD\u88ab\u7834\u574f\uff1a\u89e3\u51b3\u65b9\u6cd5\u662f\u91cd\u65b0\u70e7\u5199\u4e00\u4e0bBOOTLOAD\uff1b
\u7248\u672c\u95ee\u9898\uff1a\u6bd4\u5982NANO MINI\u8981\u5728\u4e0b\u8f7d\u65f6\u6309\u4e0bRESET\u952e\uff0c\u8fd9\u79cd\u60c5\u51b5\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u4e0b\u8f7d\u65f6\u6309\u4f4fRESET\u952e\uff0c\u5f53\u7535\u8111\u53d1\u5c04\u706f\u5f00\u59cb\u95ea\u70c1\u65f6\u677e\u624b\uff1b
USB\u7ebf\u88ab\u62c9\u626f\u5230\uff0c\u6216\u8005\u5728\u4f7f\u7528\u4e32\u53e3\u901a\u4fe1\u7684\u65f6\u5019\u64cd\u4f5c\u4e0d\u5f53\uff1a\u62d4\u6389USB\u7ebf\u540e\u518d\u63d2\u4e0a\uff0c\u91cd\u65b0\u4e0b\u8f7d\u7a0b\u5e8f\uff1b
\u5728\u6676\u632f\u65c1\u8fb9\u7684\u7535\u5bb9\u710a\u5f97\u4e0d\u5bf9\uff1a\u53bb\u7ef4\u4fee\u5e97\u7ef4\u4fee\u4e00\u4e0b\u3002
绛旓細1锛arduino鎺у埗鏉挎垨鑰匔OM鍙f病鏈夐夊锛岃繖绉嶉棶棰樻渶绠鍗曪紝鐓т笅鍥剧殑閫夐」閫夋嫨瀵逛簡灏監K銆傦紙濡傛灉鍥剧墖鏃犳硶鏄剧ず锛岃璁块棶 http://www.geek-workshop.com/thread-627-1-1.html 锛2锛屼笅杞界殑鏃跺欙紝arduino鎺у埗鏉夸笂鎺ヤ簡鍏朵粬鎵╁睍鏉匡紙浣跨敤D0锛孌1鍙g殑鍩烘湰閮戒細鍑洪棶棰橈紝杩欎袱涓彛鏄敤鏉ラ氫俊涓嬭浇绋嬪簭鐨勩傦級濡傛灉鎺ヤ簡鍏朵粬...
绛旓細鍘熷洜锛氭病鏈夐変腑姝g‘鐨勬澘瀛愩1銆侀鍏堝弻鍑诲揩鎹锋柟寮忥紝鎵撳紑blink arduino搴旂敤绋嬪簭锛岃繘鍏ュ埌缂栬緫椤甸潰涓2銆佺劧鍚庡湪缂栬緫鐨勭獥鍙d腑锛岀偣鍑讳富鑿滃崟鏍忎腑鐨勨渢ools鈥濓紝鍦ㄥ嚭鐜鐨勮彍鍗曟爮涓夋嫨鈥淏oard鈥濋夐」銆3銆佺劧鍚庡湪寮瑰嚭鏉ョ殑璇稿鏉垮瓙閫夐」涓紝鎵惧埌姝g‘鐨勬澘瀛愶紝鐐瑰嚮閫夋嫨瀹冿紝灏卞彲浠ヨВ鍐宠繖涓棶棰樹簡銆
绛旓細骞跺湪绔彛閫夐」涓変腑浣犲垰鍒氬湪璁惧绠$悊鍣ㄤ腑鐪嬪埌鐨勭鍙o紝鐒跺悗鎶婁綘鐨绋嬪簭杈撳叆Arduino IDE鍚庢寜宸︿笂瑙掔殑涓涓澶存寜閽垨鎸変笅Ctrl+U缁勫悎閿涓婁紶銆傚鏋滄槸鍏煎鐗堬紙鏉垮瓙涓婇潬杩慤SB绔彛鐨勫湴鏂规湁涓棰楅暱鏂瑰舰鐨勫皬鑺墖锛屼笂闈㈡爣鏈塁H340G锛堜竴鑸槸CH340G锛夛級锛屽垯闇瑕佸畨瑁匔H340G涓撶敤椹卞姩锛堢櫨搴︽悳绱rduino CH340椹卞姩 涓嬭浇瀹夎...
绛旓細USB鐢电紗銆侫TMega328/168鍙栦唬闃垮皵鏉滀紛璇猴紝閲嶈繑宸ヤ綔宀椾綅.. 鑷充粖娌℃湁 鎴戝仠涓嬫潵閲嶅啓寮曞绋嬪簭銆--- 鍗℃礇鏂埍寰峰崕鈥滃悏绁ョ墿鈥濆姞瑗夸簹寰峰崱鐡︾暐 鈥滄壙璁や粬鍦ㄦ墍鏈夌殑鏂瑰紡锛屼粬蹇呮寚寮曚綘鐨勮矾銆傗濈瑷06.03 锛21锛8125-1737 Skype鐨勶細carloseduardo.gc 璨屼技鎴戠湅Google缈昏瘧鐨勪篃鐪嬩笉鎳倊~鍙堟壘浜嗕釜~~Arduino鐑у啓鏃鍑虹幇閿欒鐨...
绛旓細鏄細鏇夸唬涔嬪墠鐨绋嬪簭銆傛湁涓涓凡缁忎唬鐮涓婁紶鐨Arduino锛屽苟涓旀病鏈夋簮鐮侊紝鎯宠鏇存敼閲岄潰鐨勪唬鐮佹槸涓嶅彲鑳界殑銆備换浣曚竴涓井鎺у埗鍣ㄩ兘涓嶈兘澶熸敼鍙樹箣鍓嶇殑浠g爜锛岄櫎闈炲畠鍏兼湁userinterface锛屾墠鍙互鏀瑰彉銆備笉鐒惰兘鍋氱殑灏辨槸閲嶆柊涓婁紶銆
绛旓細涓哄紑鍙戞澘Arduino/Genuino Uno缂栬瘧鏃跺嚭閿欙紝鏄紪璇戠殑杩囩▼鍑虹幇閿欒閫犳垚鐨勶紝瑙e喅鏂规硶濡備笅锛1銆侀鍏堝湪鐢佃剳涓墦寮ArduinoIDE , 閫夋嫨绋嬪簭 File鈥攅xamples鈥擜rduinoISP銆2銆佺劧鍚庡皢绋嬪簭ArduinoISP涓婁紶鍒癆rduinoNno鏉垮瓙閲屻傛敞鎰忥細缂栬瘧鍣╬rogrammer 閫夋嫨AVRISP mKII銆3銆佸皢缂栬瘧鍣 Programmer 淇敼涓 Arduino as ISP鍚庛4...
绛旓細绔彛娌¢ 鍦 宸ュ叿->绔彛 閲岄潰閫夋嫨涓涓嬬鍙o紝涓鑸潵璇撮夐」鏄敮涓鐨勩傚鏋滅鍙f槸鐏拌壊鐨勪笉鍙夛紝閭d箞鍙兘鏄綘鐨勫紑鍙戞澘娌℃湁閫夛紝鍦 宸ュ叿->寮鍙戞澘 閲岄潰閫夋嫨浣犱娇鐢ㄧ殑寮鍙戞澘灏辫浜嗐傚鏋滆繕鏄笉琛岀殑璇濆氨鏄┍鍔ㄦ病瑁咃紝鐩存帴鐧惧害鎼滅储浣犵敤鐨勫瀷鍙风殑椹卞姩锛屽畨瑁呬竴涓嬪氨鍙互銆
绛旓細浼氥arduino鑷甫鑷姩淇濆瓨鍔熻兘锛岄潪甯稿疄鐢ㄣ備唬鐮佹槸绋嬪簭鍛樼敤寮鍙戝伐鍏锋墍鏀寔鐨勮瑷鍐欏嚭鏉ョ殑婧愭枃浠讹紝鏄竴缁勭敱瀛楃銆佺鍙锋垨淇″彿鐮佸厓浠ョ鏁e舰寮忚〃绀轰俊鎭殑鏄庣‘鐨勮鍒欎綋绯汇
绛旓細鏂板缓涓涓┖绋嬪簭,浼氳嚜甯etup()鍜宭oop(),鐩存帴缂栬瘧涓婁紶灏卞彲浠ヤ簡
绛旓細璇风‘淇濅綘宸茬粡瀹夎浜嗛傚綋鐨Arduino搴撳拰椹卞姩绋嬪簭锛屽苟涓斾綘鐨勭數鑴戝拰Arduino鏉胯繛鎺ユ甯搞傜劧鍚庯紝浣犲彲浠ラ氳繃閫夋嫨閫傚綋鐨勫紑鍙戞澘骞涓婁紶浠g爜鍒颁綘鐨凙rduino鏉夸互杩涜鍒濆缂栫▼銆傛渶鍚