Cov txheej txheem:

Lightcatcher Hnav: 7 Kauj Ruam
Lightcatcher Hnav: 7 Kauj Ruam

Video: Lightcatcher Hnav: 7 Kauj Ruam

Video: Lightcatcher Hnav: 7 Kauj Ruam
Video: Snake trap,short snake,daily trap #snaketrap 2024, Lub Xya hli ntuj
Anonim
Lightcatcher Hnav
Lightcatcher Hnav
Lightcatcher Hnav
Lightcatcher Hnav

Cov khaub ncaws no yog npaj kom pom kev thaum nws ib puag ncig tsaus ntuj. Nws ua qhov no hauv ob txoj hauv kev: los ntawm cov xim ci-hauv-qhov tsaus ntuj, thiab los ntawm cov duab hluav taws xob-tswj Arduino Circuit. Nws yog ib feem ntawm kev hnav khaub ncaws ua las voos thiab mus nrog lub tsho dazzle thiab cov kiv cua fiber ntau optic. Cov ris tsho no yog npaj los pab qhia tus kheej thiab ntxiv rau qhov ua yeeb yam thiab tsim cov khaub ncaws hnav. Cov khaub ncaws hnav khaub ncaws yog nyob ntawm qhov sib piv ntawm cov tswv yim los ntawm qhov muab tso rau qis photoresistor. Kev hloov pauv me me ntawm cov xim ci thiab LEDs ua rau cov khoom nruab nrab hmo ntuj yuav luag tsis pom thaum nruab hnub. NCO TSEG: Cov duab tseem ceeb tso tawm yog daim duab ntawm kev hnav khaub ncaws thaum nruab hnub, photoshopped mus rau qhov zoo tshaj plaws ntawm kev hnav khaub ncaws. Saib daim duab thib ob seb nws zoo li cas thaum hmo ntuj.

Kauj ruam 1: Cov ntaub ntawv

Glow-in-the-dark paint (Cov no zoo heev, tab sis kuj tseem muaj cov khoom zoo dua: https://glowinc.com/SearchResult.aspx?CategoryID=2)Lilypad ArduinoSolder/Soldering IronProtoboard lossis cov cuab yeej saum npooCircuit Cheebtsam (saib cov kauj ruam 3, 4, thiab 5) 3 khawm cov roj teeb ntawm tes Ib qho dej ntws zoo nkauj, ua las voos zoo nkauj. Qhov no yog qhov hnav ris tsho pom nrog lub tsho khi nyob hauv qab nws.

Kauj Ruam 2: Xim Nrog Glow-In-The-Dark Paint

Xim Nrog Glow-Hauv-Qhov-Tsaus Xim
Xim Nrog Glow-Hauv-Qhov-Tsaus Xim

Kuv muab cov ntsiab lus piav qhia txog lub caj dab thiab lub duav thiab txoj kab khov nyob ib puag ncig lub phuam qhwv caj dab. Kuj tseem muaj qee cov cim ib nrab nyob ib ncig ntawm daim tiab.

Kauj Ruam 3: Ua Tus Photoresistor Circuit

Ua tus Photoresistor Circuit
Ua tus Photoresistor Circuit

Kuv tus photoresistor mus nruab nrab ntawm 40k (lub teeb) thiab 200k (tsaus ntuj). Nqa ib sab mus rau lub zog thiab lwm sab mus rau 200k resistor. Tus resistor mus rau hauv av. Vout mus nruab nrab ntawm ob lub resistors. // lej tom qab no: // V = IR; Vdd = i (R1+Rphoto) // Vdd/(R1+Rphoto) = Vout/Rphoto // Vout = Rphoto/(R1+Rphoto) * Vdd // yog tias nws lub teeb tawm (200k), qhov hluav taws xob tso tawm yog (200/(200+200)) lossis 1/2 // thiab yog tias nws tsaus, qhov hluav taws xob tso tawm yog (40/(200+40)) lossis 1/6 // yog li qhov ntau ntawm qhov tso tawm qhov hluav taws xob yog 1/6 - 1/2 zaug ntawm qhov hluav taws xob. Tam sim no nuv nws

Kauj Ruam 4: Ua Lub Teeb Hluav Taws Xob

Ua ib Flasher Circuit
Ua ib Flasher Circuit
Ua ib Flasher Circuit
Ua ib Flasher Circuit
Ua ib Flasher Circuit
Ua ib Flasher Circuit

Ua raws daim duab qhia chaw saum toj no. Yog tias koj tuaj yeem ua qhov saum toj no-mount, ua nws. Nws hnyav dua thiab yooj yim dua rau hnav. Peb tsis muaj cov khoom tsim nyog rau kev teeb tsa saum npoo, yog li peb tau muab nws tso rau qee qhov protoboard. Koj xav tau: 2 100k resistors 2 500 resistors 2 capacitors 2 transistors 2 LEDs Cov LEDs yuav nyem rov qab thaum lub zog txuas nrog.

Kauj ruam 5: Program Arduino

Program Arduino
Program Arduino

const int photopin = A0; const int switchpin = 1; const int qis tshaj Pin = 2; const int siab tshaj Pin = 4; // yog tias koj xav ntxiv cov kab hluav taws xob txuas ntxiv lossis cov teeb pom kev zoo sib xws, koj tuaj yeem ntxiv lawv nruab nrab ntawm qis tshaj thiab // siab tshaj plaws. int lub teeb = 0; int qhov ci = 0; int hloov chaw = 0; teeb tsa tsis muaj dab tsi () {pinMode (switchpin, INPUT); pinMode (photopin, INPUT); rau (int thisPin = lowestPin; thisPin <= highestPin; thisPin ++) {pinMode (thisPin, OUTPUT); }} // cov lus hais tawm-tus lej tuaj yeem tsis suav nrog kom tig qhov ua haujlwm ploj ntawm kev hnav khaub ncaws mus rau digital on-lossis-off nyob ntawm sab nraud // ci ntsa iab. lub voj void () {// switchstate = digitalRead (switchpin); switchstate = HIGH; yog (switchstate == HIGH) {lub teeb = analogRead (photopin); ci ntsa iab = 255 - (lub teeb/4); // photoresistor: 40k-200k // if (light> 100) {brightness = HIGH;} // else {brightness = LOW;} for (int thisPin = lowestPin; thisPin <= highestPin; thisPin ++) {analogWrite (thisPin, ci ntsa iab)); }}}

Kauj Ruam 6: Xaws rau Hnav

Xaws rau Hnav
Xaws rau Hnav
Xaws rau Hnav
Xaws rau Hnav

Tus photoresistor yuav tsum nyob sab nraud; cov coj yuav tsum hla dhau. Nco ntsoov txhua yam yog insulated- cua sov ntsws tubing yog qhov zoo tshaj plaws! Kuv tau hnav khaub ncaws yooj yim dua ob txheej, yog li kuv xaws lub voj voog rau hauv qab txheej. Nws yog txoj cai los ntawm lub plawv, rau ob qho laj thawj: tus kws yees duab nyob hauv qhov chaw zoo, tsau qhov chaw, thiab nws tseem yog lub cim zoo tso rau sawv cev rau tus seev cev. Cov hluav taws xob hluav taws xob tau siv hluav taws xob ntawm peb daim kab xev-khawm roj teeb ntawm tes. Nruab nrab ntawm + lub zog thiab lwm yam yog qhov hloov pauv swb kom tswj tau tag nrho kev hnav khaub ncaws 'lub zog. Txuas sab ntawm lub zog mus rau sab nkag ntawm lub photoresistor (tham hauv kauj ruam 3) thiab rau + tus pin ntawm arduino. Txuas lub - sab ntawm lub roj teeb mus rau - sab ntawm Arduino, - - ib feem ntawm cov kab hluav taws xob photoresistor (saib cov kauj ruam 3), thiab ib feem ntawm cov hluav taws xob hluav taws xob uas tsuas yog kov ib tus pin ntawm txhua lub transistors. Tus pin tso tawm los ntawm Arduino (tswj los ntawm photoresistor) txuas rau lub teeb hluav taws xob ntawm LEDs.

Kauj ruam 7: Txaus siab rau

Txaus siab rau!
Txaus siab rau!

Nco ntsoov tso nws tawm hauv lub hnub rau ib ntus kom koj lub ntsej muag ci hauv qhov tsaus xim muaj sijhawm them nqi.

Pom zoo: