2011/11/11
http://jovanliu.pixnet.net/blog/post/37550149-%E3%80%90diy%E6%95%99%E5%AD%B8%E3%80%91arduino%28%E5%96%AE%E6%99%B6%E7%89%87%E5%BE%AE%E9%9B%BB%E8%85%A6%29%E7%AF%87-no.001
參考:【DIY教學】Arduino(單晶片微電腦)篇 No.001
Step1.請至官網下載Arduino開發程式並解壓縮( http://arduino.cc/en/Main/Software )--是 Arduino-0023 版
Step2.用usb連接線連接Arduino電路板與電腦.....第一次...跟本不理我......
Step3.請驅動它,驅動程式都在開發程式的資料夾裡頭....是電腦重開後....就通知要裝了(新增硬體精靈)...
Step4.請看看它是屬於哪一個com埠(在裝置管理員裡頭)....我的是 COM5
Step5.開啟Arduino.exe
Step6.來試試最無聊的點燈程式吧( File -> Examplex -> 1.Basic -> Blink )
Step7.compile...
Step8.選擇正確的板子與com埠.....選 COM5
Step9.燒錄(選 Upload )
Step10.大功告成,第 5 隻腳位的LED燈會每隔 0.5秒亮一下
..................................................................................
2011/11/14
自製並列埠(印表機埠)形式的燒錄器...
(A:)
http://www.arduino.cc/en/Hacking/ParallelProgrammer
裏面的......
Software
You'll need to download giveio from MIT's Microcomputer Project Laboratory (thanks Jim!) and run the enclosed ginstall.bat file.
一定要有 run: ginstall.bat
(B:)
http://arduino.cc/en/Hacking/Bootloader
要用 Parallel Port Programmer
It still doesn't work! (parallel programmer on Windows XP)
Windows XP may be polling your parallel port and disrupting the bootloader burning process. You'll need this registry patch:(要寫信...就有可抓到 XP_stop_polling.reg)
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Parport\Parameters] "DisableWarmPoll"=dword:00000001
修改啟動區--HKEY_LOCAL_MACHINE
1.去 [開始] 找尋執行點選
2.在開啟對話框輸入 regedit 然後按下確定
3.依序點選 HKEY_LOCAL_MACHINE\........................
按: XP_stop_polling.reg
.............................................
剛開始 用 Arduino-0023 版,
選 Tools-->Burn Bootloader-->w / ParallelProgrammer
顯示:
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0x00
avrdude: verification error; content mismatch
就是不行.....
是把 (A:) & (B:) 看過後....就把 (A:) & (B:) 裝了....顯示 OK
用麵包板組裝Arduino微電腦實驗板
就有....
...............................................
我已前裝過 (很久了) arduino_rs232_v2 是 ok 的 ....
前幾天裝的電路板ATmega8.....用rs232...但是顯示
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
arduino.cc網站提供的RS-232串列埠介面電路圖...還沒裝....
................................................
我把 google 都查了 RS-232....
--------------------------------------------
2011/11/21
搞好幾天....
前裝過 (很久了) arduino_rs232_v2 是 ok 的 (還活著)
這次用電路板裝的.....就是要能亮燈的(Blink)...
Cooper Maa Arduino 筆記 - Lab1 Blinking a LED 
裝了3個電晶體式 & 1 個 ICL232 RS232-TTL轉換模組 通訊 XP 就是不通...
原來我的..石英震盪器裝 12MHz...當時找不到 16MHz 的...石英震盪器..拍賣有 $4~6 元 (1個)
arduino bootloader 要看書的....
avrdude 無法正常與AVR通信--晶振惹的禍
Arduino Standalone 3.3 V 8MHz without external crystal(石英震盪器)
New bootloader file for ATmega8L
ATMega8 Arduino Bootloader (Optiboot)--如何換石英震盪器裝
..........
好不容易把手上的石英震盪器查一下....幾十種頻率的....終於找到...1個 16MHz
(幾公斤的石英震盪器....只有..1個 16MHz)
裝了....就 OK ......
準備玩....
下次要買 10 個 16MHz石英震盪器+杜邦線含插頭.......
( ATmega8 有 10個)
-------------------------------------------------------------------------------------------------
AT89C2051-24PC(20個)
AT89S52(21個)
11.0592 石英 還有 >20個
--------------------------------------------------------------------------------------------------