Cov txheej txheem:
Video: Thaiv Game: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
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
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
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:
Arduino Counter Siv TM1637 LED Zaub & Kev Tiv Thaiv Kev Tiv Thaiv: 7 Cov Kauj Ruam
Arduino Counter Siv TM1637 LED Zaub & Kev Tiv Thaiv Kev Tiv Thaiv: Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas tus lej lej yooj yim siv LED Zaub TM1637 thiab teeb meem zam kev ntsuas thiab Visuino. Saib cov vis dis aus
Roj Teeb Saver, Tiv Thaiv Tiv Thaiv Txiav Tawm Nrog ATtiny85 rau Lead Acid Tsheb lossis Lipo Roj Teeb: 6 Cov Kauj Ruam
Roj Teeb Txuag, Tiv Thaiv Kev Tiv Thaiv Txiav Tawm Nrog ATtiny85 rau Lead Acid Car lossis Lipo Battery: Raws li kuv xav tau ntau lub tiv thaiv roj teeb rau kuv lub tsheb thiab lub hnub ci tshuab kuv tau pom cov lag luam ntawm $ 49 kim heev. Lawv kuj siv lub zog ntau dhau nrog 6 mA. Kuv nrhiav tsis tau cov lus qhia ntawm qhov ncauj. Yog li kuv tau ua kuv tus kheej uas thim 2mA.How nws
Tiv Thaiv Koj Lub Tswv Yim, Tiv Thaiv Koj Txoj Haujlwm: 8 Kauj Ruam
Tiv Thaiv Koj Lub Tswv Yim, Tiv Thaiv Koj Txoj Haujlwm: Kuv poob cov ntaub ntawv qee hnub dhau los los ntawm kev sib tsoo hauv PC. Ib hnub ua haujlwm poob. :/ Kuv khaws kuv cov ntaub ntawv hauv huab kom tiv thaiv lub hard disk puas. Kuv siv cov software hloov pauv yog li kuv tuaj yeem rov kho dua kuv cov haujlwm. Kuv ua thaub qab txhua hnub, tab sis lub sijhawm no kuv
YUAV TSUM HNOV TSHUAJ TIV THAIV TSHUAJ TIV THAIV TSHUAJ TIV THAIV LAMP: 8 Kauj Ruam
YUAV UA LI CAS YUAV TSHUAJ TSEEB TSHUAB PLASTICS RAU DESKTOP LAMP: hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas thiaj ua rau koj tus kheej lub teeb pom kev zoo siv cov khoob yas khoob khoob
8x8 Led Matrix Moos & Ceeb Toom Tiv Thaiv Kev Tiv Thaiv: 4 Cov Kauj Ruam (nrog Duab)
8x8 Led Matrix Clock & Anti-Intrusion Warning: Hauv phau ntawv qhia no peb yuav pom yuav ua li cas thiaj tsim tau 8x8 Led Matrix Clock qhib los ntawm kev tshawb nrhiav lub suab. kuaj pom tus lej xov tooj !!! Peb yuav ua ob qhov sib txawv