Cov txheej txheem:

AVR Programmer W/High Voltage: 17 Kauj Ruam
AVR Programmer W/High Voltage: 17 Kauj Ruam

Video: AVR Programmer W/High Voltage: 17 Kauj Ruam

Video: AVR Programmer W/High Voltage: 17 Kauj Ruam
Video: Unbricking Atmel AVRs 2024, Hlis ntuj nqeg
Anonim
AVR Programmer W/Cov Hluav Taws Xob Siab
AVR Programmer W/Cov Hluav Taws Xob Siab
AVR Programmer W/Cov Hluav Taws Xob Siab
AVR Programmer W/Cov Hluav Taws Xob Siab

Nov yog kuv thawj Phau Ntawv Qhia. Pawg thawj coj kuv tsim yog AVR Programmer. Pawg thawj coj saib xyuas ua haujlwm ntawm 4 cais pawg thawj coj uas kuv tau tsim hauv ob peb xyoos dhau los:

- Tus kws siv hluav taws xob AVR High Voltage, feem ntau siv ntawm ATtiny cov cuab yeej los teeb fuses thaum rov pib siv kab rau I/O.

- Arduino ua ISP, 5V thiab 3v3 (suav ua ob yam ntawm kev ua haujlwm)

- NOR Flash EEPROM programmer (luam nrawm los ntawm daim npav SD rau NOR Flash)

Lub rooj tsavxwm siv cov AMS1117 LDO cov tswj hluav taws xob kom tau txais 5V thiab 3v3. Kev ua haujlwm siab yuav tsum muaj 12V. Txog qhov no kuv tau siv MT3608 DC-DC hloov pauv hloov pauv. Lub mcu khiav ntawm 16MHz, 5V. Qib hloov pauv rau txhua yam xav tau 3v3 tau ua tiav siv LVC125A. LVC125A yog qhov koj pom ntawm ntau daim npav SD daim npav. Mcu yog ATmega328pb. ATMega328pb yuav luag zoo ib yam li ATMega328p ntau dua tshwj tsis yog tias nws muaj 4 tus lej I/O ntxiv hauv tib pob loj.

Pawg thawj coj no yog version 1.5. Cov yam ntxwv tshiab hauv qhov hloov tshiab kawg no:- usb serial interface.- resettable poly fuses.- LED cov cim qhia ua haujlwm hauv qab cov haujlwm xaiv khawm. - MOSFET tshem tawm lub hwj chim los ntawm DC-DC 12V thaum nws tsis siv.

Pawg thawj coj muaj kev xaiv ntxiv AT24Cxxx I2C serial EEPROM thiab muaj 5 tus pin I2C JST-XH-05 txuas (GND/5V/SCL/SDA/INT1) rau txuas I2C cov cuab yeej.

Ib qho ntawm qhov nyuaj ntawm txoj haujlwm no yog yuav ua li cas thauj tag nrho cov haujlwm/kos duab mus rau lub rooj tsavxwm. Txoj hauv kev yooj yim tshaj plaws yog kom yooj yim rub tawm cov duab thaum twg kuv xav hloov pauv haujlwm. Lwm txoj hauv kev yuav tau muab tag nrho cov duab kos. Kuv txiav txim siab tawm tsam ob txoj hauv kev no. Txoj hauv kev sib koom ua ke yuav ua rau nws nyuaj rau sib koom ua ib qho kev hloov pauv mus rau qhov qub qhov chaw kos duab. Txoj hauv kev sib koom ua ke tseem muaj teeb meem uas cov nyiaj SRAM muaj tsis txaus yog tsis rov sau dua thiab khawb mus rau hauv cov tsev qiv ntawv thiab kos duab siv, rov kho qhov teeb meem.

Txoj hauv kev kuv tau xaiv yog sau daim ntawv thov npe AVRMultiSketch uas ua haujlwm nrog Arduino IDE txhawm rau thauj cov duab kos rau hauv flash los ntawm kev hloov pauv lawv qhov chaw nco. Cov peev txheej kos duab tsis raug hloov pauv txhua txoj kev. Lawv khiav ntawm lub rooj tsavxwm zoo li lawv tsuas yog kos duab xwb. Yuav ua li cas txoj haujlwm no tau piav qhia ntxaws txog qhov qhib qhov GitHub nyeem rau AVRMultiSketch. Saib https://github.com/JonMackey/AVRMultiSketch kom paub meej ntxiv. Cov chaw cia khoom no tseem muaj cov duab kos uas kuv siv/sau/hloov kho, uas tuaj yeem siv tus kheej.

Txhawm rau hloov ntawm kev kos duab lub rooj tsavxwm muaj plaub lub nyees khawm: Pib dua, thiab cov ntawv cim npe 0, 1, 2. On power-up or reset, if you do nothing the last function selected is run. Yog tias koj tuav ib qho ntawm cov lej suav koj tab tom xaiv kos duab/ua haujlwm. Cov duab kos dhau los ua cov duab kos xaiv. Dawb LEDs hauv qab txhua qhov ntawm cov haujlwm khawm tau teeb pom kev zoo los xaiv qhov tam sim no.

Tam sim no pawg thawj coj tsuas yog tuav 3 daim duab, tab sis nws tuaj yeem tuav ob peb ntxiv. Hauv qhov xwm txheej ntawd, xav tias tsuas yog 3 qhov khoom/tus lej lej, nws tuaj yeem tuav txog 7 los ntawm kev tuav ntau dua ib lub pob.

Schematic tau muab zais rau hauv cov kauj ruam tom ntej

Ib qho kev txhawb nqa me me muaj nyob rau ntawm yam khoom. Saib

Lub rooj tsavxwm rau version 1.5 tau sib koom ntawm PCBWay. Saib

Hu rau kuv yog tias koj xav tau kev sib sau ua ke thiab kuaj lub rooj tsavxwm.

Kauj Ruam 1: Cov lus qhia rau kev teeb tsa Pawg Thawj Coj

Cov lus qhia rau kev teeb tsa Pawg Thawj Coj
Cov lus qhia rau kev teeb tsa Pawg Thawj Coj

Cov lus qhia rau kev teeb tsa lub rooj tsavxwm (lossis yuav luag txhua lub rooj tsavxwm me me) ua raws.

Yog tias koj twb paub yuav tsim SMD pawg thawj coj saib, hla mus rau kauj ruam 13.

Kauj Ruam 2: Sau Qhov Chaw

Sib Sau
Sib Sau
Sib Sau
Sib Sau

Kuv pib los ntawm kev xaub ib daim ntawv mus rau lub rooj ua haujlwm nrog cov ntawv lo rau txhua qhov me me (cov neeg tiv taus, lub tshuab hluav taws xob, LEDs). Tsis txhob tso cov capacitors thiab LEDs nyob ib sab. Yog tias lawv sib xyaw, nws yuav nyuaj rau qhia lawv sib nrug.

Tom qab ntawd kuv sau cov ntawv nrog cov ntu no. Nyob ib ncig ntawm ntug kuv ntxiv lwm qhov, yooj yim los txheeb xyuas qhov chaw.

(Nco ntsoov tias kuv siv tib daim ntawv no rau lwm cov laug cam kuv tau tsim, yog li tsuas yog qee qhov chaw hauv daim duab muaj cov khoom nyob ib sab ntawm/ntawm daim ntawv lo)

Kauj ruam 3: Mount Board

Mount lub Rooj Tswjhwm Saib
Mount lub Rooj Tswjhwm Saib
Mount lub Rooj Tswjhwm Saib
Mount lub Rooj Tswjhwm Saib

Siv ib qho me me ntawm cov ntoo ua ib qho thaiv thaiv, Kuv txiav cov PCB pawg thawj coj ntawm ob daim ntawm seem pawg thawj coj saib. Cov laug cam tsab ntawv tau tuav rau ntawm qhov thaiv nrog ob daim kab xev (tsis muaj kab xev ntawm PCB nws tus kheej). Kuv nyiam siv ntoo rau qhov thaiv thaiv vim nws ib txwm tsis coj/tiv thaiv. Tsis tas li nws yooj yim txav nws ib ncig raws li xav tau thaum tso cov khoom.

Kauj Ruam 4: Thov Muab Tshuaj Txhuam Txhuam

Siv Cov Tshuaj Txhuam Hniav
Siv Cov Tshuaj Txhuam Hniav
Siv Cov Tshuaj Txhuam Hniav
Siv Cov Tshuaj Txhuam Hniav

Thov siv cov tshuaj txhuam txhuam txhuam rau hauv SMD pawm, tawm hauv ib qho los ntawm cov ntaub qhwv qhov muag. Ua txoj cai, Kuv feem ntau ua haujlwm los ntawm sab laug mus rau sab xis kom txo qis txoj hauv kev los pleev cov tshuaj txhuam uas kuv twb tau thov lawm. Yog tias koj txhuam cov tshuaj txhuam, siv cov ntaub so tsis lo xws li cov uas tshem tawm pleev. Tsis txhob siv Kleenex/ntaub so ntswg. Kev tswj tus nqi tshuaj txhuam rau txhua lub ncoo yog qee yam uas koj tau txais los ntawm kev sim thiab ua yuam kev. Koj tsuas yog xav tau me me dab ntawm txhua lub ncoo. Qhov loj ntawm dab yog txheeb ze rau qhov loj thiab cov duab ntawm lub ncoo (kwv yees li 50-80% kev pab them nqi). Thaum tsis ntseeg, siv tsawg dua. Txog cov pins uas nyob ze ua ke, zoo li LVC125A TSSOP pob kuv tau hais ua ntej, koj siv daim kab xev nyias hla txhua daim ntaub qhwv es tsis txhob sim siv cais dab rau txhua qhov ntawm cov ntaub qhwv nqaim. Thaum cov laug tau yaj lawm, daim npog qhov ncauj yuav ua rau cov laug txav mus rau hauv lub ncoo, yam zoo li cas cov dej yuav tsis lo rau saum npoo av. Cov laug yuav hlais lossis txav mus rau thaj chaw uas muaj daim ntaub qhwv.

Kuv siv cov tshuaj yaj yaj yaj yaj yaj yaj yaj qis (137C Melting Point) Daim duab thib ob yog v1.3 pawg thawj coj saib thiab hom kab laug sab muab tshuaj txhuam kuv siv.

Kauj Ruam 5: Muab Qhov Chaw SMD

Muab cov khoom SMD
Muab cov khoom SMD

Muab cov khoom SMD. Kuv ua qhov no los ntawm sab laug mus rau sab xis hauv qab, txawm hais tias nws tsis muaj qhov sib txawv ntau dua li koj tsis tshua muaj peev xwm plam ib feem. Cov khoom siv tau muab tso rau hauv cov tshuab hluav taws xob. Kuv nyiam lub tweezer nrog qhov kawg nkhaus. Xaiv ib feem, tig lub thaiv thaiv yog tias xav tau, tom qab ntawd tso ib feem. Muab txhua ntu kom pom lub teeb kom ntseeg tau tias nws tau zaum tiaj tus ntawm lub rooj tsavxwm. Thaum tso ib feem kuv siv ob txhais tes los pab ua kom raug. Thaum tso lub xwmfab mcu, khaws nws kab pheeb ces kaum los ntawm cov ces kaum sib txawv.

Txheeb xyuas lub rooj tsav xwm kom ntseeg tau tias txhua lub tshuab ua haujlwm sib txawv nyob hauv qhov chaw raug, thiab txhua daim ntawv qhia tau raug.

Kauj Ruam 6: Sijhawm rau Cov Cua Kub Phom

Lub Sijhawm rau Cov Cua Kub Phom
Lub Sijhawm rau Cov Cua Kub Phom

Kuv siv cov tshuaj ntsuas kub tsawg. Rau kuv tus qauv rab phom, Kuv muaj qhov kub tau teev tseg rau 275C, tso pa tawm mus rau 7. Tuav rab phom sib dhos rau ntawm lub rooj tsavxwm ntawm li 4cm saum lub rooj tsavxwm. Cov laug nyob ib ncig ntawm thawj ntu yuav siv sijhawm ib pliag kom pib yaj. Tsis txhob ntxias kom ua kom nrawm dua los ntawm kev txav phom ze rau ntawm lub rooj tsavxwm. Qhov no feem ntau ua rau tshuab qhov ib ncig. Thaum cov laug yaj, txav mus rau ntu sib tshooj tom ntej ntawm pawg thawj coj saib. Ua hauj lwm koj txoj kev nyob ib ncig ntawm lub rooj tsavxwm.

Kuv siv YAOGONG 858D SMD Kub Cua Phom. (Ntawm Amazon tsawg dua $ 40.) Pob suav nrog 3 lub taub hau. Kuv siv lub taub hau loj tshaj (8mm). Cov qauv/qauv no yog tsim los lossis muag los ntawm ntau tus neeg muag khoom. Kuv tau pom kev ntaus nqi thoob plaws qhov chaw. Rab phom no tau ua haujlwm zoo rau kuv.

Kauj Ruam 7: Txhawb Ntxiv Yog Xav Tau

Txhawb ntxiv Yog Xav Tau
Txhawb ntxiv Yog Xav Tau
Txhawb ntxiv Yog Xav Tau
Txhawb ntxiv Yog Xav Tau

Yog tias lub rooj tsav xwm muaj lub ntsej muag txuas rau SD daim npav txuas lossis lub ntsej muag txuas lub suab, thiab lwm yam, thov ntxiv cov xaim xaim txuas rau cov ntaub qhwv uas siv los txuas nws lub tsev rau lub rooj tsavxwm. Kuv tau pom tias cov tshuaj txhuam ib leeg tsis yog feem ntau muaj zog txaus los ua kom cov khoom no ntseeg tau.

Kauj Ruam 8: Ntxuav/tshem tawm SMD Flux

Ntxuav/tshem tawm SMD Flux
Ntxuav/tshem tawm SMD Flux
Ntxuav/tshem tawm SMD Flux
Ntxuav/tshem tawm SMD Flux

Cov kua nplaum uas kuv siv tau tshaj tawm tias yog "tsis huv". Koj yuav tsum tau ntxuav lub rooj tsavxwm, nws zoo li zoo dua thiab nws yuav tshem tawm cov hlaws me me ntawm cov laug ntawm lub rooj tsavxwm. Siv cov yas, nitrile, lossis hnab looj tes roj hmab hauv qhov chaw muaj cua nkag tau zoo, nchuav me me ntawm Flux Remover rau hauv cov tais me me lossis cov tais diav tsis huv. Reseal lub raj mis tshem tawm. Siv txhuam txhuam, txhuam tus txhuam hauv cov tshuaj tshem tawm thiab txhuam thaj tsam ntawm lub rooj tsavxwm. Rov ua dua kom txog thaum koj tau txhuam cov laug cam. Kuv siv rab phom txhuam txhuam rau lub hom phiaj no. Cov plaub hau yog tawv dua li txhuam txhuam feem ntau.

Kauj Ruam 9: Muab thiab Muab Tshuaj Txhuam Tag nrho Trough Qhov Qhov

Qhov Chaw thiab Leeg Tag Nrho Cov Taum Qhov Qhov
Qhov Chaw thiab Leeg Tag Nrho Cov Taum Qhov Qhov
Qhov Chaw thiab Leeg Tag Nrho Cov Taum Qhov Qhov
Qhov Chaw thiab Leeg Tag Nrho Cov Taum Qhov Qhov

Tom qab cov dej tshem tawm tau tshem tawm ntawm lub rooj tsavxwm, tso thiab txhuam tag nrho txhua qhov ntawm qhov nqaum dej, luv tshaj rau siab tshaj, ib zaug.

Kauj Ruam 10: Yaug Txiav Los Ntawm Qhov Pins

Yaug Txiav Los Ntawm Qhov Pins
Yaug Txiav Los Ntawm Qhov Pins

Siv lub tshuab txiav cov yub, txiav qhov hla ntawm tus pin rau hauv qab ntawm lub rooj tsavxwm. Ua qhov no ua rau tshem tawm cov dej ntws tawm yooj yim dua.

Kauj Ruam 11: Rov Qab Los Ntawm Qhov Pins Tom Qab Clipping

Reheat Los Ntawm Qhov Pins Tom Qab Clipping
Reheat Los Ntawm Qhov Pins Tom Qab Clipping

Txhawm rau kom pom qhov zoo, rov ua dua lub lauj kaub ntawm lub qhov pins tom qab txiav. Qhov no tshem tawm cov ntawv txiav tawm los ntawm lub tshuab dej yaug.

Kauj Ruam 12: Tshem Tawm Los Ntawm Qhov Hau Flux

Tshem Tawm Los Ntawm Qhov Hau Flux
Tshem Tawm Los Ntawm Qhov Hau Flux

Siv tib txoj kev ntxuav ib yam li ua ntej, ntxuav sab nraum qab ntawm lub rooj tsavxwm.

Kauj Ruam 13: Siv Fais Fab rau Pawg Thawj Coj

Thov Fais Fab rau Pawg Thawj Coj
Thov Fais Fab rau Pawg Thawj Coj

Thov lub zog rau lub rooj tsavxwm (6 txog 12V). Yog tias tsis muaj dab tsi kib, ntsuas 5V, 3v3, thiab 12V. 5V thiab 3v3 tuaj yeem ntsuas los ntawm lub tab loj ntawm ob daim npav tswj hwm. 12V tuaj yeem ntsuas los ntawm R3, qhov kawg ntawm tus tiv thaiv nyob ze rau ntawm pawg thawj coj hauv qab sab laug (lub hwj huam txuas yog sab laug sab laug).

Kauj ruam 14: Thauj khoom Bootloader

Qhib lub Bootloader
Qhib lub Bootloader

Los ntawm Arduino IDE Cov cuab yeej ntawv qhia zaub mov, xaiv Pawg Thawj Coj thiab lwm yam kev xaiv rau mcu raug tsom.

Ntawm kuv lub rooj tsim qauv Kuv yuav luag ib txwm muaj ICSP txuas. Yog tias koj tsis muaj Arduino ua ISP lossis qee tus ICSP programmer, koj tuaj yeem tsim ib qho ntawm lub khob cij rau lub hom phiaj ntawm rub tawm lub bootloader rau lub programmer board. Xaiv Arduino ua ISP los ntawm cov programmer menu menu, tom qab ntawd xaiv hlawv bootloader. Ntxiv rau rub tawm lub bootloader, qhov no tseem yuav ua kom raug fuses. Hauv daim duab, lub rooj tsavxwm sab laug yog lub hom phiaj. Pawg thawj coj ntawm sab xis yog ISP.

Kauj Ruam 15: Thauj Cov Duab Sketch

Load Multi Sketch
Load Multi Sketch
Load Multi Sketch
Load Multi Sketch
Load Multi Sketch
Load Multi Sketch

Ua raws cov lus qhia ntawm kuv GitHub chaw cia khoom rau AVRMultiSketch txhawm rau thauj ntau daim duab kos rau hauv flash ntawm qhov chaw nres nkoj txuas ntawm lub rooj tsavxwm. GitHub AVRMultiSketch cov chaw cia khoom muaj tag nrho cov duab kos uas qhia hauv daim duab. Txawm hais tias koj tsis npaj yuav tsim lub rooj tsavxwm, koj yuav pom NOR Flash Hex Copier thiab AVR High Voltage sketches muaj txiaj ntsig.

Kauj ruam 16: Ua tiav

Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav

Kuv kuj tseem tau tsim ob peb lub rooj sib txuas hloov pauv thaum siv cov ntawv tsis txuas, xws li thaum ua mov ci.

- ATtiny85 ICSP adapter. Siv los ua haujlwm ATtiny85 ib leeg.

- ATtiny84 txog ATtiny85. Qhov no yog siv rau ob qho kev ua haujlwm siab thiab txuas nrog ATtiny85 ICSP adapter.

- NOR Flash adapter.

Txhawm rau pom qee qhov ntawm kuv lwm tus qauv, mus saib

Kauj ruam 17: Yav dhau los Version 1.3

Yav dhau los Version 1.3
Yav dhau los Version 1.3
Yav dhau los Version 1.3
Yav dhau los Version 1.3

Cov saum toj no yog cov duab ntawm version 1.3. Version 1.3 tsis muaj USB Serial, rov pib dua fuses thiab qhia qhov ua haujlwm LEDs. Ib qho version 1.3 sib txawv siv ATmega644pa (lossis 1284P)

Yog tias koj txaus siab rau kev tsim kho version 1.3, xa lus rau kuv (ntau dua li ntxiv cov lus pom.)

Pom zoo: