Cov txheej txheem:

Nkoj Saib 3k: 8 Kauj Ruam
Nkoj Saib 3k: 8 Kauj Ruam

Video: Nkoj Saib 3k: 8 Kauj Ruam

Video: Nkoj Saib 3k: 8 Kauj Ruam
Video: Nco Ntsoov Kuv Mog - Qab Zib [ Nkauj Tawm Tshiab 7/6/2023 ] Official MV 2024, Kaum ib hlis
Anonim
Tsheb Saib 3k
Tsheb Saib 3k

Yuav tsum paub yog lub qhov rooj qhov rooj qhib? Yuav tsum paub yog tias koj rub nyob deb txaus rau lub qhov rooj kaw yam tsis tsoo koj lub tsheb kauj vab? Yuav tsum paub txhua qhov no nrog kev nkag mus rau lub vev xaib … Kuv nthuav qhia lub chaw saib tsheb 3000.

Thaum lub tsheb mus txog qhov chaw raug, lub LED hloov ntawm ntsuab mus rau liab. Nov yog qhov haujlwm ua tiav, qhov no tsuas yog version 1.0, Kuv xav tias nws yuav dhau los ntawm qee qhov kev hloov pauv kom nws zoo dua.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov

Hlau

1 Mercury hloov 1 220 ohm Resistor 1 10k ohm resistor 2 x 1k ohm resistor 1 Liab LED 1 Ntsuab LED 1 Parallax Internet Cov Khoom (PINK los ntawm parallax www.parallax.com) 1 BS2 Micro Controller (los ntawm parallax www.parallax.com) 1 PIR Motion Detectorr (los ntawm parallax www.parallax.com) 1 ds1620 ntsuas kub. 1 5v fais fab mov 1 daim ntawv ntawv raj raj Kuv tsis muaj lub network poob hauv kuv lub nkas -las, uas kuv pom tseeb yuav tsum tau kho, yog li kuv yuav qhov txuas txuas WET11 tawm ntawm ebay rau $ 20.

Kauj Ruam 2: Khib Caij Nyoog Nws Tawm

Bread Board Nws Tawm
Bread Board Nws Tawm
Bread Board Nws Tawm
Bread Board Nws Tawm

Yog li kuv pom tseeb xav tau ib daim phiaj thaiv kab ke … Kev txuas rau qhov hloov pauv los ntawm PDF Dab tsi yog lub micro tswj Cov kab hluav taws xob rau PIR los ntawm PIR Cov Ntawv Teev Npe PDFLub thaiv rau DS1620 los ntawm PDF Applied Sensors. Kev txuas rau PINK los ntawm PINK PDF P0 - rau pirP1 - Mercury hloov P5 - 1620P6 - 1620P7 - 1620p12 - Rau PINKP13 - Rau PINKP14 - Green LED P15 - Liab LED

Kauj Ruam 3: Tam sim no Nws Ua Haujlwm ntawm Koj Daim Npav …

Koj yuav tsum zaum ua haujlwm bs2, ntawm no yog tus lej. Feem ntau ntawm cov cai no tau ua raws cov piv txwv hauv ntau yam PDF muaj nyob ntawm parallax site. Koj them ntau dua rau BS2, tab sis cov ntaub ntawv zoo kawg. '{$ STAMP BS2}' {$ PBASIC 2.5} '' ----- (I/O Cov Lus Txhais) ------------------------- ------------------------ PIR PIN 0 'I/O Pin Rau PIR SensorLEDONE PIN 15' I/O Pin Rau Ntsuab LEDLEDTWO PIN 14 'Kuv/ O Pin Rau Liab LED '----- (Variables) ---------------------------------- ------------------- counter VAR Byte 'Trip Counterx VAR Word' txhais lub hom phiaj sib txawv hloov pauv VAR x. BIT15 'kos npe me ntsis ntawm xdegC VAR Word' txhais qhov sib txawv los tuav degrees CelsiusdegF VAR Lo lus 'tuav qib Fahrenheit' ----- (Kev pib ua ntej) -------------------------------- ------------------ DEBUG CLS 'Clear DEBUG ScreenSEROUT 12, 396, ("! NB0W07:", "Ua Kom sov", CLS)' Qhia tus PINK whats upFOR counter = 10 TO 0 HIGH LEDONE 'Flash the LEDS LOW LEDTWO' Tos 20 Seconds For PIR Warm-Up DEBUG HOME, "Warming up:", DEC2 counter SEROUT 12, 396, ("! NB0W07: Warming:", CLS) PAUSE 1000 LOW LEDONE HIGH LEDTWO PAUSE 1000 'Display Counter Every SecondNEXTLOW LEDONELOW LEDTWOcounter = 0' Clear Counter VariableDEBUG HOME, "Tos "SEROUT 12, 396, ("! NB0W07: Tos … ", CLS) HIGH LEDTWOHIGH 5 'xaiv DS1620SHIFTOUT 7, 6, LSBFIRST, (238)'" pib hloov dua siab tshiab "commandLOW 5 'ua qhov hais kom ua' ----- (Txoj Cai Txoj Cai) ------------------------------------------------------ ------ Qhov tseem ceeb: YUAV 'Motion detector IF PIR = 1 THEN' Motion Detected? counter = counter + 1 'Update Trip Counter HIGH LEDONE' LOW LEDTWO 'Light Red LED DEBUG HOME, "TRIPPED …", DEC3 counter SEROUT 12, 396, ("! NB0W07:", "Tripped …", CLS) Ua: LOOP UNTIL PIR = 0 'Tos Rau PIR Kom Tshem Tawm DEBUG Tsev, "CLEARED …", DEC3 txee SEROUT 12, 396, ("! NB0W07:", "Cleared …", CLS) LOW LEDONE HIGH LEDTWO Kub HIGH 5 'xaiv DS1620 SHIFTOUT 7, 6, LSBFIRST, (170)' xa qhov "tau txais cov ntaub ntawv" hais kom ua SHIFTIN 7, 6, LSBPRE, (x / 9) 'tau txais cov ntaub ntawv, suav nrog kos npe LOW 5' xaus qhov hais kom ua x. BYTE1 = -x. BIT8 'txuas lub cim rau 16 khoom degC = x*5' hloov mus rau 'C*10 (daws teeb meem 0.5' C) degF = degC+2732*9/50-459 'hloov mus rau F DEBUG? degF, CR, CR 'Qhia ntawm debug SEROUT 12, 396, ("! YOG IN1 = 0 Tom qab ntawd SEROUT 12, 396, ("! NB0W08:", "Qhib", CLS) QHOV KEV PAB 12, 396, ("! NB0W08:", "Kaw", CLS) ENDIF PAUSE 1000 LOOP

Kauj Ruam 4: Tshaj Tawm Cov Ntaub Ntawv rau Paj Yeeb

Rub cov ntaub ntawv mus rau Pink
Rub cov ntaub ntawv mus rau Pink

Kuv siv qhov no rau kuv lub vev xaib. Koj tuaj yeem tso rau lub paj yeeb ntawm FTP Garage Monitor 3000. onLoad = "if (self! = Top) top.location = self.location"> A: hover {text-decoration: underline; xim:#336633; }

Nkoj Saib Xyuas

Qhov ntsuas kub hauv Garage yog: Qhov Chaw Nres Tsheb ua kom haum: Lub Qhov Rooj Nkag Nkag yog: [https:// pink refresh]

Kauj Ruam 5: Kaw Daim Ntawv Pom Rau PIR

Kaw Daim Ntawv Pom Zoo rau PIR
Kaw Daim Ntawv Pom Zoo rau PIR
Kaw Daim Ntawv Pom Zoo rau PIR
Kaw Daim Ntawv Pom Zoo rau PIR

Yog li PIR muaj qhov pom dav dav ntawm qhov pom, Kuv kaw qhov ntawd los ntawm kev siv 5 daim ntawv raj raj, Kuv tau txais lub tswv yim no los ntawm kev tshaj tawm ntawm cov rooj sib tham parallax, lawv siv lub raj dav dua, tab sis nws tseem yog qhov tseeb tiag Lub tswv yim.

Kuv tau ruaj ntseg PIR rau lub raj los ntawm kev muab lub qhov rau hauv lub hau ntawm lub raj thiab kub nplaum nws. Kuv txuas lub pob ntawv no mus rau lub khob cij los ntawm kev siv xov tooj, Kuv muaj tons ntawm nws tso ncig. Kuv pom 3 qhov txuas txuas ntawm tus qub CPU kiv cua uas kuv tau siv ua qhov ntsaws rau PIR.

Kauj Ruam 6: Ruaj Ntseg Rau Phab Ntsa

Ruaj ntseg rau phab ntsa
Ruaj ntseg rau phab ntsa

Kuv ruaj qhov no rau ntawm phab ntsa txoj cai uas kuv lub tsheb xav kom nres kom tshem lub qhov rooj. Kuv siv lub zip kaw thiab rab phom tseem ceeb.

Kauj Ruam 7: Freddie Mercury

Freddie Mercury
Freddie Mercury

Kuv txuas lub mercury hloov mus rau hauv qab ntawm kuv lub qhov rooj nkas -las, siv xov tooj rov vim kuv muaj ntau heev ntawm nws …

Kauj Ruam 8: Muab tag nrho ua ke

Muab Tso Ua Ke
Muab Tso Ua Ke

Kuv txuas tag nrho cov no rau ib daim sintra tsuas yog kom nws huv. Kuv yuav tsum tau txiav lub ethernet cable luv dua tab sis kuv tsis muaj tus crimper hauv tsev.

Cov kauj ruam tom ntej… Puas yog nws yuav tsum muaj nyob txhua lub sijhawm? Tej zaum kuv yuav tsum muaj lub hwj chim qhib thaum lub qhov rooj qhib qhov rooj thiab lub teeb tig rau. Txoj kev ntawd kuv tuaj yeem hloov kho lub rooj hauv cov ntaub ntawv nrog qhov xwm txheej kawg? Kuv twv tias nws ua haujlwm txhua lub sijhawm tsuas yog nkim hluav taws xob… Tej zaum kuv yuav tsum muab nws tso rau hauv lub thawv phiaj xwm!

Pom zoo: