Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Siv thiab Cov Cuab Yeej
- Kauj Ruam 2: LED Sawb
- Kauj Ruam 3: Txuas JST Connector thiab Capacitor
- Kauj Ruam 4: Lub Hwj Huam Fais Fab
- Kauj Ruam 5: Faib Fais Fab
- Kauj Ruam 6: Cov ntaub ntawv
- Kauj Ruam 7: Cov Khoom Kho Vajtse Kawg …
- Kauj Ruam 8: Teeb Fadecandy Software
- Kauj Ruam 9: Fadecandy Server
- Kauj ruam 10: Teeb meem
- Kauj ruam 11: Ua
- Kauj Ruam 12: Kav Pixels
- Kauj ruam 13: Ntaus Ua Si hauv Kev Ua
- Kauj Ruam 14: Piv Txwv Ntxiv… Lub Sijhawm Rau Koj Kuaj
- Kauj Ruam 15: Ua Tsaug Rau Kev Nyeem
Video: Yuav Tswj Li Cas Cov Teeb Meem LEDs nrog Fadecandy thiab Ua: 15 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Dab tsi
Nov yog cov lus qhia ib qib zuj zus yuav siv Fadecandy thiab Ua Haujlwm li cas los tswj cov chaw nyob LEDs. Fadecandy yog tus tsav LED uas tuaj yeem tswj tau txog 8 kab ntawm 64 pixels txhua. (Koj tuaj yeem txuas ntau Fadecandys rau ib lub khoos phis tawj kom nce qhov no.) Kev ua haujlwm yog hom lus siv los ua kom pom kev. Koj muaj daim ntaub thaiv, zoo ib yam li koj xav hauv Photoshop lossis Xim tab sis tsis yog kos duab nrog nas, koj kos los ntawm kev sau tus lej. Fadecandy thiab Kev Ua Haujlwm ua haujlwm ua ke. Koj sau cov cai uas tso cov LEDs hla Kev Ua Cov canvas, thiab tom qab ntawd txhua yam koj kos rau hauv Kev Ua Haujlwm pom tshwm ntawm cov LEDs hauv lub sijhawm tiag tiag. Vim li cas
Muaj ntau txoj hauv kev los tswj LEDs. Kuv nyiam Fadecandy vim tias nws pheej yig kom pib thiab koj tuaj yeem muaj kev tswj hwm koj li LEDs hauv qhov pom kev zoo siv Kev Ua Haujlwm. Processing kuj tseem tuaj yeem txuas rau txhua yam khoom, xws li Kinect, Arduino, lub koob yees duab, lossis txawm tias tsuas yog nas/keyboard inputs. Yog li muaj ntau txoj hauv kev los ua tej yam sib tham sib tham. How
Muaj peb ntu rau txoj haujlwm no.
1. Kho vajtse Saib yuav ua li cas txhua yam ntawm lub cev sib txuas ua ke, cov khoom sib dhos, tau txais cov hlua LED txuas.
2. Software: FadecandyFadecandy ua haujlwm los ntawm kev ua haujlwm server ntawm koj lub tshuab - nws yooj yim heev los teeb tsa.
3. Software: Ua Haujlwm Saib yuav ua li cas tso cov LEDs rau ntawm daim ntaub, thiab siv cov piv txwv los saib qee qhov ua rau koj lub LEDs. Level
Kuv sim thiab sau kuv cov kev qhia hauv ib txoj hauv kev uas ib tus neeg uas tsis muaj kev paub dhau los tuaj yeem tsawg kawg txaus siab nyeem nws. Nrog rau qhov no kuv yuav ua txhua yam ib kauj ruam zuj zus yog li nws haum rau cov pib ua raws thiab ua lawv tus kheej. Kuv yuav tsis mus rau hauv kev nthuav dav ntawm Kev Ua Haujlwm - Yog tias koj xav txhim kho koj li kev txawj ua thiab ua kom muaj suab nrov ntau dua tom qab ntawd koj yuav xav txheeb xyuas qee qhov kev qhia tshwj xeeb rau qhov ntawd - Kuv hais qhia Daniel Shiffman's YouTube channel.
Txoj haujlwm no suav nrog kev sib dhos. Kuv tsis tau sau cov lus qhia ntxaws rau cov pib muag, muaj ntau ntau lwm cov lus qhia rau qhov ntawd.
Txoj haujlwm no cuam tshuam nrog cov hluav taws xob siab (thaum txuas lub qhov hluav taws xob ntsaws rau lub hwj chim) yog li thov ceev faj thiab tsis txhob tso menyuam yaus ua qhov no ib leeg. CodeAll ntawm cov cai (Arduino thiab Ua Haujlwm) nyob ntawm kuv github ntawm no.
Kauj Ruam 1: Cov Khoom Siv thiab Cov Cuab Yeej
Nov yog daim ntawv teev tag nrho txhua yam koj yuav xav tau los tsim txoj haujlwm no:
Qhov
- LEDs nyob tau (US Amazon | UK Amazon) Kuv siv ws2812b LED sawb. Muaj qee qhov kev hloov pauv uas koj tuaj yeem xaiv los ntawm Coating: Koj tuaj yeem yuav cov kab hluav taws xob LED uas tsis muaj txheej hlo li tab sis nws yuav tsis muaj dej tsis haum. Lossis koj tuaj yeem yuav nws hauv cov khoom siv tau yooj yim silicone uas yog IP67 ntsuas, qhov no txhais tau tias nws tau ntim tag thiab tsis muaj dej. Xim ntawm thaub qab: Cov kab txaij tuaj dub thiab dawb. Yog tias koj yuav tsis npog koj cov hlua LED nrog lub difusser ces txiav txim siab qhov twg yuav zoo tshaj. Cov LEDs: Cov qauv yog 30, 60 lossis 144 LEDs rau ib lub 'meter'. Kuv siv 30LED ib lub 'meter' tab sis kuv txuas rau 60 vim nws tau siv ntau dua. Other: Koj kuj tseem tuaj yeem yuav ws2812b hauv cov hlua (Asmeskas Amazon | UK Amazon) hloov chaw. Lawv ua haujlwm ib yam nkaus, yog li nws nyob ntawm koj uas yuav siv!
- Fadecandy (Asmeskas Amazon | UK Amazon)
- USB Cable txuas Fadecandy rau lub khoos phis tawj (Asmeskas Amazon | UK Amazon)
- Ob chav header pins (Asmeskas Amazon | UK Amazon)
- Capacitors (Asmeskas Amazon | UK Ebay)
-
5V Cov Khoom Siv Hluav Taws Xob (Asmeskas Amazon | UK Amazon) Cov khoom siv hluav taws xob no kuv tau txuas nrog yuav ua rau lub zog 512 LEDs (ib qho Fadecandy tus nqi)
- Plug (US Amazon | UK Amazon) Koj tsuas tuaj yeem siv lub xov tooj ntsaws qub lossis, yog tias koj tsis muaj ib qho, lub taub dej kais yog qhov kev xaiv zoo.
- 3-tus pin JST Connectors (Asmeskas Amazon | UK Amazon) Koj xav tau ib khub rau ib kab (yog li 8 rau ib qho Fadecandy tus nqi)
- 12-AWG Cable (Asmeskas Ebay | UK Ebay) Cov kab tuab no yuav nqa lub zog los ntawm lub zog xa mus rau qee qhov txuas uas faib nws tawm rau txhua qhov sib txawv.
- 24-AWG Cable (Asmeskas Ebay | UK Ebay) Cov kab hluav taws xob me me no yuav nqa lub zog rau txhua kab sawb LED.
- Wago txuas (Asmeskas Amazon | RS Cheeb Tsam UK)
- Cov no yuav faib lub zog los ntawm ib lub zog xa mus rau ntau daim kab xev. Lawv tuaj hauv pob 10 uas txaus rau ib Fadecandy.
Khoom siv
- RTV silicone (Asmeskas Amazon | UK Amazon)
- Thaum tshav kub kub ntsws (Asmeskas Amazon | UK Amazon)
- Ntshiab ~ 10mm heatshrink (Asmeskas Amazon | UK Amazon)
- Solder (Asmeskas Amazon | UK Amazon)
Cov cuab yeej
- Soldering hlau (Asmeskas Amazon | UK Amazon)
- Hlau strippers (Asmeskas Amazon | UK Amazon)
- Ntsia Hlau
- Txiab
- Pab txhais tes (tsis teb los tau)
- Solder sucker (yeem)
Kauj Ruam 2: LED Sawb
Txhua lub pluaj LED xav tau txuas nrog lub zog, hauv av thiab cov ntaub ntawv. Muaj tus xub luam tawm ntawm kab ntawv uas qhia cov lus qhia uas cov ntaub ntawv yuav tsum ntws.
Txhua lub hlua LED xav tau JST txuas thiab lub capacitor txuas rau nws.
Qhov txuas:
Lub JST txuas muaj 3 tus pin/cables - ib qho rau lub zog, hauv av thiab cov ntaub ntawv. Muaj peev xwm tshem tawm lossis hloov cov kab txaij tau muaj txiaj ntsig hauv ntau qhov xwm txheej. Yog tias koj ntseeg siab tias koj tsis xav kom tshem tawm lossis hloov tau yooj yim ntawm koj lub strips ces koj tuaj yeem cia li txuas ntawm kab ntawv hloov tab sis kuv xav kom pom zoo kom muaj cov txuas.
Lub capacitor:
Yog tias muaj qhov hloov pauv tam sim no (qhov no tuaj yeem tshwm sim thaum koj qhib lub hwj chim ua ntej) tom qab ntawd lub tshuab hluav taws xob yuav tiv thaiv thawj LED hauv koj kab txaij los ntawm kev puas tsuaj.
Cable:
Yog tias koj tab tom npaj teeb tsa teeb tsa LED koj yuav tsum xav txog yuav ua li cas koj lub strips, cov khoom siv fais fab thiab Fadecandy (s) yuav muab tso rau. Txhawm rau kom ntseeg tau tias koj cov kev sib txuas yuav ncav cuag, koj yuav zoo li yuav tsum tau ntxiv qee qhov ntev ntawm cable nyob qhov twg.
Koj tuaj yeem muab cov hlua txuas txuas rau kab hlua LED thiab tom qab ntawd txuas cov JST txuas mus rau lwm qhov kawg ntawm kab. Xwb, koj yuav tuaj yeem txuas tus JST txuas ncaj qha rau ntawm kab txaij thiab ntxiv cov kab hluav taws xob ntev mus rau lub zog hluav taws xob/Fadecandy sab xwb. Nws yuav txhua yam nyob ntawm koj qhov teeb tsa teeb tsa thiab phiaj xwm.
Cable uas txuas lub zog/hauv av rau ib kab ntawm txog 64 pixels tuaj yeem yog 24AWG cable. 24AWG kuj tseem txaus rau cov ntaub ntawv sib txuas. Siv cov xim sib txawv sib txawv rau lub zog/cov ntaub ntawv/hauv av - cov xim zoo uas phim koj li JST txuas.
Kuv tsuas yog yuav txuas tus JST txuas ncaj qha rau cov kab ntawv thiab tsis ntxiv ib qho txuas txuas ntxiv, vim tias kuv tsis txhawj xeeb nrog teeb tsa hauv qhov kev qhia no.
Kauj Ruam 3: Txuas JST Connector thiab Capacitor
Npaj Sawb
Txiav koj cov hlua LED kom ntev (64 pixels max rau ib kab).
Nrhiav txoj cai kawg, tus uas muaj tus xub taw qhia sab hauv. Txiav ib qho me me ntawm lub npog dej kom deb kom koj tuaj yeem pom peb qhov kev sib cuag. Lawv tau sau daim ntawv 5V, GND thiab Cov Ntaub Ntawv Hauv. (Yog tias kev sib cuag tau sau cov ntaub ntawv tawm ces koj muaj qhov tsis raug qhov kawg).
Solder ntawm JST txuas thiab lub capacitor
Qhov no tuaj yeem ua rau me ntsis fiddly tab sis kuv tau pom txoj hauv kev zoo tshaj plaws los ua nws yog yaj me ntsis ntawm cov laug rau ntawm txhua ntawm peb qhov kev sib cuag, tom qab ntawd muab tshuaj txhuam ntawm JST txuas thiab tom qab ntawd lub capacitor.
Siv tus poj niam JST txuas los txuas rau sab sawb. JST txuas muaj 3 kab, ib qho rau txhua tus neeg sib cuag ntawm kab txaij. Feem ntau cov kab liab liab, ntsuab thiab dawb, lossis liab, ntsuab thiab dub. Siv liab rau lub zog, ntsuab rau cov ntaub ntawv thiab dawb/dub rau hauv av.
Txiav ob txhais ceg ntawm lub capacitor luv yuav pab nws nyob hauv qhov chaw. Ib sab ntawm lub tshuab hluav taws xob muaj cov cim tsis zoo, txhais ceg ntawm sab no txuas rau GND tiv tauj thiab txhais ceg ntawm lwm sab txuas rau 5V kev sib cuag.
Reseal qhov quav
Txiav ib daim ntawm cov cua sov kom sov uas yuav npog qhov nthuav tawm ntawm cov kab txaij thiab muaj kev sib tshooj ntau nrog cov npog tsis muaj dej uas twb muaj lawm. Hloov nws hla kab ntawv (koj tuaj yeem ua qhov no ua ntej koj txuas JST txuas/lub tshuab hluav taws xob lossis tsuas yog xaub nws los ntawm lwm qhov kawg) thiab khaws nws ib sab ntawm qhov nthuav tawm.
Muab ntau RTV silicone tso ncaj qha rau cov neeg sib tiv thiab nyob ib puag ncig cov npog uas twb muaj lawm, suav nrog rau sab nraub qaum. Xaub lub cua sov kom ntshiab ntswj hla lub silicone. Moj tej tawg nrog rab phom cua sov kom txog thaum cov cua sov ua kom cua sov poob qis.
Silicone yog me ntsis ntxhib. Nco ntsoov ntxuav koj txhais tes yog tias koj tau txais nws ntawm koj cov tawv nqaij. Xav txog muaj ntawv xov xwm lossis qee yam ntawm koj qhov chaw ua haujlwm.
Rov ua qhov no rau tag nrho 8 ntawm koj cov hlua LED
Kauj Ruam 4: Lub Hwj Huam Fais Fab
Koj yuav tsum tau txuas lub ntsaws rau koj lub hwj chim. Kuv tau suav nrog cov lus qhia rau UK thiab Asmeskas plugs.
Npaj lub Plug
Txiav lub cable kom zoo nyob deb ntawm lub ntsaws qhov kawg. Siv rab riam Stanley txhawm rau ua tib zoo tshem tawm cov txheej txheej sab nrauv. Koj yuav tsum pom peb txoj kab hluav taws xob sab hauv, hle deb li ib centimeter ntawm txhua ntawm cov kab no.
Hauv UK plug koj feem ntau tuaj yeem xav tias: Daj/ntsuab txaij - GroundBrown - LiveBlue - Neutral
Hauv Asmeskas ntsaws koj tuaj yeem xav tias: Ntsuab - GroundBlack - LiveWhite - Neutral
Txhawm rau kom ntseeg tau tias koj lub ntsaws tau txuas raws li qhov xav tau, koj tuaj yeem siv lub ntsuas ntsuas los ntsuas.
Txheeb xyuas cov kab nrog lub multimeter
Lub tebchaws United Kingdom: Saib ntawm lub ntsaws ntsaws, nrog tus pin nkaus rau saum toj. Tus pin sab saum toj yog Lub Ntiaj Teb, hauv qab sab laug yog Nyob, hauv qab txoj cai yog Neutral. Cov pins tseem tau cim nrog cov tsiaj ntawv, E, L thiab N ntawm cov plugs feem ntau.
TEB CHAWS USA: Saib ntawm tus pin ntsaws, nrog tus pin nkaus hauv qab. Tus pin hauv qab yog Lub Ntiaj Teb, sab laug sab saum toj yog Nyob, sab xis saum toj yog Neutral. Cov pins tseem tau cim nrog cov tsiaj ntawv, E, L thiab N ntawm cov plugs feem ntau.
Ob qho: Teem koj lub multimeter rau hom txuas mus ntxiv. Kov lub multimeter prongs ua ke los tshuaj xyuas nws ua haujlwm, koj yuav tsum hnov lub suab nrov. Tam sim no kov ib qho rau ib qho ntawm cov ntsaws ntsaws, cia pib nrog hauv av. Tam sim no kov lwm qhov txuas rau kab uas koj xav tias yuav av (daj/ntsuab hauv tebchaws Askiv, ntsuab hauv Asmeskas). Koj yuav tsum hnov lub suab nrov nrov, qhia tau tias muaj kev sib txuas tas li ntawm ob kab lus. Tam sim no txheeb xyuas cov kev sib txuas nyob thiab nruab nrab.
Txuas lub Plug
Qhib cov ntsia hlau uas hais tias lub zog, hauv av thiab nyob ntawm lub hwj chim. Tej zaum lawv yuav cim L thiab N thiab tom qab ntawd muaj lub cim av. Ntsuas cov kab tsim nyog nyob ib sab ntawm cov ntsia hlau thiab rov ua kom nruj dua
Ib qhov twg ntawm/sab hauv lub zog yuav muaj qhov hloov pauv uas tso cai rau koj hloov pauv qhov hluav taws xob los ntawm 110V txog 220V, yog li xyuas kom qhov no tau teeb tsa kom raug (feem ntau yuav 220V hauv tebchaws Askiv thiab 110V hauv Asmeskas).
Ntawm kuv cov khoom siv hluav taws xob hloov pauv sab hauv, thiab koj yuav tsum siv lub ntswj ntsia hlau nyias los yog qee yam kom ncav cuag nws.
Txuas koj lub hwj chim. Feem ntau muaj lub teeb qhia kom pom tias nws tau qhib kom raug.
Tam sim no koj tuaj yeem tshawb xyuas seb qhov hluav taws xob koj tau txais hla ob ntawm cov pins tso tawm. Tig koj lub ntsuas cua mus rau DC qhov ntsuas hluav taws xob (V nrog txoj kab ncaj/dashed, tsis yog kab wiggly). Kov ib qho rau V-ntsia hlau thiab ib qho txuas rau V+ ntsia hlau. Lub multimeter yuav tsum qhia qhov hluav taws xob nyob ib puag ncig 5V.
Siv tus ntsia hlau tig tig cov ntsia hlau kom txog thaum qhov hluav taws xob yog 5V.
Kauj Ruam 5: Faib Fais Fab
Feem ntau 5V cov khoom siv hluav taws xob yuav tsuas muaj ib lossis ob qhov tso tawm, tab sis peb xav tau lub zog 8 kab.
Wago Txuas
Kuv siv Wago txuas los faib lub zog tawm. Cov txuas me me no muaj ob peb qhov qhib rau cov kab hluav taws xob nkag rau hauv. Txhua qhov qhib tau txuas nrog ib leeg yog li nws yog txoj hauv kev zoo los txuas ntau txoj kab hluav taws xob ua ke yam tsis muaj kev sib tsoo.
Lawv tuaj hauv ob peb qhov sib txawv (2-txoj kev, 3-txoj kev, 5-txoj kev).
Lub zog rau Wagos
Nco ntsoov tias koj lub hwj chim tsis muaj qhov ntsaws thaum koj ua ntu no.
Siv ob daim 10awg cable, ib qho rau hauv av (dub) thiab ib qho rau lub zog (liab).
Qhov ntev ntawm txoj kab uas xav tau yuav nyob ntawm koj qhov teeb tsa teeb tsa. Kuv tau pom nws ua haujlwm zoo heev kom khaws txhua lub zog siv hauv pem teb hauv ib qho thiab tom qab ntawd muaj ntev 10awg cov xov hlau uas txuas mus ze qhov twg cov kab ntawv nyob, thiab faib lub zog tawm muaj. Txawm hais tias lub hwj chim muaj ob qhov tso tawm, Kuv tau pom tias nws zoo dua thiab pheej yig dua tsuas yog siv ib qho tso tawm thaum cov kab 10awg no xav tau ntev, txwv tsis pub koj nyob ob npaug ntawm cov tuab tuab 10awg cable koj yuav tsum yuav thiab ua kom huv si.
Sawb txog 1cm tawm ntawm ib qho kawg ntawm txhua kab, thiab txuas nws mus rau lub hwj chim siv cov ntsia hlau zoo li koj tau ua nrog lub ntsaws.
Sawb txog 1.25cm tawm ntawm lwm qhov kawg ntawm txhua kab, thiab muab lub zog txuas mus rau hauv ib qho 3-txoj kev Wago txuas thiab hauv av rau hauv 5-txoj kev Wago txuas. (Los yog koj tuaj yeem siv 5 txoj kev txuas rau txhua yam, koj tsuas yog muaj qee qhov seem ntxiv)
Tom qab ntawd siv ob lub luv luv ntawm liab 10awg cable thiab ob lub luv luv ntawm dub 10awg cable. Sawb 1.25cm tawm ntawm qhov kawg ntawm txhua qhov thiab txuas nrog Wago txuas uas twb muaj lawm rau plaub ntxiv 5-txoj kev txuas. (Saib daim duab txuas nrog kom paub meej ntxiv).
Lub zog los ntawm Wagos (mus rau ib daim hlab)
Ib zaug ntxiv, tus qauv tsim ntawm no yuav nyob ntawm koj qhov teeb tsa kev teeb tsa. Kuv tau hais ua ntej tias koj yuav xav tau txuas ntev cable rau koj cov hlua LED, lossis koj yuav xav ntxiv qhov ntev rau sab kev faib hluav taws xob. Yog tias koj tab tom ntxiv cable ntawm no, tom qab ntawd txuas qhov ntev ntawm 24awg cable rau koj li JST-txuas thiab xyuas kom tseeb tias nws tau tshav kub.
Tom qab ntawd txawm yog siv qhov kawg ntawm cov xov hlau, lossis qhov xaus ntawm JST-txuas thiab tshem tawm tsawg kawg 1.5cm ntawm lub zog thiab cov kab hluav taws xob hauv av ntawm txhua.
Nruab nrab ntawm plaub 5-txoj kev txuas uas koj tau txuas nrog lub hwj chim, koj yuav tsum muaj yim qhov pub dawb rau lub zog thiab yim qhov qhib pub dawb rau hauv av. Pop tag nrho cov kab tsim nyog rau hauv qhov chaw.
Vim li cas qee zaum peb qee zaum siv 10awg thiab qee zaum 24awg kab?
Qhov sib txawv cable ntsuas yog vim muaj qhov sib txawv ntawm qhov tam sim no hauv ntau qhov sib txawv ntawm qhov Circuit Court.
Tuaj ncaj qha los ntawm lub zog xa khoom, 512 LEDs tag nrho ntawm qhov ci ci dawb tuaj yeem kos rau ~ 30A. Siv daim kab xev tuab 10awg kom xa qhov tam sim no.
Thaum peb tau faib lub zog tawm mus rau cov kab sib txawv txawm li cas los xij, txhua tus tsuas yog kos rau ~ 3.5A yog li peb tuaj yeem siv cov kab hluav taws xob me me, ncig 24awg ua haujlwm tau zoo.
Yog tias koj siv kab hlau uas nyias nyias, nws tuaj yeem ua kom sov thiab qhov no txaus ntshai vim txheej txheej yuav pib yaj thiab qhov no tuaj yeem ua rau koj lub Circuit luv luv.
Qhov ntev ntawm cable kuj ua qhov sib txawv. Yog tias koj siv kab uas yuav zoo ntawm qhov luv luv, tab sis yog tuab dhau rau qhov ntev - nws yuav tsis sov tab sis nws tuaj yeem txhais tau tias qhov hluav taws xob tau poob los ntawm lub sijhawm nws mus rau LEDs, txhais tau tias lawv yuav tsis pom kev zoo.
Cov cuab yeej no tuaj yeem pab koj txheeb xyuas seb koj xav tau dab tsi cable gauge.
Kauj Ruam 6: Cov ntaub ntawv
Yog tias koj yuav tsum txuas JST txuas tam sim no, tom qab ntawd koj cov hlua LED yuav muab nrog lub zog. Tab sis tsis muaj dab tsi yuav ci vim tias cov kab no yuav tsum tau qhia tias yuav tsum muaj xim dab tsi. Peb yuav tsum teeb tsa cov ntaub ntawv sib txuas rau Fadecandy uas yuav muab cov lus qhia no rau lawv.
Npaj Fadecandy
Thawj cov kab laug sab ob lub taub hau txuas rau Fadecandy. Thawb sab luv ntawm lub taub hau pins hla lub qhov thiab tig Fadecandy dua kom cov khoom tawm tuaj pom.
Ua tib zoo muab tshuaj txhuam ntawm 16 tus pin ib tus zuj zus, ua kom ntseeg tau tias koj tsis yuam kev txuas ob tus pin ua ke. (Qhov tseeb tag nrho cov pins hauv av tau txuas nrog ib leeg rau ib leeg, tab sis rau kev ua kom zoo peb kuj yuav zoo dua txhua lub taub hau pins.)
Poj niam header pins ua tus txuas
Siv tus poj niam header pins los ntsaws rau hauv tus txiv neej ob chav header pins txhais tau tias Fadecandy tuaj yeem tshem tau lossis hloov pauv tau yooj yim.
Txiav tawm ntu ntawm 8 tus poj niam header pins. Nqa txhua qhov ntawm cov ntaub ntawv cable los ntawm tus txiv neej JST-txuas (lossis yog tias koj tab tom txuas cov xov tooj ntawm sab no, rau koj teeb tsa teeb tsa, ua qhov ntawd ua ntej). Tom qab ntawd xaub ib qho ntawm cov cua sov ntswj hla lub cable thiab muab lawv ib tus zuj zus rau 8 tus pin. Thaum qhov ua tiav tiav lawm, xaub lub cua sov kom qis thiab tawg nws nrog rab phom cua sov. Tam sim no qhov no tuaj yeem txuas rau cov ntaub ntawv pins ntawm Fadecandy.
Txij li 8 tus pin hauv av ntawm Fadecandy tau ua txhua yam txuas nrog rau ib leeg, peb tsuas yog xav tau rau hauv av ib ntawm lawv. Txiav tawm lwm ntu luv ntawm poj niam header pins - nws kuj tseem yuav yog 8 tus pin zoo ib yam txawm hais tias peb tsuas yog siv ib tus pin, txiav nws ua 8 pins dav yuav ua rau nws khov thiab yooj yim dua los tuav. Muab ib daim ntawm 24awg txuas rau ib qho ntawm tus poj niam header pins thiab ua kom sov nws, txuas qhov no mus rau hauv av pins ntawm Fadecandy.
Txuas qhov kev sib tw kawg ntawm cov kab hauv av no rau ib qho khoom seem hauv koj qhov av txuas Wago.
Cov ntawv thiab ua kom huv
Tej zaum koj yuav xav sau koj cov xov tooj ntawm qhov no. Tsis tas li, ib zaug ntxiv nyob ntawm tus qauv thiab teeb tsa ntawm koj qhov kev teeb tsa, koj yuav xav xav txog kev tsim qee yam vaj tsev rau Wago cov khoom sib txuas yog li lawv tsis yog dai. Yav dhau los kuv tau ua me me plaques ntawm plywood thiab kub glued Wagos rau.
Kauj Ruam 7: Cov Khoom Kho Vajtse Kawg …
Qhov ntawd yog txhua yam kho vajtse teeb tsa. Tsuas yog ob peb qhov kawg:
Txuas txhua tus JST txuas rau ib leeg.
Plug rau hauv lub hwj huam mov.
Txuas Fadecandy rau hauv koj lub laptop ntawm USB.
Tam sim no cia qee yam teeb pom kev!
Kuv cov lus qhia thiab screenshots yuav yog Windows-centric tab sis txhua yam yuav tsum ua haujlwm zoo ib yam nkaus ntawm Mac.
Kauj Ruam 8: Teeb Fadecandy Software
Mus rau Fadecandy github thiab rub tawm cov ntawv zip.
Unzip txhua yam.
Nkag mus rau txhua qhov chaw koj unzipped nws, thiab qhib "bin" nplaub tshev.
Khiav fcserver.exe.
Lub qhov rai yuav qhib. Nws yuav tsum hais tias koj muaj Fadecandy ntaus ntawv txuas nrog. Nws tseem qhia koj tus lej lej ntawm lub cuab yeej ntawd. Tsis txhob kaw lub qhov rai no, tsuas yog txo nws. Koj yuav tsum ua kom nws qhib tag nrho lub sijhawm koj siv Fadecandy.
Kauj Ruam 9: Fadecandy Server
Hauv qhov browser browser (zoo li Chrome), mus rau:
127.0.0.1:7890
Koj yuav tsum pom koj lub cuab yeej txuas nrog ntawm no ib yam.
Tam sim no, hauv qab koj lub cuab yeej txuas nrog koj tuaj yeem pom qhov poob qis sau tias Test Patterns. Koj tuaj yeem siv qhov kev poob qis no los ua kom pom koj lub LEDs txog li 50% lossis tag nrho qhov ci ci.
Ua tam sim no! Teeb! Yog !!
Kauj ruam 10: Teeb meem
Txheeb xyuas koj cov hlua LED thiab xyuas kom txhua lub teeb ua haujlwm.
Nov yog qee cov lus qhia daws teeb meem…
Ib/Ib co kab (s) tsis pom kev:
Feem ntau yuav muaj kev sib txuas nyob rau qee qhov tsis zoo. Txheeb xyuas ob qho tag nrho koj cov neeg muag khoom. Nws muaj peev xwm thawj LED hauv kab txaij puas. Koj tuaj yeem sim pauv cov kab ib ncig los ntawm kev sib pauv uas JST txuas tau siv, qhov no yuav pab koj cais qhov teeb meem.
Ib txoj hlua teeb ua ib txoj hauv kev thiab tom qab ntawd tsis muaj ntxiv lawm:
Cov hlua yuav raug puas ntsoog, tej zaum koj yuav xav tau qee qhov kev phais. Kev puas tsuaj tuaj yeem yog qhov kawg ntawm lub pixel ua haujlwm zaum kawg lossis hauv thawj qhov tawg ib qho yog li … txiav tawm qhov ua haujlwm kawg pixel thiab thawj tawg ib qho, thiab txuas ob qhov tshiab rau hauv lawv qhov chaw.
Cov kab txaij yog txhua tus txiv kab ntxwv/liab tsis txhob dawb:
Kuv tau pom tias yog tias cov kab txaij tsis tau txais lub zog tsim nyog, lawv yuav kos me me ntawm qhov tam sim no los ntawm kev txuas usb - tsuas yog txaus kom pom lawv liab. Txheeb ob zaug tias lub hwj chim tau qhib thiab tshawb xyuas cov kev sib txuas nyob ntawd.
Cov kab txaij yog dawb thaum pib tab sis ploj mus rau txiv kab ntxwv: Qhov no tsis zoo li yog tias koj siv lub zog txuas uas kuv txuas, tab sis tuaj yeem tshwm sim yog tias koj siv lub hwj chim uas tsis muaj zog txaus.
Tsis muaj ib daim kab xev teeb pom kev zoo:
Yog tias Fadecandy tsis raug lees paub thiab nthuav tawm, koj yuav muaj qee qhov teeb meem tsav tsheb. Yog tias koj tau txais cov lus yuam kev hauv lub qhov rai console ces Google ntawd thiab tshawb nrhiav cov lus qhia.
Yog tias Fadecandy tau tshwm sim tab sis tsis muaj dab tsi yog teeb pom kev zoo - ob zaug txheeb xyuas tag nrho koj cov kev sib txuas.
Kauj ruam 11: Ua
Tam sim no koj cov LEDs tau siv thiab koj tuaj yeem tswj hwm lawv siv koj lub khoos phis tawj tab sis qhov tsuas yog qhov koj tuaj yeem ua tau los ntawm Fadecandy interface yog qhib thiab tua lawv.
Cia peb coj Kev Ua Haujlwm, kom peb tuaj yeem ua qee yam txias dua. Lub Sij Hawm Ua Haujlwm
Download Ua los ntawm no.
Kuv yuav tsis mus rau hauv cov ntsiab lus ntxaws txog yuav ua li cas sau Cov lej, vim tias muaj ntau qhov chaw hauv online kom kawm paub qhov ntawd, thiab nws yog lub ntsiab lus ntawm nws tus kheej.
Kuv yuav qhia koj li cas los kho ib qho ntawm Kev Ua piv txwv uas los nrog Fadecandy rau cov kab ntawv uas koj tau ua ntawm no. Koj tuaj yeem rub tawm kuv tus lej piv txwv ntawm no.
Kauj Ruam 12: Kav Pixels
Fadecandy tso cai rau koj "daim ntawv qhia" (lossis nteg tawm) koj cov leds hla Kev Ua Cov canvas. Feem ntau koj yuav xav teeb tsa lawv zoo ib yam li lawv tau teeb tsa hauv lub neej tiag tiag.
Thaum koj kos qee yam hauv Kev Ua Haujlwm, nws qhia pom lub sijhawm tiag tiag ntawm LEDs.
Tau cov ntaub ntawv
Hauv Fadecandy cov ntaub ntawv koj rub tawm, mus rau: Fadecandy> piv txwv> ua
Luam ib qho ntawm strip64 piv txwv cov ntawv tais ceev tseg, thiab muab tshuaj txhuam nws qhov twg los koj khaws koj cov ntaub ntawv ua tiav.
Qhov piv txwv no suav nrog kev kos duab rau ib kab ntawm 64 pixels. Hloov lub nplaub tshev thiab cov ntaub ntawv.pde sab hauv, yog li nws hais tias "strips" xwb.
Kav
Qhib cov ntaub ntawv. Saib cov kab no hauv ntu teeb tsa:
// Daim ntawv qhia ib qho 64-LED kab txaij mus rau nruab nrab ntawm lub qhov rooj windowopc.ledStrip (0, 64, dav/2, qhov siab/2, dav/70.0, 0, tsis tseeb);
Nov yog kab uas tab tom tsim ib kab ntawm 64 pixels. Txhua yam ntawm cov ntawv sau nruab nrab ntawm tus lej yog qhov ntsuas ntawm kab ntawv ntawd. Saib daim duab txuas uas qhia tias txhua tus yog dab tsi. (Nws tseem nyob hauv cov lus hauv kuv tus lej.)
Peb tuaj yeem siv lub voj los tsim 8 kab txaij ntawm 15 pixels txhua. Tshem tawm ob kab thiab hloov lawv nrog qhov no:
// Daim ntawv qhia 8 kab txaij ntawm 15 pixels txhua rau (int i = 0; i <8; i ++) {
opc.ledStrip (i*64, 15, dav/2, i*15 + 30, 15, 0, cuav);
}
Koj daim duab qhia chaw
Yog tias koj muaj tus lej sib txawv ntawm cov pixels hauv txhua kab, lossis koj xav tso koj cov kab ntawv sib txawv, koj yuav tsum tau kho qhov chaws no. Siv daim duab txuas lossis cov lus pom hauv kab lus uas piav qhia txhua qhov me ntsis ntawm daim duab qhia chaw yog los tsim cov cai koj xav tau.
Kauj ruam 13: Ntaus Ua Si hauv Kev Ua
Thaum koj ntaus ua si (nyob rau sab saud sab laug ntawm Kev Ua Haujlwm), koj yuav pom cov kab ntawv qhia ua piv txwv me me me me ntawm daim ntaub.
(Yog tias koj tsis pom cov dots dawb, tej zaum koj yuav kaw lub server qhov rai. Rov qab mus rau kauj ruam 8 thiab xyuas kom tseeb tias koj muaj fcserver.exe khiav)
Cov yeeb yaj kiab hauv qhov piv txwv kuv tau siv yog sib tham sib. Thaum koj txav tus nas ib ncig, daim duab teev raws tus cursor. Lub teev tseem yuav tshwm ntawm koj lub teeb tib lub sijhawm.
Animation chaws
Me ntsis ntawm cov cai uas ua rau qhov no tshwm sim ntawm no:
void kos () {
keeb kwm yav dhau (0); ntab dotSize = dav*0.2; duab (dot, mouseX- dotSize/2, mouseY - dotSize -2, dotSize, dotSize);
}
Txhua txoj cai koj sau hauv ntu kos yuav tshwm ntawm LEDs.
Kauj Ruam 14: Piv Txwv Ntxiv… Lub Sijhawm Rau Koj Kuaj
Nov yog qee qhov piv txwv ntxiv ntawm cov duab kuv tau ua rau cov teeb no - zaj sawv, qee qhov blobs random, thiab ib qho uas siv lub koob yees duab pub. Cov no yog txhua yam ntawm kuv github ntawm no.
Kuv tab tom siv ib daim ntawv yas corrugated ua diffuser. Koj tuaj yeem sim nrog txhua yam khoom!
Kuv pom zoo kom kawm paub Ua thiab ua cov duab ntxiv rau koj lub teeb! Nws tau nrawm heev kom pib thiab pom cov txiaj ntsig lom zem sai. Dan Shiffman cov lus qhia yog qhov chaw zoo pib.
Kauj Ruam 15: Ua Tsaug Rau Kev Nyeem
Kuv vam tias koj nyiam qhov kev qhia no!
Ua tibzoo saib ntawm cov vis dis aus YouTube yog tias koj tsis tau ua.
Nrhiav kuv hauv online:
InstagramYouTubeTwitter
Zoo siab tso tawm cov lus nug hauv cov lus ntawm no lossis hauv Youtube thiab kuv yuav sim thiab pab tawm.
Khiav Tawm Hauv Kev Sib Tw Teeb Pom Kev Sab Hauv
Pom zoo:
Kua TV Siri Cov Teeb Meem Teeb Meem Nrog Bluetooth Pobzeb Finder: 7 Kauj Ruam (nrog Duab)
Kua TV Siri Cov Teeb Meem Zaum Kawg Nrog Bluetooth Pobzeb Finder: Kuv ib zaug nyeem cov lus piav qhia ntawm iPhone raws li " Lo ntawm cov butter ntub dej hauv cov roj thiab nchuav nrog WD40 rau qhov ntsuas tau zoo! &Quot; Kuv xav tias nws yog thaum tus qauv 6 tawm los thiab txhua tus tau poob lawv lub xov tooj tshiab kim thiab tawg iav
DIY LED Teeb - Niaj Hnub Teeb Meem Teeb Nrog Cov Chaw Taws Teeb: 8 Kauj Ruam (nrog Duab)
DIY LED Teeb - Niaj Hnub Teeb Mood Teeb Nrog Chaw Taws Teeb: Hauv kab lus no kuv yuav mus hla cov txheej txheem Kuv tau siv los tsim qhov no zoo heev pyramid zoo li tus LED Mood Teeb.Kuv siv maple rau cov qauv tseem ceeb thiab qee qhov mahogany txhav ntxiv rau lub zog. Rau lub teeb Kuv siv RGB LED teeb uas tuaj nyob hauv 16 ko taw
Yuav Ua Li Cas Txhim Kho Tus Kheej Txoj Kev Nrog Lub Sijhawm Teeb Meem Teeb Meem: 6 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Kom Taug Kev Ntse Nrog Kev Cuam Tshuam Timer Tus Kheej: Phau ntawv qhia no qhia yuav ua li cas thiaj ua rau txoj hauv kev ntse nrog kev teeb tsa lub sijhawm tswj
Txheeb Xyuas Cov Teeb Meem thiab Ceeb Toom - Arduino UNO thiab Ultrasonic: 4 Cov Kauj Ruam (nrog Duab)
Txheeb Xyuas Cov Teeb Meem thiab Ceeb Toom - Arduino UNO thiab Ultrasonic: Qhov no yog kev qhia los pab koj nkag siab txog ultrasonic thiab buzzer thiab nkag mus tob rau kev kawm Arduino, ua raws cov theem no thiab muab kuv cov lus teb
Yuav Ua Li Cas Kho Cov Teeb Meem Nrog Pionner Steering Log Remote - Ua kom IR Teeb Pom Kev Zoo thiab Kho Me Me Xauv: 14 Cov Kauj Ruam
Yuav Ua Li Cas Kho Cov Teeb Meem Nrog Pionner Steering Log Remote - Ua kom IR Teeb Pom Kev Zoo thiab Kho Me Me Xauv.: Cov chaw taws teeb no zoo nkauj heev thiab yooj yim, tab sis qee lub sij hawm tsis ua haujlwm tsim nyog Qee yam rau qhov no: tsim qauv teeb tsa, tsim lub log, thiab IR teeb liab qhov project tsis yog piv txwv ntawm kev ua tau zoo. Kuv tuaj ntawm Brazil thiab pom cov lus qhia no ntawm Amaz