Cov txheej txheem:

Lub Tsev Haunted: 5 Kauj Ruam
Lub Tsev Haunted: 5 Kauj Ruam

Video: Lub Tsev Haunted: 5 Kauj Ruam

Video: Lub Tsev Haunted: 5 Kauj Ruam
Video: ICU Vol.5 - 07 Lub tshav rog 2024, Kaum ib hlis
Anonim
Lub Tsev Haunted
Lub Tsev Haunted

Txoj haujlwm no yog tus qauv ntawm lub tsev muaj dab, uas tuaj yeem yog qhov ua yeeb yaj kiab lossis yeeb yaj kiab. Lub sijhawm kawg thaum kuv tab tom ua yeeb yaj kiab luv luv, kuv pom tias yog tias keeb kwm yav dhau ntawm qhov xwm txheej tau ntxaws ntxaws ces nws tuaj yeem tsim kom muaj huab cua zoo dua.

Lub teeb nyob rau hauv qhov haujlwm no yuav tsaus dua vim nws ze rau hmo ntuj, thiab thaum kawg, lub teeb yuav raug kaw tag nrho thaum lub hnub ploj mus. Yog tias nws yog tav su, tom qab ntawd koj tuaj yeem tawm qee qhov chaw los ntawm Photoresistor kom qee qhov pom kev tseem yuav ci.

Koj tuaj yeem tso qee tus cim sab hauv tsev thiab tsim koj cov vis dis aus yog tias koj xav tau.

Ua raws cov theem hauv qab no los tsim koj tus kheej lub tsev muaj dab!

Khoom siv

  • Ib daim ntawv loj loj (npog Breadboard thiab ua lub tsev muaj dab)
  • LEDs ntau npaum li koj xav tau (tuaj yeem yog xim liab, daj, xiav, lossis dawb, hauv qhov haujlwm no kuv xaiv siv dawb vim tias nws zoo li tsis txaus rau kuv)
  • Photoresistance (los tswj cov nyiaj ntawm LEDs)
  • 1 xiav resistor
  • Tus nqi ntawm cov xim av tiv taus yuav nyob ntawm seb muaj pes tsawg LEDs koj xav tau rau koj lub tsev muaj dab
  • Txiab (txiav cov duab los qhia)
  • Cov ntawv uas muaj xim (los npog lub khob cij, suav nrog cov xov hlau, tus tiv thaiv, LEDs, thiab lwm yam)
  • Daim kab xev (kab xev txhua daim ntawv xim ua ke thiab kaw kab xaim ntawm lub qab nthab ntawm lub tsev)
  • Qee cov xov hlau (koj xav tau tsawg kawg 8 xov hlau, qhov no tsuas yog siv rau ib qho LED xwb. Thiab yog tias koj xav ntxiv LEDs ntxiv koj yuav xav tau ntxiv peb lub xov tooj thaum koj ntxiv cov LEDs)
  • Arduino Uno R3

Kauj Ruam 1: Txuas Cov Duab Duab

Txuas cov Photoresistances!
Txuas cov Photoresistances!

Ua raws daim duab qhia saum toj no.

  1. Txuas 5v (Arduino Uno R3) mus rau txhua qhov chaw ntawm lub khob cij
  2. Txuas GND mus rau qhov tsis zoo ntawm lub khob cij
  3. Txuas A0 ib sab uas koj txuas nrog 5v rau
  4. De koj tus photoresistor thiab txuas nws nyob rau tib kab (tsis yog tus ntawv sab tab sis tus lej sab) ntawm qhov uas koj txuas A0 thiab 5v, nyob rau sab twg ntawm tus photoresistor yuav nyob rau tib kab A0 thiab lwm tus yuav nyob ntawm tib kab ntawm 5v.
  5. Thaum kawg, nws yog lub sijhawm los txuas cov LEDs !!!
  6. Los ntawm Arduino Uno R3, D7 yuav txuas nrog txhua qhov chaw ntawm lub khob cij
  7. D6 txuas nrog ib sab D7 tab sis tawm qee qhov chaw rau cov xov hlau tso
  8. Ua mus ntxiv yog tias koj xav tau LEDs ntau dua
  9. Thaum koj ua tiav txuas cov xov hlau nws yog lub sijhawm los txuas cov resistors
  10. Txuas ib sab ntawm tus tiv thaiv mus rau qhov tsis zoo thiab lwm sab txuas rau lwm kab sab xis ntawm qhov chaw koj txuas cov xov hlau rau (Ex: D7, D6)
  11. Txuas ntxiv tso rau ntawm tus tiv thaiv, txhua LED xav tau tus tiv thaiv
  12. Tom qab ua tiav qhov txuas txuas, txuas cov LEDs rau lwm cov xov hlau tshiab
  13. Nco ntsoov cov LEDs ib txwm nyob ntawm ib kab ntawm qhov uas koj txuas tus tiv thaiv thiab xaim
  14. Sab ntev ntawm LED yuav nyob rau sab laug, uas sab luv yuav nyob ntawm sab xis
  15. Thaum koj ua tiav txhua cov kauj ruam ces koj yuav luag tiav! Tam sim no koj yuav tsum txav mus rau qhov coding!

Saib cov cim hauv qab no

Kauj ruam 2: Coding

create.arduino.cc/editor/jonie_zt76/af15efac-3513-443e-941b-0b18550eb853/preview

Kauj ruam 3: Kho kom zoo nkauj

Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
  • Txiav daim ntawv los rau hauv ob daim uas haum rau lub khob cij
  • Txiav lub qhov uas tuaj yeem ua rau cov xov hlau hla mus (nws tsis tas yuav zoo nkauj vim tias tib neeg yuav tsis pom)
  • Khaws daim ntawv los xij thiab daim ntawv lo ua ke (nco ntsoov tias cov xov hlau yuav tsum hla lub qhov)
  • Nrhiav ib lub thawv kom muab tso rau hauv cov duab los qhia thiab lub thawv ntawv, nws yuav yog lub qab nthab ntawm lub tsev

Kauj Ruam 4: Kho kom zoo nkauj P2

Kho kom zoo nkauj P2
Kho kom zoo nkauj P2
Kho kom zoo nkauj P2
Kho kom zoo nkauj P2
  1. Txiav daim ntawv los npog sab saum toj ntawm daim ntawv qhia zaub mov
  2. Siv daim kab xev los lo daim ntawv xim rau ntawm lub npov kom npog qhov kev tshaj tawm
  3. Thaum kawg txoj haujlwm tiav lawm !!!

Pom zoo: