Cov txheej txheem:

Ua Tsev HAL9000: 19 Cov Kauj Ruam
Ua Tsev HAL9000: 19 Cov Kauj Ruam

Video: Ua Tsev HAL9000: 19 Cov Kauj Ruam

Video: Ua Tsev HAL9000: 19 Cov Kauj Ruam
Video: yo hav zoov tua tau liab nqog muag 2024, Kaum ib hlis
Anonim
Hauv Tsev HAL9000
Hauv Tsev HAL9000

Tom qab saib 2001 A Space Odyssey Kuv txiav txim siab kuv xav tau kuv tus kheej HAL 9000- tshwj tsis yog qhov phem dua. Qhov no siv BS2, PIR thiab yuav ua pa thaum nws pom cov lus tsa suab. Vam tias qhov no muaj lub paj hlwb positronic uas yuav ua raws 3 txoj cai ntawm neeg hlau thiab tsis tig rau kuv.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov
Qhov
Qhov

BS2 PIRAluminium Project BoxSolderless BreadboardDC Power Jack3 Pin plug, Kuv tau txais ib qho los ntawm CPU ntxuamSwitchOld teeb nyem rau lub lens. Red LED 470 Ohm resistor

Kauj Ruam 2: Cov Cuab Yeej

Cov cuab yeej
Cov cuab yeej

Cov Cuab Yeej: Soldering IronDrillScrewdriverWire StripperGlue Gun

Kauj ruam 3: Tau lub Lens

Tau lub Lens
Tau lub Lens
Tau lub Lens
Tau lub Lens

Kuv tau tawg coj-co-tsis muaj lub teeb nyem roj teeb. Kuv rub nws sib nrug rau lub lens thiab tsom iav. Kuv txiav sab saum toj nrog lub dremel thiab khaws lub lens thiab lub teeb pom kev sib dhos.

Kauj ruam 4: LED Hloov

LED Hloov
LED Hloov

Kuv tshem cov coj dawb thiab hloov nws nrog tus coj liab.

Kauj ruam 5: Code

Code
Code
Code
Code

Kuv siv Mac BS2 los teeb tsa kuv lub thwj cim. Nws dawb thiab ua haujlwm zoo tiag tiag. Thauj cov cai ntawm koj lub thwj cim. Cov cai kuv siv yog txuas nrog.

Kauj Ruam 6: Breadboard Nws Tawm

Breadboard Nws Tawm
Breadboard Nws Tawm

Cov LED yuav tau txuas rau tus pin 0, khiav 470 ohm resistor los ntawm tus pin 0 mus rau qhov zoo ntawm LED. Khiav lub teeb liab los ntawm PIR mus rau tus pin 15, thiab qhov zoo thiab tsis zoo rau + - davhlau ya nyob twg ntawm PIR.

Kauj ruam 7: Lub thawv

Lub Thawv
Lub Thawv

Tam sim no peb yuav pib ntawm qhov thaiv. Nyob rau sab saum toj nrhiav qhov chaw thiab kos rau nws. Kuv siv xuas nrig xwv kom kuv laum ntsis yuav tsis taug ntawm lub thawv hlau.

Kauj Ruam 8: Qhov Pom

Qhov Pom
Qhov Pom
Qhov Pom
Qhov Pom

Kuv siv lub qhov pom los ua lub qhov hauv lub thawv. Kuv kuj siv txiav cov roj los ua kom tag nrho txiav yooj yim dua.

Kauj Ruam 9: Qhov rau Qhov Muag

Qhov rau Qhov Muag
Qhov rau Qhov Muag
Qhov rau Qhov Muag
Qhov rau Qhov Muag

Txhawm rau ua lub qhov rau lub lens lossis HAL 9000s qhov muag, ntsuas qhov nruab nrab, kos thiab rov coj mus rhaub nrog rau xuas nrig kom lub laum ntsis tsis taug kev.

Kauj ruam 10: Fais fab On/off

Hwj chim On/off
Hwj chim On/off

Sab nraub qaum, ua ob lub qhov, ib qho rau koj lub hwj chim thiab ib qho rau koj qhov qhib/tua.

Kauj Ruam 11: Kuaj PIR

Glue lub PIR
Glue lub PIR

Muab cov PIR tso rau hauv qhov chaw nrog rab phom kub.

Kauj Ruam 12: Kaw lub Lens

Kua Lens
Kua Lens

Muab cov iav lo tso rau qhov chaw dua siv cov kua nplaum kub. Koj tuaj yeem siv lwm cov kua nplaum yog tias koj muaj nws … Kuv muaj kua nplaum kub yog li kuv siv nws.

Kauj ruam 13: Reflector

Reflector
Reflector

Muab cov iav tso rau ntawm lub lens.

Kauj Ruam 14: 3 Tus Pin

3 Pin Plug
3 Pin Plug

Kuv tau rub 3 tus pin ntsaws los ntawm tus kiv cua cpu los txuas PIR rau BS2. Qhov ntsaws tau xaim hlua, uas tsis haum rau hauv lub lauj kaub tais diav tsis yooj yim heev. Yog li kuv tau siv cov hlau xaim xaim mus rau qhov kawg kom yooj yim dua.

Kauj Ruam 15: LED

LED
LED

Cov xaim xaim txuas mus rau qhov kawg ntawm LED txhawm rau txuas rau lub khob cij.

Kauj Ruam 16: Solder Power Jack

Solder Power Jack
Solder Power Jack

Solder hlau rau lub hwj chim nkaus. Siv ib daim luv luv rau qhov zoo raws li nws tsuas yog mus rau ib nti lossis yog li rau sab xis rau lub zog hloov pauv.

Kauj Ruam 17: Solder Hloov

Solder Hloov
Solder Hloov

Solder qhov zoo los ntawm kev hloov mus rau lub hwj chim txuas. Thiab tom qab ntawd ib qho xaim ntxiv uas koj yuav ntsaws rau hauv daim ntawv qhia zaub mov.

Kauj Ruam 18: Nqa Mus Rau Breadboard

Nqa mus rau Breadboard
Nqa mus rau Breadboard

Tam sim no txhua yam yog nyob rau hauv lub phiaj xwm phiaj xwm, nqes txhua yam rov qab. Positive to pin 24Negative to 23Resistor to pin 5 PIR Signal to pin 20LED + to resistorLED - to negativePIR + to positivePIR - to negative

Kauj Ruam 19: Saib Nws

Saib Nws
Saib Nws

Txheeb nws tawm. Qhov LED yuav mem tes thaum pom tias txav mus los.

Pom zoo: