Cov txheej txheem:

64pixels: 8 Kauj Ruam (nrog Duab)
64pixels: 8 Kauj Ruam (nrog Duab)

Video: 64pixels: 8 Kauj Ruam (nrog Duab)

Video: 64pixels: 8 Kauj Ruam (nrog Duab)
Video: 9. 10 los koj yuav nrauj 8/7/2019 2024, Kaum ib hlis
Anonim
64px ua
64px ua

Nov yog lub cuab yeej me me los tso saib cov lus pom thiab cov lus luv. Nws suav nrog peb yam nkaus xwb thiab yooj yim heev los tsim. Thiab lom zem saib. Yog tias koj tsis xav tias zoo li khaws txhua yam khoom koj tus kheej, koj tuaj yeem yuav cov khoom siv nrog txhua qhov xav tau thiab cov phiaj xwm ua ntej tswj hwm microcontroller ntawm Tinker Store.

Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej

Qhov Chaw thiab Cov Cuab Yeej
Qhov Chaw thiab Cov Cuab Yeej

Tsuas yog plaub ntu xav tau:

  • ATTINY2313V-10PU, microcontroller, 2 k flash RAM, Digikey
  • LEDMS88R, 8 * 8 LED matrix, Futurlec
  • Lub roj teeb nrog hloov rau ob lub roj teeb AA, Digikey
  • 2 AA roj teeb lossis them nyiaj rov qab

ATtiny2313V yog lub microcontroller, uas khiav ntawm 5.5 mus rau 1.8 Volt. Yog li nws yooj yim rau lub zog nws los ntawm ob lub AA hlwb. Thiab raws li koj pom, tsis muaj tus tiv thaiv. Feem ntau koj yuav xav tau tus tiv thaiv kom txwv qhov tam sim no los ntawm LEDs. Peb yog me ntsis taug txuj kev nyuaj ntawm no thiab txuas cov LED matrix Evil-Mad-Scientist-txoj kev ncaj qha mus rau tus tswj. Lub maub los tsuas yog ua kab ib zaug thiab hloov mus rau txhua kab uas nrawm dua, uas muaj cov duab khov kho tawm. Lub roj teeb lub neej nyob me ntsis ntawm ntau npaum li cas pixels tau teeb nyob rau tib lub sijhawm. Txhawm rau tsim nws, koj xav tau:

  • Soldering hlau thiab solder
  • Pliers
  • Hlau stripper los yog riam
  • Cov nab kuab
  • Tes thib peb (yeem)

Yog tias koj xav ua haujlwm rau koj tus kheej cov duab thiab cov lus, koj yuav xav tau AVR programmer ib yam.

Kauj ruam 2: Prototyping ntawm Breadboard

Prototyping ntawm Breadboard
Prototyping ntawm Breadboard

Kuv siv lub khob cij los ntsuas lub Circuit Court thiab sim tawm cov lus tshiab lossis cov duab kos. Tus maub los ntawm lub khob cij yog siv los ntawm tus programmer nrog 5 Volts. Qhov ntawd yog vim li cas rau 100 Ohm resistors. Cov no tsuas yog xav tau ntawm daim ntawv qhia zaub mov. Please nco ntsoov, feem ntau koj xav tau tam sim no txwv kev tiv thaiv rau LEDs. Tsuas yog hauv cov xwm txheej tshwj xeeb koj tuaj yeem tso qhov kev txwv tam sim no. Txwv tsis pub koj yuav rhuav tshem LED. Txuas nrog yog tus zip uas muaj qhov chaws thiab Makefile. Update Tsib Hlis, 7th, 2009: Yog tias koj tau suav nws ntawm koj tus kheej thiab nws yuav tsis haum rau ATtiny2313 (avrdude yws txog qhov chaw nyob 0xXXX tawm ntawm ntau yam), tom qab ntawv thov sim ib qho qub version ntawm avr-gcc. Version 3.4.6 ua haujlwm zoo rau kuv. Yog tias koj siv WinAVR, tom qab ntawd nrhiav WinAVR-20060421-install.exe.

Kauj Ruam 3: Npaj Tus Tswj

Npaj Tus Tswj
Npaj Tus Tswj
Npaj Tus Tswj
Npaj Tus Tswj

Nqa cov pliers thiab khoov tus pin me ntsis. Tom qab ntawd, txhua tus pins yuav tsum ua ntu zus.

Kauj Ruam 4: Npaj Zaub

Npaj Zaub
Npaj Zaub
Npaj Zaub
Npaj Zaub
Npaj Zaub
Npaj Zaub

Tam sim no coj cov duab matrix thiab khoov nws ob txhais ceg ib yam. Koj tuaj yeem siv daim yas los khoov ob txhais ceg hla nws. Qhov ntawd yuav ua kom yooj yim dua.

Kauj Ruam 5: Txuas Cov Roj Teeb Hluav Taws Xob

Txuas Cov Roj Teeb Cables
Txuas Cov Roj Teeb Cables

Tam sim no nqa cov hlua ntawm lub roj teeb thiab qhwv lawv ib ncig ntawm ib qho ntawm tus pin nruab nrab. Ntxig lub cable rau sab saum toj ntawm lub matrix. Hauv qab yog cim nrog cov ntawv sau (NFM-12883AS-11), hauv daim duab no ntawm sab xis ntawm daim ntawv. Ua ib txoj hlua yooj yim nyob ib ncig ntawm tus pin. Uas ua hauj lwm raws li nyem nyem. Tshem tawm cov xaim dub me ntsis.

Kauj Ruam 6: Teem Cov Zaub Nrog Microcontroller

Teem Cov Zaub Nrog Microcontroller
Teem Cov Zaub Nrog Microcontroller

Txhim kho tus tswj hwm qhov chaw nrog cov yeeb yaj kiab. Muab nws tso rau ntawm qhov matrix kom muaj ob tus pin nyob rau sab saud thiab hauv qab, uas tsis txuas nrog cov lej. Qhov no tuaj yeem ua kom yuam kev me ntsis. Tej zaum koj yuav tsum hloov kho qee tus pins. Muaj qhov me me ntawm lub microcontroller. Tus thais ntawd yuav tsum taw tes rau sab laug.

Kauj ruam 7: Solder Nws

Solder Nws
Solder Nws
Solder Nws
Solder Nws
Solder Nws
Solder Nws
Solder Nws
Solder Nws

Tam sim no txuas ob tus pin, ib qho ntawm txhua sab. Tom qab ntawd tshem tawm cov kab zauv thiab rov txheeb xyuas qhov sib luag ntawm txhua tus pins. Yog tias txhua yam haum, muab cov laug txuas tso tseg. Txoj haujlwm zaum kawg yog txhawm rau txuas cov roj teeb txuas. Ua daim ntawv me me ntawm qhov kawg ntawm txhua kab. Qhov liab txuas rau tus pin 20, tus pin sab xis saum toj. Cov kab dub txuas rau tus pin 10 nyob hauv qab sab laug.

Kauj Ruam 8: Ntxig Cov Roj Teeb

Ntxig Cov Roj Teeb
Ntxig Cov Roj Teeb

Thiab qhov ntawd yog nws. Ntxig ob lub roj teeb AA lossis cov roj teeb rov tau thiab hloov nws. Txhua lub sijhawm koj hloov nws, nws qhia lwm qhov ntawm cov ntawv qhia ua ntej lossis cov ntawv nyeem koj tau ua tiav. Vam tias, koj nyiam nws.

Pom zoo: