Cov txheej txheem:

Yooj Yim Arduino RGB LED Lub Vev Xaib (3x3x3): 18 Kauj Ruam (nrog Duab)
Yooj Yim Arduino RGB LED Lub Vev Xaib (3x3x3): 18 Kauj Ruam (nrog Duab)

Video: Yooj Yim Arduino RGB LED Lub Vev Xaib (3x3x3): 18 Kauj Ruam (nrog Duab)

Video: Yooj Yim Arduino RGB LED Lub Vev Xaib (3x3x3): 18 Kauj Ruam (nrog Duab)
Video: Thai Sounders - Yooj Yim (Official Music Video) 2024, Kaum ib hlis
Anonim
Image
Image
Khoom thiab Khoom
Khoom thiab Khoom

Kuv tau saib mus rau hauv LED Cubes thiab pom tias feem ntau ntawm lawv yog qhov nyuaj lossis kim. Tom qab saib ntau qhov sib txawv, kuv thaum kawg txiav txim siab tias kuv lub voos xwmfab LED yuav tsum yog:

  • yooj yim thiab yooj yim los tsim
  • pheej yig
  • heev stylish thiab extravagant

Tom qab tsim ntau Arduino LED Cubes, Kuv tuaj yeem hais tau zoo siab tias kuv tau tsim lub ntsej muag txias zoo nkauj tshwj xeeb uas haum rau kuv lub hom phiaj.

Tam sim no hauv Phau Ntawv Qhia no, Kuv yuav qhia koj yuav tsim koj li RGB LED Lub Vev Xaib li cas.

Lub sij hawm yuav tsum tau:

txog lis xaus lis xaus

Nqi:

20-50 $ nyob ntawm qhov chaw koj yuav los ntawm.

Kauj Ruam 1: Cov Khoom Siv thiab Cov Khoom Siv

Cov Cuab Yeej:

  • Soldering Hlau
  • Txiav Pliers (rau txiav cov hlau)
  • Needle Nose Pliers (khoov cov LEDs thiab xaim)
  • 3D-tshuab luam ntawv (YOOJ YIM)
  • Pab txhais tes (tsis tsim nyog tab sis yuav tsum tau txais kev pom zoo)

Qhov:

  • 27 x ws 2812b LEDs

    • Amazon (50 daim)
    • Aliexpress (50 daim)
  • 1 x 150 Ohm Resistor

    • Amazon (200 daim)
    • Aliexpress (100pcs)
  • 1 x Arduino Nano

    • Amazon (3 daim)
    • Aliexpress
  • ib yob ntawm cov nyiaj plated tooj liab hlau

    ~ 2 $ hauv koj lub khw paj ntaub hauv zos

  • Kua nplaum
  • prototyping pcb board / ntawv yas

    • Amazon
    • Aliexpress

Tus nqi tag nrho ntawm 3x3x3 lub voos xwmfab yog kwv yees li 18 $ yog tias koj yuav txhua yam los ntawm Aliexpress.

Software:

  • Arduino IDE (pub dawb)
  • CUDA (lossis koj tus kheej Slicer rau koj lub tshuab luam ntawv 3D)

Kauj Ruam 2: Npaj rau Solder

Npaj rau Solder
Npaj rau Solder
Npaj rau Solder
Npaj rau Solder
Npaj rau Solder
Npaj rau Solder

Ua ntej peb yuav tsum tsim tus qauv, yog li nws yuav yooj yim dua los ua cov LEDs ua ke. Kuv siv lub rooj tsav xwm pcb tus qauv rau qhov no thiab cim ob lub qhov rau nruab nrab tus pin ntawm LED, uas yog rau lub hwj chim muab (raws li pom ntawm daim duab).

Thaum kuv tsim ib qho 5x5x5 version ntawm lub voos xwmfab no, Kuv tau siv daim ntawv yas rau tus qauv, uas tseem ua haujlwm tau zoo heev. Yog tias koj siv yas lossis ntoo, koj yuav tsum laum ob khub ntawm qhov 2, 4 cm (lossis 0, 95 ntiv tes) sib nrug.

Kauj Ruam 3: Khoov thiab tso cov LEDs

Khoov thiab Tso Cov LEDs
Khoov thiab Tso Cov LEDs
Khoov thiab Tso Cov LEDs
Khoov thiab Tso Cov LEDs
Khoov thiab Tso Cov LEDs
Khoov thiab Tso Cov LEDs

Qhov yuav tsum tau ua rau theem no:

  • 27 ws2812b 8mm LEDs
  • nyiaj plated tooj liab hlau
  • prototyping pcb pawg thawj coj saib

Hauv theem no koj yuav tsum khoov tus pin ntawm 18 LEDs raws li qhia hauv daim duab saum toj no. Qhov seem 9 LEDs yuav tsum tau khoov kom lub "tiaj tiaj" yuav tig mus rau lwm txoj kev. Tom qab ntawd 9 LEDs nrog lub tiaj tiaj ntawm ib sab yuav tsum tau muab tso rau ntawm lub khob cij / ntawv yas.

Ib qho ntxiv, 18 daim hlau yuav tsum tau txiav. Lawv yuav tsum ntev txog 2 cm ntev dua li koj cov LEDs siab. Rau kuv, qhov no tau ua txog 6cm (lossis 2, 4 ntiv tes).

Kauj Ruam 4: Txhim Kho Lub Hwj Chim

Soldering lub zog
Soldering lub zog
Soldering lub zog
Soldering lub zog

Tam sim no koj muab cov hlua txuas txuas rau sab saum toj LED raws li pom hauv thawj daim duab. Tom qab ntawd koj xaim cov xaim rau LEDs hauv qab no. Nco ntsoov tias tsis muaj xov hlau sib cuam tshuam ib leeg, lossis lwm qhov yuav muaj luv-Circuit; tom qab ntawd txuas lwm cov xov hlau mus rau LEDs.

Kauj ruam 5: Soldering Cov Ntaub Ntawv Pins

Soldering Cov Ntaub Ntawv Pins
Soldering Cov Ntaub Ntawv Pins

Qhov no yuav tsum yooj yim. Koj tsuas yog yuav tsum tau kho cov ntaub ntawv pins los ntawm LEDs thiab muab lawv sib dhos ua ke raws li qhia hauv daim duab.

Kauj Ruam 6: Tshem tawm cov LEDs thiab Txiav LED Pins

Tshem tawm cov LEDs thiab Txiav LED Pins
Tshem tawm cov LEDs thiab Txiav LED Pins
Tshem tawm cov LEDs thiab Txiav LED Pins
Tshem tawm cov LEDs thiab Txiav LED Pins
Tshem tawm cov LEDs thiab Txiav LED Pins
Tshem tawm cov LEDs thiab Txiav LED Pins
Tshem tawm cov LEDs thiab Txiav LED Pins
Tshem tawm cov LEDs thiab Txiav LED Pins

Koj tuaj yeem tshem cov LEDs los ntawm tus qauv los ntawm kev yooj yim thawb lawv mus rau qhov tiaj tiaj raws li qhia hauv daim duab ib.

Tom qab tshem cov LEDs, koj yuav tsum txiav qhov kawg ntawm LED pins. Tom qab ntawd nws yuav tsum zoo li hauv daim duab 3 thiab 4.

Kauj Ruam 7: Txhim Kho Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke

Soldering Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke
Soldering Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke
Soldering Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke
Soldering Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke
Soldering Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke
Soldering Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke
Soldering Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke
Soldering Cov Ntaub Ntawv Kab ntawm Cov Txheej Ua Ke

Ua ntej koj yuav tsum tso cov khaubncaws sab nraud povtseg ntsug txheej yav dhau los rau hauv daim ntawv. Thaum ua kom ntseeg tau tias qhov nrug nruab nrab ntawm kab sib npaug, koj muab cov ntaub ntawv txuas ua ke raws li qhia hauv daim duab.

Kauj Ruam 8: Txuas Cov Hluav Taws Xob Hluav Taws Xob

Txuas Cov Hluav Taws Xob
Txuas Cov Hluav Taws Xob
Txuas Cov Hluav Taws Xob
Txuas Cov Hluav Taws Xob
Txuas Cov Hluav Taws Xob
Txuas Cov Hluav Taws Xob

Tam sim no koj khoov qhov kawg ntawm cov nyiaj plated tooj liab hlau raws li qhia hauv daim duab. Nws yog ib qho tseem ceeb heev kom hla cov xov hlau kom GND txuas nrog GND, thiab 5V txog 5V.

Cov xov hlau ntawm cov txheej sab nraud yuav tsum khoov sab nraud.

Tom qab koj tau khoov tag nrho cov xov hlau koj mus txuas rau lawv ua ke.

Kauj Ruam 9: Txuas Txuas Cov Hluav Taws Xob Tshooj: II

Txuas Txuas Cov Hluav Taws Xob Tshooj: II
Txuas Txuas Cov Hluav Taws Xob Tshooj: II
Txuas Txuas Cov Hluav Taws Xob Tshooj: II
Txuas Txuas Cov Hluav Taws Xob Tshooj: II
Txuas Txuas Cov Hluav Taws Xob Tshooj: II
Txuas Txuas Cov Hluav Taws Xob Tshooj: II

Tam sim no nws yog lub sijhawm los txuas lub zog txuas yav dhau los. Txhawm rau ua qhov no koj khoov ob daim hlau raws li qhia hauv daim duab.

Nco tseg: Nco ntsoov tias koj muaj cov xov hlau ntau nyob ntawm lub ces kaum sab laug, vim qhov no yog yam peb yuav siv los txuas rau peb lub hauv paus.

Tom qab khoov cov hlau rau hauv qhov zoo, koj muab lawv tso rau ntawm tus pin.

Tom qab ntawd txuas ib qho ntxiv rau ib qho ntawm cov xov hluav taws xob (ib qho liab hauv daim duab)

Thaum kawg, koj txiav cov pins ntxiv raws li qhia hauv daim duab kawg.

Kauj Ruam 10: Cov Ntaub Ntawv Txuas Tshooj I: Khoov cov Pins LED

Cov Ntaub Ntawv Xov Xwm Tshooj Kuv: Khoov cov Pins LED
Cov Ntaub Ntawv Xov Xwm Tshooj Kuv: Khoov cov Pins LED

Hauv cov kauj ruam no koj tsuas yog yuav tsum khoov tag nrho cov ntaub ntawv tseem tshuav pins raws li qhia hauv daim duab.

Kauj Ruam 11: Cov Xov Xwm Ntu Ntu II: Txuas Thawj Mus Rau Txheej Ob

Cov Ntaub Ntawv Hluav Taws Xob Ntu II: Txuas Thawj Mus Rau Txheej Ob
Cov Ntaub Ntawv Hluav Taws Xob Ntu II: Txuas Thawj Mus Rau Txheej Ob
Cov Ntaub Ntawv Hluav Taws Xob Ntu II: Txuas Thawj Mus Rau Txheej Ob
Cov Ntaub Ntawv Hluav Taws Xob Ntu II: Txuas Thawj Mus Rau Txheej Ob
Cov Ntaub Ntawv Hluav Taws Xob Ntu II: Txuas Thawj Mus Rau Txheej Ob
Cov Ntaub Ntawv Hluav Taws Xob Ntu II: Txuas Thawj Mus Rau Txheej Ob

Tom qab koj tau khoov tus pin ntawm ws2812b Leds, tam sim no koj yuav txuas Cov Ntaub Ntawv Tawm ntawm thawj txheej mus rau Cov Ntaub Ntawv IN ntawm qhov thib ob.

Txhawm rau ua kom tiav koj yuav tsum khoov ib daim hlau rau hauv cov duab zoo li hauv daim duab 2, uas yuav siv los txuas cov txheej raws li kos hauv thawj daim duab.

Cov kauj ruam tom ntej yog txhawm rau txuas ib kawg ntawm cov xaim mus rau Cov Ntaub Ntawv OUT tus pin ntawm thawj txheej. Cov Ntaub Ntawv OUT tus pin yog tus pin ntawm sab tiaj ntawm LED.

Lwm qhov kawg yog tom qab ntawd xa mus rau Cov Ntaub Ntawv IN ntawm txheej thib ob, uas yog ib qho ntawm yav dhau los khoov LED pins ntawm ib puag ncig ntawm LED.

Kauj Ruam 12: Cov Xov Tooj Ntu III: Txuas Qhov Thib Ob Rau Txheej Thib Peb

Cov Ntaub Ntawv Hluav Taws Xob Tshooj III: Txuas Qhov Thib Ob Rau Txheej Thib Peb
Cov Ntaub Ntawv Hluav Taws Xob Tshooj III: Txuas Qhov Thib Ob Rau Txheej Thib Peb
Cov Ntaub Ntawv Hluav Taws Xob Tshooj III: Txuas Qhov Thib Ob Rau Txheej Thib Peb
Cov Ntaub Ntawv Hluav Taws Xob Tshooj III: Txuas Qhov Thib Ob Rau Txheej Thib Peb
Cov Ntaub Ntawv Hluav Taws Xob Tshooj III: Txuas Qhov Thib Ob Rau Txheej Thib Peb
Cov Ntaub Ntawv Hluav Taws Xob Tshooj III: Txuas Qhov Thib Ob Rau Txheej Thib Peb

Tom ntej no koj txuas qhov thib ob rau txheej thib peb.

Ib yam li hauv cov kauj ruam ua ntej, koj tam sim no khoov ib daim hlau hauv cov duab zoo li tau qhia hauv daim duab 2. Cov hlau yuav tsum tau khoov rau hauv txoj kev no yog li nws yuav tsis cuam tshuam qhov pom ntawm LEDs thiab kom lav tau qhov zoo nkauj ntawm lub voos xwmfab.

Tom qab ntawd koj pib txuas qhov kawg ntawm xaim mus rau Cov Ntaub Ntawv OUT tus pin ntawm txheej thib ob thiab lwm qhov kawg rau Cov Ntaub Ntawv IN LED tus pin (ib qho nyob rau sab puag ncig).

Tom qab ua qhov ntawd, koj txiav qhov kawg ntawm cov xaim.

Kauj Ruam 13: Cov Ntaub Ntawv Txuas Tshooj IV: Soldering LED kawg

Cov Ntaub Ntawv Hluav Taws Xob Tshooj IV: Soldering LED kawg
Cov Ntaub Ntawv Hluav Taws Xob Tshooj IV: Soldering LED kawg
Cov Ntaub Ntawv Hluav Taws Xob Tshooj IV: Soldering LED kawg
Cov Ntaub Ntawv Hluav Taws Xob Tshooj IV: Soldering LED kawg
Cov Ntaub Ntawv Hluav Taws Xob Ntu IV: Soldering LED kawg
Cov Ntaub Ntawv Hluav Taws Xob Ntu IV: Soldering LED kawg

Txhawm rau ua kom tiav cov ntaub ntawv thaiv koj tam sim no yuav tsum khoov Cov Ntaub Ntawv OUT tus pin ntawm sab tiaj ntawm txheej txheej saum toj kawg nkaus (raws li tau qhia hauv daim duab thawj) kom nws kov cov pin hauv av.

Tom qab ntawd koj mus rau qhov txuas cov pins ua ke thiab txiav qhov kawg uas seem tawm.

Kauj Ruam 14: Cov Ntaub Ntawv Txuas V: Ua tiav Qhov Ua tiav

Cov Ntaub Ntawv Txuas V: Ua tiav Qhov Ua tiav
Cov Ntaub Ntawv Txuas V: Ua tiav Qhov Ua tiav
Cov Ntaub Ntawv Txuas V: Ua tiav Qhov Ua tiav
Cov Ntaub Ntawv Txuas V: Ua tiav Qhov Ua tiav
Cov Ntaub Ntawv Txuas V: Ua tiav Qhov Ua tiav
Cov Ntaub Ntawv Txuas V: Ua tiav Qhov Ua tiav

Tam sim no koj tau ua tiav lub tsev ntawm LED lub voos xwmfab nws tus kheej. Nov yog qee cov duab siv yog tias koj muaj teeb meem nkag siab cov kauj ruam ua ntej.

Kauj Ruam 15: 3D-Luam Ntawv Hauv Paus

3D-Luam Ntawv Lub Hauv Paus
3D-Luam Ntawv Lub Hauv Paus
3D-Luam Ntawv Hauv Paus
3D-Luam Ntawv Hauv Paus

Txog qhov Qhia Kuv tau tsim qhov yooj yim, tab sis muaj kuab heev, uas tseem ua haujlwm zoo li Arduino nano, tab sis yog tias koj nyiam, kuv yuav txaus siab yog tias koj qhia koj cov tswv yim/ cov ntaub ntawv rau lwm qhov casing. Xijpeem, koj tam sim no xav tau nkag mus rau lub tshuab luam ntawv 3D. Yog tias koj tsis muaj ib lub tsev, koj tuaj yeem mus rau qhov chaw tsim khoom hauv koj cheeb tsam. Kuv tau txuas cov ntaub ntawv rau koj hauv qab no yog li koj tsuas yog yuav tsum ua cov hauv qab no:

  1. Rub ob daim ntawv.stl los ntawm hauv qab no
  2. Ntshuam lawv rau hauv cov software uas koj lossis koj lub chaw tsim khoom siv
  3. Txiav lawv siv cov chaw hauv qab no
  4. Konvertiere GOD in TXK
  5. Pib luam ntawv

Slicer nqis:

  • Txheej qhov siab: 0.1 hli
  • Infill> 20%
  • Phab ntsa kab suav> 2
  • Cov chaw luam ntawv zoo tshaj (nyob ntawm koj lub tshuab luam ntawv)

Koj tsuas yog yuav tsum luam tawm txhua ntu ib zaug! Tom qab pib luam tawm kuv hais kom so, lossis nqa nrog lwm cov kauj ruam, raws li cov ntawv luam tawm siv sijhawm li 2-3 teev ua ke.

Yog tias koj tsis yog tus tswv lossis nkag tau rau lub tshuab luam ntawv 3D Kuv hais qhia tias koj tsim cov ntaub ntawv yooj yim, siv acrylic lossis ntoo piv txwv, zoo li hauv daim duab saum toj no.

Kauj Ruam 16: Txuas Koj Lub Vev Xaib mus rau Arduino Nano

Txuas Koj Lub Vev Xaib mus rau Arduino Nano
Txuas Koj Lub Vev Xaib mus rau Arduino Nano
Txuas Koj Lub Vev Xaib mus rau Arduino Nano
Txuas Koj Lub Vev Xaib mus rau Arduino Nano
Txuas Koj Lub Vev Xaib mus rau Arduino Nano
Txuas Koj Lub Vev Xaib mus rau Arduino Nano

Qhov yuav tsum tau ua rau theem no:

  • Arduino Nano Cov
  • 150 Ohm tus tiv thaiv
  • yav tas los soldered LED lub voos xwmfab
  • Nyiaj phaj tooj liab hlau

Tam sim no khoov tus pin ntawm koj lub voos xwmfab coj zoo li hauv daim duab saum toj no.

Tom qab ntawd koj tuaj yeem lo lawv hla lub qhov ntawm koj li 3D-luam tawm puag.

Tom qab ntawd koj tau siv lub GND ntawm LEDs (tus pin uas mus rau sab tiaj ntawm LEDs) mus rau GND ntawm Arduino, thiab 5V ntawm LEDs rau VIN.

Cov ntaub ntawv IN ntawm thawj LED yuav tsum tau muab muag rau 150 Ohm resistor thiab tus tiv thaiv rau D4 ntawm Arduino.

Kauj Ruam 17: Kaw Lub Hauv Paus

Kaw lub hauv paus
Kaw lub hauv paus

Ua ntej koj kaw lub hauv paus ntxiv qee cov kua nplaum rau saum npoo.

Thaum kaw lub hauv paus kom ntseeg tau tias USB chaw nres nkoj ntawm Arduino nyob hauv nws lub qhov.

Kauj ruam 18: Program Koj Arduino

Tam sim no koj tau ua tiav cov txheej txheem tsim ntawm koj Arduino RGB LED Lub Vev Xaib. Tam sim no nws yog lub sijhawm rau program nws. Txhawm rau ua qhov no koj yuav tsum ua raws cov theem hauv qab no:

  1. Rub tawm Arduino IDE
  2. Rub tawm FastLED cov tsev qiv ntawv
  3. Ntshuam lub tsev qiv ntawv FastLED. Nov yog Cov Lus Qhia Zoo rau qhov ntawd
  4. Rub tawm ib qho ntawm kuv qhov piv txwv hauv qab no lossis pib ua haujlwm rau koj tus kheej. Kuv xav pom qee yam ntawm koj lub tswv yim. (Nco tseg: Tsis txhob teeb Brightness ntau dua 40, vim li ntawd nws yuav siv ampere ntau dua li 200mA siab tshaj plaws Arduino nano tau ntsuas rau.)
  5. Sau & xa cov cai: Tam sim no koj tuaj yeem xa koj cov cai los ntawm kev nyem rau ntawm tus xub xub nyob rau saum toj sab laug. Nco ntsoov tias "Arduino Nano" thiab koj qhov chaw nres nkoj raug xaiv raug xaiv hauv cov ntawv qhia zaub mov "Cuab Yeej".

Pom zoo: