Cov txheej txheem:

Sega Genesis Controller rau USB Adapter rau $ 2: 4 Cov Kauj Ruam
Sega Genesis Controller rau USB Adapter rau $ 2: 4 Cov Kauj Ruam

Video: Sega Genesis Controller rau USB Adapter rau $ 2: 4 Cov Kauj Ruam

Video: Sega Genesis Controller rau USB Adapter rau $ 2: 4 Cov Kauj Ruam
Video: Учебник Как рисовать Sony Playstation Resident Evil 2024, Kaum ib hlis
Anonim
Sega Genesis Controller rau USB Adapter rau $ 2
Sega Genesis Controller rau USB Adapter rau $ 2
Sega Genesis Controller rau USB Adapter rau $ 2
Sega Genesis Controller rau USB Adapter rau $ 2
Sega Genesis Controller rau USB Adapter rau $ 2
Sega Genesis Controller rau USB Adapter rau $ 2

Qhov hloov pauv no tso cai rau Sega Genesis / Mega Drive maub los ua raws ob lub XBox 360 gamepads rau siv nrog retroarch lossis lwm yam software. Nws siv Arduino-sib xws stm32f103c8t6 cov ntsiav tshuaj xiav rau cov khoom siv hluav taws xob.

Cov khoom xyaw:

  • stm32f103c8t6 ntsiav tshuaj xiav
  • ob lub txiv neej DB9 qhov (Kuv ua kuv tus kheej)
  • xov hlau

Kauj Ruam 1: Npaj Bootloader thiab Kev Txhim Kho Ib puag ncig

Npaj Bootloader thiab Kev Txhim Kho Ib puag ncig
Npaj Bootloader thiab Kev Txhim Kho Ib puag ncig
Npaj Bootloader thiab Kev Txhim Kho Ib puag ncig
Npaj Bootloader thiab Kev Txhim Kho Ib puag ncig
Npaj Bootloader thiab Kev Txhim Kho Ib puag ncig
Npaj Bootloader thiab Kev Txhim Kho Ib puag ncig

Npaj bootloader thiab ib puag ncig txhim kho Arduino.

1. Pib los ntawm ua raws cov lus qhia ntawm no.

2. Nco tseg: Hmoov tsis zoo, tam sim no muaj ntab ncig cuav stm32f103c8t6 cov laug cam, nrog IC rov ua dua tshiab. Qhov kev rov ua haujlwm IC no tsuas muaj 32K nyem thiab 10K ram tsis zoo li 64K (lossis txawm tias 128K) nyem thiab 20K ram ntawm qhov qub, thiab tej zaum yog stm32f103c6. Yog tias koj muaj ib qho ntawm cov no, thaum thaum koj tab tom yuav nyem lub booloader, STM32 Demonstrator yuav qhia rau koj tias koj muaj qhov ntom ntom ntom ntom ntom ntom ntom ntom 32K (saib cov duab). Yog tias koj nyob hauv txoj haujlwm ntawd, xyuas kom tseeb tias koj muaj qhov tseeb Arduino core thiab bootloader, vim tam sim no lawv txhawb nqa cov cuab yeej qis-kawg no. Thiab koj yuav tsum xaiv Generic stm32f103c6 hauv Arduino IDE.

3. Hauv koj li libmaple core, hloov cov ntsiab lus ntawm STM32F1/tsev qiv ntawv/USBComposite nrog qhov hloov tshiab kawg (lossis tsawg kawg 0.92) los ntawm no. Qhov no xav tau los txhawb nqa ob tus XBox360 tus tswj hwm.

4. Cov tshuaj xiav muaj qhov tsis zoo USB resistor, feem ntau 10K hloov 1.5K. Nrog qee lub khoos phis tawj, lawv yuav ua haujlwm zoo, tab sis lawv yuav ua teeb meem rau lwm tus. Txheeb koj qhov kev tiv thaiv nruab nrab ntawm 3.3V thiab A12. Yog tias nws tsis yog 1.5K, ntxiv tus tiv thaiv kab ke ntawm cov pins no kom tau 1.5K. Piv txwv li, yog tias koj muaj 10K, tom qab ntawd ntxiv 1.8K resistor.

Kauj ruam 2: Nruab Sketch

Nruab Sketch
Nruab Sketch

Tau txais kuv daim duab thiab muab tso rau hauv lub rooj tsavxwm. Muaj ob txoj kev kos duab, nyob ntawm seb Xbox 360 tus tswj hwm koj xav ua raws (kev sib haum xeeb yuav txawv):

  • x360 cev
  • x360 wireless ua.

Rau kuv lub hom phiaj retroarch, kos duab xa mus rau sab laug txav hauv cov lus teb rau lub khawm dpad los ntawm lub neej ntawd, tab sis yog tias koj tuav lub khawm pib thaum nias lub pob dpad, nws xa XBox dpad nyees khawm hloov. Yog tias koj tsis xav tau qhov no, tawm tswv yim tawm ntawm kab:

#define START_ACTIVATED_DPAD

Txuas lub rooj tsavxwm rau hauv computer thiab tshawb xyuas tias ob daim gamepads tshwm (lawv yuav tsis txav mus, tau kawg, vim tias koj tsis muaj dab tsi txuas rau ntawm lub rooj tsavxwm). Ntawm Windows, nias win-R thiab ntaus joy.cpl kom pom ob gamepads.

Kauj ruam 3: Cov laug cam

Solder
Solder
Solder
Solder
Solder
Solder

Tau txais lossis ua rau koj ob tus txiv neej DB9 qhov (lossis tsuas yog ib qho yog qhov uas koj xav tau; qhov xwm txheej ntawd, koj yuav xav hloov kho txoj cai).

Tam sim no txuas lawv zoo li hauv ob daim duab qhia rau koj cov tshuaj ntsuab. Qhov pom ntawm no yog los ntawm sab nraum qab ntawm DB9 lub qhov (socket), piv txwv li, sab koj tso rau ntawm (lossis, sib npaug, pem hauv ntej ntawm tus poj niam nkaus ntawm tus tswj).

Kauj Ruam 4: Tsis teb los tau: Case

Yeem: Case
Yeem: Case

Kuv muaj tus qauv tsim rau rooj plaub 3D luam tawm rau txoj haujlwm ntawm no, piv txwv tias koj tab tom siv kuv li 3D luam ntawv DB9 qhov nyob.

Pom zoo: