Cov txheej txheem:

LED Reaction Timer: 5 Kauj Ruam
LED Reaction Timer: 5 Kauj Ruam

Video: LED Reaction Timer: 5 Kauj Ruam

Video: LED Reaction Timer: 5 Kauj Ruam
Video: Lady Gaga - Alejandro (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
LED Reaction Timer
LED Reaction Timer
LED Reaction Timer
LED Reaction Timer
LED Reaction Timer
LED Reaction Timer

Txoj haujlwm no yog qhov hloov kho tshiab ntawm thawj qhov kev cuam tshuam timer txoj haujlwm tau piav qhia hauv Len Buckwalter's "Electronic Games & Toys You Can Build" phau ntawv. Cov qhov muag teev thiab cov khoom siv tsis sib xws tau hloov pauv los ntawm microcontroller thiab LEDs.

Kauj Ruam 1: Thawj Lub Sijhawm Tawm Tsam Thawj

Thawj Thawj Lub Sijhawm Ua Haujlwm
Thawj Thawj Lub Sijhawm Ua Haujlwm

Nov yog thawj qhov kev sib tw timer game. Lub hom phiaj ntawm qhov kev ua si yog saib leej twg muaj lub sijhawm nrawm tshaj plaws. Lub pob golf tau muab tso rau sab saum toj ntawm txoj kev tsheb nqaj hlau thiab tso cai rau kom nqes hav kom txog thaum nws tsoo ib qho chaw nres. Thawj tus neeg nias nws lub pob tom qab lub pob tsoo qhov nres yog tus yeej. Yog tias tus neeg ua si nias nws lub pob ua ntej pob mus txog qhov kawg, nws poob.

Kauj Ruam 2: Lub Sijhawm Reaction Tshiab

Tshiab Reaction Timer
Tshiab Reaction Timer

Tus qauv tshiab siv LEDs thiab lub microcontroller. Cov cai yog tib yam, thiab ntxiv rau ob lub loj LEDs uas lub teeb los qhia tus yeej, plaub LEDs tau ntxiv rau txhua sab los tso saib lub sijhawm tshuaj tiv thaiv ntawm txhua tus neeg ua si. Qhov tsawg LEDs lit, tus neeg ua si nrawm dua.

Kauj ruam 3: Lub hauv paus

Lub hauv paus
Lub hauv paus

Lub hauv paus yog tsim los ntawm cov ntoo poplar yuav los ntawm Home Depot. LEDs thiab microcontroller tau yuav los ntawm Digikey. Ob lub thawb thawb khawm ib txwm qhib thiab muaj los ntawm Xov Tooj Cua.

Qhov ntev thiab lub kaum sab xis ntawm txoj kab yog nyob ntawm koj. Cov ntawv qub tau siv hloov pauv txhawm rau txheeb xyuas thaum lub pob golf mus txog qhov kawg. Kuv cov ntawv siv IR LED thiab ntsuas rau tib txoj haujlwm. Pob golf txwv IR tawm los ntawm LED los ntawm kev mus txog lub ntsuas thaum so ntawm qhov kawg ntawm txoj kev tsheb nqaj hlau.

Kauj ruam 4: Hauv qab

Qhov Underside
Qhov Underside

Nov yog daim duab ntawm sab hauv qab qhia qhov thaiv. Kuv siv 22 awg tso tseg xaim txuas txhua yam thiab cov hlua me txuas los khi cov xov hlau. Txhawm rau txo tus naj npawb ntawm IOs xav tau, LEDs nrawm yog lub sijhawm-sib npaug.

Kauj Ruam 5: Microcontroller & Roj Teeb

Microcontroller & Roj Teeb
Microcontroller & Roj Teeb

Nov yog qhov ze ntawm microcontroller thiab roj teeb. Peb lub roj teeb AA tau siv los txhawb lub zog hluav taws xob tag nrho. Lub microcontroller yog Cypress Semiconductor PSOC, thiab kuv siv cov lus sib dhos los ua haujlwm ib feem.

Yog tias muaj kev txaus siab tseem ceeb hauv txoj haujlwm, Kuv yuav tshaj tawm cov txheej txheem thiab qhov chaws ib yam.

Pom zoo: