Cov txheej txheem:

Reaction Game- Computer Engineering Project: 3 Kauj Ruam
Reaction Game- Computer Engineering Project: 3 Kauj Ruam

Video: Reaction Game- Computer Engineering Project: 3 Kauj Ruam

Video: Reaction Game- Computer Engineering Project: 3 Kauj Ruam
Video: A satisfying chemical reaction 2024, Kaum ib hlis
Anonim
Reaction Game- Computer Engineering Project
Reaction Game- Computer Engineering Project
Reaction Game- Computer Engineering Project
Reaction Game- Computer Engineering Project

Cov tshuaj tiv thaiv kev ua si yog raws nraim li lub npe hais, nws ntsuas koj cov tshuaj tiv thaiv nrawm. Tej zaum koj yuav nug tias cov txiaj ntsig tuaj yeem ua rau tus neeg rau zaub mov no sab nraum ntawm kev lom zem, zoo koj tuaj yeem siv qhov no rau cov tib neeg hauv kev kho mob los ntawm kev phais lossis xwm txheej. Lawv cov tshuaj tiv thaiv nrawm yuav noj qab haus huv thiab kev vam meej ntawm lub cev tom qab kev kho mob.

Khoom siv

  • Raspberry Pi 3B
  • Cov qhob cij
  • Ribbon cable (txuas rau lub khob cij rau raspberry pi
  • Yam tsawg kawg yog 8 tus txiv neej rau txiv neej lossis cov txiv neej-poj niam cov xov hlau
  • 2 Hloov
  • 1 Lub suab nrov
  • 1300 Ohm tus tiv thaiv

Kauj Ruam 1: Tsim Txoj Haujlwm

Tsim Txoj Haujlwm
Tsim Txoj Haujlwm
Tsim Txoj Haujlwm
Tsim Txoj Haujlwm

Daim duab txuas qhia tag nrho cov nab npawb nab npawb uas yuav xav tau theej. Hloov tus GPIO pins thiab tus lej rau koj qhov txiaj ntsig.

Kauj Ruam 2: Teeb Cov Hauv Qab Circuit Court

Image
Image

Siv cov vis dis aus los ua cov lus qhia rau qhov yuav tsum tau ua cov khoom siv hluav taws xob thiab qhov twg lawv yuav tsum lossis tuaj yeem tso tau.

Nco ntsoov, ib qho kev hloov pauv uas xav tau 2 tus txiv neej-poj niam xaim, ntawm xaim mus rau gpio lwm tus mus rau hauv av. Lwm qhov Circuit yog rau LED uas xav tau LED code, 2 txiv neej-poj niam xov hlau thiab muaj peev xwm tiv taus 330 Ohms+ nyob ntawm qhov hluav taws xob. Qhov thib peb Circuit Court yog rau qhov hloov thib ob aka player 2 qhov Circuit no zoo ib yam rau thawj qhov kev hloov pauv tab sis ua kom ntseeg tau tias hloov pauv tus pin gpio. Qhov kawg tab sis tsis tsawg kawg, lub suab nrov mus rau hauv cov haujlwm zoo ib yam li LED vim nws tsuas xav tau hluav taws xob tam sim no los ua lub suab nrov tsuas yog qee yam uas qhia tau tias qhov kev ua si dhau lawm (lub suab nrov muaj tib lub Circuit Court teeb tsa raws li LED, tuaj yeem siv resistor nyob ntawm ntawm qhov hluav taws xob)

Kauj Ruam 3: Tsim Koj Tus Qauv Uas Koj Yuav Koom Nrog Koj Li Circuit Court

Sau cov duab los qhia lossis koj cov ntaub ntawv xav tau los tsim lub thawv loj txaus los npog koj lub khob cij. Nrhiav qhov chaw rau 4 qhov ntawm koj lub npov, cov hloov pauv, lub suab nrov, thiab LED yuav tawm ntawm qhov no. Hauv qhov xwm txheej, koj tuaj yeem txhawb ntxiv hauv qab ntawm cov hloov pauv kom thaum lub siab tso rau saum, nws yuav muaj qee qhov tsis kam thiab yuav tsis vau los ntawm ib txwm khawm nias lub zog.

Pom zoo: