Cov txheej txheem:

Standalone Arduino / ATMega Chip ntawm Breadboard: 8 Kauj Ruam (nrog Duab)
Standalone Arduino / ATMega Chip ntawm Breadboard: 8 Kauj Ruam (nrog Duab)

Video: Standalone Arduino / ATMega Chip ntawm Breadboard: 8 Kauj Ruam (nrog Duab)

Video: Standalone Arduino / ATMega Chip ntawm Breadboard: 8 Kauj Ruam (nrog Duab)
Video: $2 Arduino The ATMEGA328 as a stand alone Easy, cheap and very small A complete guide 2024, Kaum ib hlis
Anonim
Standalone Arduino / ATMega Chip ntawm Breadboard
Standalone Arduino / ATMega Chip ntawm Breadboard

Yog tias koj zoo li kuv, tom qab kuv tau txais kuv Arduino thiab ua qhov kev tsim kho zaum kawg ntawm kuv thawj lub nti, Kuv xav rub nws tawm ntawm kuv Arduino Duemilanove thiab muab tso rau ntawm kuv tus kheej Circuit. Qhov no tseem yuav tso kuv li Arduino rau cov haujlwm yav tom ntej. Qhov teeb meem yog tias kuv yog cov khoom siv hluav taws xob tshiab uas kuv tsis paub yuav pib qhov twg. Tom qab nyeem dhau los ntawm ntau lub vev xaib thiab rooj sib tham, Kuv muaj peev xwm sau ua ke Cov Lus Qhia no. Kuv xav kom muaj cov ntaub ntawv kuv tau kawm tag nrho hauv ib qho chaw, thiab yooj yim ua raws. Cov lus pom thiab cov lus pom zoo thiab txais txiaj ntsig zoo li kuv tseem tab tom sim kawm txhua yam no. Edit: Cov tswv cuab koom nrog, Janw tau hais rau kuv tias nws ib txwm yog lub tswv yim zoo los ntxiv lub capacitor lossis 2 nyob ze koj lub zog. Nws hais txog siv ob peb 100nF capacitors yuav tsum ua haujlwm. Kuv zoo siab heev nws tau taw qhia qhov no rau kuv, vim tias kuv thawj zaug tsim khoom hauv Circuit uas kuv tab tom tsim nyob hauv Circuit Court no, tau coj tus cwj pwm coj txawv txawv me ntsis. Yog li kuv tau txuas ib qho 10uF capacitor nyob ze kuv lub zog, thiab nws pib coj tus cwj pwm zoo! Kuv tsis paub yog vim li cas nws tsis cuam tshuam rau kuv qhov 'ntsais ntsais LED' qhov kev sim, tab sis kuv paub tias kuv zoo siab rau Janw rau qhov taw qhia qhov no rau kuv. Ua tsaug Janw. Edit2: Ua raws li qhov kev hloov kho yav dhau los, Kuv xav hais txog tus tswv cuab qhia tau, kz1o coj tawm qee cov ntaub ntawv ntxiv hais txog lub capacitors. Thov saib nws cov lus hauv qab no, hnub tim 14 Lub Ob Hlis, 2010 @ 10:52 sawv ntxov. Update - Cov lus qhia no yog nyob rau Hack Ib Hnub!

Kauj Ruam 1: Qhov Yuav Tsum Tau

Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau

Kuv yuav kuv cov khoom los ntawm Digikey thiab Sparkfun Electronics - lawv yog 2 qhov kuv nyiam tshaj plaws los yuav cov khoom. Txawm li cas los xij, ntawm no yog cov npe: #1 - (Qty: 1) - ATMega328 nti nrog Arduino bootloader tau teeb tsa ua ntej ($ 5.50) #2 - (Qty: 1) - 5VDC Hloov fais fab mov ($ 5.95) (Nco tseg: Yog tias koj tsis ua siv lub zog hloov hluav taws xob, koj yuav tsum ntxiv cov tswj hluav taws xob thiab ob peb lub capacitors … saib hauv qab no) #3 - (Qty: 2) - 22 pF ceramic disc capacitors ($.24 / ea) #4 - (Qty: 1) - 16MHz Crystal ($ 1.50) #5 - (Qty: 1) - Power jack ($.38) (Tsis teb los tau) #6 - (Qty: 1) - Breadboard (vam tias koj muaj ib puag ncig, tab sis yog tsis yog, ntawm no yog ib qho). ($ 8.73) #7 - Cov khoom me me ntawm 22 awg cov xaim hlau. Yog tias koj tsis muaj, koj tuaj yeem tuaj yeem khaws qee yam ntawm koj lub khw nyiam khoom siv hluav taws xob. Tus nqi tag nrho rau saum toj no ua ntej them se/xa khoom: txog $ 14 (tsis suav nrog lub khob cij). Kev xaiv / xaiv: Kev Xaiv / Lwm Yam #1: Yog tias koj xav siv lub zog siv tam sim no koj muaj nyob ib puag ncig lub tsev, xyuas kom tseeb tias nws nyob nruab nrab ntawm 5V - 16V. tom qab ntawd koj yuav tsum siv cov hauv qab no ib yam nkaus: #1 optio n - (Qty: 1) - 5V Voltage Regulator (lossis lwm qhov zoo sib xws 5V qhov ntsuas hluav taws xob) ($.57) thiab #1 kev xaiv - (Qty: 2) - 10 uF Aluminium Capacitor ($.15 / ea) (Saib hauv qab no siv txuas rau yuav ua li cas sib txuas lawv) Kev xaiv / Lwm txoj #2: Yog tias koj tsis xav siv cov khoom txheem #3 thiab #4, koj tuaj yeem hloov cov ntawd nrog: #2 kev xaiv - (Qty: 1) - 16 MHz Cov Khoom Siv Hluav Taws Xob (w/cap) ($.54) Cov ntu no zoo li cov khoom siv hluav taws xob, thiab koj nqes 2 tus pin sab nraud mus rau qhov chaw uas koj yuav nqes tus siv lead ua (npog tom qab hauv Cov Lus Qhia), thiab tus pin nruab nrab mus rau hauv av. Yam tsawg kawg yog qhov kuv tau nyeem - Kuv tseem tsis tau sim nws. Tab sis raws li koj tuaj yeem sau tseg, nws pheej yig dua mus rau txoj kev no.:) Ok, cia peb pib nqes khoom!

Kauj ruam 2: Hooking Up zog

Hooking Up zog
Hooking Up zog
Hooking Up zog
Hooking Up zog

Mus tom ntej thiab txuas koj lub zog fais fab raws li qhia hauv thawj daim duab yog tias koj siv lub hwj chim txuas. Tom ntej no, txuas ob peb ntawm cov xov hlau raws li qhia hauv daim duab txuas nrog lub zog sib xws (+ thiab -) ntsia ua ke.

Kauj Ruam 3: Chip (microcontroller) Tso

Chip (microcontroller) Tso
Chip (microcontroller) Tso
Chip (microcontroller) Tso
Chip (microcontroller) Tso

Tam sim no peb xav muab lub microcontroller tso rau ntawm koj lub khob cij raws li qhia hauv daim duab. Yog tias qhov no yog hom tshiab nti, koj yuav tsum khoov ob kab ntawm tus pin me ntsis. Kuv ua dab tsi, yog kuv tuav lub nti los ntawm ob sab, thiab nias lub nti me ntsis tiv thaiv lub tiaj tiaj zoo li lub rooj, thiab ua qhov no ntawm ob sab kom ob sab tau khoov hauv qhov sib npaug. Koj yuav zoo li tsis tas yuav ua qhov no yog tias koj tab tom rub koj lub nti los ntawm koj Arduino - lawv twb tau khoov los ntawm qhov nyob hauv lub qhov (socket). Thov nco ntsoov txoj kev taw qhia ntawm cov nti - hauv cov duab thiab rau Cov Lus Qhia no, thov tso lub nti kom me ntsis ib nrab puag ncig 'thais' nyob ntawm sab laug.

Kauj Ruam 4: Nqa Lub Hwj Chim rau Chip

Nqa Lub Hwj Chim rau Chip
Nqa Lub Hwj Chim rau Chip
Nqa Lub Hwj Chim rau Chip
Nqa Lub Hwj Chim rau Chip
Nqa Lub Hwj Chim rau Chip
Nqa Lub Hwj Chim rau Chip

Ua ntej sib txuas 3 xov hlau raws li qhia hauv daim duab. Ib qho yuav mus rau hauv av/tsis zoo (cov xaim dub pom), thiab 2 yuav yog qhov zoo. Yog tias koj tsis tuaj yeem qhia tus pin twg tau txuas nrog ntawm lub nti, saib ntawm daim duab 5 hauv cov kauj ruam no uas yog tus lej cim uas kuv rub los ntawm Arduino lub vev xaib los siv. Mus los ntawm qhov ntawd, koj tuaj yeem pom tias peb cov av/tsis zoo (dub) xaim yuav mus rau tus pin 22, thiab 2 qhov zoo (cov xov liab) yuav mus rau tus pin 20 thiab 21. Tom ntej no nuv 1 txuas ntxiv zoo (liab) xaim thiab 1 ntau qhov tsis zoo (dub) xaim raws li qhia hauv daim duab thib 3/4 (lawv zoo ib yam… tsuas yog ib qho tau nthuav dav ntxiv). Ib zaug ntxiv, yog tias koj tsis tuaj yeem qhia, saib Arduino daim duab qhia chaw, thiab koj tuaj yeem pom tias peb tab tom txuas peb cov av/tsis zoo (dub) xaim rau tus pin 8, thiab qhov zoo (liab) xaim rau tus pin 7.

Kauj Ruam 5: Hooking Up Crystal mus rau Chip

Hooking Up Crystal rau Chip
Hooking Up Crystal rau Chip
Hooking Up Crystal mus rau Chip
Hooking Up Crystal mus rau Chip
Hooking Up Crystal rau Chip
Hooking Up Crystal rau Chip

Qhov tseeb ua ntej peb nqes tus siv lead ua, cia peb nqes cov capacitors. Nqa cov 2 22 pF ceramic disc capacitors rau lub nti raws li qhia hauv daim duab. Lawv mus sab xis ntawm qhov tsis zoo/hauv av (dub) xaim. Ib txhais ceg (koj tsis tas yuav txhawj xeeb txog qhov sib txawv) ntawm lub capacitor mus rau qhov tsis zoo/hauv av tsheb nqaj hlau, thiab lwm tus mus rau ib qho ntawm tus pin ntawm lub nti. Ib lub tshuab hluav taws xob txuas rau tus pin 9, thiab ib tus pin 10 ntawm lub nti. Tam sim no rau siv lead ua. Muab ib txhais ceg tso rau ntawm tus pin 9, thiab lwm txhais ceg ntawm tus pin 10 … Xa mus rau cov duab. Qhov ntawd yog nws! Koj ua tau tiav. 2 kauj ruam tom ntej yog nyob ntawm yeem. Tam sim no koj tuaj yeem rov ua qhov koj tau txuas nrog koj li Arduino pawg thawj coj rau qhov kev sib tham ib leeg. Koj yuav xav siv Arduino tus pin qhia los ntawm Kauj Ruam 4 kom paub tias yuav nqes dab tsi thiab nyob qhov twg. Koj tuaj yeem txuas ntxiv mus rau ob peb kauj ruam tom ntej rau qhov ntxiv me ntsis, thiab xeem, lossis pov thawj-ntawm-lub tswv yim rau qhov tsis muaj lub sijhawm zoo dua. Nov yog cov vis dis aus nrawm ntawm daim ntawv qhia ua zaub mov tiav:

Kauj Ruam 6: (Xaiv tau) Lub Hwj Chim Qhia LED

(Tsis teb los tau) Lub Hwj Chim Qhia LED
(Tsis teb los tau) Lub Hwj Chim Qhia LED
(Tsis teb los tau) Lub Hwj Chim Qhia LED
(Tsis teb los tau) Lub Hwj Chim Qhia LED
(Tsis teb los tau) Lub Hwj Chim Qhia LED
(Tsis teb los tau) Lub Hwj Chim Qhia LED
(Tsis teb los tau) Lub Hwj Chim Qhia LED
(Tsis teb los tau) Lub Hwj Chim Qhia LED

Nov yog me ntsis 'dag' siv los ntawm tib neeg, kuv nkag siab, rau kev daws teeb meem lub hom phiaj. Koj ntxiv ib qho LED (thiab tus tiv thaiv ntawm chav kawm) rau lub zog ib feem ntawm Circuit Court, yog li yog tias koj txoj haujlwm tsis ua haujlwm, koj tuaj yeem txheeb xyuas sai yog tias lub Circuit Court tau txais lub zog lossis tsis yog. Tsuas yog nqes koj tus tiv thaiv (qhov kuv tau siv ntawm kuv, hauv daim duab yog 510 OHM resistor) raws li qhia hauv cov duab. Nco ntsoov nrog LEDs uas lawv muaj qhov sib txawv - ceg luv yog qhov tsis zoo, thiab qhov ntev yog qhov zoo. Yog li xyuas kom luv luv yog qhov txuas nrog hauv av (dub) kev tsheb nqaj hlau. Ib qho ntawm cov duab qhia pom lub xov tooj txuas nrog, thiab LED nyob. Koj mus. Ib zaug ntxiv, Kuv tsis yog tus kws tshaj lij, tab sis nws zoo li muaj qhov xav tau uas koj xav ua qhov no, thiab kuv yuav ua cov kauj ruam no ntawm qhov kawg ntawm kuv thawj qhov haujlwm Arduino. Nyeem mus rau cov kauj ruam tom ntej yog tias koj xav pom txoj hauv kev yooj yim pom yog tias koj tau txais txhua yam ntawm koj lub khob cij txoj cai.

Kauj Ruam 7: (Tsis teb los tau) Kev Xeem thiab Yooj Yim

(Tsis teb los tau) Kev Xeem thiab Yooj Yim
(Tsis teb los tau) Kev Xeem thiab Yooj Yim
(Tsis teb los tau) Kev Xeem thiab Yooj Yim
(Tsis teb los tau) Kev Xeem thiab Yooj Yim
(Tsis teb los tau) Kev Xeem thiab Yooj Yim
(Tsis teb los tau) Kev Xeem thiab Yooj Yim

Ok, koj tau txais txhua yam txuas, koj paub tias koj muaj hwj chim, tab sis lo lus nug yog, koj puas tau xaim txhua yam kom raug? Cia saib. Rau qhov no koj yuav xav tau tus tiv thaiv, thiab LED thiab qee qhov chaws. Hlau txuas tus tiv thaiv thiab LED raws li qhia hauv cov duab. Rau qhov no, Kuv siv 330 OHM resistor, thiab LED liab. Nco tseg yuav ua li cas koj ntsaws rau hauv LED - lawv muaj qhov tsis sib xws - ceg luv nkag mus rau qhov tsis zoo/hauv av tsheb nqaj hlau, thiab ntev dua, cov hlau lead zoo mus rau ATMega nti… tus pin 19. Raws li ua ntej, yog tias koj tsis paub meej tias yog dab tsi tus pin no yog, xa mus rau Arduino daim duab duab hauv Kauj Ruam 4. Tam sim no, koj yuav tsum rub tawm Arduino Sketch Kuv tau txuas, qhib nws hauv software Arduino, thiab xa nws mus rau koj lub nti. Qhov no yuav ua rau Arduino tus pin 13 (tab sis nws yog ATMega tus pin 19 raws li kuv tau hais hauv kab lus dhau los) ntsais muag txhua ob. Nws yog los ntawm qhov zoo no Pib Nrog Arduino phau ntawv kuv muaj. Thaum koj tau txuas koj lub LED thiab tus tiv thaiv, teeb tsa koj lub nti, muab nws rov qab rau ntawm koj lub khob cij, tom qab ntawd koj tuaj yeem txuas koj lub zog. Koj yuav tsum tau txais lub ntsais ntsais LED, uas txhais tau tias koj tau txuas txhua yam kom raug! Hauv qab no yog cov vis dis aus luv luv ntawm Circuit peb tsuas yog tsim nrog qhov ntsais ntsais LED:

Kauj Ruam 8: Khab nias thiab Txuas

Kuv vam tias koj nyiam kuv Cov Lus Qhia thiab kuv vam tias nws yuav pab koj. Kuv paub kuv xav tias kuv muaj qee yam zoo li no thaum kuv thawj zaug tau sim ua qhov no tag nrho. Kuv yuav tsum hais tias txawm tias kuv tsis tuaj yeem nqa tag nrho cov credit - Kuv yuav tsum ua tsaug rau Arduino cov khoom lag luam thiab lub vev xaib rau kev tsim khoom zoo. Arduino lub vev xaib yog qhov chaw zoo ntawm cov ntaub ntawv thiab yog qhov tseeb kuv tau txais cov ntaub ntawv ntau txog cov khoom siv yam tsawg kawg nkaus kom tau txais cov nti ua haujlwm deb ntawm Arduino board.

Lwm qhov chaw zoo yog nyob ntawm: ITP Kev Xeem Lub Cev … tshwj xeeb yog Arduino-tshwj xeeb lub vev xaib.

Thiab kuv tsis tuaj yeem hnov qab Pib nrog Arduino phau ntawv uas kuv tau hais hauv Kauj Ruam 7 - nws yog cov peev txheej zoo rau kuv kom pib nrog kuv Arduino.

Thiab kawg tab sis tsis tsawg kawg, yog tias koj tau txais qhov no deb, ua tsaug rau koj nyeem!

Pom zoo: