Cov txheej txheem:

Ardubaby Mini Game Console Nrog 500 Kev Ua Si: 10 Kauj Ruam
Ardubaby Mini Game Console Nrog 500 Kev Ua Si: 10 Kauj Ruam

Video: Ardubaby Mini Game Console Nrog 500 Kev Ua Si: 10 Kauj Ruam

Video: Ardubaby Mini Game Console Nrog 500 Kev Ua Si: 10 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Ardubaby Mini Game Console Nrog 500 Kev Ua Si
Ardubaby Mini Game Console Nrog 500 Kev Ua Si
Ardubaby Mini Game Console Nrog 500 Kev Ua Si
Ardubaby Mini Game Console Nrog 500 Kev Ua Si

Khab nias rau tus tsim (Kevin Bates), Arduboy yog qhov ua tau zoo heev 8 ntsis game game. Muaj ntau txhiab qhov kev ua si sau los ntawm tus nyiam ua haujlwm uas sib koom lawv dawb ntawm lub rooj sib tham hauv zej zog ntawm Arduboy yog li ntau tus neeg tuaj yeem kawm paub yuav ua li cas.

Kev tsim kho vajtse tseem qhib qhov chaw thiab tso cai rau cov tsim khoom zoo li kuv los tsim lawv tus kheej cov khoom siv kho vajtse, thiab txhim kho software cov khoom siv los txhim kho nws txoj haujlwm. Khab nias rau MR. Blinky leej twg tsim Flash-Cart Circuit, pob khoom siv hauv tsev rau Arduino IDE thiab cov nab hab sej kev siv hluav taws xob los tswj Flash laub uas muaj peev xwm khaws tau 500 kev ua si ntawm 16Mbyte serial flash memory rau kev ua si ntawm txoj kev tsis muaj lub computer.

Kawm cov lus sib tham ntawm Arduboy lub rooj sab laj hauv zej zog, Kuv kawm paub tias kuv xav tau dab tsi los tsim ob peb lub tsev Arduboys. Rau cov neeg tuaj tshiab, qhov no yuav tsis yooj yim. Yog li kuv xav qhia qhov kuv tau kawm hauv ib qho video kawg-rau-kawg thiab cov lus qhia sau no. Vam tias qhov no yuav pab cov uas nrhiav cov lus teb los tsim lawv tus kheej cov khoom tab sis tsis paub yuav nug li cas lossis tsis tau txais txoj hauv kev los nug cov lus nug no.

Kuv qhov Arduboy version me me tsuas yog 1/4 ntawm qhov loj ntawm daim npav rho nyiaj (3.5cm x 5.0cm0) tab sis tuab me ntsis (2cm suav nrog hauv qab npog), tab sis muaj txhua lub tswb nrov thiab xuav koj xav tau: 0.9 OLED, lub mloog pob ntseg nkaus, tswj lub ntim, RGB LED.

thiab tseem ceeb tshaj, qhov chaw nres nkoj nthuav dav uas tso cai rau koj pauv koj cov game console khawm nrog qhov sib txawv los ntawm kev sib pauv rau sab saud lub rooj tsavxwm (lub khawm khawm).

Tom qab ntawd koj tuaj yeem siv cov nyees khawm ntsiag to, joystick zoo li cov nyees khawm, lossis txawm tias cov tswj hwm zoo ib yam li lub zog ntsuas.

Koj tseem tuaj yeem ntxiv cov av noo thiab qhov ntsuas kub kom tsim tau lub chaw nres tsheb huab cua me me, lossis ntxiv cov ntsuas hluav taws xob zoo tshaj los tsim lub ntsuas nrug.

Nws kuj tseem muaj ntxiv 16M bytes ntawm cov cim flash nco rau khaws cia txog 500 Arduboy kev ua si lossis cov haujlwm pabcuam. Los ntawm kev siv lub bootloader (Cathy3K) tsim los ntawm MR. Blinky, koj tuaj yeem hu ib qho ntawm 500 qhov kev ua si ntawm txoj kev thiab tus kheej nyem uas mus rau ATmega32U4 nti (micro-controller ntawm Arduboy) hauv vib nas this kom pib ua si, yam tsis muaj txuas rau koj lub computer lossis xov tooj.

Kauj Ruam 1: Tau Txais Txhua Qhov

Tau Txhua Qhov
Tau Txhua Qhov

Feem ntau ntawm cov khoom tuaj yeem yuav online los ntawm amazon.com, aliexpress.com lossis taobao.com. Qee qhov no tuaj yeem sau los ntawm cov laug cam uas tsis siv Arduino.

Nws raug nqi kuv tsawg dua USD 12 (tsis suav nrog kev xa khoom) mus yuav tag nrho cov no los ntawm taobao.com thiab xa mus rau Hong Kong.

Arduino Pro Micro Cov

OLED 64x128 SSD1306 SPI 0.96"

Winbond W25Q128 16Mbyte nco nti

3.7V 280 MaH Lipo roj teeb USB LiPO roj teeb charger module (4.2V)

3.5mm lub mloog pob ntseg 10K mini VR (B103) rau kev tswj ntim

10K mini VR (B103) rau potentiometer lossis cov maub los teb (yeem)

mini Piezo hais lus

3k, 3x1k tiv

3-hauv-1 RGB LED Xya

5x5mm Silent Button

9x4mm swb swb rau lub hwj chim hloov

ob lub 5x8cm ob tog sab perf board

ib 5x8cm ib sab perf board

1 x 13 tus pin poj niam lub taub hau

1x13 tus pin txiv neej header

1 x 7 tus pin poj niam lub taub hau

1x7 tus pin txiv neej header 3.5x5cm Acrylic board rau sab nraub qaum

tus nqi thauj mus los suav nrog hauv koj cov peev nyiaj

Kauj Ruam 2: Ua Tus Thawj Coj Loj

Ua Tus Thawj Coj Loj
Ua Tus Thawj Coj Loj
Ua Tus Thawj Coj Loj
Ua Tus Thawj Coj Loj
Ua Tus Thawj Coj Loj
Ua Tus Thawj Coj Loj

1. Tsim cov thav duab rau lub hauv paus.

a Siv cov laug cam 8cm x 5cm. Txiav nws siv txiab (lossis pom) kom ua rau 3.5cm x 5cm cov ntawv me me. Qhov ntawd yuav tsum tseem muaj 18 kab thiab 13 kab ntawm tus pin qhov. Txiav tawm ib daim 3.5cm x 5cm los ntawm Acrylic board los siv ua lub nraub qaum.

b. Siv tus poj niam 13-tus pin lub taub hau rau kab kawg hauv qab rau lub khawm khawm thiab nthuav dav. c. Solder tus 7-pin poj niam lub taub hau rau thawj kab ntawm sab saum toj rau 7-pin OLED.

d. Solder khawm ntsiag to rau khawm rov pib dua. e. Siv lub tshuab zawv zawg rau lub zog hloov. f. Solder 3.5mm lub tso suab lub mloog pob ntseg rau lub xov tooj taub hau. g. Ua tus 3-pin 10K mini-Variable resistor.

2. Ua kom lub roj teeb 4.2V LIPO them thiab 3.3V tus tswj hluav taws xob.

a desolder 5-pin 5V tus tswj hwm ntawm Pro-Micro board, yog li peb tuaj yeem muab lub zog los ntawm tus tswj hwm sab nraud 3.3V.

b. Lim LIPO lub roj teeb them lub teeb kom nws tuaj yeem haum rau ntawm lub rooj tsavxwm tseem nyob ib sab ntawm 3.4mm roj teeb nkaus. Koj yuav tsum tau txiav tawm ntawm qhov chaw uas USB txuas tau raws li qhov seem ntawm lub Circuit Court. Yog tias qhov no tseem loj heev, koj yuav tsum tau txiav me ntsis ntxiv. Hauv kuv qhov xwm txheej, Kuv yuav tsum tau hloov chaw thiab rov ua dua ib qho ntawm cov tshuaj tiv thaiv kom tso cai rau kuv los txiav ntxiv.

c. Txiav tawm lub tab nyob rau sab saum toj ntawm 3.3V tus tswj hwm (AMS1117-3.3) txhawm rau txo qhov chaw, thiab tseem yuav zam kev luv luv. Tom qab ntawd muab tshuaj txhuam tpin 1 rau qhov tsis zoo tso tawm thiab tus pin 3 qhov ua tau zoo ntawm LIPO roj teeb them nqi hluav taws xob. Solder 0.1uF capacitor nruab nrab ntawm Tus Pin 1 thiab Pin 2 kom txo qis thiab txo suab nrov. Siv lub tshuab me me SMD hom los txo qhov chaw yog ua tau.

d. Txuas 0.3mm laminated (insulated) xaim los ntawm RAW tus pin ntawm Pro micro board rau qhov zoo 5V cov tswv yim ntawm lub roj teeb them nqi hluav taws xob. Txuas ib lub xov hlau los ntawm GND tus pin ntawm Pro micro board rau qhov tsis zoo ntawm lub roj teeb them nqi hluav taws xob. Txuas xov hlau los ntawm tus pin nruab nrab (tus pin 2) ntawm 3.3V tus tswj hwm. Txuas qhov tsis zoo thiab qhov zoo ntawm LIPO roj teeb mus rau qhov tsis zoo thiab ua tau zoo ntawm lub roj teeb them feem.

d. Txuas USB cable los ntawm koj lub computer mus rau Pro-Micro Board. RAW tus pin yuav tsum muab 5V los ntawm USB cable rau LIPO lub roj teeb them lub roj teeb, uas yuav tswj hwm kom them lub roj teeb LIPO. LED them yuav tsum teeb. Tus tswj hwm 3.3V yuav tsum hloov 4.2V tso zis rau 3.3V txhawm rau txhawb lub zog Pro-Micro Board. LED ntawm Pro-Micro pawg thawj coj yuav tsum teeb.

e. Pib Arduino IDE, thiab nyem Cov Cuab Yeej -> Chaw nres nkoj txhawm rau txheeb xyuas lub npe chaw nres nkoj txhawm rau txheeb xyuas yog tias Pro Micro's USB chaw nres nkoj tau lees paub los ntawm koj lub khoos phis tawj. Ntawm kuv MAC OSX, nws qhia "/dev/cu.usbmodem14201 (Arduino Leonardo)". Nyem Cov cuab yeej-Boards thiab xaiv "Arduino Leonardo". Tom qab ntawd ntsaws qhov piv txwv kos duab "Blink". Tom qab ntawd sim ntsuas txhawm rau txheeb xyuas yog tias koj tuaj yeem tso rau hauv Pro Micro. Yog tias muaj teeb meem, tshuaj xyuas cov thaiv thiab cov laug.

3. Ua tus serial flash ntxhais board. a Txiav tawm ib sab me me rau sab laug lub rooj nrog 7 tus pin x 4 tus pin kom siv los ua tus ntxhais pawg thawj coj los rau hauv tsev lub flash nco nti thiab cov kab tawg ntxiv ntawm D11, D12, D14. b. Faib cov kab laug sab rau ntawm kab thib 2 kawg ntawm pawg thawj coj saib ua ob ntu. Qhov no yuav siv los txhawm rau teeb tsa lub cim xeeb flash module uas yog lub ntsej muag teeb tsa nrog qhov nqaim nrug nruab nrab ntawm cov pins, xws li nruab nrab ob tus pin yuav sawv ntawm ob ntu ntawm cov kab laug sab laug thiab yuav tsis luv luv Circuit Court. c. Solder Winbond W25Q128 nco nti mus rau lub rooj tsav tsheb perf. Nco ntsoov tias tsis muaj ob tus pin txuas nrog.

4. Cuam tshuam qhov tawg ntxiv los ntawm ATMega32U4 nti rau pins D11, D12, D13. a Siv cov lus qhia ntxaws zoo, thiab lub iav tsom iav, cov kab laug sab peb 0.5 hli laminated (insulated) xaim, mus rau tus pin ntawm ATMega32U4 nti kom tawg pins D11, D12, D13. Xa mus rau tus pin teeb ntawm ATMega32U4. Nov yog qhov nyuaj tshaj plaws ntawm txoj haujlwm. Kuv siv sijhawm ib nrab teev txhua lub sijhawm kuv xav tau qhov no. Koj yuav tsum tau ceev faj zoo kom tsis txhob ua yuam kev luv luv rau lwm tus pin ntawm lub micro-maub los, thaum tseem ua cov khoom sib txuas uas yuav nyob ntev. Saib cov vis dis aus hauv youtube kom kawm paub yuav ua li cas thiaj li ua haujlwm me me, thiab yuav ua li cas thiaj li cawm tau qhov tsis raug ntawm cov neeg muag khoom siv cov xov tooj cua. Kuv yuav tsis pom zoo kom cua kub rab phom/tshuab cua tshwj tsis yog tias koj txawj txaus. Yog tias qhov deb thiab lub zog tsis raug tswj kom zoo, nws tuaj yeem rhuav tshem cov neeg muag khoom ntawm ATMega32U4 nti los yog yaj lwm cov khoom thiab ua rau tag nrho lub rooj tsavxwm puas tsuaj.

b. solder lwm qhov kawg ntawm peb cov xov hlau mus rau hauv nruab nrab 3 cov khoom sib txuas ntawm kab kawg ntawm kab ntawv xov tooj flash ntxhais.

5. Mount lub ntsej muag flash tus ntxhais lub rooj tsav xwm mus rau Pro Micro nti. a Cov kab laug sab 0.5mm nyob ntawm thawj kab ntawm tus pin sab saum toj ntawm Pro Micro board, piv txwv li TX thiab RAW.

b. Solder 0.5mm xov hlau (piv txwv li los ntawm ob txhais ceg ntawm cov transistors) mus rau plaub kab kawg ntawm tus pin nyob tom qab ntawm Pro Micro nti. xws li D6, D7, D8, D9 thiab SCLK, MISO, MOSI thiab A10. Cov xaim yuav tsum tawm los ntawm sab saum toj thiab nqes mus rau hauv qab kom peb tuaj yeem siv nws los txhuam ntawm tus ntxhais lub rooj tsavxwm thiab txuas qhov ntawd mus rau lub rooj tsavxwm tseem ceeb hauv qab. c. Solder lub serial flash ntxhais board rau Pro micro los ntawm kev txuas kab kawg ntawm tus pin ntawm Pro Micro mus rau ntawm tus ntxhais board.

6. Mount LIPO Roj teeb lub roj teeb them rau lub rooj tsavxwm loj. a Solder 0.5mm xov hlau (piv txwv li cov los ntawm ob txhais ceg ntawm cov transistors) mus rau 4 lub ces kaum ntawm LIPO Roj teeb them nyiaj txiag pawg thawj coj saib (rau -v tswv yim, +ve tswv yim, -ve tso tawm, +tso zis). Laum lub qhov ntawm qhov chaw uas tus pin nruab nrab ntawm 3V tus tswj hwm nyob. Siv tus xaim 0.3 hli laminated xaim rau tus pin nruab nrab (3.3V tso zis).. b. Solder 4 ceg ntawm lub roj teeb them nyiaj rau lub rooj tsavxwm tseem ceeb, nyob ib sab ntawm 3.5mm lub mloog pob ntseg nkaus. Yuav kom txo qhov chaw, lub rooj tsav tsheb them nyiaj yuav tsum raug nias kom tau raws li lub rooj tsavxwm tseem ceeb.

7. Mount Pro micro board nyob hauv qab ntawm lub rooj tsavxwm tseem ceeb thiab muab tag nrho cov koob los ntawm 4 kab kawg thiab thawj kab ntawm Pro Micro mus rau lub rooj tsavxwm tseem ceeb. Tsis tas yuav tsum siv lwm tus koob, lawv yuav txuas nrog cov xov hlau laminated raws li xav tau tom qab. Qhov no yog txhawm rau hloov kho yooj yim dua thiab yog tias xav tau hloov pauv ntawm Pro Micro yog tias nws tau hlawv.

8. Ua tus so ntawm cov laug.

Txuas cov pins ntawm Pro Micro board rau ntau yam khoom siv thiab lub taub hau. Txhua qhov txuas txuas yuav tau ua nyob rau sab hauv qab ntawm ob sab ntawm lub rooj sib txig sib luag. Tom qab tag nrho cov soldering tau ua tiav, sim qhov txuas.

9. Npog hauv qab ntawm pawg thawj coj nrog Acrylic board ntawm qhov loj me.

Kauj Ruam 3: Ua Lub Pob Khawm

1. Tsim lub thav duab rau lub khawm khawm

a Siv cov laug cam 8cm x 5cm. Txiav nws siv txiab (lossis pom) kom ua rau 3.5cm x 5cm cov ntawv me me. Qhov ntawd yuav tsum tseem muaj 18 kab thiab 13 kab ntawm tus pin qhov. Txiav tawm lub qhov rais nrog 2.8 x 2.2 cm lub qhov rais uas loj txaus kom tso lub iav ntawm OLED nthuav tawm sab nraub qaum. Kuv siv lub pob zeb txiav txiav los ua qhov no. Cov cuab yeej ntse thiab muaj zog heev uas koj tuaj yeem xoob koj cov ntiv tes yog tias koj tsis ceev faj. Koj tuaj yeem tso qhov txiav ntawm kab thib ob ntawm tus pin qhov los ntawm sab saum toj, thiab kab thib 9 ntawm tus pin qhov los ntawm hauv qab. thiab ntawm kab thib 2 ntawm tus pin qhov ntawm txhua sab.

b. Solder tus 13-tus pin txiv neej lub taub hau ntawm kab kawg ntawm daim txiag ntoo.

c. Teeb tsa cov nyees khawm ntawm lub rooj sib tham perf rau D-PAD (cov nyees khawm taw qhia, nce, nqis, sab laug, sab xis) thiab khawm A, thiab B khawm. Tom qab ntawd muab lawv tso rau ntawm sab xub ntiag ntawm daim txiag ntoo.

d. Hauv qab hauv qab ntawm daim txiag ntoo, txuas ib sab ntawm txhua lub nyees khawm rau hauv av tus pin (tus pin 2) ntawm tus txiv neej lub taub hau.

e. Txuas tus pin thib ob ntawm txhua lub khawm mus rau tus lej sib txuas ntawm tus txiv neej lub taub hau rau lub pob ntawd.

f. Yog tias koj tab tom tsim lub khawm lub kaus mom rau lub zog hloov pauv lossis hu xov tooj, koj yuav teeb tsa 3-tus pin 10K Kev Hloov pauv Hloov pauv hloov D-PAD cov nyees khawm. Txheeb xyuas tias ib feem ntawm qhov sib txawv resistor pib nrog "B" (piv txwv li "B103" sawv rau Max. 10K), tsis yog "A". "A" txhais tau tias lub kaum sab xis ntawm qhov tig yog sib npaug rau LOG ntawm qhov tsis kam. B txhais tau tias lub kaum sab xis ntawm qhov tig yog sib npaug rau qhov tsis kam. peb xav tau hom B VRs rau cov tswj kev ua si sib txuas Txuas ib sab ntawm lub zog (tus lej GND) mus rau GND (tus pin 2 ntawm lub khawm khawm lub taub hau). Txuas lwm sab ntawm lub zog ntsuas mus rau VCC (tus pin 3 ntawm lub khawm lub taub hau). Txuas tus pin nruab nrab ntawm lub hwj chim rau qhov xaiv Analog rau tus lej digital ntawm Pro Micro board (ib qho ntawm A0, A1, A2, A3) nyob ntawm seb tus pin game tau coded nrog. Yog tias kev tswj hwm tsis du (dhia ib puag ncig), koj tuaj yeem txuas 100pf capacitor nruab nrab ntawm GND tus pin thiab tus pin nruab nrab ntawm lub hwj chim kom txiav tawm los ntawm lub suab nrov hauv Circuit Court.

Kauj Ruam 4: Teeb Arduino IDE

Yog tias koj yog tus tshiab rau Arduino, mus rau https://www.arduino.cc txhawm rau rub tawm Arduino IDE rau lub khoos phis tawj uas koj siv piv txwv li Windows 10 lossis Mac OSX lossis Linux.

Ces nruab nws.

Kauj Ruam 5: Ua USBasp Cable

Ua USBasp Cable
Ua USBasp Cable

Tsis zoo li thauj cov lej binary/kev ua si rau ib qho Arduino board, kev teeb tsa bootloader tsis tuaj yeem ua tiav los ntawm USB chaw nres nkoj.

Txhawm rau hlawv qhov kev cai bootloader (Cathy3K) rau Atmega32U4 nti, koj yuav tsum tau txais USBasp programmer. Txawm li cas los xij, peb kev tsim ua haujlwm ntawm 3.3V, peb yuav tsum tau hloov kho ntxiv USBasp programmer kom ua haujlwm hauv 3.3V.

Xa mus rau txoj haujlwm qhia hauv qab no txhawm rau hloov kho koj li USBasp programmer kom ua haujlwm ntawm ob qho 3.3V lossis 5V los ntawm cov chaw teeb tsa jumper.

www.instructables.com/id/Modify-a-5V-USBasp-Arduino-Bootloader-Programmer-t/

Tom qab ntawd ua raws tus pin teeb tsa thiab cov vis dis aus los ua USBasp rau ArduBaby program cable. thawj USBasp cable uas los nrog USBasp muaj ob lub txuas, txhua 10 tus pin. Peb yuav txiav cov kab no ib nrab, thiab txuas 6 tus pin txiv neej lub taub hau rau ib kawg thaum khaws lwm qhov kawg uas txuas nrog USBasp board ntawm 10pin.

Lwm qhov kawg no yuav txuas GND, VCC, MOSI, MISO, SCK, Pib dua tus pin los ntawm USBasp mus rau tus lej sib txuas ntawm ATmega32U4 los ntawm tus txiv neej lub taub hau uas txuas rau thawj rau tus pin ntawm poj niam header ntawm Ardubaby.

Txhawm rau ua qhov program lossis hlawv lub bootloader rau ATmega32U4, koj yuav tshem lub khawm khawm thiab ntsaws rau hauv 6-pin USBasp cable.

Nco ntsoov tias koj kos tus pin twg yog tus pin ib qho kom meej ntawm lub hauv paus ntawm kab ntawv kom qhov ntawd yuav tsis ua qhov txuas tsis raug. Thaum kuv tsim tus pin teeb tsa rau Ardubaby khawm khawm lub taub hau, Kuv tau sim npaj cov pins xws li txawm hais tias koj pauv tus pin 1 nrog tus pin 13, -v fais fab mov yuav tsis yuam kev ntsib nrog +ve fais fab mov kom zam kev puas tsuaj. Txawm li cas los xij, koj tsis paub, lwm yam yuav tshwm sim uas tseem tuaj yeem ua rau koj cov khoom puas yog tias koj txuas ntawm qhov tsis raug.

Kuv yuav hlawv lub qhov me me txhawm rau kos qhov ntawd ntawm lub taub hau uas siv qhov taub ntawm cov hlau txuas.

Kauj ruam 6: Hlawv Bootloader

MR. Blinky tsim Arduboy-homemade-pob rau qhob Arduboy.

Nws pob suav nrog pawg thawj coj tsav tsheb thiab tsev qiv ntawv ntawm Arduboy uas ua haujlwm nrog ntau qhov sib txawv ntawm thawj Arduboy ib yam li nws ua hauv tsev.

1. Xauj mus rau MR. Blinky's GitHub nplaub tshev rau Arduboy hauv tsev. https://github.com/MrBlinky/Arduboy-homemade-package 2. Ua raws cov lus qhia ntawm GitHub txhawm rau teeb tsa koj li Arduino IDE nrog pob khoom hauv tsev. 3. Ua ntej luam qhov url ntawm "Tus thawj tswj hwm ntxiv" rau Arduboy cov khoom siv hauv tsev.

4. Pib Arduino IDE. Nyem Nyiam los ntawm Arduino cov ntawv qhia saum toj kawg nkaus. Muab cov ntawv no tso rau hauv "Tus Thawj Saib Xyuas Ntxiv URLs" Nco tseg: Yog tias koj twb muaj lwm cov ntawv ntawm daim teb no, ntxig cov ntawv no ntxiv thaum pib, tom qab ntawd ntxiv "," thiab khaws lwm cov ntawv kom zoo. 5. Tawm Arduino IDE thiab pib IDE dua kom muaj kev hloov pauv saum toj no. 6. Nyem Cov Cuab Yeej -> Pawg Thawj Coj: -> Tus Thawj Saib Xyuas Haujlwm. Nkag mus hauv tsev los tshawb nrhiav. Xaiv los teeb tsa Arduboy cov khoom siv hauv tsev los ntawm Mr. Blinky. Tom qab ntawd nyem hloov tshiab kom tau txais qhov tseeb version. Lub pob yuav raug ntxiv rau Arduino. 7. Tam sim no xaiv Cov Cuab Yeej-> Pawg Thawj Coj: “Arduboy ua Tsev. thiab xaiv cov kev ntsuas hauv qab no rau Homemade Arduboy "Raws li:" SparkFun Pro Micro 5V - Cov kab hluav taws xob txheem "Core:" Arduboy Optimized core "Bootloader:" Cathy3K "Programmer: USBasp 8. Tua Ardubaby thiab tshem lub khawm khawm. 9. Teeb lub jumper ntawm USBasp rau 3.3V. Nco ntsoov tias koj tab tom siv USBasp hloov kho uas ua haujlwm tag nrho hauv 3.3V. 10. Txuas USBasp rau USB chaw nres nkoj ntawm koj lub computer. Txuas qhov tshwj xeeb USBasp rau ArduBaby cable rau USBasp, thiab lwm qhov kawg rau khawm khawm lub taub hau ntawm Ardubaby, kab li tus pin 1 rau tus pin 1. Tsuas yog thawj 6 tus pin ntawm Ardubaby siv rau bootloader hlawv.

11. Koj Ardubaby yuav tsum tau siv tam sim no los ntawm 3.3V lub zog muab los ntawm USBasp. 12. Nias lub khawm pib dua ntawm ArduBaby ib zaug. 13. Clink Cov Cuab Yeej-> Boards-> Hlawv Bootloader khawm ntawm Arduino IDE. 14. Txheeb xyuas cov lus kom pom tias lub bootloader hlawv tau ua tiav. 15. Yog tias tsis yog, txheeb xyuas kab ntawv thiab xyuas kom koj txuas cov pins hauv qhov raug thiab ua kab 1 nrog tus pin 1. Qee zaum, Ardubaby yuav pib ua si yav dhau los yog tias lub tshuab raj khau raj tawm sijhawm. Yog li, koj yuav tsum nyem qhov Burn bootloader khawm sai sai tom qab koj nias lub pob pib dua kom tso Ardubaby ntawm qhov tos rau hom nyem. 16. Yog tias txhua yam zoo, ArduBaby yuav rov pib dua thiab koj yuav pom ob lub khau raj pib, lossis kev ua si yav dhau los koj tau thauj mus rau ArduBaby.

Kauj Ruam 7: Sib Sau thiab Tshaj Tawm Ib Leeg Ua Si rau Arduboy

Kev ua si rau Arduboy tuaj yeem rub tawm los ntawm cov hauv qab no:

Arduboy zej zog lub rooj sab laj rau kev ua si:

GitHub tshawb ntawm "Arduboy games" https://github.com/topics/arduboy-game lossis tsuas yog tshawb "GitHub arduboy games" hauv google.

Cov kev ua si sib koom los ntawm lwm tus. xws li Erwin's Arduboy sau

arduboy.ried.cl/

Koj tuaj yeem rub tawm qhov chaws ntawm qhov kev ua si uas koj lub tsheb thauj mus rau Arduino thiab xa mus rau Arduboy. Saib daim vis dis aus seb yuav ua li cas.

lossis tsuas yog cov ntawv hex (cov ntawv suav ua binary tab sis nthuav tawm hauv Hex tus lej luam tawm rau cov ntawv xa ntawv tsis siv cov ntawv binary).

Txog qhov chaws, tsuas yog qhib qhov chaws hauv Arduino IDE.

Qhov chaws piv txwv picovaders.ino yuav tsum tau muab khaws cia rau hauv daim nplaub tshev uas muaj tib lub npe xws li picovaders

Cov tsev qiv ntawv Arduboy2 xav tau yuav tsum tau teeb tsa hauv cov kauj ruam dhau los uas peb thauj tus thawj tswj hwm rau Arduboy cov khoom siv hauv tsev.

Tsuas yog txuas Arduboy rau USB chaw nres nkoj ntawm koj lub computer.

Hloov nws, tom qab ntawd nyem rau Upload khawm ntawm Arduino IDE txhawm rau sau thiab xa cov cai rau Arduboy los ua si game.

Kauj Ruam 8: Upload Cov Ntaub Ntawv Hex Ib Leeg

Hex cov ntaub ntawv yog cov ntawv sau uas muaj cov lej binary uas ua rau muab tso ua ke ntawm koj li Arduino program (kos duab), tab sis sawv cev hauv cov ntawv ua hom ntawv siv ob tus lej hexadecimal 0-9, A-F.

Koj tuaj yeem tau txais cov ntawv hex no hauv ntau txoj kev.

1. Peb tuaj yeem rub cov ntaub ntawv hex los ntawm ntau qhov chaw peb tau piav qhia saum toj no:

community.arduboy.com/c/games Erwin's Arduboy Game Collections

Tshawb nrhiav "Arduboy games" ntawm GitHub.com lossis hauv google.com

Txuag cov ntaub ntawv hex rau hauv cov ntaub ntawv nrog kev txuas ntxiv ntawm.hex.

2. Xwb, koj tuaj yeem ua koj tus kheej cov ntaub ntawv hex.

Hauv Arduino IDE xaiv Sketch> Export Compiled Binary. Koj daim duab yuav muab tso ua ke, tom qab ntawv luam ua ke.hex cov ntaub ntawv yuav muab tso rau hauv phau ntawv teev npe ntawm koj daim duab. Xauj mus rau daim duab kos lossis hauv IDE xaiv Sketch> Qhia Sketch Folder kom pom cov ntawv hex. Yog tias koj teeb tsa MR. Blinky cov khoom siv hauv tsev ob qhov qauv ntawm. Hex cov ntaub ntawv yuav raug tsim. Piv txwv li, yog tias koj suav sau picovaders.ino sketh, ob qho hauv qab no.hex cov ntaub ntawv yuav raug tsim.

picovaders.ino-arduboy-promicro-ssd1306.hex picovaders.ino with_bootloader-arduboy-promicro-ssd1306.hex

Peb yuav siv thawj daim ntawv: picovaders.ino-arduboy-promicro-ssd1306.hex

3. Txhawm rau xa cov ntawv hex rau Arduboy, koj yuav tsum siv tus uploader. Muaj ntau ntau hauv internet. Kuv nyiam siv MR. Blinky tus uploader vim nws yooj yim siv.

Xauj mus rau https://github.com/MrBlinky/Arduboy-Python-Utilities thiab ua raws cov lus qhia muaj rau nruab MR. Blinky's Arduboy Python cov khoom siv. Yog tias koj tsis muaj tus nab hab sej teeb tsa, koj yuav tsum ua raws cov lus qhia txhawm rau txhim kho nab hab sej thiab xav tau cov nab npawb nab npawb ua ntej.

4. Txuas Arduboy mus rau USB chaw nres nkoj ntawm koj lub computer. Hloov ntawm Arduboy.

5. Pib lub plhaub program hauv koj lub operating system piv txwv. lub davhlau ya nyob twg app hauv Mac OSX lossis hais kom ua sai sai hauv lub qhov rais kom ntaus cov lus txib hauv qab no txhawm rau xa cov ntawv hex rau Arduboy. Coj peb cov duab kos yav dhau los picovaders.ino ua piv txwv.

nab hab sej uploader.py picovaders.ino-arduboy-promicro-ssd1306.hex

6. Thaum qhov game tau rub tawm, Arduboy yuav rov pib dua thiab pib ua si.

Kauj Ruam 9: Sau Ua Si rau Serial Flash

1. Txhawm rau sau cov game game ua ke rau flash, koj yuav tsum siv MR. Blinky's Arduboy Python Utilities dua. Koj yuav tsum muaj qhov no twb tau teeb tsa yog tias koj ua raws cov kauj ruam dhau los.

Txwv tsis pub, mus rau https://github.com/MrBlinky/Arduboy-Python-Utilities thiab ua raws cov lus qhia muaj rau nruab MR. Blinky's Arduboy Python cov khoom siv. Yog tias koj tsis muaj tus nab hab sej teeb tsa, koj yuav tsum ua raws cov lus qhia txhawm rau txhim kho nab hab sej thiab xav tau cov nab npawb nab npawb ua ntej.

2. Tsim cov ntaub ntawv ntsuas rau kev sib koom ua ke cov duab game file kom tuav ntau li 500 game.

Peb yuav siv Kev Siv flashcart-builder.py tsab ntawv los tsim cov ntaub ntawv game game ua ke rau txhua qhov kev ua si uas koj xav khaws rau hauv cov ntawv flash ntawm Arduboy. 16MB Serial flash tuaj yeem tuav ntau li 500 kev ua si. Tsab ntawv no tsim cov duab flash binary los ntawm cov ntaub ntawv ntsuas (.csv) thiab 2 cov ntaub ntawv hauv qab no rau txhua qhov kev ua si: a..hex cov ntaub ntawv uas yog cov ntawv sau uas muaj cov lej hexadecimal ntawm cov duab binary ntawm kev suav ua ke Arduboy games. Xa mus rau Saib piv txwv-flashcart / flashcart-index.csv cov ntaub ntawv piv txwv piv txwv. Cov ntawv no suav nrog hauv pob yog tias koj nyem Clone lossis rub tawm. b.-p.webp

Cov vis dis aus hauv youtube tseem piav qhia yuav ua li cas muab khoom tso rau qhov chaw raug.csv cov ntaub ntawv ntsuas ntsuas no. Ib yam uas yuav tsum nco ntsoov, piv txwv.csv cov ntaub ntawv los ntawm MR. Blinky's GitHub tau siv hauv Windows PC, backslash "\" tau siv hauv cov npe. Yog tias koj siv liunx system lossis MAC OSX koj yuav tsum hloov nws mus rau "/".

Txhawm rau pib sai, koj tuaj yeem rub kuv pob ntawm 63 kev ua si los ntawm https://github.com/cheungbx/ArduBaby 63games.zip

Cov pob no muaj cov ntaub ntawv hex thiab cov ntaub ntawv-p.webp

Koj tuaj yeem ntxiv kev ua si ntau ntxiv rau hauv games.csv thiab tsim koj tus kheej cov game binary duab cov ntaub ntawv los sau rau hauv cov ntawv xov xwm. Koj tuaj yeem tso ntau tshaj 500 qhov kev ua si ntawm 16M cov teeb nyem.

Kuv yuav piav qhia yuav ua li cas.csv cov ntaub ntawv siv games.csv uas koj tuaj yeem rub tawm daim ntawv kuv GitHub.

Txawm hais tias cov ntaub ntawv.csv tuaj yeem qhib siv excel. TSIS TXHOB siv excel los qhib cov ntawv. Nws yuav ua tsis ncaj cov ntaub ntawv. Thov siv cov ntawv nyeem yooj yim nkaus xwb. Koj tuaj yeem siv notepad hauv Windows. Kuv siv textEdit hauv MAC thiab nyem "Format"-> "Make Plain Text".

Thawj kab ntawm cov ntawv.csv yog lub taub hau koj tuaj yeem tsis quav ntsej. Sau; Discription; Title screen; Hex file

Kab thib ob taw tes rau kab ntawv duab duab (yuav tsum yog 128x64 pixel hauv hom ntawv png) rau lub boot loader manu screen. 0; Bootloader; arduboy_loader.png;;;

Cov kev ua si tau teeb tsa pib los ntawm kab thib peb. Kev ua si tau teeb tsa ua pawg hauv bootloader menu hu ua pawg. Kab ntawv no yog pawg npe ntawm cov npe ua si rau pawg ntawd xws li Kev Ua Si. Nws tseem taw tes rau cov duab kab ntawv duab rau pab pawg ua si. Qhov "1" thaum pib qhia txog tus lej naj npawb 1. Txhua qhov kev ua si uas ua raws pab pawg no yuav pib nrog tus lej no. 1; Kev Ua Si Ua Si; qeb-cov ntxaij vab tshaus Action.png;;;

Tom qab ntawd koj ntxiv ib kab rau txhua qhov kev ua si hauv pab pawg ntawd. Pib nrog pab pawg naj npawb 1, lub npe ntawm qhov kev ua si, thiab txoj hauv kev ntawm cov duab nraaj rau qhov nrawm ntawm lub vijtsam, thiab txoj hauv kev ntawm cov ntaub ntawv hex. Txhua qhov sib cais los ntawm ";". Ntxiv ib qho ntxiv ";" kom hla qhov ntsuas rau khaws cov ntaub ntawv. 1; 1943; Arcade/Nineteen43.png; Arcade/Nineteen43.hex;; 1; 2048; Arcade/2048.png; Arcade/2048.hex;;

Tom qab koj ua tiav thawj pab pawg ua si, koj tuaj yeem ntxiv pab pawg thib ob thiab lwm yam. xws li

9; Demo & Test; demos/demotest.png;;; 9; Kub butter; demos/HotButter_AB.png; demos/HotButter_AB.hex;; 9; Flashcart test; demos/flashcart-test/flashcart-test-title.png; demos/flashcart-test/flashcart-test.hex; demos/flashcart-test/badapple-frames.bin;

Kab kawg muaj cov ntawv khaws tseg hauv qhov ntsuas uas yog cov yeeb yaj kiab tas luav.

3. Txhawm rau tsim cov ntawv game game ua ke, sau cov lus txib, qhov twg games.csv yog koj li game index file.

nab hab sej flashcart-builder.py games.csv

Qhov no yuav tsim cov ntaub ntawv npe games-image.bin

4. Sau cov ntawv game game ua ke rau Arduboy.

Peb siv MR. Blinky's flashcart-writer.py tsab ntawv los sau ua ke cov duab game file mus rau lub cim xeeb flash ntawm Arduboy.

Yog tias koj siv kuv cov qauv ua si-image.bin koj tuaj yeem ntaus cov lus txib no.

nab hab sej flashcart-writer.py games-image.bin

Yog tias koj tab tom siv SSD1309 OLED npo hloov ntawm SSD1306 OLED ntawm tus qauv tsim, koj tuaj yeem kho tus tsav tsheb lub vijtsam. Txhawm rau siv daim SSD1309 thaj rau daim duab tso tawm, ua ib daim qauv ntawm flashcart-writer.py thiab hloov nws mus rau flashcart-writer-1309.py. Tom qab ntawv

nab hab sej flashcart-writer-1309.py games-image.bin

Kauj Ruam 10: Ua Si Ua Si Los Ntawm Serial Flash

Txhawm rau ua si game los ntawm cov teeb nyem, hloov ntawm Arduboy.

Yog tias koj twb muaj qhov game rub tawm lawm, qhov game yuav pib txiav. Nias lub pob pib dua nyob rau sab saum toj ntawm Ardubaby ib zaug kom mus rau lub bootloader ntawv qhia zaub mov.

Cov ntawv qhia zaub mov bootloader yuav tshwm. RGB LED yuav teeb ua ntu zus.

Yog tias koj pom lub cim uas zoo li USB chaw nres nkoj tso tawm, txhais tau tias koj lub cim xeeb flash nco nti tsis ua haujlwm. Pls xyuas qhov thaiv.

Yog tias koj tsis nias ib qho yuam sij li ntawm 12 vib nas this, qhov kev ua si twb tau khaws cia hauv ATMega32U4 lub cim xeeb sab hauv yuav khiav.

Txhawm rau rov qab los ntawm kev ua si mus rau lub tshuab raj bootloader, tsuas yog nias lub pob pib dua ib zaug.

Koj tuaj yeem nias khawm sab laug lossis sab xis txhawm rau txhawm rau hla pawg sib txawv (pab pawg) ntawm kev ua si. Nias lub pob kom nqes los yog nce mus txhawm rau txhawm rau ua si hauv ib pawg (pawg). Nias lub pob "B" txhawm rau luam qhov kev ua si los ntawm lub cim xeeb flash mus rau ATMega32U4 lub cim xeeb sab hauv. Qhov kev ua si yuav pib tsis pub dhau ib pliag.

Tam sim no koj muaj lub tshuab ua si me me uas koj tuaj yeem ua si ntawm txoj kev.

Kuv twv koj kom sau thiab thauj koj li 16M Serial flash nrog 500 kev ua si. Kuv tseem tsis tau pom ib tus neeg uas ua tiav qhov ntawd tseem yuav ua kom tiav cov teeb nyem. Yog tias koj tuaj yeem ua li ntawd, faib cov ntawv ua si sib koom ua ke nrog peb.

Pom zoo: