Cov txheej txheem:

Handheld Gaming Console - Arduboy Clone: 6 Kauj Ruam (nrog Duab)
Handheld Gaming Console - Arduboy Clone: 6 Kauj Ruam (nrog Duab)

Video: Handheld Gaming Console - Arduboy Clone: 6 Kauj Ruam (nrog Duab)

Video: Handheld Gaming Console - Arduboy Clone: 6 Kauj Ruam (nrog Duab)
Video: Mini Tetris Gameboy 3D Printed #shorts #3dprinting #maker #nintendo #gameboy #tetris 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

Ob peb hlis dhau los Kuv tau hla Arduboy uas raws li nws lub vev xaib raug cai yog qhov me me 8-ntsis game platform uas ua rau nws yooj yim kawm, sib qhia thiab ua si online. Nws yog qhib qhov chaw platform. Cov kev ua si rau Arduboy yog tsim los ntawm cov neeg siv. Arduboy yog nyob ib puag ncig ATmega32u4 uas yog tib lub microcontroller siv hauv Arduino Pro Micro. Txawm hais tias kuv tseem tsis tau muaj peev xwm ua kev ua si, Kuv txiav txim siab los tsim cov khoom kho vajtse ib feem ntawm nws ntawm lub khob cij. Thiab yog, nws ua haujlwm! Ua tsaug rau MrBlinky rau tsim Homemade Arduboy Pob. Txoj haujlwm nyuaj twb ua tiav lawm.

Kuv muaj kev lom zem heev ua si qee qhov retro games ntawm nws. Tab sis daim ntawv qhia zaub mov yog me ntsis clumsy nrog cov xov hlau khiav thoob plaws. Kuv ib txwm xav sim PCB kev tsim qauv thiab tau txais nws kev tshaj lij. Yog li, qhov no yog lub sijhawm zoo los ua nws. Tsis tas li, qhov no yog txoj haujlwm zoo tshaj plaws raws li peb yuav tsum mob siab rau PCB tsim nkaus xwb. Hauv Cov Lus Qhia no, peb yuav ua peb tus kheej version ntawm Arduboy, los ntawm daim duab hluav taws xob mus rau lub rooj tsav xwm hauv Circuit Court!

Cia peb pib

Kauj Ruam 1: Yam Koj Yuav Tsum Tau

Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

1 x Arduino Pro Micro (5V)

1x OLED Zaub (SPI)

6x Tactile Push Button

1 x Piezo Speaker

1x Common Anode RGB LED

Kauj Ruam 2: Xeem ntawm Breadboard

Kuaj ntawm Breadboard
Kuaj ntawm Breadboard
Kuaj ntawm Breadboard
Kuaj ntawm Breadboard
Kuaj ntawm Breadboard
Kuaj ntawm Breadboard

Sau tag nrho cov khoom siv xav tau thiab pib txuas lawv ntawm daim ntawv qhia zaub mov raws li qhia hauv daim duab qhia chaw.

Cov kev sib txuas yog raws li hauv qab no:

Tswj cov yuam sij:

UAS - A0

DAWB - A3

LOJ - A1

LEFT - A2

A -D7 ib

IB - D8

OLED Zaub:

TSO - D15

SDA -D16

DC -D4

RES - D2

Hais lus:

Hais lus + - D5

Hais lus - - D6

RGB coj:

LUJ - D10

GREEN - D3

XOV XWM - D9

Kauj Ruam 3: Tshaj Tawm Kev Ua Si rau Arduino

Muaj ob peb kauj ruam yuav tsum ua raws ua ntej koj tuaj yeem tso ib qho game ntawm Arduino.

  • Qhib Arduino IDE> Cov Ntaub Ntawv> Nyiam
  • Luam thiab paste qhov URL hauv qab no hauv Tus Thawj Saib Xyuas Ntxiv URL lub thawv ntawv thiab nyem rau ntawm OK.
  • Mus rau Cov Cuab Yeej> Boards> Tus Thawj Saib Xyuas Haujlwm.
  • Hauv cov thawv ntawv hom ua hauv tsev lossis Arduboy ua hauv tsev.
  • Xaiv Arduboy Homemade pob thiab nyem Nruab.

Tom qab txhim kho lub tsev qiv ntawv, mus rau Cov cuab yeej ntawv qhia zaub mov thiab xaiv raws li hauv qab no:

  • Pawg thawj coj: Homemade Arduboy
  • Bootloader: Cathy3K
  • Raws li: SparkFun Pro Micro 5V - Kev thaiv lwm yam
  • Tub ntxhais: Arduboy ua kom zoo dua qub
  • Zaub: SSD1306

Xaiv thiab rub koj cov game nyiam los ntawm no.

Qhib cov.ino cov ntaub ntawv thiab nyem upload.

Kauj Ruam 4: Tsim PCB hauv EasyEDA

Tsim PCB hauv EasyEDA
Tsim PCB hauv EasyEDA
Tsim PCB hauv EasyEDA
Tsim PCB hauv EasyEDA
Tsim PCB hauv EasyEDA
Tsim PCB hauv EasyEDA

Thaum txhua yam ua haujlwm raug, peb tuaj yeem pib nrog txheej txheem PCB tsim. Kuv xaiv EasyEDA rau kev tsim qauv vim nws ua rau yooj yim rau cov pib zoo li kuv. Kuv xav kom nws txav tau yooj yim yog li kuv txiav txim siab siv nws ntawm LiPo roj teeb uas txhais tau tias yuav tsum tau them nqi thiab txhawb kev sib tw. Kuv txiav txim siab los tsim qhov kev txhawb nqa kuv tus kheej siv MT3608 tab sis kuj tseem tau muab cov ntaub ntawv txuas nrog kev npaj muaj MT3608 npaj tau (uas yog qhov kuv tau siv tas) yog tias kuv qhov version tsis ua haujlwm. Kuv tau txuas tag nrho cov ntaub ntawv yog tias koj xav siv kuv tus PCB tsim.

Ua ntej, pib los ntawm kev ua daim duab qhia chaw. Ua kom ntseeg tau tias txhua yam tau sau npe kom raug thiab daim duab qhia chaw yog huv thiab huv. Qhov no ua rau kuaj pom teeb meem yooj yim dua tom qab. Thaum xaiv cov khoom siv, hneev taw ntawm cov khoom siv thiab xyuas kom tseeb tias nws phim nrog cov khoom koj muaj.

Thaum koj tau txheeb xyuas txhua qhov kev sib txuas, nyem rau ntawm Hloov mus rau PCB xaiv. Qhov no yuav qhib lub qhov rai tshiab nyob ntawm qhov uas koj tuaj yeem pom tag nrho cov hneev taw ntawm cov khoom npaj tau muab tso rau thiab txuas nrog.

Thawj qhov koj yuav tsum tau ua yog txhawm rau txheeb xyuas koj cov phiaj xwm phiaj xwm. Muab koj cov khoom sib xyaw ua ntu zus thiab ua kom muaj txiaj ntsig kom tau txais lub tswv yim ntxhib ntawm cov duab thiab qhov loj ntawm lub rooj tsavxwm. Xaiv BoardOutline los ntawm Layers menu thiab pib kos duab siv Track Track los ntawm PCB Tools menu.

Tam sim no, ua kom tiav txoj haujlwm ntawm cov khoom. Tej zaum koj yuav tau pom cov kab tawm los ntawm cov pawm. Cov ntawd hu ua Ratlines thiab lawv pab peb kom tau txais lub tswv yim ntawm cov khoom sib txuas ua ke li cas thiaj li tshem tawm cov kab ke tau yooj yim.

Thaum koj zoo siab nrog kev tso ua ke, koj tam sim no tuaj yeem pib txuas lawv nrog cov cim. Qhov dav ntawm kab yog txiav txim siab los ntawm qhov tam sim no nws tau nqa. Ib lub PCB Looj Liab Lub Tshuab Lij Choj los ua ke. Kuv mus nrog 0.254mm rau cov cim thiab 0.6mm rau cov khoom siv fais fab. Xaiv TopLayer (lossis BottomLayer) los ntawm Cov Ntawv qhia zaub mov Layers thiab pib kos duab siv Track Track. Thaum taug qab qhov xwm txheej yuav tshwm sim qhov twg tsis muaj chaw los ua kom tiav cov kab. Hauv qhov xwm txheej zoo li no, koj tuaj yeem dhia mus rau lwm txheej thiab txuas mus txuas ntxiv. Kev sib txuas ntawm cov kab ntawm ob txheej yog ua tiav nrog kev pab yog Vias. Hauv nruab nrab ntawm kev ua kab, ntaus V. Cov kab yuav xaus thiab tam sim no koj tuaj yeem tso ib qho ntawm. Tom qab ntawd, xaiv lwm txheej los ntawm Cov ntawv qhia zaub mov Txheej thiab txuas ntxiv cov kab pib los ntawm ntawm. Ua txhua qhov kev sib txuas tshwj tsis yog hauv av.

Tam sim no xaiv Tooj Cheeb Tsam Tuam Tsev los ntawm PCB Cov cuab yeej ntawv qhia zaub mov thiab kos ib ncig ntawm lub rooj tsavxwm. Nco ntsoov tias GND raug xaiv hauv lub npov kab ntawv. Qhov no yuav tsim lub dav hlau hauv av thiab qhov sib txuas hauv av txuas ntxiv yuav raug txiav rau nws.

Kos, kos thiab kos! Xyuas kom koj tsis nco dab tsi tawm. Thaum koj paub meej, nyem rau ntawm Tsim Cov Ntawv Tsim los rub tawm Gerber cov ntaub ntawv uas tom qab ntawd tuaj yeem xa mus rau qhov kev pabcuam tsim khoom uas koj xaiv.

Nco tseg: Raws li tau hais ua ntej, Kuv tau ua kom muaj kev txhawb zog siv MT3608 uas ua haujlwm zoo kawg nkaus kom txog thaum thauj khoom txuas nrog. Cov zis hluav taws xob poob qis. Kuv tau paub txog qhov teeb meem no raws li cov ntawv teev npe ntawm MT3608 qhia meej meej tias yuav tsum tau npaj cov khoom li cas thiab qhov dav li cas. Thiab ua tus pib, Kuv paub zoo tias qhov yuam kev yuav tshwm sim. Nws yuav pab tau yog tias ib tus neeg piav qhia kuv txog qhov ua rau thiab daws qhov teeb meem.

Kauj Ruam 5: Sib Sau Koj Li PCB

Sib dhos Koj PCB
Sib dhos Koj PCB
Sib dhos Koj PCB
Sib dhos Koj PCB
Sib dhos Koj PCB
Sib dhos Koj PCB

Kuv xaj PCBs los ntawm JLCPCB thiab txhua yam khoom siv xav tau los ntawm LCSC. Qhov no txuag ntawm tus nqi thauj khoom raws li ob qho kev txiav txim tau xa ua ke. Khaws koj daim duab qhia chaw npaj thiab pib siv cov khoom sib txuas raws li cov cim silkscreen. Thaum siv cov khoom siv hluav taws xob SMD, xyuas kom tseeb tias koj siv ntau cov dej ntws raws li nws ua rau siv cov pins me me yooj yim dua. Nws yog kuv thawj zaug siv cov khoom siv SMD thiab cov haujlwm ua haujlwm zoo li zoo nkauj.

Ntxuav PCB tom qab siv cov Iso Propyl Cawv los tshem cov dej ntws tawm.

Xaiv LiPo Roj Teeb:

Kuv siv lub roj teeb 380mAh uas kuv tau pw ib puag ncig. Nrog tam sim no kos ntawm 50mA thiab 100mA, nws yuav tsum kav ntev li ntawm 3-4 teev.

Kauj ruam 6: Txaus siab rau

Txuas lub roj teeb LiPo, rub koj cov game nyiam ua ntej thiab txaus siab!

Ua tsaug rau koj ua kom txog thaum kawg. Vam tias koj txhua tus nyiam txoj haujlwm no thiab kawm paub qee yam tshiab hnub no. Qhia rau kuv paub yog tias koj ua ib qho rau koj tus kheej. Sau npe yuav ua rau kuv tus YouTube channel rau ntau qhov haujlwm yav tom ntej. Ua tsaug ntau ntau!

Pom zoo: