Cov txheej txheem:

Yuav Ua Li Cas Upload Cov Kev Ua Si rau Arduboy thiab 500 Kev Ua Si rau Flash-laub: 8 Kauj Ruam
Yuav Ua Li Cas Upload Cov Kev Ua Si rau Arduboy thiab 500 Kev Ua Si rau Flash-laub: 8 Kauj Ruam

Video: Yuav Ua Li Cas Upload Cov Kev Ua Si rau Arduboy thiab 500 Kev Ua Si rau Flash-laub: 8 Kauj Ruam

Video: Yuav Ua Li Cas Upload Cov Kev Ua Si rau Arduboy thiab 500 Kev Ua Si rau Flash-laub: 8 Kauj Ruam
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Upload Cov Kev Ua Si rau Arduboy thiab 500 Ua Si rau Flash-cart
Yuav Ua Li Cas Upload Cov Kev Ua Si rau Arduboy thiab 500 Ua Si rau Flash-cart

Kuv tau ua qee yam hauv tsev Arduboy nrog Serial Flash nco uas tuaj yeem khaws tau 500 qhov kev ua si los ua si ntawm txoj kev. Kuv vam tias yuav qhia yuav ua li cas thauj cov game rau nws, suav nrog yuav ua li cas khaws cov games rau hauv lub cim xeeb flash thiab tsim koj tus kheej cov game game pob los ua si ntawm txoj kev.

Koj tuaj yeem saib cov vis dis aus hauv youtube no kom txog thaum kawg tsim cov txheej txheem thiab piav qhia

Kauj Ruam 1: 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 2: 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 tus poj niam header ntawm Ardubaby (kuv qhov version ntawm ua tsev Arduboy). Koj cov version yuav muaj tus lej sib txawv teeb tsa. Koj tuaj yeem siv kuv cov vis dis aus los hloov pauv tus qauv kom haum rau koj li kev tsim hauv tsev Arduboy.

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 3: 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 4: 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).

YFor 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 5: 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 6: 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 7: Ua Si Ua Si Los Ntawm 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.

Kauj Ruam 8: Cov neeg ua tim khawv

Cov lus qhia tag nrho ntawm qhov no yuav luam tawm hauv qhov txuas ntawm Instructables.comTBD

Yeeb yaj duab Youtube rau kev ua qauv qhia ntawm ArduBaby game console

Youtube yees duab rau 3.3V kev hloov kho ntawm USBasp bootloader programmer.

Cov ntaub ntawv game thiab cov duab hauv Circuit hauv daim vis dis aus no tuaj yeem pom ntawm GitHub txuas no

Schematics

MR. Blinky's GitHub txuas rau Arduboy tsev ua pob

MR. Blinky's GitHub txuas rau cov nab npawb nab npawb rau kev tso game thiab ua haujlwm flash nco ua haujlwm

Erwin's Arduboy Game Collections

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.

Khab nias rau MR. Blinky rau kev tsim cov khoom siv hauv tsev, lub flashcart, thiab cov khoom siv nab nab.

Pom zoo: