Cov txheej txheem:

Thaiv Game: 3 Kauj Ruam
Thaiv Game: 3 Kauj Ruam

Video: Thaiv Game: 3 Kauj Ruam

Video: Thaiv Game: 3 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Hlis ntuj nqeg
Anonim
Thaiv Game
Thaiv Game

Qhov no yog kev tshoov siab los ntawm txoj haujlwm pockeTETRIS. Kuv xav kom muaj pawg thawj coj saib xyuas uas siv lub vijtsam loj dua, ua kom yooj yim dua los ua si yam tsis muaj rooj plaub, thiab ntxiv qhov qhib/tua hloov.

Kauj ruam 1: Tsim

Tsim
Tsim

Cov ntaub ntawv tsim muaj nyob ntawm EasyEDA

Cov PCBs yuav tsum tau ua tus coj dawb vim nws yog tus tuav tes.

Cov khoom xav tau

PCB - Ntawv qhia zaub mov tom qab ntawd "Tsim Cov Ntawv Tsim" - tsim Gerber lossis xaj ntawm JLCPCB

1.3 OLED 128X64 - Nco ntsoov cov pins sib phim PCB

3 - 10K Resistors

3 - 6x6 SMD khawm Hloov

ATtiny85

2 Pos 3 Pin Swb Hloov

CR2032 Roj Teeb Nrog BAT-HLD-001-THM

Roj teeb CR2032

DIP8 Qhov (Socket)

AVR lossis ATtiny Chip Programmer

Lead Dawb Solder

Soldering Hlau

Dej Cawv Tshuab Dej Cawv

Txhuam Txhuam Hniav

Kev Tiv Thaiv Qhov Muag rau qhov muag, txiav, thiab ntxuav.

Muag

Feem ntau ntawm txoj haujlwm no yog los ntawm lub qhov khawb, tab sis nws siv cov SMD cov nyees khawm kom tsis txhob muaj cov npoo ntse nyob sab nraub qaum. Kev sib tsoo saum npoo av yog qhov tshiab rau kuv, yog li kuv yuav qhia qhov kuv tau kawm. Txhawm rau txhawm rau SMD cov nyees khawm, xub yaj cov laug mus rau 1 lub ncoo, tshem tawm cov laug thiab swb 1 khawm ko taw mus rau hauv cov laug. Nco ntsoov tias khawm tau ua kom haum ua ntej txuas ntxiv. Tom ntej ua kom sov cov ntaub qhwv thiab ko taw nrog hlau thiab yaj cov kab laug sab saum toj kom txog thaum lub dome txuas tau tsim. Kuv kawm SMD soldering los ntawm Collin's Lab.

Cov laug sab saum toj khawm khawm ua ntej lwm yam.

Tom ntej no, xuas lub Attiny85 lub qhov (socket) thiab cov tiv thaiv nyob tom qab. Sib phim lub qhov ntsaws qhov ntsaws nrog silkscreen tus qauv. Tom qab, txiav cov hlau thiab tom qab ntawd muab cov khoom seem tso rau ntawm sab xub ntiag. Txiav qhov seem ntawm cov laug tom qab ua tiav.

HLOOV

Cov dej ntws los ntawm cov laug yuav tso cov nplaum nplaum. Tom qab Soldering siv hluav taws xob cawv los txau lossis npog PCB thiab txhuam nrog txhuam hniav. Siv kev tiv thaiv qhov muag.

Kauj ruam 2: Program ATtiny85

Txoj Haujlwm ATtiny85
Txoj Haujlwm ATtiny85

Ntxiv Arduino IDE pawg txhawb nqa rau ATtiny Mus rau "Cov Ntaub Ntawv" cov ntawv qhia zaub mov thiab xaiv "Nyiam" Hauv lub thawv ntawv sau "Tus Thawj Saib Xyuas Ntxiv URLs" sau: https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x -boards-manager/package_damellis_attiny_index.json thiab nyem OK

Mus rau "Cov Cuab Yeej" ntawv qhia zaub mov thiab tom qab ntawv "Pawg Thawj Coj" xaiv "Tus Thawj Saib Xyuas Haujlwm" thiab tom qab ntawd los ntawm hom kev nco cia xaiv "Koom Tes": Xaiv pob "attiny" thiab nyem rau "Install" khawm.

Tom qab kev teeb tsa tiav, kaw lub "Boards Manager" window thiab xaiv

Pawg thawj coj: “ATtiny25/45/85”

Tus Txheej Txheem: "ATtiny85"

Moos: "Sab hauv 8 Mhz"

Qhov program ATtiny

Yuav tsum tau program Arduino rau AVR Programming Shield

Upload "Arduino as ISP sketch" [File] -> [Piv txwv] -> [Arduino as ISP].

Txuas nrog AVR Programming Shield rau Arduino

Socket ATTINY85 nti ntawm AVR Programming Shield

Xaiv tus Programmer, [Cuab Yeej] -> [Programmer] -> [Arduino li ISP] Teem program bootloader, [Cuab Yeej] -> [Burn Bootloader]

Qhib PockeTetris Sketch hauv Arduino software

Rub tawm daim duab, [Cov Ntaub Ntawv] -> [Upload siv programmer]

Tom qab koj ua tiav daim duab kos, xyuas kom tseeb tias tus lej ntawm ATtiny85 thiab lub qhov ntsaws qhov ntsaws nyob ntawm ib sab thiab thawb lub nti rau hauv lub qhov (socket).

Kauj ruam 3: Ua si

Lub pob nruab nrab yuav hloov daim thaiv thiab tso nws tseg thaum tuav. Kuj tseem muaj hom kev ncua uas siv lub zog tsawg dua thaum cov nyees khawm sab laug thiab sab xis raug tsoo ib txhij.

Kuv tau nyiam tsim thiab ua si qhov kev ua si no.

Pom zoo: