Cov txheej txheem:
- Kauj Ruam 1: Arduino Esplora yog dab tsi?
- Kauj ruam 2: M5Stack yog dab tsi?
- Kauj Ruam 3: Vim Li Cas Ua Si Retro Game Nrog ESP32?
- Kauj Ruam 4: Kev Npaj Kho Vajtse
- Kauj Ruam 5: Kev Npaj Software
- Kauj Ruam 6: Txoj Haujlwm I2C Gamepad
- Kauj Ruam 7: Tawm Esplora I2C
- Kauj Ruam 8: Siv Pin Headers los Kho M5Stack ntawm Esplora
- Kauj Ruam 9: Txuas I2C Pins
- Kauj ruam 10: Program M5Stack
- Kauj ruam 11: Txaus siab rau
Video: Esplora X M5Stack: 11 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Cov lus qhia no qhia yuav ua li cas ua ke Arduino Esplora thiab M5Stack los ua NES game console.
Kauj Ruam 1: Arduino Esplora yog dab tsi?
Arduino Esplora yog Atmega32U4 AVR microcontroller board.
Nws yog qhov tshwj xeeb Arduino cov laug cam, vim nws ua-nyob rau hauv ntau lub tswv yim ntsuas tawm sab nraum lub thawv, suav nrog lub joystick, 4 lub laub nyees khawm, tus swb, ntsuas kub, ntsuas lub ntsuas cua, lub microphone, lub teeb pom kev zoo, thiab lwm yam.
Thiab kuj Arduino IDE muab ntau yam piv txwv rau siv tag nrho nws.
Lub sijhawm no kuv yuav program Esplora ua I2C qhev ntaus ntawv los ua I2C gamepad.
Ref:
Kauj ruam 2: M5Stack yog dab tsi?
M5Stack pib los ntawm txoj haujlwm kickstarter ntawm 2017, ESP32 core, built-in 2.0 xim LCD, me me 5 cm daim ntawv foos, txhawb nqa cov txheej txheem sib dhos thiab ntoo I2C modules.
Tam sim no nws twb muaj ntau yam qauv tseem ceeb, kaum tawm ntawm cov qauv sib dhos thiab tseem txhawb ntau tons ntawm I2C Grove cov qauv.
Ref.: Yog
www.kickstarter.com/projects/179167367/m5s…
m5stack.com/
Kauj Ruam 3: Vim Li Cas Ua Si Retro Game Nrog ESP32?
Nws yog lub ncauj lus nrov heev siv Raspberry Pi los ua game game retro nrog Retropie faib.
Nws ua haujlwm zoo heev, tab sis qhov teeb meem tseem ceeb tshaj plaws yog lub sijhawm khau raj.
Kuv tsis xav tos ib nrab feeb los nkag rau hauv cov game retro, lub game game tiag tiag tsis tas yuav tos qhov no!
Tom qab ntawd kuv pom esp32-nesemu tsis xav tau tos rau khau raj, yog li kuv sim siv M5Stack los tsim NES game console.
Kauj Ruam 4: Kev Npaj Kho Vajtse
Arduino Esplora
Cov khoom lag luam raug tshem tawm tab sis nws tseem yooj yim heev los nrhiav cov clone hauv lub vev xaib.
M5 Tshooj
Ib qho M5Stack core nrog 2.0 LCD yuav tsum yog.
Tus Pin Headers
2 tus pin txiv neej-txiv neej tus pin header thiab 6 tus pin txiv neej-poj niam tus pin header.
Grove Hloov Cable
Ib txwm 4 tus pin Txiv neej Jumper rau Grove 4 tus pin hloov pauv Cable nyiam. Kuv tsis muaj lub xov tooj no hauv tes, yog li kuv tsuas yog txuas 1 txuas SCL thiab SDA tus pin kuv tus kheej.
Kauj Ruam 5: Kev Npaj Software
Arduino IDE Cov
Rub tawm thiab teeb tsa Arduino IDE yog tias tseem tsis tau:
www.arduino.cc/en/Main/Software
ESP-IDF
Ua raws li phau ntawv teeb tsa los teeb tsa ESP-IDF yog tias tseem tsis tau:
docs.espressif.com/projects/esp-idf/en/sta…
Kauj Ruam 6: Txoj Haujlwm I2C Gamepad
Kuv tau sau ib txoj haujlwm yooj yim los nyeem cov joystick thiab cov nyees khawm nkag thiab txhais nws rau hauv I2C cov lus.
Nov yog cov phiaj xwm txheej txheem:
- Rub tawm esplora-i2c-gamepad.ino ntawm GitHub:
- Txuas Esplora rau lub khoos phis tawj
- Qhib Arduino
- Rub tawm qhov program
Kauj Ruam 7: Tawm Esplora I2C
Arduino Esplora muaj I/O feem ntau thiab cov neeg siv cuam tshuam, tab sis ironically nws tsis muaj I2C (Grove System) breakout pins.
Hmoov zoo, I2C tus pin hauv ATMega32U4 tseem tsis tau siv rau lwm lub hom phiaj. Thiab tseem yog sab laug sab laug lub taub hau ntawm Esplora yog "tsis txuas nrog tam sim no", peb tuaj yeem siv tus lej taub hau no txhawm rau txhawm rau tshem tawm I2C pins.
Cias siv 2 lub xov hlau thiab qee qhov haujlwm ua haujlwm txuas rau ATMega32U4 tus pin 18 (SCL) thiab tus pin 19 (SDA) mus rau tus pin sab laug.
Ref.:
Kauj Ruam 8: Siv Pin Headers los Kho M5Stack ntawm Esplora
Feem ntau 2 tus pin hauv qab ntawm Esplora sab xis tus pin header yog GND thiab 5V, nws tuaj yeem sib phim nrog M5Stack core base pinout. Yog li peb tuaj yeem khoov 2 tus pin txiv neej-txiv neej tus pin header los sib txuas.
Esplora sab laug tus pin header tsis txuas dab tsi, cov kauj ruam dhau los siv 2 sab saum toj kawg nkaus li I2C tawg tawm. Tseem tshuav 6 tus pin, peb tuaj yeem khoov 6 tus pin txiv neej-poj niam tus pin header txhawm rau txhim kho M5Stack ntawm Esplora.
Kauj Ruam 9: Txuas I2C Pins
Esplora thiab M5Stack sib tham nrog I2C raws tu qauv, M5Stack ua raws li I2C tus tswv thiab Esplora yog I2C qhev.
Txij li GND thiab 5V twb tau txuas nrog ntawm cov kauj ruam dhau los, tsuas yog SCL thiab SDA xav tau kev txuas ntxiv.
Kauj ruam 10: Program M5Stack
- Rub tawm kho dua tshiab ntawm esp32-nesemu los ntawm GitHub:
- Hauv qab esp32-nesemu, khiav "ua menuconfig"
- Sau "Nofrendo ESP32-tshwj xeeb teeb tsa" submenu
- Xaiv "Kho vajtse kom khiav ntawm" rau "M5Stack"
- Pab kom "Analog audio ntawm GPIO26"
- Xaiv "Hom tswj" rau "I2C Gamepad"
- Tawm menuconfig
- Khiav "ua -j5 tag nrho" los sau qhov program
- Txuas M5Stack rau lub khoos phis tawj
- Khiav "ua flash" kom nyem qhov ua ke binary rau M5Stack
- Khiav "sh flashrom.sh PATH_TO_YOUR_NES_ROM_FILENAME"
Kauj ruam 11: Txaus siab rau
Nws yog lub sijhawm los ua si qhov koj nyiam!
Pom zoo:
YADPF (YET Lwm Tus Duab Duab Duab): 7 Kauj Ruam (nrog Duab)
YADPF (YET Lwm Tus Duab Duab Duab): Kuv paub qhov no tsis yog khoom tshiab, Kuv paub, Kuv tau pom qee qhov ntawm cov haujlwm no ntawm no, tab sis kuv ib txwm xav tsim kuv tus kheej cov duab thav duab. Txhua daim duab thav duab kuv tau pom yog qhov zoo, tab sis kuv tab tom nrhiav lwm yam, Kuv tab tom nrhiav qhov zoo nkauj tiag tiag
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv