Cov txheej txheem:

LED Mood Teeb: 9 Kauj Ruam (nrog Duab)
LED Mood Teeb: 9 Kauj Ruam (nrog Duab)

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

Video: LED Mood Teeb: 9 Kauj Ruam (nrog Duab)
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

Tsis ntev los no kuv tau hla ib lub voos xwmfab LED los ntawm Greg Davill. Nws yog ib daim duab zoo heev. Tau txais kev tshoov siab los ntawm nws, txawm tias kuv xav ua qee yam zoo li ntawd. Tab sis qhov no yog txoj hauv kev tawm ntawm kuv pab koomtes. Kuv txiav txim siab los ua ib kauj ruam ntawm ib lub sijhawm thiab ua txoj hauv kev me me ntawm LED Cube ua Lub Teeb Mood. Nws tuaj yeem yog qhov pib zoo los kawm txog kho vajtse, uas feem ntau yog LEDs thiab microcontrollers, thiab software los tswj lawv (tsim cov duab ua duab).

Hauv Cov Lus Qhia no, Kuv yuav qhia koj li cas kuv thiaj ua LED Cube siv lub npe nrov WS2812 LEDs.

Cia peb pib

Kauj Ruam 1: Yam Koj Yuav Tsum Tau

Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

96x WS2812 LEDs

6 x PCBs

1 x Arduino Nano

1x 5V/1A Fais Fab Khoom

Kauj Ruam 2: Txoj Kev Npaj

Txoj Kev Npaj
Txoj Kev Npaj
Txoj Kev Npaj
Txoj Kev Npaj

Lub hom phiaj yog ua kom muaj lub teeb pom kev zoo. Kuv xav ua kom yooj yim thiab yog li kuv txiav txim siab mus nrog cov npe nrov WS2812 Ib Leeg Nyob Ib Leeg LEDs. Cov LEDs tau txuas nrog hauv cascade uas txhais tau tias koj tuaj yeem tswj tau ntau LEDs koj xav tau los ntawm ib qho kab teeb liab/xaim los ntawm lub microcontroller. Qhov no ua rau thaiv yooj yim heev.

Cov LEDs muaj nyob hauv SMD nkaus xwb. Yog li, cov kauj ruam tom ntej yuav yog tsim cov PCBs.

Cov kauj ruam tom ntej yog tsim thiab 3D luam tawm tus qauv los tuav cov PCBs zoo li lub voos xwmfab.

Cov LEDs yuav raug tswj siv Arduino Nano. Kauj ruam kawg yuav yog tsim thiab luam 3D daim ntawv rau Arduino.

Kauj Ruam 3: PCB Tsim

PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim

Koj tuaj yeem siv cov software uas koj nyiam rau tsim PCBs. Kuv tab tom siv EasyEDA raws li nws tsim nyog rau cov neeg tshiab zoo li kuv. Kuv tau txuas nrog schematic. Nyem rau qhov no rub Gerber cov ntaub ntawv rau PCB.

LED muaj 4 tus pin:

  1. VDD - 5V
  2. DOUT - Tshaj Tawm
  3. VSS - Hauv av
  4. DIN - Teeb liab Hauv

Raws li tau hais ua ntej, LEDs tau txuas nrog hauv cascade uas txhais tau tias lub teeb liab los hauv los ntawm lub microcontroller mus rau 1st LED ntawm DIN tus pin. Los ntawm DOUT tus pin, lub teeb liab mus rau DIN tus pin ntawm 2nd LED.

Thaum tsim cov PCBs, Kuv tau xav txog kev siv tes txuas cov LEDs thiab yog li kuv tau khaws qhov chaw txaus ntawm LEDs rau cov hlau txuas kom mus txog cov ntaub qhwv. Tab sis tom qab, raws li koj yuav pom, Kuv tau mus nrog rov ua dua tshiab nrog kuv qhov kev teeb tsa me me vim tias txoj kev no nrawm thiab zoo (thiab txaus siab saib) yog ua tiav.

Thaum koj tau ua tiav kev tsim PCB, tau txais nws los ntawm cov chaw tsim khoom uas koj xaiv. Kuv xaiv JLCPCB vim nws qhov kev pabcuam sai.

Kauj Ruam 4: Sib dhos PCBs

Sib dhos PCBs
Sib dhos PCBs
Sib dhos PCBs
Sib dhos PCBs
Sib dhos PCBs
Sib dhos PCBs
Sib dhos PCBs
Sib dhos PCBs

Thaum xub thawj, kuv pib siv tes ua cov LEDs ib tus zuj zus. Qhov tshwm sim tsis zoo thiab cov LED tau dhau los ua cua sov uas tsis yog lub cim zoo. Tsis tas li, nws yog txheej txheem siv sijhawm ntau thiab siv cov khoom siv 96 LEDs yuav xav tau sijhawm ntau.

Txoj kev siv dav tshaj plaws los txhawm rau txhawm rau SMD cov khoom siv hu ua Reflow Soldering. Hauv txoj hauv kev no, muab tshuaj txhuam txhuam (sib xyaw ntawm cov kab laug sab thiab dej ntws) tau siv rau cov pawm ntawm PCB thiab cov khoom siv tau muab tso rau ntawm nws. Cov kab laug sab laug yog tom qab ua kom yaj lossis 'rov ua dua' los ntawm cua sov nws hauv qhov cub rov qab. Nov yog txoj hauv kev nrawm thiab zoo yog ua tiav kom raug.

Siv txoj hauv kev no txhais tau tias kuv yuav xav tau Lub Cub Dej Rov Los. Tab sis tom qab ntawd kuv nco qab ib txoj haujlwm los ntawm Moritz König uas nws siv cov hlau qub qub thiab Wemos los tswj qhov ntsuas kub. Tib qho uas kuv muaj ntawm tes yog hlau tiaj tus uas tseem siv tau. Qhov kub ntawm cov hlau tau txog li 220 degree Celsius ntawm nws qhov siab tshaj plaws thiab cov tshuaj txhuam hniav kuv yuav yaj ntawm 183 degrees. Ua tibzoo saib qhov reflow soldering kub profile los ntawm cov ntawv teev npe ntawm LED, peb tuaj yeem pom tias qhov siab tshaj plaws kub (Tp) yog 240 degrees rau 10 secs. Txhua yam zoo li cia siab thiab yog li kuv tau sim nws.

Kuv tau siv cov tshuaj txhuam rau ntawm cov ntaub qhwv uas siv tus pas txhuam hniav thiab tso cov khoom sib dhos. Qhov kev tso kawm tsis yog ib qho tseem ceeb vim tias cov laug rub cov khoom hauv qhov chaw thaum nws yaj. Kuv tso PCB rau ntawm hlau raws li qhia hauv daim duab thiab tig rau hlau. Kuv tig OFF cov hlau thaum tag nrho cov laug tau yaj thiab tshem PCB los ntawm cov hlau.

Nws ua haujlwm kho!

Kauj Ruam 5: Sib dhos lub voos xwmfab

Sib dhos lub voos xwmfab
Sib dhos lub voos xwmfab
Sib dhos lub voos xwmfab
Sib dhos lub voos xwmfab
Sib dhos lub voos xwmfab
Sib dhos lub voos xwmfab

Kuv 3D luam tawm tus qauv los tuav cov PCBs hauv qhov chaw. Cov ntaub ntawv 3D tau txuas ntawm no. Koj yuav tsum luam tawm 1x Lub cev pob txha thiab 6x tus tuav. Muab cov tuav rau sab nraum qab ntawm PCB siv superglue raws li qhia hauv daim duab. Cov PCBs tuaj yeem raug muab tso rau hauv qhov chaw ntawm cov qauv pob txha. Nws yog kev sib txhuam haum. Sanding tej zaum yuav tsum tau.

Ua cov thaiv raws li qhia hauv kab ntawv. Soldering tuaj yeem nyuaj me ntsis ntawm no.

Kauj Ruam 6: Sib Sau Ua Ke

Sib Sau Lub Hauv Paus
Sib Sau Lub Hauv Paus
Sib Sau Lub Hauv Paus
Sib Sau Lub Hauv Paus
Sib Sau Lub Hauv Paus
Sib Sau Lub Hauv Paus

Cov ntaub ntawv 3D rau lub hauv paus tau txuas rau ntawm no. Lub hauv paus yuav tsev Arduino Nano. Yuav muaj tag nrho 3 xov hlau mus rau lub voos xwmfab. DIN, 5V thiab GND. Kuv tab tom ua lub voos xwmfab dhau los ntawm lub xov tooj USB them. Nco ntsoov tias nws muaj peev xwm tuav tsawg kawg 1A.

DIN tus pin tuaj yeem txuas nrog ib qho ntawm cov pins digital ntawm Arduino. Kuv xaiv D4.

Kauj Ruam 7: Sijhawm rau Coding

Sijhawm rau Coding
Sijhawm rau Coding

Txog tam sim no, Kuv yuav siv tus qauv piv txwv los ntawm FastLED Library. Nruab lub tsev qiv ntawv siv Tus Thawj Saib Xyuas Tsev Qiv Ntawv. Qhib DemoReel100 los ntawm qhov piv txwv piv txwv. Cov ntaub ntawv> Piv txwv> FastLED> DemoReel100

Ua ntej xa cov cai, ua cov kev hloov hauv qab no:

  • Txhais DATA_PIN (tus pin ntawm Arduino uas DIN ntawm lub voos xwmfab txuas nrog) rau txhua yam uas koj tau xaiv. Hauv kuv qhov xwm txheej, 4 (Digital Pin 4)
  • Txhais LED_TYPE li WS2812
  • Txhais NUM_LEDS li 96

Thiab, ntaus Upload!

Kauj ruam 8: Txaus siab rau

Fais fab koj lub teeb thiab txaus siab rau ntsia nws!

Ua tsaug rau koj lo rau qhov kawg. Vam tias koj txhua tus nyiam txoj haujlwm no thiab kawm paub qee yam tshiab hnub no. Qhia rau kuv paub yog tias koj ua ib qho rau koj tus kheej. Sau npe yuav ua rau kuv tus YouTube channel rau ntau txoj haujlwm zoo li no. Ua tsaug ntau ntau!

Kauj Ruam 9: Cov phiaj xwm yav tom ntej

  • Txuas lub voos xwmfab mus rau is taws nem (IoT) siv ESP8266 thiab ceeb toom rau kuv thaum twg muaj 'xwm txheej' tshwm sim.
  • Tsim kuv tus kheej cov animations.
Ua nws Glow Contest
Ua nws Glow Contest
Ua nws Glow Contest
Ua nws Glow Contest

Runner Up hauv Kev Ua Nws Glow Contest

Pom zoo: