Cov txheej txheem:

RGB LED Controller: 5 Kauj Ruam (nrog Duab)
RGB LED Controller: 5 Kauj Ruam (nrog Duab)

Video: RGB LED Controller: 5 Kauj Ruam (nrog Duab)

Video: RGB LED Controller: 5 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
RGB LED maub los
RGB LED maub los
RGB LED maub los
RGB LED maub los
RGB LED maub los
RGB LED maub los

10 hnub ua ntej Christmas Kuv tseem xav tau khoom plig rau kuv tus txiv, uas nyob hauv lub hnub nyoog ntawm Amazon, uas txhais tau tias yuav khoom ntawm lub txee tsis yog qhov kev xaiv.

Nws xav tau lub teeb pom kev rau nws lub chaw haujlwm thiab nws nyiam hloov khoom txhua lub sijhawm. Nws lub rooj kuj tseem yooj yim muab tso rau ntawm lub qhov rais sill. Yog li tswj tau RGB teeb pom kev tuaj rau kuv lub siab tam sim ntawd. Nws yuav tsum ci txaus kom pom nws lub rooj thiab nws yuav tsum tau tswj cov xim.

Kuv nthuav qhia, RGB LED Controller.

(Saib Video hauv qab no)

Kauj Ruam 1: Qhov:

Kuv siv cov hauv qab no:

1x Sparkfun Pro Micro 5V/16MHz (https://www.sparkfun.com/products/12640) Kuv saib Arduinos ua ntej, tab sis tsuas yog ua ntej Christmas txhua yam tau muag tawm. Sparkfun tau dhau los ua qhov zoo thiab cov lus qhia ntawm lawv lub vev xaib ua kom yooj yim heev rau siv Arduino programming software. Txhawm rau kom nws haum rau Protoboard Kuv yuav tsum muab tus pin rau hauv Pin qhov. Nws ua haujlwm tau zoo tshaj plaws los txhawm rau lawv thaum lawv tau ntsaws rau hauv ProtoBoard nrog Micro tswj nyob rau hauv qhov chaw.

2x 1m 60LEDs/m Sealed RGB LED strips (https://www.sparkfun.com/products/12023) Tsis yog kim thiab ci txaus kom pom lub Rooj nrog 14W/m

1x Protoboard (https://www.sparkfun.com/products/9567) Vim li ntawm 2 hnub kuv yuav tsum sim, debug thiab sib sau ua ke txhua yam kuv siv Protoboard. Nws tuav rau cov xov hlau nruj txaus thiab kuv tuaj yeem txav kev sib txuas ib puag ncig tau yooj yim. Tsis tas li tam sim no ntawm 2-3A rau ob daim kab xev LED uas kuv siv yog tsis siab.

3x Hwj chim MOSFETs (https://www.digikey.com/products/en?keywords=IRF84… Lawv yuav tsum muaj peev xwm los daws qhov me ntsis tam sim no, thiab cov no tuaj yeem ua qhov ntawd nrog ntau dua 3A/Chav ntawm 12V D/ S thiab 5V hloov qhov hluav taws xob. Kuv paub tias lawv overkill, tab sis kuv xav ua si kom nyab xeeb.

3x 100mm slider Potentiometers 10k (https://www.digikey.com/products/en?keywords=987-1……

1x Hloov (https://www.digikey.com/product-detail/en/zf-elect…

1x 12V 3A Fais fab mov (https://www.amazon.com/ANVISION-2-Pack-Adapter-5-5… 2 LED Strips yuav xav tau siab tshaj 2.4A ntawm qhov ci tag nrho. Arduino xav tau yuav luag tsis muaj dab tsi, yog li 3A Khoom kuv pom tias txaus.

1x Barrel Receptor (https://www.digikey.com/products/en?keywords=%09EJ…, vim tias kuv pom cov cuab yeej uas muaj cov xov hlau nyob ntawm lawv tsis yooj yim.

2x Pairs of CPC ConnectorsChassis Mounts (https://www.mouser.com/productdetail/te-connectivi… LED Connectors (https://www.mouser.com/productdetail/te-connectivi…

Lwm yam: Qee qhov 20-24AWG xaim hauv ntau xim, lub zog me me tsis tu ncua Kuv muaj hauv kuv lub tub rau khoom kom pom kev ci ci, khawm cuam tshuam, 4x 5kOhm resistors thiab 3x 5V LEDs nrog cov tiv thaiv sib xyaw.

Kauj Ruam 2: Luam Tshooj

Luam Tshooj
Luam Tshooj
Luam Tshooj
Luam Tshooj
Luam Tshooj
Luam Tshooj
Luam Tshooj
Luam Tshooj

Txog qhov thaiv kuv tsim ib qho hauv Fusion 360.

Kuv xav tau lub Qhov Rooj Loj rau txhua lub tshuab hluav taws xob thiab qee qhov pob qhov rooj rau Potentiometers. Txij li thaum kuv tseem tsis tau paub tias qhov khoom no yuav raug teeb tsa tsuas yog ob sab tuaj yeem nkag mus tau.

Peb muaj 1/4 qhov nyob rau sab saum toj rau LEDs, khawm cuam tshuam thiab lub teeb ci tswj Potentiometer (5 Tag Nrho). Ntawm Sab laug Kuv muaj qhov txiav loj rau Hloov, txiav me me rau micro USB cable, yog li Arduino tuaj yeem rov tsim dua yam tsis tas yuav siv tus tswj lub appart, 2 qhov rau Poj Niam 4Pin CPC Receptacle txuas thiab thiab 8mm qhov rau Barrel Jack.

Ntawm Pem Hauv Ntej tsuas yog 3 txoj kab rau Potentiometer tuav thiab qhov rau 4-40 ntsia hlau.

Kuv tau luam tawm Cov Pob Ntseg ntawm lub nkoj thiab hauv pab pawg, uas ib txwm ua rau muaj txiaj ntsig zoo dua ntawm FDM tshuab luam ntawv rau cov khoom me me. Cov Ntaub Ntawv Kuv tau luam tawm ntawm lub vaj huam sib luag tom qab sawv rau kev txhawb nqa tsawg.

Baseplate screws rau hauv Qhov Ruaj. Kuv tsis muaj lub hau ntswj taub hau yog li kuv yuav tsum xav tias muaj plaub fab rau hauv qab ntawm lub thawv ntawv kom nws tsis so ntawm cov ntsia hlau thiab khawb lub rooj.

Kauj Ruam 3: Kev thaiv kab hlau

Thaiv
Thaiv
Thaiv
Thaiv

Ua ntej kuv tau siv cov xov hlau ntev rau txhua qhov kuv xav tau (Potentiometers, Barrel Jack, Nyees khawm, Hloov thiab lwm yam) yog li kuv tsis tas yuav ua qhov ntawd hauv lub thawv. Tom qab ntawd kuv tau sib sau cov khoom siv hluav taws xob ntawm lub rooj ntev zaum los tshuaj xyuas cov haujlwm sib txawv thiab daws teeb meem ib qho software lossis kab kab. Kuv pom tias txuas MOSFET Gate mus rau 8Bit PWM ntawm Arduino ua rau muaj kev hloov xim thiab tsis ua haujlwm zoo. Siv 10 (Pins 5, 6) thiab 16 ntsis (Pin 9) PWMs hloov ua rau ploj mus zoo li butter (Kuv tseem sau tsuas yog 8 ntsis rau PWM Pins tab sis).

(Saib daim kab xev rau kab ntawv txuas nrog dab tsi)

Kauj ruam 4: Sib dhos

Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos

Tom qab kuv sim cov thaiv kuv tau sib sau txhua yam sab hauv. Qhov tseeb tias kuv tau siv ntau npaum li ntau tau sab nraum lub thaiv tau pab ntau, nrog rau kev npaj ua ntej cov khoom sib txuas.

Kuv pom tias cov pliers muaj txiaj ntsig zoo kom tau txais cov xov hlau mus rau hauv qhov raug ntawm Protoboard. Kuv txiav cov xov hlau kom ntev ua ntej kuv ntsaws rau hauv, yog li txhua yam huv li nws tuaj yeem ua tau.

Thaum kawg kuv ntswj rau ntawm lub hauv paus phaj thiab txuas qee qhov kev xav rau nws, yog li nws zoo nyob ntawm lub rooj.

Kauj ruam 5: Programming

Image
Image

Sparkfun tau txais kev pabcuam los ntawm Arduino software (Saib cov lus qhia:

Qhov kev zov me nyuam suav nrog EEPROM lub tsev qiv ntawv kom txuag tau hom kev khiav hauj lwm zaum kawg, yog li tus tswj hwm tsis xoob lub xeev nws nyob hauv thaum caij tsheb kauj vab rau nws.

Potentiometer ntxiv rau sab saum toj tswj kev ci ntsa iab hauv txhua hom tsis cuam tshuam rau cov xim tso tawm.

Muaj 3 Hom, yog li 3 Qhov xwm txheej LEDs saum toj.

Hom 1: RGB Hom (tsuas yog 1 Qhov xwm txheej LED nyob) 3 Potentiometers tswj qhov ci ntawm Liab, Ntsuab thiab Xiav ib tus zuj zus. Ib qho xim khov kho tau tshwm sim.

Hom 2: RGB Fade Mode (2 Statuss LEDs is on) Hauv hom no txhua peb xim nyob ntawm lub moos (Liab ntawm 12, Ntsuab ntawm 4 thiab Xiav ntawm 8 piv txwv). Tes ntawm lub moos tig raws lub moos thiab sib xyaw ntawm txhua qhov peb xim nyob ntawm nws txoj haujlwm tau tshwm sim. Thawj Potentiometer tswj kev fading nrawm (Ceev ntawm Tes) Qhov Potentiometer thib ob txiav txim siab tias xim twg yog thaum 12 teev. (Rotates Clock) Qhov Potentiometer thib peb txiav txim siab tias Lub Sijhawm Caij Nyoog tig mus deb npaum li cas ua ntej nws tig rov qab.

Hom 3: RGB Dispersion (Txhua 3 Qhov Teeb Meem LEDs tau qhib) Hauv hom no txhua xim nws muaj nws lub moos thiab txhua tus Potentiometer tswj kev nrawm ntawm ib tus tuav. zoo li cov xim sib txawv xim tau tshwm sim vim yog lub sijhawm ntev ua ntej nws rov ua dua. (Hom kuv nyiam)

Pom zoo: