Cov txheej txheem:

LED Snowflake: 15 Kauj Ruam (nrog Duab)
LED Snowflake: 15 Kauj Ruam (nrog Duab)

Video: LED Snowflake: 15 Kauj Ruam (nrog Duab)

Video: LED Snowflake: 15 Kauj Ruam (nrog Duab)
Video: MN HNY 2013-2014 Traditional Dance Competition: XueFeng 2024, Hlis ntuj nqeg
Anonim
LED Snowflake yog
LED Snowflake yog
LED Snowflake yog
LED Snowflake yog
LED Snowflake yog
LED Snowflake yog
LED Snowflake yog
LED Snowflake yog

Cov daus snowflake no muaj cov xim ua los ntawm 7 APA102 LEDs, thiab tswj los ntawm Arduino Nano microcontroller. Cov khoom yog laser txiav acrylic. Koj tuaj yeem tsim koj tus kheej tsim raws li cov ntsiab lus ntawm no, thiab laser txiav lawv ntawm koj lub chaw tsim khoom lab. Lossis koj tuaj yeem yuav cov khoom siv ua ntej txiav qhov chaw, ntawm makerism.com. Ib feem ntawm cov khoom siv tau qhia hauv ib qho ntawm cov duab nrog.

Kuv tau tsim qhov kev tsim no hauv ob peb qhov sib txawv. Cov me me yog lub teeb heev thiab tsis sawv nrog rau qhov loj dua. Lub USB cable muab lub zog rau qhov ua tiav snowflake, thiab kuv pom lub USB cable sib zog ua haujlwm tau zoo tshaj plaws, vim tias cov xov tooj hnyav dua tsis hloov pauv tau thiab zoo li thawb lub snowflake hla. Cov daus me me yog lub teeb txaus uas nws tuaj yeem dai los ntawm USB cable.

Kuv nyiam APA102 LED strips, txawm hais tias WS2812s yuav ua haujlwm ib yam nkaus. Kuv lub khoos phis tawj txawm li cas los yuav tsis ua haujlwm nrog lwm cov hlua LED, tsuas yog APA102s.

Kuv npaj siab muab cov ntaub ntawv tsim tawm, txawm hais tias tam sim no lawv tsuas yog hauv RDWorks hom ntawv uas tsis yog hom qauv. Yog koj xav paub thov hu rau kuv.

Kauj Ruam 1: Txiav Peb 2-pin Jumpers

Txiav Peb 2-pin Jumpers
Txiav Peb 2-pin Jumpers
Txiav Peb 2-pin Jumpers
Txiav Peb 2-pin Jumpers
Txiav Peb 2-pin Jumpers
Txiav Peb 2-pin Jumpers
Txiav Peb 2-pin Jumpers
Txiav Peb 2-pin Jumpers

Pib nrog tus Nano tsis muag khoom. Cov no feem ntau tuaj nrog tus pin headers xav tau. Txiav los yog txiav ib qho ntawm lub taub hau rau hauv 2-tus lej ntu. Peb yuav tsum tau. Yog tias koj siv cov hlau txiav, tuav rau ob daim thaum koj txiav, vim tias lawv tau khi kom ya mus, qhov me me tshwj xeeb.

Kauj ruam 2:

Duab
Duab
Duab
Duab
Duab
Duab

Kuv nyiam siv Nano lub qhov (socket) ua tus tuav thaum siv cov pins rau hauv Nano. Koj kuj tseem tuaj yeem siv lub lauj kaub tais diav uas tsis txhuam. Muab peb 3-tus pin headers tso rau hauv lub qhov (socket) ntawm txoj haujlwm raws li qhia. Muab Nano tso rau saum. Cov pins peb yuav siv ntawm 5V, GND, D8, thiab D9. Solder ib tus pin ntawm txhua lub taub hau, tom qab ntawd saib los ntawm sab kom ntseeg tau tias lub taub hau yog txhua txoj hauv kev mus rau hauv pawg thawj coj saib xyuas vaj huam sib luag. Yog tias tsis yog, rov ua dua tus pin txuas thiab thawb. Tom qab ntawd txuas lwm tus pin ntawm txhua lub taub hau.

Kauj ruam 3:

Duab
Duab
Duab
Duab
Duab
Duab

Muaj ob tus pin uas peb tsis xav tau, yog li cov no tuaj yeem txiav tawm. Muab koj tus ntiv tes hla tus pin thaum koj txiav nws, vim tus pin raug khi kom ya mus. Ntxig lub Nano rau hauv tus tuav acrylic. Khoov hla txhua tus pin raws li qhia. Cov pins yuav tsum yog txhua lub kaum sab xis txog 20 degrees.

Kauj ruam 4:

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

Tam sim no nws yog lub sijhawm los sib sau ua ke LED sawb. Muaj ob ntu rau kab txaij: ib qho ntawm 6 LEDs, lwm qhov ntawm 1 LED nrog nplaum thaub qab. Yog tias koj siv tib LEDs uas kuv tau siv (APA102's nrog GND nyob rau sab saum toj), tom qab ntawd yuav tsum muaj 6 xaim. Pib nrog 2 xov hlau. Kuv siv cov xov hlau txiav los ntawm Seeed Grove cable, tab sis ib qho xov hlau ntawm kwv yees li 24 qhov ntsuas yuav ua. Sawb txhua txoj kab hlau ntev li 2mm los ntawm qhov kawg, thiab siv cov laug txuas (qhov no hu ua tinning).

Kauj ruam 5:

Duab
Duab
Duab
Duab
Duab
Duab

Thov siv cov laug rau cov pawm ntawm cov hlua LED. Cov ntaub ntawv nkag los yog 4 ntawm 2 uas feem ntau sau tias DI thiab CI. Rau 6 LED sawb, tsuas yog cov khoom siv nkag los yuav tsum tau ntim. Rau ib qho LED, ob qho tib si nkag thiab tso tawm pawm xav tau cov laug. Ob txoj kab yuav tsum tau koom nrog xws li GND txuas rau GND, CO rau CI, Ua rau DI, thiab 5V txog 5V. Hauv cov duab no txhua qhov xov hlau yog tib qhov ntev, txawm hais tias nws ua haujlwm tau zoo dua yog tias qhov ntev sib txawv raws li tsim kom muaj 90 degree tig ntawm ob kab.

Kauj Ruam 6:

Duab
Duab
Duab
Duab
Duab
Duab

Tam sim no nws yog lub sijhawm los txuas kab txaij mus rau Nano sib dhos. Thawj tin cov pins. Siv ob txoj hlua txuas rau tus pin D8 thiab D9. Tshem tawm cov thaub qab los ntawm cov nplaum, ib leeg LED sawb, thiab lo rau acrylic kom cov LED nyob nruab nrab. Muab ob lub xov hlau tso rau ntawm daim kab xev. D9 yuav txuas rau CI, thiab D8 rau DI. Muab cov hlua LED coj los ua ke rau cov hlua LED coj los ua ke.

Kauj ruam 7:

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

Ntxiv cov tubing me me rau ob qho kawg ntawm 6 LED sawb. Cov hlua yuav raug tsim ua lub voj voog, thiab ob qho kawg no yuav kov tau. Kev nqaim tubing yuav tiv thaiv kev luv luv. Siv rab phom cua sov los ua kom lub raj nqaim.

Kauj ruam 8:

Duab
Duab

Ua daim kab xev LED rau hauv lub voj voos, kho txoj haujlwm xaim raws li qhov tsim nyog. Cov ntsia hlau qhov yuav tsum nyob sab nraud ntawm lub voj voog. Thaum khoov cov xov hlau, ceev faj kom tsis txhob ua rau cov neeg siv dag zog ntau dhau ntawm cov pob qij txha txuas.

Kauj ruam 9:

Duab
Duab
Duab
Duab
Duab
Duab

Tam sim no nws yog lub sijhawm los sib sau ua ke cov snowflake. Pib nrog nraub qaum thiab tsim cov qhaub cij saum toj. Muab cov ntsia hlau hla lub nraub qaum thiab tso nraub qaum rau ntawm ib sab. Muab Nano los ua ke saum toj saud.

Kauj ruam 10:

Duab
Duab
Duab
Duab
Duab
Duab

Ntxiv thawj qhov pom tseeb, thawb kab txaij hla lub qhov hauv nruab nrab. Tom ntej no yog daus acrylic snowflake. Qee qhov kev hloov ntawm cov xov hlau yuav tsim nyog. Thaum lub snowflake nyob rau hauv qhov chaw, thawb txhua LED mus rau hauv lub qhov nyob rau hauv lub snowflake sab hauv lub voj voog.

Kauj ruam 11:

Duab
Duab
Duab
Duab
Duab
Duab

Ntxiv sab saum toj meej qhov chaw. Sab saum toj ntawm kab txaij yuav tsum tau yaug nrog rau sab saum toj ntawm daim ntshiab. Muab lub diffuser tso rau saum.

Kauj ruam 12:

Duab
Duab
Duab
Duab
Duab
Duab

Pem hauv ntej daus acrylic daim xav tau countersinking, yog li lub taub hau tiaj tus ntsia hlau yuav yaug nrog saum npoo ntawm acrylic. Tuav tus acrylic nrog ib txhais tes, tso me ntsis hla lub qhov, rub lub ntsuas, thiab nias rau ob peb feeb. Koj tuaj yeem kuaj nrog cov ntsia hlau kom pom tias nws yaug, tom qab ntawd rov ua ntau zaus raws li xav tau kom ua kom raug.

Thaum ua tiav countersinking, nteg cov khoom ua ntej tshaj ntawm peb cov qhaub cij snowflake.

BTW Kuv yuav qhov kev suav me ntsis ntawm Home Depot.

Kauj ruam 13:

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

Tam sim no cov qhaub cij ua tiav, tab sis cov ntsia hlau yog txoj hauv kev tsis raug. Peb yuav tsum rub tawm txhua tus ntsia hlau thiab thawb nws los ntawm sab nraub qaum. Txhawm rau pab tswj kev sib dhos ntawm lub qhov, tso qhov sawv ntsug mus rau qhov kawg ntawm ib lub hau ntswj. Tom qab ntawd tuav cov snowflake ua ke, rub tawm lwm cov ntsia hlau thiab thawb nws los ntawm nraub qaum. Tej zaum koj yuav tsum tau siv tus ntswj taub hau kom tawm lossis nkag mus ntxiv. Rov ua dua rau lwm tus ntsia hlau.

Kauj ruam 14:

Duab
Duab

Cov qhaub cij tau sib sau ua ke tam sim no, tab sis koj yuav tsum tau tshuaj xyuas qhov khoob. Cov xaim feem ntau yuav pom nws txoj hauv kev ntawm ob daim, thiab yuav tsum tau raug thawb rov qab mus rau hauv qhov chaw siv qhov kev siv ntse.

Kauj ruam 15:

Duab
Duab

Cov snowflake tiav lawm.

Qhov program tuaj yeem ua tiav nrog ib qho software Arduino-tshaj. Kuv siv kuv tus kheej Scridgets software rau kev ua haujlwm. Kuv yuav muab cov ntaub ntawv HEX nrog rau txoj haujlwm tsim nyog ASAP. Qhov ntaub ntawv tuaj yeem xa mus rau Nano siv AvrDude, uas xa nrog Arduino.

Pom zoo: