Cov txheej txheem:

Whack-a-Mole! (Tsis Muaj Cai!): 9 Kauj Ruam (nrog Duab)
Whack-a-Mole! (Tsis Muaj Cai!): 9 Kauj Ruam (nrog Duab)

Video: Whack-a-Mole! (Tsis Muaj Cai!): 9 Kauj Ruam (nrog Duab)

Video: Whack-a-Mole! (Tsis Muaj Cai!): 9 Kauj Ruam (nrog Duab)
Video: Финансы с Python! Короткие продажи и короткие позиции 2024, Hlis ntuj nqeg
Anonim
Image
Image
Taw qhia sai rau Digital Electronics
Taw qhia sai rau Digital Electronics

Nyob zoo ntiaj teb! Kuv tau rov qab los ntawm qhov tsis pub tshaj tawm lub qhov tob thiab kuv rov qab los dua nrog lwm Cov Lus Qhia! Hnub no, Kuv yuav piav qhia rau koj li cas, siv tsuas yog cov hauv paus ntsiab lus ntawm kev siv hluav taws xob, TSIS TXAUS SIAB CODE, los tsim Whack-a-Mole! Koj tau txais 30 vib nas this txhawm rau ntaus cov moles ntau li koj tuaj yeem ua tau. Kuv Whack-a-Mole nta 3 qib sib txawv sib txawv uas tau tswj los ntawm kev hloov pauv. Tsis tas li, muaj lwm hom kev ua si qhov twg yog tias koj tsoo lub pob thaum lub teeb tsis nyob, koj yuav plam ib qho! Hauv Cov Lus Qhia no, Kuv yuav piav qhia kuv yuav ua li cas whack-a-mole game (tsis muaj qhov nrawm thiab qib) siv cov hauv paus ntawm cov laj thawj digital, cov chips sib txawv uas tsim nyog los tsim Whack-a-Mole, thiab cov lus tseeb yog dab tsi siv rau. Kuv kawm tag nrho cov ntsiab lus hauv Cov Lus Qhia no los ntawm txoj haujlwm zoo rau lub caij ntuj sov ntawm Cooper Union thiab tsim txoj haujlwm no hauv pab pawg ntawm peb li ntawd nco ntsoov txheeb xyuas lawv qhov ua tau zoo ntawm no! Kuv vam tias koj yuav tsum tshem tawm tsawg kawg ib yam los ntawm Cov Lus Qhia no!

Kauj Ruam 1: Qhia Taw Qhia rau Digital Electronics

Qhia Intro rau Digital Electronics
Qhia Intro rau Digital Electronics
Taw qhia sai rau Digital Electronics
Taw qhia sai rau Digital Electronics

"chaw thau khoom =" tub nkeeg"

Image
Image
Moles puas tuaj yeem yog Random ??
Moles puas tuaj yeem yog Random ??
Moles puas tuaj yeem yog Random ??
Moles puas tuaj yeem yog Random ??
Moles puas tuaj yeem yog Random ??
Moles puas tuaj yeem yog Random ??

Txij li tsis muaj dab tsi yog qhov tseeb tiag, peb yuav ua ib yam dab tsi ze rau random raws li peb tuaj yeem ua tau, yog li ua ntej ua ntej pseudo. Txog sijhawm ntawm peb pRNG (uas yuav pub rau hauv lub moos pins ntawm D Flip-Flops), peb yuav xav tsim lub astable 555 timer tua ntawm qhov nrawm ntawm 1 thib ob (lossis txawm li cas los xij nrawm koj xav kom cov moles tshwm). Lub vev xaib no muab lub peev xwm thiab tus tiv thaiv qhov tsim nyog los tsim qhov nrawm no nrog rau daim duab qhia chaw. Nco ntsoov sim yog tias nws ua haujlwm thawj zaug siv LED. Lub teeb yuav tsum nyem rau qhib tom qab tua thiab lub sijhawm nruab nrab ntawm thaum ob zaug LED teeb yuav tsum yog 1 thib ob, tsis yog lub sijhawm LED qhib.

NYEEM DATASHEETS !

Tshawb xyuas ntu #

Thaum lub astable timer ua haujlwm, tsim pRNG raws li daim duab saum toj no. Txuas cov txiaj ntsig ntawm lub sijhawm ntsuas pom zoo rau lub moos ntawm D flip-flops. PRNG yog ua los ntawm 5 D flip-flops nrog XOR los tsim qhov tsis sib xws. Txhua lub flip-flop khaws cov ntaub ntawv me ntsis. Yog li, tus lej pseudo-random tus lej hluav taws xob yuav muaj 5 khoom, uas txhais tau tias nws yuav tsim 32 qhov tseem ceeb; tshwj tsis yog, peb tsis xav tau 32 moles. Hloov chaw, peb yuav siv tsuas yog 3 qhov me me los ntawm pRNG thiab pub cov ntawd rau hauv qhov chaw nyob ntawm 4051 Mux/DeMux. Tab sis ua ntej, ua raws daim duab saum toj no los tsim pRNG. 4013 chips muaj 2 D flip-flops ntawm txhua lub nti: ib qho ntawm sab laug thiab ib qho ntawm sab xis. RESET, SET, thiab VSS txuas rau hauv av thaum VDD txuas rau lub zog. Thaum koj ua tiav, nco ntsoov pRNG ua haujlwm los ntawm kev txuas LEDs rau txhua Q tso tawm (DATASHEET!). Qee zaum koj yuav tsum dhia-pib pRNG los ntawm kev txuas ib Q luv luv rau lub zog.

Kom muaj yim leej xwb, lub sijhawm no 4051 yuav ua raws li Demultiplexer (qhov txawv ntawm MUX) qhov twg ib qho nkag ib txwm txuas nrog rau 1 (lub zog) thiab tus pin chaw nyob yuav txiav txim siab qhov twg ntawm yim qhov tso tawm pins kom muaj 1 xa mus rau. Yog li, txuas cov xov hlau los ntawm 3 Qs sib txawv (3 qhov sib txawv D flip flops) los ntawm pRNG thiab muab tso rau hauv qhov chaw nyob ntawm tus DeMux (E, VEE, GND txuas rau hauv av, VCC txuas rau lub zog, ib qho Y yog qhov tso tawm, ib qho S yog tus pin chaw nyob, thiab Z yog thawj lub tswv yim). Muab lub LED (nrog tus tiv thaiv) rau txhua qhov tso tawm thiab koj yuav pom yim lub qhov muag ntsais muag txhua txhua ob (lossis txawm tias qhov nrawm yog ntawm koj lub sijhawm zoo). Pab kev zoo siab koj tau tsim cov moles!

Kauj Ruam 5: Nws yog Suav Zaum Kawg

Nws yog Zaum Kawg
Nws yog Zaum Kawg
Nws yog Zaum Kawg
Nws yog Zaum Kawg
Nws yog Zaum Kawg
Nws yog Zaum Kawg
Nws yog Zaum Kawg
Nws yog Zaum Kawg

Txog rau suav thiab suav cov qhab nia, peb yuav siv feem ntau 4029 nce/nqis cov suav uas pom tau tias tuaj yeem suav ua lej thiab ntxiv rau binary. Hauv kuv thawj qhov haujlwm kuv tau ua qee yam nyuaj dhau los ntawm kev suav hauv binary tab sis ib nrab ntawm txoj haujlwm kuv paub tias kuv tuaj yeem suav hauv kaum xyoo (zauv) siv cov suav no. NCO NTSOOV DATASHEETS

Ua ntej, rau kev suav rov qab, koj yuav xav tau lub sijhawm ntsuas tau zoo los txuas rau ob lub moos uas khiav ntawm 1 thib ob. Tom qab ntawd ib zaug uas ua haujlwm, tau txais ob lub 4029 chips thiab teeb tsa lawv txuas VDD rau lub zog; VSS, Binary/kaum xyoo, nce/nqis, thiab tag nrho JAMs ntawm ib tus ntiv tes rau hauv av. Ntawm tus ntiv tes thib ob, txuas txhua yam zoo ib yam tsuas yog txuas Jam 1 thiab 2 txhawm rau txhawb lub zog rau hauv av. Thawj tus ntiv tes nqa hauv tus pin txuas nrog hauv av. Nqa tawm ntawm thawj tus ntiv tes txuas nrog nqa hauv tus pin ntawm tus ntiv tes thib ob. Txuas qhov tam sim no ua haujlwm ntawm ob lub chips rau DEBOUNCED khawm uas yuav ua raws li khawm pib. Txhawm rau kom qhov kev ua si nres, koj yuav xav tau qee qhov laj thawj los tso tseg 555 lub sijhawm. Yog li, tau txais qee 4071 LOSSIS cov chips thiab sib piv tag nrho Q cov txiaj ntsig ntawm 4029 chips, yog li pib thaum nws mus txog 0, txhua qhov OR lub rooj laj thawj logic yuav tso tawm 0, uas tsuas yog lub sijhawm nws yuav tso tawm 0. Coj qhov tso tawm thiab tso nws rau hauv tus pin rov pib dua ntawm 555 timer tshem tawm cov xaim hluav taws xob uas nyob ntawd. Tam sim no koj muaj qhov suav rov qab!

Kauj ruam 6: Scoreboard

"chaw thau khoom =" tub nkeeg"

Ntxiv! Ntxiv! Nyeem Txhua Yam Txog Nws!
Ntxiv! Ntxiv! Nyeem Txhua Yam Txog Nws!

Txij li thaum kuv pab neeg muaj qee lub sijhawm tshuav peb txiav txim siab ntxiv qhov nrawm thiab hom kev txiav tawm cov ntsiab lus. Yog tias koj xav ua qhov ntawd xav txog kev siv qee lub XOR rooj vag thiab qee qhov laj thawj. Nws tsis yog qhov nyuaj heev yog li koj yuav tsum tuaj yeem tau txais nws. Yog tias koj paub yuav ua li cas thiaj li tau txais qee qhov protoboards thiab muab cov qhab nia thiab suav rov qab kom koj tuaj yeem pom nws yooj yim thaum koj ua si. Txhawm rau ua rooj plaub tau qee cov ntoo, txiav qhov, thiab voila sawv ntsug rau cov moles! Kuv siv lub tshuab txiav laser, tab sis ua nws txhua txoj kev uas koj nyiam. Txog rau 3D luam tawm moles, mus hauv online, tshawb nrhiav 3D mole, txiav lub cev tawm, thiab luam tawm tsuas yog lub taub hau thiab lo rau ntawm lub pob.

Yog tias koj muaj teeb meem, nco ntsoov tias yog ib feem ntawm kev tsim hluav taws xob. Qhov tseeb, yuav luag tag nrho kuv lub sijhawm tau siv los kho qhov haujlwm no. Kev tsim qauv yog ib feem yooj yim, nrhiav yam tsis raug thaum koj tsim nws yog qhov nyuaj.

Thaum kawg, Kuv nyiam txoj haujlwm no heev thiab vam tias koj tau ua ib yam. Kuv twv yuav raug hu kawm ntau los ntawm kev ua qhov no thiab yuav tsum muaj ib yam. Thov koj xav tso tawm cov lus, lus nug, lossis cov lus pom! Ua tsaug!

Pom zoo: