Cov txheej txheem:

Rudolph Christmas Crafting: 4 Kauj Ruam
Rudolph Christmas Crafting: 4 Kauj Ruam

Video: Rudolph Christmas Crafting: 4 Kauj Ruam

Video: Rudolph Christmas Crafting: 4 Kauj Ruam
Video: Npau suav tham hluas nkauj ris xib liv (underwear) ntub tag 2024, Kaum ib hlis
Anonim
Rudolph Christmas Crafting
Rudolph Christmas Crafting

Nyob zoo txhua tus, Kuv tab tom npaj me ntsis Arduino Christmas rhiav hnub no thiab xav tias vim li cas ho tsis tig nws mus rau hauv kev qhia;)

Cov khoom siv Arduino pib yooj yim yuav tsum muaj txhua yam koj xav tau. Ntxiv rau koj xav tau qee cov cuab yeej siv yooj yim xws li kua nplaum thiab txiab.

Cov lus qhia no haum rau Arduino pib txij li nws ua haujlwm yooj yim nkaus xwb. Tab sis koj yuav tsum tau ua haujlwm nrog Arduino ua ntej thiab muaj Arduino IDE thiab ua haujlwm.

Koj tuaj yeem nrhiav thiab rub tawm txhua daim duab Arduino, duab thiab lwm yam ntaub ntawv hauv GitHub chaw cia khoom.

Muaj kev lom zem

PS:

Daim duab Rudolph yog pej xeem sau thiab tuaj yeem pom ntawm no.

Cov cuab yeej tsim qauv tsim qhov twg ua nrog qhov program txias hu ua Fritzing.

Thiab qhov kawg tab sis tsis tsawg, Kuv tau txais kev tshoov siab los ntawm cov vev xaib no, saib kom paub meej ntxiv:

Arduino ntsais muag nyeem

Arduino photoresistor nyeem

Arduino khawm qhia

Arduino suab paj nruag qhia

Jingle Tswb nrog Arduino thiab buzzer

Koj tseem tuaj yeem pom ntau cov nkauj Christmas nyob hauv lub rooj sab laj no.

Kev tawm tswv yim zoo siab;)

Kauj Ruam 1: Qhia Rudolph

Qhia Rudolph
Qhia Rudolph

Peb xav tau daim ntawv Rudolph, duab los qhia, txiab lossis rab riam thiab kua nplaum me ntsis.

Peb tab tom yuav lo rau Rodulph ntawm daim duab duab, tab sis yuav tsum tau siv lub qhov me me rau LED ua ntej.

Nruab qhov luam tawm ntawm daim npav thiab saib qhov twg Rudolph lub qhov ntswg yuav mus, tom qab ntawd ua qhov me me hauv daim duab los loj txaus rau LED. Tam sim no koj muaj ob txoj kev xaiv. Yog tias koj paub tseeb tias koj tau pom qhov chaw raug rau LED tsuas yog lo Rudolph ntawm daim duab los qhia. Yog tias tsis yog, tsuas yog siv daim ntawv kaw los muab nws lub tsev nyob ib ntus rau tam sim no.

Kauj Ruam 2: Teeb Pom Qhov ntswg

Teeb Pom Qhov Ncauj
Teeb Pom Qhov Ncauj

Peb xav tau LED, 220Ω resistor, lub khob cij. xov hlau, kab xev thiab txiab.

Npaj qee daim kab xev kom koj npaj tau rau tom qab.

Tom qab ntawd peb ua tib zoo khoov ob txhais ceg ntawm LED kom txog thaum peb muaj nws zoo li L-puab.

Txuas cov ceg ntawm LED nrog cov xov hlau thiab teeb tsa lub khob cij raws li qhia hauv daim duab.

Tam sim no muab cov LED tso rau hauv lub qhov ntawm daim duab los qhia thiab siv daim kab xev los kho nws qhov chaw.

Qhib qhov "Kauj ruam 2" kos duab los ntawm qhov txuas GitHub projekt nrog Ardunio IDE thiab rub nws.

Saib Rudolph lub qhov ntswg ntsais, ua tau zoo:)

Kauj Ruam 3: Hnov Christmas Ntsuj Plig

Hnov Christmas Ntsuj Plig
Hnov Christmas Ntsuj Plig

Peb xav tau ntau cov xov hlau thiab lub suab nrov nrov.

Rudolphs lub qhov ntswg ntsais muag yuav ua rau koj muaj kev zoo siab Christmas tab sis peb tab tom yuav ua kom nws nce siab.

Ua tibzoo saib ntawm lub khob cij thiab xaim txhua yam raws li qhia hauv qab no.

Peb siv passive buzzer los ua suab me me rau peb ans Rudolph. Tsis zoo li lub suab nrov nrov uas peb tsuas tuaj yeem qhib thiab uas yuav ua suab nrov, lub suab nrov nrov tso cai rau peb los tswj lub suab nrov.

Tshaj tawm daim duab "Kauj Ruam 3" thiab mloog.

Ua tau zoo!

Kauj Ruam 4: Nqa cov Reins

Coj mus rau lub Reins
Coj mus rau lub Reins

Peb xav tau photoresistor, khawm, ob 10 kΩ resistors thiab ntau cov xov hlau.

Lub sijhawm tam sim no Rudolph yuav ntsais muag thiab ua nws lub suab hauv lub voj kom txog thaum peb tsis ua haujlwm ntawm arduino.

Lub tswv yim zoo yog kom nws ntsais muag thaum yav tsaus ntuj thiab ua kom nws ua suab nrov sai li sai tau thaum muaj qee yam tshwm sim.

Peb yuav siv tus kws kho duab yooj yim ua rau nws lub qhov muag ntsais thaum nws tsaus ntuj. Ntxiv nws rau daim ntawv qhia zaub mov raws li qhia hauv daim duab.

Tus photoresistor yog lub ntsuas hluav taws xob sib piv, nws muab rau koj tsis tsuas yog 0 lossis 1 lub teeb liab tab sis ntau qhov txiaj ntsig nyob ntawm seb nws ntsuas li cas.

Tshaj tawm qhov kos duab "Kauj Ruam 4" thiab qhib qhov ntsuas nyob hauv Arduino IDE.

Koj tuaj yeem pom lub ntsuas ntsuas nyeem ntawv, tso koj tus ntiv tes nyob saum lub photoresistor thiab nyeem yuav hloov. Tam sim no teeb tsa qhov chaw kom Rudolph yuav ntsais muag thaum yav tsaus ntuj. Lub treshhold yuav txawv nrog lub teeb uas koj muaj hauv koj chav thiab txawm tias yog lub hli ci yog tias koj muaj koj Rudolph sawv ntawm lub qhov rooj.

Tom ntej no peb xav tau qee yam los ua kom lub suab nrov. Koj tuaj yeem siv txhua lub sensor koj muaj, tsuas yog sim me ntsis. Kuv yuav muab piv txwv yooj yim rau koj nrog lub pob.

Txuas lub pob raws li qhia hauv daim duab, nws yuav muab qhov yooj yim rau koj 0 lossis 1 rau kev tawm tswv yim. Thawb nws thiab Rudolph yuav ua suab paj nruag.

Qhov ntawd yog nws, Rudolph tau npaj rau Christmas. Wohooo / o/: D

Kuv vam tias koj tau lom zem nrog txoj haujlwm me me no. Tsis pub dawb ntxiv cov LEDs ntxiv, ua si lwm suab paj nruag lossis ntxiv ntau hom kev ntsuas.

Pom zoo: