Cov txheej txheem:

Arduino Game Controller + Game Unity: 5 Kauj Ruam
Arduino Game Controller + Game Unity: 5 Kauj Ruam

Video: Arduino Game Controller + Game Unity: 5 Kauj Ruam

Video: Arduino Game Controller + Game Unity: 5 Kauj Ruam
Video: How to Make Arduino DIY Game Controller and Create Game with Unity 2024, Hlis ntuj nqeg
Anonim
Arduino Game Controller + Game Unity
Arduino Game Controller + Game Unity
Arduino Game Controller + Game Unity
Arduino Game Controller + Game Unity

Hauv cov lus qhia no kuv yuav qhia koj yuav tsim/ua haujlwm li cas arduino game controller uas tuaj yeem txuas rau kev sib koom siab.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj yuav tsum tau:

- 1 Arduino Uno

- 1 daim ntawv qhia zaub mov (tshwj tsis yog tias koj muab tshuaj txhuam tam sim ntawd)

- 16 Cov xov hluav taws xob

- 3 Khawm (tsis tas yuav xav tau rau qhov kev ua si no, tab sis suav nrog hauv cov cai)

- 1 Lub ntsuas siab (tuaj yeem yog khawm ib yam nkaus, tab sis muaj peev xwm tsawg dua li khawm)

- 1 sensor teb

- 1 Qhov ntsuas kub (yuav tsis xav tau qhov xav tau rau qhov kev ua si no, tab sis suav nrog hauv qhov chaws)

- 4 100 Ohm resistors (liab, xiav, xim av thiab kub)

Kauj Ruam 2: Tso Tag Nrho Cov Hluav Taws Xob

Tso Tag Nrho Cov Xov Tooj
Tso Tag Nrho Cov Xov Tooj

Muab tag nrho cov xov hlau raws li hauv daim duab saum toj no.

Qhov no tsuas yog cov qauv sib luag yooj yim ntawm txhua lub khawm thiab lub ntsuas pa (yog tias koj muaj lwm hom khawm koj tuaj yeem saib qhov teeb tsa yooj yim)

Kauj ruam 3: Programming Arduino

Programming Arduino
Programming Arduino

Txog qhov no peb siv qhov program Arduino, uas koj tuaj yeem rub tawm ntawm lawv lub vev xaib

www.arduino.cc/en/Main/Software

Tam sim no rub tawm Arduino_controller file thiab qhib nws.

Ntawm no koj tuaj yeem pom yuav ua li cas txoj cai ua haujlwm thiab siv nws rau hauv koj tus kheej Arduino los ntawm kev tsoo upload ntawm kaum sab laug.

Kauj ruam 4: Ua/rub tawm Game

Koj tuaj yeem rub tawm qhov kev ua si Kuv tau ua uas muaj cov ntaub ntawv txuas nrog nws.

mega.nz/#!1MRAmAKI !LbqNQMknexIM3uwksyrCkpV…

Koj tuaj yeem saib mus rau hauv cov cai kom pom li cas kuv taug qab Serial saib kom tau txais cov tswv yim.

Yog tias koj tsis pom nws kuv yuav piav qhia luv luv qhov kuv tau ua:

1. Kuv rub Ardity cov cuab tam los ntawm cov khoom muaj nqis thiab nyeem cov manuel

2. Tom qab ntawd kuv tau tsim cov khoom uas muaj cov ntawv sau ua los ntawm Ardity

3. Txhawm rau khaws cov ntaub ntawv los ntawm tsab ntawv mus rau tsab ntawv txav uas siv cov ntaub ntawv txav mus thiab lwm yam.

Kauj ruam 5: Tam sim no koj tuaj yeem khiav Game

Khiav qhov kev ua si thiab siv cov nyees khawm txav los ntawm cov ntawv qhia zaub mov.

(Kuv txawm li cas los hloov cov lus tawm yog li kuv lub pob nyem tseem yog lub pob xaiv tsis txhob khawm 2)

Pom zoo: