Cov txheej txheem:

Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag Board: 5 Cov kauj ruam
Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag Board: 5 Cov kauj ruam

Video: Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag Board: 5 Cov kauj ruam

Video: Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag Board: 5 Cov kauj ruam
Video: Начало → Изучайте английский → Освойте ВСЕ ОСНОВЫ АНГЛИЙСКОГО ЯЗЫКА, которые вам НУЖНО знать! 2024, Hlis ntuj nqeg
Anonim
Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag tso suab
Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag tso suab
Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag tso suab
Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag tso suab
Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag tso suab
Lub Halloween Scare Machine Siv PIR, 3D Luam Pumpkin thiab Troll Arduino Compatible Audio Pranker/tswv yim tso dag tso suab

Pawg Troll tsim los ntawm Patrick Thomas Mitchell ntawm EngineeringShock Electronics, thiab tau txais nyiaj tag nrho ntawm Kickstarter tsis ntev dhau los.

Kuv tau txais kuv qhov khoom plig ob peb lub lis piam ntxov los pab sau qee qhov piv txwv ntawm kev siv thiab tsim Arduino tsev qiv ntawv hauv kev sim ua kom yooj yim me ntsis rau txoj haujlwm.

Yog li dab tsi yog "The Troll" - nws yog Arduino (UNO) sib xws suab prank board, Nws muaj ATMega 328P nti onboard, xaiv lub pob (tus neeg siv tuaj yeem ua haujlwm tau), DIP hloov (4 hloov, siv tau programmable), thiab LDR (Photo resistor txuas nrog A0). Nws muaj ob lub suab, koj tuaj yeem siv ib qho kom dhau lub suab txawm tias - thiab muaj suab los ntawm The Troll txhaj rau saum lwm lub suab. Nws kuj tseem muaj tus hais lus lub taub hau rau txuas rau ntawm lub rooj hais lus, thiab lub amp me me ntawm lub nkoj. Ib tus neeg hais lus sab nraud nrog lub amp zoo tau pom zoo.

Kuj tseem muaj qhov "sab nraud" txhais tus pin (Digital PIN 9), cov ntsuas tuaj yeem txuas rau "ua rau" lub suab. (PIR sensor, lub suab sensor, txwv tsis pub hloov, kev co lub zog, tsuas yog hais txog ib qho digital sensor uas muaj ib qhov tso tawm tuaj yeem siv tau.)

Peb kuj tseem muaj kev nkag mus rau txhua tus lej sib piv (A0 txog A5) - A0 tau siv los ntawm LDR, qhov no qhib qhov muaj peev xwm siv I2C li.

Muaj peb txoj hauv kev los txhawb nws - 9v roj teeb, ac rau dc adapter, thiab usb, muaj tus jumper tus pin uas xav tau teeb tsa yog tias koj siv roj teeb lossis lub adapter adapter.

Muaj AP23582 nti uas muaj cov qauv suab.

Muaj 57 lub suab muaj nyob ntawm cov nti.

Kickstarter Txuas (Cov phiaj xwm tau dhau tab sis cov ntaub ntawv ntawm no zoo).

EngineeringShock Electronics project nplooj ntawv.

Khoom siv

Txhawm rau program Troll koj xav tau Arduino UNO nrog lub nti tshem tawm - Yog peb tshem tawm cov nti tawm ntawm The Troll, thiab muab tso rau hauv Arduino UNO thiab program nws. - Koj yuav tsum tau saib xyuas thaum ua qhov no kom tsis txhob khoov tus pin, thiab ib txwm tshuaj xyuas kom paub tseeb tias tus yuam sij ntawm tus nti phim tus yuam sij ntawm lub qhov (socket). (Ib nrab lub voj voog nyob rau hauv ib qho kawg ntawm tus nti).

Lawv tuaj nrog cov duab kos los ntawm Patrick - tab sis qhov kev lom zem tiag tiag ntawm lub cuab yeej no, yog lub program nws ua yam koj xav tau. Nws tsis nyuaj tshem cov chips, siv koj lub sijhawm, thiab ceev faj - uas tau hais tias, peb yuav tsis muaj lub luag haujlwm yog tias koj ua rau koj lub nti lossis cov khoom puas. Ua qhov no ntawm koj tus kheej txoj kev pheej hmoo.

Cov khoom siv thiab cov ntaub ntawv STL:

Rau qhov piv txwv no, koj yuav xav tau lub tshuab luam ntawv 3D (lossis nkag mus rau ib qho uas koj tuaj yeem siv tau ib ntus, kuv luam tawm dhau 12 teev). * Xaiv tau koj tuaj yeem tos kom ze rau Xus, thiab yuav lub taub dag yas, lossis dab lossis dab tsi.

Koj tseem tuaj yeem xav luam 3D lub npov rau Lub Rooj Sib Tham Troll.

Lub thawv ntawm Thingiverse (qhov no yog kuv tus qauv thiab kuv zoo siab txais tos kev txhim kho).

Halloween Pumpkin los ntawm 3DWP

Kuv luam tawm "HalloweenPumpkinCover" los ntawm qhov kev sib dhos no, Kuv txiav txim siab tsis siv lub taub dag lossis rov pib dua qhov kev sib tw no, vim tias kuv tsis paub meej txog qhov loj ntawm lub qhov rau PIR sensor, thiab tsis paub meej txog qhov loj ntawm lub nplhaib neopixel siv. - Qhov no tsis ua li cas, txij li "npog" tsuas yog tso ncaj rau saum kuv lub npov.

Lwm yam cuab yeej xav tau:

Koj yuav xav tau cov hlau txuas (nyob ntawm seb lub nplhaib neopixel twg koj tau txais), tej zaum koj yuav xav tau (lossis xav tau) ib kauj ruam me ntsis. Kuv siv tus ntsia hlau tsav nrog me ntsis kuv muaj, tab sis koj yuav xav siv lub laum me me.

Tej zaum koj yuav xav tau cov kua nplaum kub, lossis daim nplaum nplaum rov qab.

Kho vajtse yog yooj yim:

Koj xav tau "Troll" pawg thawj coj - ua siab ncaj Kuv tsis paub tseeb tias cov no yuav raug muag dhau lub kickstarter - yog li koj yuav xav tau hu rau Patrick los ntawm nws lub vev xaib.

Mini PIR sensor ib yam dab tsi zoo li ib daim duab saum toj no, lossis ntawm no. Tsuas yog ib qho piv txwv - Ua koj lub tsev ua haujlwm ua ntej yuav khoom dab tsi - tej zaum koj tuaj yeem pom cov no pheej yig dua, lossis ntawm Amazon, lossis Aliexpress yog tias koj nyiam cov chaw ntawd.

Thaum kawg koj yuav xav tau lub nplhaib neopixel (nrog tsawg kawg 12 pixels) thiab kuv xav kom sim ua kom tau ib qho nrog cov xov hlau twb tau muab muag rau nws.

Lub nplhaib nrog 16 pixels yuav tsum ua haujlwm, koj yuav xav hloov txoj cai me ntsis rau cov lej pixel loj dua.

Kuv xav tias txhua yam loj dua koj yuav muaj lub sijhawm nyuaj kom nws haum.

Kauj Ruam 1: 3D Luam Ntawv ……

3D Luam Ntawv ……
3D Luam Ntawv ……
3D Luam Ntawv ……
3D Luam Ntawv ……
3D Luam Ntawv ……
3D Luam Ntawv ……

Ntawm kuv Wanhao Duplicator I3 v1 qhov no siv sijhawm me ntsis los luam tawm. Kuv siv tus qauv yam tsis muaj kev txhawb nqa. Ntawm qhov kev daws teeb meem ntawm.1 thiab 35% infill. Nrog lub ntuj PLA filament. Cov ntawv luam tawm dhau 12 teev. Nws yog ib qho ntawm cov ntawv sau ntev tshaj plaws uas kuv tau ua, thiab kuv tsuas yog cia siab tias tsis muaj dab tsi yuav mus tsis raug. Tsis muaj dab tsi mus tsis raug, thiab kuv tau taub taub taub.

Thaum, lub taub dag tau luam tawm - Kuv tau luam tawm lub hau, thiab ua ob peb lwm yam me me rau qhov haujlwm sib txawv uas siv Wanhao Duplicator I3 ntxiv - lub npog npog tau nyob ntawm kev daws teeb meem ntawm.1 thiab 35% ntxiv, siv cov xim PLA txho., thiab tau luam tawm sai dua.

Tsis muaj dab tsi ua tab sis tos….

Kauj Ruam 2: Thaum Peb Tos….. (Software)

Thaum Peb Tos….. (Software)
Thaum Peb Tos….. (Software)
Thaum Peb Tos….. (Software)
Thaum Peb Tos….. (Software)
Thaum Peb Tos….. (Software)
Thaum Peb Tos….. (Software)

Saum toj no yog qee qhov kev xeem tom qab kuv tos kom luam tawm kom tiav. - Tsuas yog Arduino UNO nrog Neopixel Ring (12 leds) sab hauv. Txij ntawm no mus, Kuv tsis tau ua qhov rau PIR, lossis ib yam dab tsi.

Thaum pom ntau dua yog tias 12 pixels yuav pom lub taub dag, thiab tsuas yog hom "cov tsiaj ntawv" Kuv tuaj yeem tawm ntawm nws li cas. Daim duab kos siv tsuas yog Adafruit piv txwv kos duab.

Cov txiv kab ntxwv, ntshav thiab daj tag nrho zoo li zoo ib yam rau kuv…. Kuv nyiam dawb thiab.

Yog li ntawm qhov no kuv tau teeb tsa los ua haujlwm ntawm kev kos duab uas yuav siv Pawg Troll, thiab PIR.

Raws li kuv tau hais ua ntej, Kuv tau ua haujlwm ua qee qhov piv txwv thiab tsim Arduino Library rau pawg thawj coj saib - yog li kuv yoog raws ib qho piv txwv uas kuv tau ua. Thiab tshem qee qhov cai los ntawm Adafruit piv txwv.

Kuv lub tsev qiv ntawv - thiab cov lej tuaj yeem pom ntawm no. Lub tsev qiv ntawv tuaj yeem teeb tsa los ntawm tus thawj tswj tsev qiv ntawv Arduino.

Piv txwv rau txoj haujlwm no hu ua "TheTroll_SpookyArray_v2" thiab tuaj yeem pom hauv cov piv txwv.

Koj tseem yuav xav tau Adafruit Neopixel lub tsev qiv ntawv uas tuaj yeem teeb tsa tau los ntawm tus thawj tswj tsev qiv ntawv, yog tias koj tsis muaj nws.

Kuv muaj qee qhov yeeb yaj kiab ntawm kev siv TheTroll lub tsev qiv ntawv, thiab piv txwv ntawm yuav ua li cas sab nraud ua haujlwm nrog kuv lub tsev qiv ntawv.

Sab Nraud Trigger Video, Taw Qhia rau TheTroll board (Ntev me ntsis), Troll nrog Me Buddy Talker (LBT yog lub rooj hais lus tseem ua los ntawm Patrick uas siv tib lub suab) - Alert liab!, Siv DIP Hloov, thiab thaum kawg Txoj haujlwm no - Troll Arduino Audio Pranker Halloween Project (Daim vis dis aus)

Ib qho nyuaj ua yog kom muaj cov duab LED mus thaum lub suab tseem tab tom ua si, los ntawm teeb tsa lub tsev qiv ntawv kom tsis txhob ncua lub suab, thiab siv tib lub tswv yim zoo li piv txwv li Blink yam tsis ncua, kuv muaj peev xwm ua (ntau dua lossis tsawg dua) muaj cov animations mus thaum lub suab tseem ua si. - Lub sijhawm tseem tshuav me ntsis, (lossis qee qhov tawm ntau), tab sis kuv tab tom ua haujlwm ntawd.

Qhov no tau ua tiav ntawm kab 154 txog 161 siv ua thaum sib xyaw ua ke, thiab rov ua dua ntawm kab 170 thiab 183. Qhov sib txawv ntawm qhov ntsais tsis tas piv txwv thiab qhov no yog kuv siv ib pliag thiab saib seb puas yog millis - yav dhau los Millis tseem tsawg dua qhov ntev ntawm lub suab. Qhov uas ntsais muag yam tsis tau ncua yog muab piv los saib yog tias sijhawm ntau dhau lawm, siv daim ntawv IF

Kuv tab tom siv DIP hloov 4 txhawm rau teeb tsa qhov sib piv yuav tsum yog li cas yog qhov cuam tshuam. Hauv qhov no, PIR sensor tso tawm mus HIGH yog tias nws raug tsoo, nyob qis qis rau me ntsis, thiab mus qis.

Yog li kab 74 - 76 hais tias, txheeb xyuas qhov hloov pauv (teeb tsa rau HIGH lossis LOW), txheeb xyuas PIN9 (Tus pin sab nraud sab nraud) tawm tsam tus nqi ua haujlwm - yog tias nws HIGH - teeb tus chij.

Kab 79 txog 111 hais tias - yog tias tus chij tau teeb tsa kom xaiv cov xim ib nrab, thiab cov duab (Cov xim tuaj yeem hloov pauv yog tias koj tsis nyiam kuv cov kev xaiv ntawm no.) Qhov no ua tiav nrog cov ntaub ntawv hloov pauv, uas yog nrawm txoj hauv kev ua ib pawg ntawm IF nqe lus.

Hauv lub tsev qiv ntawv, Kuv muab txoj hauv kev los nyeem DIP hloov pauv, uas rov qab tus lej nruab nrab ntawm 0 thiab 15, Kuv tseem muab txoj hauv kev los nyeem ib qho DIP hloov los ntawm koj lub ntsiab lus tseem ceeb, piv txwv li ntawm kab 124 - Cov zis rau DIP Hloov mus LOW yog tias lawv nyob hauv ON txoj haujlwm, txwv tsis pub lawv yog HIGH (Hauv OFF txoj haujlwm). Thiab kab 124 hais tias, yog SW4 (hloov 4) yog ON ces ua rau HIGH.

Kab 130 - 137 yuav ua suab los ntawm lub tsev qiv ntawv suab. Txhua qhov kev hu yog tsim los ntawm lub cim xeeb qhov chaw ntawm lub suab ntawm lub nti, thiab ntev npaum li cas ntawm kev siv qeeb. Txoj haujlwm no tam sim no yog lub luag haujlwm thaiv, uas txhais tau tias txhua yam ntxiv nres thaum lub suab ua si. Txhawm rau dhau qhov no, Kuv teeb tsa lub sijhawm tos rau xoom, thiab cia cov haujlwm neopixel daws qhov ncua sijhawm.

Kab 57 yog cov suab uas peb xav siv hauv lub taub dag - Kuv tau xaiv lub suab 13 "txaus ntshai" lossis "halloweenie". Ntau ntxiv tuaj, lossis cov suab no tuaj yeem hloov mus rau lwm yam. (Lub tsev qiv ntawv suab muaj 58 lub suab, yog li qhov no tsuas yog ib qho piv txwv me me ntawm lawv). Cov no yog cov suab tsis zoo thaum ua rau muaj teeb meem, yog li yog koj ntxiv ntxiv, koj yuav xav nco ntsoov hloov kab 133 uas xaiv lub suab tsis zoo los ua si. Txhua "npe" ntawm lub suab kaw yog tsim los ntawm qhov chaw nco ntawm lub suab ntawm lub nti, thiab tus nqi qeeb.

Kuv xav tias yog hais txog nws rau software, muaj lwm qhov piv txwv suav nrog hauv Arduino Library rau The Troll board. Zoo siab tshawb nrhiav, hloov pauv, thiab qhia tawm:-)

Kauj Ruam 3: Kev Tsim Kho …

Kev Tsim …
Kev Tsim …
Kev Tsim …
Kev Tsim …
Kev Tsim …
Kev Tsim …

Tom qab lub tshuab luam ntawv ua tiav, kuv pib sim kom paub tseeb tias neopixels yuav ua haujlwm thiab ci ntsa iab txaus.

Tom qab ntawd kuv tau siv lub cuab yeej tig nrog me ntsis laum me me, thiab ua kom lub qhov me me nruab nrab ntawm ob lub qhov muag ua qhov ntsuas qhov rau cov kauj ruam me ntsis. Kuv tsuas yog siv cov kauj ruam me ntsis nrog cov ntsia hlau tsav tsheb, nres txhua tam sim no thiab tom qab ntawd saib seb PIR sensor puas haum. Kuv xav kom nws nruj, thiab tsis siv hom kua nplaum lossis lwm yam zoo li ntawd. Yog li feem ntau nws tuaj yeem raug thawb rov qab yog xav tau.

Lub sijhawm ntawd, Kuv tseem muab lub qhov tso rau sab nraub qaum (siv cov cuab yeej tig thiab siv lub ntsis), uas yog qhov uas kuv tau npaj rau khiav cov xov hluav taws xob tawm ntawm - thiab kuv tau ua rau qee qhov demo/kuaj, tab sis thaum kawg kuv tej zaum yuav tsum tsis tau ua lub qhov - vim kuv txiav txim siab luam tawm lub hau los ntawm lwm lub taub dag thiab siv nws.

Yog li rau lub npog, Kuv tseem siv cov kauj ruam me ntsis, thiab ua lub qhov loj dua kom xaim xov tab sis, Kuv tawm teeb lub qhov me ntsis los sim thiab ua kom lawv tawm ntawm txoj kev neopixels.

Siv qee daim kab xev nplaum rov qab, Kuv kaw lub neopixel ntiv nplhaib, thiab siv cov kua nplaum me me (tsawg heev - tsuas yog thaum kuv xav tau rov qab sab hauv rau qee qhov laj thawj) - Kuv tau npog lub hau rau hauv qab ntawm taub dag.

Kuv cov xov hlau tsuas yog ntev txaus, thiab taub dag tam sim no muaj lub hauv paus los zaum ntawm lub hauv paus, tom qab ntawd zaum ntawm lub npov kuv tau tsim - (Nws tsuas yog zaum ntawm lub npov, tsis tau tuav los ntawm ib yam dab tsi - yog li, qee leej tuaj yeem tuaj thiab khob nws dhau)

Thiab qhov ntawd yog hais txog nws ….. Kuv xav hais tias qhov no tau tsim nrawm, tab sis kuv yuav tsum tau tos rau lub tshuab luam ntawv 3D - yog li nws yog qhov zoo nkauj qeeb …..:-)

Kauj Ruam 4: Ntau Cov Duab …

Cov duab ntxiv …
Cov duab ntxiv …
Cov duab ntxiv …
Cov duab ntxiv …
Cov duab ntxiv …
Cov duab ntxiv …
Cov duab ntxiv …
Cov duab ntxiv …

Tsuas yog vim kuv tau thaij duab ntau…. Nov yog qee qhov ntxiv….

Ua tsaug rau kev nyeem ntawv, Kuv vam tias koj txaus siab rau txoj haujlwm no, thiab tau siv qee yam tawm ntawm nws.

Kauj Ruam 5: Cov Lus Qhia Tau Ua los pleev qhov muag thiab Qhov Ncauj …

Cov Lus Qhia Tau Ua Los Pleev Qhov Muag thiab Qhov Ncauj …
Cov Lus Qhia Tau Ua Los Pleev Qhov Muag thiab Qhov Ncauj …
Cov Lus Qhia Tau Ua Los Pleev Qhov Muag thiab Qhov Ncauj …
Cov Lus Qhia Tau Ua Los Pleev Qhov Muag thiab Qhov Ncauj …
Cov Lus Qhia Tau Ua Los Pleev Qhov Muag thiab Qhov Ncauj …
Cov Lus Qhia Tau Ua Los Pleev Qhov Muag thiab Qhov Ncauj …

Ib tus phooj ywg txhawb nqa rau Troll pawg thawj coj pom zoo pleev qhov muag thiab qhov ncauj….

Suab yooj yim txaus, tab sis ob qho tib si yog cov txheej txheej zais hauv cov ntawv luam tawm - tab sis ua tau … tsuas yog siv sijhawm me ntsis.

Kuv pom tus cwj mem xim, nrog cov xim dub - Nws hais tias nws nyob ruaj khov tab sis tsis hais yam xim twg hauv nws … Kuv yuav lub ntsiab lus nruab nrab, tab sis tej zaum yuav tsum tau txais cov ntsiab lus zoo - tseem cov txiaj ntsig tau tawm mus zoo.

Thiab ntawm no yog ob peb daim duab ….

Pom zoo: