Cov txheej txheem:

Esplora X M5Stack: 11 Kauj Ruam (nrog Duab)
Esplora X M5Stack: 11 Kauj Ruam (nrog Duab)

Video: Esplora X M5Stack: 11 Kauj Ruam (nrog Duab)

Video: Esplora X M5Stack: 11 Kauj Ruam (nrog Duab)
Video: Kiosk mode Bruteforce Evasion with Flipper Zero 2024, Kaum ib hlis
Anonim
Esplora X M5Stack
Esplora X M5Stack

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 dab tsi?
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 yog dab tsi?
M5Stack yog dab tsi?
M5Stack yog dab tsi?
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?

Vim Li Cas Ua Si Retro Game Nrog ESP32?
Vim Li Cas Ua Si Retro Game Nrog ESP32?
Vim Li Cas Ua Si Retro Game Nrog ESP32?
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

Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
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

Kev Npaj Software
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

Program I2C Gamepad
Program I2C Gamepad
Program I2C Gamepad
Program 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:

  1. Rub tawm esplora-i2c-gamepad.ino ntawm GitHub:
  2. Txuas Esplora rau lub khoos phis tawj
  3. Qhib Arduino
  4. Rub tawm qhov program

Kauj Ruam 7: Tawm Esplora I2C

Breakout Esplora I2C
Breakout Esplora I2C
Breakout Esplora I2C
Breakout Esplora I2C
Breakout Esplora I2C
Breakout 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

Siv Pin Headers los kho M5Stack ntawm Esplora
Siv Pin Headers los kho M5Stack ntawm Esplora
Siv Pin Headers los kho M5Stack ntawm Esplora
Siv Pin Headers los kho M5Stack ntawm Esplora
Siv Pin Headers los kho M5Stack ntawm Esplora
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

Txuas I2C Pins
Txuas I2C Pins
Txuas I2C Pins
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

Qhov program M5Stack
Qhov program M5Stack
Qhov program M5Stack
Qhov program M5Stack
Qhov program M5Stack
Qhov program M5Stack
Qhov program M5Stack
Qhov program M5Stack
  1. Rub tawm kho dua tshiab ntawm esp32-nesemu los ntawm GitHub:
  2. Hauv qab esp32-nesemu, khiav "ua menuconfig"
  3. Sau "Nofrendo ESP32-tshwj xeeb teeb tsa" submenu
  4. Xaiv "Kho vajtse kom khiav ntawm" rau "M5Stack"
  5. Pab kom "Analog audio ntawm GPIO26"
  6. Xaiv "Hom tswj" rau "I2C Gamepad"
  7. Tawm menuconfig
  8. Khiav "ua -j5 tag nrho" los sau qhov program
  9. Txuas M5Stack rau lub khoos phis tawj
  10. Khiav "ua flash" kom nyem qhov ua ke binary rau M5Stack
  11. Khiav "sh flashrom.sh PATH_TO_YOUR_NES_ROM_FILENAME"

Kauj ruam 11: Txaus siab rau

Txaus siab rau!
Txaus siab rau!

Nws yog lub sijhawm los ua si qhov koj nyiam!

Pom zoo: