Cov txheej txheem:

Tsawg Poly LED Mood Teeb: 9 Cov Kauj Ruam (nrog Duab)
Tsawg Poly LED Mood Teeb: 9 Cov Kauj Ruam (nrog Duab)

Video: Tsawg Poly LED Mood Teeb: 9 Cov Kauj Ruam (nrog Duab)

Video: Tsawg Poly LED Mood Teeb: 9 Cov Kauj Ruam (nrog Duab)
Video: Tuag ua Dab los yuav cab kom tau 11/14/2018 2024, Hlis ntuj nqeg
Anonim
Image
Image
Tsawg Poly LED Mood Teeb
Tsawg Poly LED Mood Teeb
Tsawg Poly LED Mood Teeb
Tsawg Poly LED Mood Teeb
Tsawg Poly LED Mood Teeb
Tsawg Poly LED Mood Teeb

Ib qho ntxiv rau txhua lub rooj, txee lossis rooj! Lub khawm tsis sib xws nyob ntawm lub hauv paus tso cai rau koj mus los ntawm ntau yam qauv teeb pom kev zoo ntawm LED. Nws tsis muaj teeb meem yog tias koj xav siv koj lub teeb rau kev kawm, so lossis txawm tias noj hmo … muaj ntau qhov kev npaj ua ntej teeb ua ntu zus rau txhua lub sijhawm!

Khoom siv

Txhua yam khoom siv tuaj yeem yuav tau ua cov khoom siv ntawm no.

Kauj Ruam 1: Luam Ntawv Qhov:

Image
Image
Luam Ntawv Qhov
Luam Ntawv Qhov
Luam Ntawv Qhov
Luam Ntawv Qhov

Muaj tsib daim ntawv luam tawm 3D hauv qhov haujlwm no. Lub hauv paus, Qia, Duab ntxoov ntxoo, LED Kab, thiab Npog.

Hauv qhov rub tawm ntu ntawm txoj haujlwm no, koj yuav pom ntau dua ib tus qauv ntawm qia lossis ntxoov ntxoo xaiv los ntawm. Lawv txhua tus sib raug zoo ib leeg yog li qhov kev xaiv yog nyob ntawm koj tus kheej nyiam. Koj tuaj yeem txuas ntxiv tus kheej koj lub teeb los ntawm kev xaiv cov xim ntsiab lus thiab cov khoom siv.

Kuv yuav coj koj los ntawm kev sib sau ua ke ib feem ntawm kev tsim Lub Teeb Mood. Cov lus qhia zoo ib yam yog tias koj xaiv luam lwm lub qia lossis ntxoov ntxoo.

Base.stl:

Txheej qhov siab: 0.15mm

Kev txhawb nqa: Tsis yog

Brim: Tsis yog

Kev taw qhia ntawm lub txaj luam tawm: Upside down

Lub sijhawm luam tawm: li tsib teev

Stem.stl:

Txheej qhov siab: 0.15mm

Kev txhawb nqa: Tsis yog

Brim: Tsis yog

Kev taw qhia ntawm lub txaj txaj: Ncaj

Lub sijhawm luam tawm: li 7 teev

Shade.stl:

Qhov no tau luam tawm nrog tsuas yog ib puag ncig thiab tsis muaj qhov sau ntxiv kom tso cai kom pom kev ntau dhau.

Txheej qhov siab: 0.15mm

Kev txhawb nqa: Tsis yog

Brim: Tsis yog

Kev taw qhia ntawm lub txaj txaj: Ncaj

Lub sijhawm luam tawm: li 10 teev

LED Kab.stl:

Txheej qhov siab: 0.2 hli

Kev txhawb nqa: Tsis yog

Brim: Tsis yog

Kev taw qhia ntawm lub txaj txaj: Ncaj

Lub sijhawm luam tawm: li 45 feeb

Npog.stl:

Txheej qhov siab: 0.20mm

Kev txhawb nqa: Tsis yog

Brim: Tsis yog

Kev taw qhia ntawm lub txaj txaj: Ncaj

Lub sijhawm luam tawm: li 1.5 teev

Kauj Ruam 2: Txuas cov LEDs:

Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs

Cov LEDs tuaj yeem yuav nrog rau tag nrho lwm cov khoom siv hluav taws xob xav tau rau txoj haujlwm no ntawm no.

Peb yuav pib sib dhos los ntawm kev txuas cov LEDs rau 3D luam tawm 'LED Kab'. Koj tuaj yeem txiav txim siab siv cov kua nplaum kub yaj lossis kua nplaum super. Yog tias koj xaiv cov kua nplaum kub yaj ces koj yuav tsum ua siab dawb nrog nws. Kuv yuav siv cov kua nplaum super vim nws muaj zog ruaj khov dua tab sis yuav xav tau tuav hauv qhov chaw thaum nws teeb tsa.

Unravel lub LED sawb los ntawm ntxaiv nws tuaj txog thiab xov cov xov hlau los ntawm lub qhov ntawm lub hauv paus ntawm kab lus LED.

Ua ntej peb siv cov kua nplaum nws yog lub tswv yim zoo los qhwv LEDs nyob ib ncig ntawm kab ntawv kom koj tau txais lub tswv yim ntawm kev sib nrug deb npaum li cas lawv yuav tsum tau sib nrug ua ntej koj pib ua kua nplaum rau lawv.

Thaum koj paub deb npaum li cas koj yuav tso lawv tseg lawv tuaj yeem nthuav tawm thiab tom qab qhwv ib ncig ntawm kab ntawv dua tab sis lub sijhawm no siv cov kua nplaum thaum koj mus kom ntseeg tau tias txhua qhov me ntsis tau kho ua ntej txav mus rau ntu.

Kauj Ruam 3: Txuas Qia rau Tus tuav LED:

Txuas Qia rau Tus Tuav LED
Txuas Qia rau Tus Tuav LED
Txuas Qia rau Tus tuav LED
Txuas Qia rau Tus tuav LED
Txuas Qia rau Tus Tuav LED
Txuas Qia rau Tus Tuav LED

Txuas Tus Poj Niam JST txuas mus rau qhov kawg ntawm cov xov hlau LED (lawv tsuas yog thawb ua ke).

Pub cov xov hlau txuas txuas qis dua txawm tias qhov nqaim kawg ntawm cov qia thiab rub lawv tawm los ntawm qhov dav dua.

Thov qee cov kua nplaum nyob ib puag ncig ntawm lub qia sab saum toj thiab tom qab ntawd tso tus tuav LED nruab nrab ntawm lub ntug thiab thawb khov ua ke thaum cov kua nplaum teeb tsa.

Thaum teeb tsa peb tuaj yeem nqa lub hauv paus ntawm lub teeb thiab xov cov xov hlau hla lub qhov rau saum. Raws li ua ntej, siv qee cov kua nplaum rau ntawm ntug ntawm lwm qhov kawg ntawm cov qia thiab ua tib zoo muab nws tso rau hauv lub hauv paus. Ua ntej cov kua nplaum pib teeb tig nws ib puag ncig thiab xyuas kom koj zoo siab nrog nws txoj haujlwm zoo li pom los ntawm txhua lub ces kaum.

Kauj Ruam 4: Npaj Hloov thiab Khawm:

Npaj Hloov thiab Khawm
Npaj Hloov thiab Khawm
Npaj Hloov thiab Khawm
Npaj Hloov thiab Khawm
Npaj Hloov thiab Khawm
Npaj Hloov thiab Khawm

Cov Hloov thiab Khawm tuaj yeem yuav nrog rau tag nrho lwm cov khoom siv hluav taws xob xav tau rau txoj haujlwm no ntawm no.

Txiav thiab hlais ob 10cm ntev ntawm cov xaim.

Nqa cov hlau liab los ntawm peb cov LEDs (qhov no yog 5v txuas hluav taws xob) thiab muab qhov no txuas rau ib qho ntawm cov ceg tsis siv rau ntawm ib qho ntawm cov hloov pauv.

Rov ua dua qhov no rau cov xaim dawb los ntawm LEDs nrog lwm qhov hloov. Cov hlau dawb yog cov tswv yim digital rau LEDs.

Npaj lwm ob 10cm qhov ntev ntawm cov xaim npaj kom yaj rau lub laub tam sim.

Muab cov hlau txhuam rau ob txhais ceg ntxeev sab nraum qab ntawm lub laub khawm.

Siv qee cov kua nplaum los txhim kho ob lub zawv zawg hloov mus rau hauv lawv lub qhov los ntawm sab hauv qab ntawm lub teeb. Ceev faj kom tsis txhob muab cov kua nplaum nkag rau hauv lub tshuab zawv zawg lossis nws tuaj yeem tiv thaiv nws los ntawm kev ua haujlwm raug.

Tam sim no txhim kho lub pob rau hauv nws qhov chaw, dua, ceev faj kom tsuas yog tau kua nplaum rau sab nraud ntawm lub tsev khawm thiab tsis mus rau khawm nws tus kheej.

Kauj Ruam 5: Program Arduino Nano:

Program Arduino Nano
Program Arduino Nano
Program Arduino Nano
Program Arduino Nano
Program Arduino Nano
Program Arduino Nano

Arduino Nano tuaj yeem yuav nrog rau tag nrho lwm cov khoom siv hluav taws xob xav tau rau txoj haujlwm no ntawm no.

Ntxiv Arduino Nano mus rau saum lub khob cij thiab txuas USB cable rau nws thiab lwm qhov kawg rau hauv koj lub PC. Qhib Arduino IDE ntawm koj lub PC. Yog tias koj tseem tsis tau teeb tsa qhov no, koj tuaj yeem nrhiav rub tawm dawb thiab qhia ntawm no:

Peb yuav tsum tau teeb tsa ob peb lub tsev qiv ntawv. Thawj qhov yog Adafruit lub tsev qiv ntawv Neopixel.

Txhawm rau ua qhov no, hauv Arduino IDE mus rau:

Sketch >> Xws li lub tsev qiv ntawv >> Tswj cov tsev qiv ntawv

Los ntawm no tshawb rau 'Neopixel'. Saib rau Adafruit Neopixel los ntawm Adafruit thiab teeb tsa qhov hloov tshiab kawg.

Koj tom qab kaw lub qhov rais tom qab kev teeb tsa tiav.

Lub tsev qiv ntawv thib ob koj xav tau nws lub tsev qiv ntawv WS2812FX. Qhov no tuaj yeem rub tawm los ntawm

Koj tuaj yeem rub tawm zip ntawm lub chaw cia khoom los ntawm txhaj 'Clone lossis rub tawm' thiab tom qab ntawv 'Rub tawm ZIP'

Luam cov ntawv rub tawm rau hauv koj li Arduino IDEs Library nplaub tshev.

Qhov kawg ntawm tus lej koj xav tau yog qhov peb yuav upload rau peb Arduino Nano rau txoj haujlwm no. Koj yuav pom cov ntawv muaj los rub tawm hauv qab ntawm nplooj ntawv no hauv ntu rub tawm.

Ua ntej koj tuaj yeem xa cov cai koj xav tau kom ntseeg tau tias koj muaj lub rooj tsav xwm raug thiab hom txheej txheem xaiv rau hauv Arduino IDE. Txhawm rau ua qhov no, lub taub hau mus rau 'Cov Cuab Yeej' hauv cov ntawv qhia zaub mov thiab xyuas kom koj muaj Pawg Thawj Coj ntawm 'Arduino Nano' xaiv thiab Txheej Txheem teeb tsa ua 'ATmega328P (Laus bootloader)'.

Tom qab rub tawm tiav koj tuaj yeem txuas lub USB cable ntawm lub PC. Tawm lwm qhov kawg txuas rau Arduino los pab peb tso Arduino thiab Breadboard sab hauv lub hauv paus ntawm lub teeb. Txhawm rau ua qhov no, tev daim ntawv tiv thaiv ntawm tus kheej-nplaum sab ntawm lub khob cij thiab thawb nws khov kho rau hauv qhov chaw ntawm sab hauv qab ntawm lub teeb puag.

Kauj Ruam 6: Txuas Cov Hluav Taws Xob:

Txuas Cov Xov
Txuas Cov Xov
Txuas Cov Xov
Txuas Cov Xov
Txuas Cov Xov
Txuas Cov Xov

Arduino Nano tuaj yeem yuav nrog rau tag nrho lwm cov khoom siv hluav taws xob xav tau rau txoj haujlwm no ntawm no.

Nyob rau theem no, koj tuaj yeem xaiv nruab nrab ntawm xaim cov xov hlau mus rau cov ntsiab lus ntawm lub khob cij los txuas lawv rau Arduino (uas yuav ua rau nws yooj yim los rov ua dua koj li Arduino yav tom ntej) lossis muab cov xov hlau txuas rau sab saum toj ntawm Arduino - ntau dua kev daws mus tas li

Yog tias koj xaiv siv lub thawv ntawv raws li kuv yuav ua tom qab ntawd koj yuav zoo li yuav pom cov xov hlau yooj yim dua yog tias koj 'tin' lawv ua ntej. Qhov no cuam tshuam nrog thov qee cov laug rau ntawm cov xaim xaim kom lawv tuaj ua ke ua ib qho xaim xaim uas yooj yim dua rau ntxig rau hauv lub khob cij.

Qhov hloov pauv uas txuas nrog Liab 5V lead los ntawm LEDs yuav tsum muaj nws cov xaim txuas tsis txuas nrog 5V ntawm Arduino.

Lwm qhov hloov pauv, uas txuas nrog LEDs dawb digital hauv cov hlau lead, yuav tsum muaj nws cov xaim dawb txuas nrog D6 ntawm Arduino.

Cov av dub uas tseem tshuav los ntawm LEDs txuas nrog rau hauv av txuas ntawm Arduino.

Ib lub xaim los ntawm lub sijhawm tam sim no tseem txuas nrog lub hauv paus ntawm Arduino.

Cov hlau txuas ntxiv los ntawm lub sijhawm tam sim no txuas nrog D2.

Yog tias koj tam sim no txuas lub USB cable los ntawm Arduino mus rau lub zog xa khoom xws li khoos phis tawj, lub roj teeb lossis lub qhov (socket) ntawm phab ntsa koj yuav tuaj yeem tshawb xyuas tias txhua yam koj cov hloov pauv thiab cov nyees khawm ua haujlwm raws li lub hom phiaj xav tau. Ib qho ntawm cov hloov pauv yuav qhib thiab qhib lub LEDs, lwm qhov yuav ncua ntu ua ntu zus. Lub pob yuav hloov tus qauv.

Yog tias txhua yam ua haujlwm peb tuaj yeem txuas ntxiv nrog ntxiv lub hau. Yog tias koj ntsib qee yam uas tsis coj raws li qhov xav tau ua tib zoo tshuaj xyuas rov qab los ntawm koj txoj haujlwm kom deb li deb.

Kauj Ruam 7: Haum Lub Npog:

Haum Npog
Haum Npog
Haum Npog
Haum Npog
Haum Npog
Haum Npog

Lub hau tau ruaj ntseg nrog peb ntawm M3 x 6 ntsia liaj qhov rooj. Nws yog rooj plaub yooj yim ntawm kev hloov lub teeb thiab ruaj ntseg nws mus rau hauv qab ntawm lub hauv paus. Saib xyuas kom tsis txhob ntxiab cov xaim USB los ntawm kev pub nws los ntawm qhov muab rau.

Kauj Ruam 8: Ntxiv Cov Duab Ntxoo:

Ntxiv qhov ntxoov ntxoo
Ntxiv qhov ntxoov ntxoo

Txoj haujlwm kawg yog ntxiv qhov ntxoov ntxoo, thiab qhov no kuj yog qhov yooj yim tshaj plaws. Tom qab koj tau luam tawm 3D koj qhov ntxoov ntxoo nws tsuas yog nqes qis dua kab ntawv LED thiab so rau saum lub qia.

Kauj Ruam 9: Txoj Haujlwm Ua tiav:

Qhov project tiav
Qhov project tiav

Tsis txhob hnov qab koj tuaj yeem luam tawm lwm qhov kev tsim ntxoov ntxoo hauv lwm cov xim thaum twg koj nyiam qhov sib txawv.

Peb tau npaj ua ntej qee qhov teeb meem ua ntu ntu muaj txiaj ntsig; lub teeb ci dawb kom siv los ua lub teeb pom kev zoo, hloov pauv huab cua hloov pauv rau kev so kom txaus, muaj kev lom zem rau cov tog neeg thaum koj tab tom tos koj cov phooj ywg thiab ob peb ntxiv rau koj sim rau koj tus kheej.

Pom zoo: