Cov txheej txheem:

Tsis siv neeg Google T Rex Game Controller Siv Arduino: 7 Kauj Ruam
Tsis siv neeg Google T Rex Game Controller Siv Arduino: 7 Kauj Ruam

Video: Tsis siv neeg Google T Rex Game Controller Siv Arduino: 7 Kauj Ruam

Video: Tsis siv neeg Google T Rex Game Controller Siv Arduino: 7 Kauj Ruam
Video: Spongy mechanical disc brakes cheap upgrade. 2024, Hlis ntuj nqeg
Anonim
Image
Image
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau

cia tsim nws

Kauj ruam 1: Qee qhov Intro

txhua qhov koj paub txog t rex aka dino game ntawm google thiab nws nto moo zoo li tsis muaj internet game.

qhov kev ua si yog qhov yooj yim heev tsuas yog zam qhov teeb meem los ntawm kev dhia thiab nws zoo li super Mario khiav.us nquag dhia peb siv qhov chaw bar manually.that lub tsev kawm ntawv qub rau kuv …

yog li hauv qhov kev qhia no, kuv yuav qhia koj yuav ua li cas thiaj li tsis siv neeg uas yog tus tswj tsis siv neeg.

thov saib cov vis dis aus kom paub meej ntxiv

Kauj Ruam 2: Ua Haujlwm Tus Nqi

tus senor

nov peb xav tshuaj xyuas qhov teeb meem thiab dhia kom pom qhov teeb meem Kuv tab tom siv LDR

yog li LDR yuav txheeb xyuas qhov teeb meem zoo li cas?

qhov tsis kam ntawm LDR hloov pauv raws li lub teeb uas yog thaum lub sijhawm tsaus ntuj LDR kev tiv thaiv yog siab heev thiab hloov pauv. yog li peb qhov teeb meem yog xim dub yog li peb tuaj yeem tau txais qhov sib txawv qhov sib txawv. nrog tus nqi ntawd nrog kev pab ntawm tus tswj peb ua rau lub servo.

servo yog siv los nias qhov chaw bar. yog li ntawd txoj haujlwm ua haujlwm

Kauj Ruam 3: Cov Cheeb Tsam Xav Tau

arduino ib

koj tuaj yeem siv ib qho arduino

servo tsav

Kuv siv sg90

LDR

peb sensor

10K RESISTOR

Kauj Ruam 4: Daim Duab Duab Circuit thiab Kev Sib Txuas

Daim duab kos duab thiab Kev Sib Txuas
Daim duab kos duab thiab Kev Sib Txuas

thov saib cov yees duab

ua ntej, txuas VCC ntawm servo rau 5v thiab hauv av rau hauv av

tom qab ntawd kuv txuas PWM tus pin rau Arduino tus pin 9

txuas LDR rau tus pin a0

Kauj ruam 5: Code

Kuv tab tom siv analog nyeem ntawv ua haujlwm ntawm Arduino thiab kuv muab cov xwm txheej rau kev ua haujlwm servo

dowload los ntawm no

Kauj Ruam 6: Zoo Siab Ua

thov saib cov vis dis aus. yog tias koj muaj lus nug thov tawm tswv yim hauv qab no

Kauj Ruam 7: Txwv thiab hloov kho tshiab

Raws li kuv tau hais hauv video nws muaj kev txwv

1.arduino tsis ua rau lub dino thaum tus noog los.

Tshuaj

Ntxiv ldr nyob rau sab saum toj yuav pom tus noog nrog qhov ua rau peb tuaj yeem tswj hwm lwm qhov kev pabcuam (khawm rov qab)

2. ua tsis tau thaum nrawm nce

3. tsis ua haujlwm thaum hloov xim (hloov xim)

Tshuaj

Peb tuaj yeem daws qhov no los ntawm kev ntxiv ntau lub ntsuas pa thiab qee qhov ua kom yooj yim

Pom zoo: