Cov txheej txheem:

SpotLight Interactive Nightlight: 4 Kauj Ruam
SpotLight Interactive Nightlight: 4 Kauj Ruam

Video: SpotLight Interactive Nightlight: 4 Kauj Ruam

Video: SpotLight Interactive Nightlight: 4 Kauj Ruam
Video: 3D hologram fan portrait solution. Who wanna date this holographic sexy lady #3dhologramfan 2024, Kaum ib hlis
Anonim
Image
Image
Circuitry
Circuitry

SpotLight yog lub teeb pom kev sib tham hmo ntuj uas siv los ntawm Arduino, ua rau lub ntsej muag ntxim ntxim ntxim nyiam. Lub teeb muaj peb yam sib tham sib nta:

1) Ntxig ib npib rau sab nraum qab ntawm SpotLight kom tig lub teeb qhib thiab kaw.

2) Tsiaj lub SpotLight los ua kom lub teeb tig xim xiav zoo nkauj.

3) Tham nrog lub tsom teeb. Qhov tsis muaj kev hem thawj, suab nrov nrov dua yuav ua rau nws lub qhov muag tig ntsuab. Qes qis yuav ua rau lawv tig liab.

Khoom siv

1. Arduino pawg thawj coj saib. Hauv qhov haujlwm no kuv siv Uno.

2. Ob RGB coj (https://www.adafruit.com/product/159)

3. Tus kws yees duab yees duab (https://www.adafruit.com/product/161)

4. Lub microphone (https://www.adafruit.com/product/1713)

5. resistors: (6) 2.2kΩ resistors, (2) 1.5kΩ resistor

6. Ib rooj plaub. Kuv pom Pug piggy-bank (Puggy Bank?) Ntawm pab tub rog cawm seej. Tsim kom muaj tswv yim thiab nrhiav koj tus kheej cov ntaub ntawv tshwj xeeb los ua qhov kev tsim no yog koj li!

Kauj ruam 1: Circuitry

Nov yog daim duab qhia chaw. Cov khoom loj yog raws li hauv qab no:

Tswv yim

1) Microphone - hauv qab sab laug ntawm daim duab, siv los mloog suab nrov

2) Photocell (sab saum toj nruab nrab -sab laug) - siv los tshuaj xyuas yog tias koj tab tom ua dev

3) On/Off hloov. Qhov no tau qhia ua lub pob hauv daim duab (sab laug sab laug), tab sis peb siv tinfoil hauv qhov haujlwm kawg los tsim qhov qhib Circuit Court uas tuaj yeem raug kaw los ntawm npib. Qhov no ua tau zoo ib yam li lub pob uas kaw lub Circuit Court thaum thawb mus.

Tso zis

Ob lub RGB leds, nrog cov thaiv zoo ib yam.

Kauj ruam 2: Code

Code
Code

Qhov chaws rau qhov haujlwm no muaj nyob ntawm no:

github.com/mathisonian/spot-light-nightlig…

Nco ntsoov tias cov pins koj siv ntawm koj cov arduino phim kom raug nrog cov pins siv hauv cov cai. Nyob ntawm seb koj tau siv cov khoom li cas koj yuav tau hloov tus nqi no:

github.com/mathisonian/spot-light-nightlig…

Txoj cai no siv Fast Fourier Transform (FFT) los hloov lub suab yoj yoj uas tau txais los ntawm lub microphone mus rau hauv qhov ntau zaus. Qhov no tso cai rau peb mloog ntau zaus thiab hloov xim ntawm LEDs raws li qhov ntawd. Cov cai tau teeb tsa kom tig lub teeb liab thaum qhov qis kawg ntawm qhov siv zaus yog qhov tseem ceeb thiab ntsuab thaum qhov siab kawg yog. Sim ua si nrog cov ntsuas no thiab pom tias koj tuaj yeem ua dab tsi!

Kauj Ruam 3: Rooj plaub

Rooj plaub
Rooj plaub
Rooj plaub
Rooj plaub

Thawj qhov - nrhiav koj tus kheej rooj plaub!

Tus dev no los ntawm pab tub rog cawm seej, tab sis kuv paub tseeb tias koj tuaj yeem pom lwm yam khoom zoo kom tig los ua qhov tsaus ntuj. Txij li tus dev hollow nws tso cai rau peb tso cov khoom siv hluav taws xob ncaj qha rau hauv lub cev.

Kuv siv lub laum los tsim qhov hauv qhov muag dev thiab ib qho me me nyob tom qab pob ntseg sab laug tso rau hauv lub xov tooj ntawm tes. Kuv kuj tau ua tag nrho tom qab lub pob ntseg zoo kom lub microphone tuaj yeem khaws cov suab zoo dua; lub microphone tau teeb tsa sab hauv lub taub hau ze ntawm lub qhov. Siv cov kua nplaum kub los kho cov khoom ntawd nyob hauv qhov chaw.

Txhawm rau tsim cov nyiaj npib ua haujlwm, txuas cov xov hlau uas tau qhia hauv kab lus raws li txuas mus rau lub pob thiab hloov pauv txhua sab kom cais cov swaths ntawm tinfoil. Muab ob daim ntawm cov ntawv ci tso rau kom deb txaus sib nrug kom lub npib (piv txwv li ib lub hlis twg) tuaj yeem kov ob qho tib si ib txhij, kaw qhov Circuit Court.

Kauj ruam 4: Txaus siab rau

Txaus siab rau
Txaus siab rau
Txaus siab rau
Txaus siab rau

Muaj kev lom zem nrog koj qhov kev tsim tshiab! Yog tias koj muaj teeb meem ua raws cov lus qhia no tsis txhob tso qhov teeb meem ntawm GitHub chaw cia khoom, lossis tag rau kuv ntawm twitter @mathisonian.

Pom zoo: