Cov txheej txheem:

Neighborhood Wide Synchronized LEDs: 5 Kauj Ruam (nrog Duab)
Neighborhood Wide Synchronized LEDs: 5 Kauj Ruam (nrog Duab)

Video: Neighborhood Wide Synchronized LEDs: 5 Kauj Ruam (nrog Duab)

Video: Neighborhood Wide Synchronized LEDs: 5 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Neighborhood Wide Synchronized LEDs
Neighborhood Wide Synchronized LEDs
Neighborhood Wide Synchronized LEDs
Neighborhood Wide Synchronized LEDs
Neighborhood Wide Synchronized LEDs
Neighborhood Wide Synchronized LEDs

Kuv muaj qee lub wireless LED tuav uas kuv xav tias kuv tuaj yeem tso rau hnub so. Tab sis, hauv kuv lub vaj, lawv kuj tseem tuaj yeem txuas tau thiab. Yog li, qhov kev sib tw txias txias yog dab tsi? Kho kom zoo nkauj LED ntawm txhua lub tsev ntawm kuv qhov thaiv nrog cov khoom sib xyaw ua ke! Hauv lub xyoo vwm no, nws yog txoj hauv kev txuas peb ua ke.

Cov no yog ESP8266 siv cov hlua hluav taws xob LED, thiab lawv yog WiFi sib txuas sib txuas, yog li lawv txhua tus qhia tib cov kauj ruam hauv kev ua yeeb yaj kiab tib lub sijhawm. Txij li thaum lawv siv mesh txoj cai los txuas, lawv tuaj yeem yog ob peb lub tsev sib nrug, thiab cov lus tau dhau los ntawm ntawm qhov rau ntawm.

Lawv khiav ntawm 5 volts, thiab kuv tau siv lub zog hloov pauv, tab sis lawv tuaj yeem khiav ib ntus ntawm USB roj teeb ib yam. Yog li lawv yog cov nqa tau, khiav lawv tus kheej WiFi network uas tsis txuas nrog Is Taws Nem, thiab tuaj yeem khiav tawm ntawm kab sib chaws.

Txhua tus ntawm peb cov neeg nyob ze tau zoo siab tau muaj qhov kho kom zoo nkauj zoo nkauj no, thiab nws zoo nkauj heev li cas koj pom lawv txhua tus qhia pom tib yam li koj taug kev ntawm txoj kev. Kuv muaj qee cov duab ntawm no ntawm ob peb lub xub ntiag ntawm kuv lub tsev rau kev sim, tab sis nws nyuaj heev rau thaij lawv ntawm txoj kev.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov
Qhov
Qhov
Qhov
Qhov

ESP8266 D1 Mini - Kuv siv D1 Mini cov qauv txij li txhua yam kuv xav tau yog ib tus pin I/O rau LEDs. Txoj haujlwm no tuaj yeem ua tiav yam tsis muaj kev siv lub tshuab thaiv lub dav hlau zoo li qhov no thiab qhov sib txawv ESP8266. Muaj ib qho version ntawm D1 Mini nrog lub kav hlau txais xov zoo dua - D1 Mini Pro. Nws muaj lub kav hlau txais xov ceramic thiab UFL txuas rau lub kav hlau txais xov sab nraud, tab sis koj yuav tsum tau txav ib sab saum toj 0 ohm resistor rau lub kav hlau txais xov sab nraud. Kev sib tham ntau hauv cov kauj ruam tom qab.

WS2811 LED Strands - Kuv siv WS2811 cov hlua txij li lawv tsis muaj dej (tshwj tsis yog JST txuas) thiab yooj yim los ua haujlwm nrog. WS2812b "Neopixel" ib daim kab xev yuav siv tib txoj cai ib yam thiab lwm yam. Kuv siv 5v ib qho, tab sis koj tuaj yeem tau txais lawv hauv 12v (siv tsawg dua tam sim no) - koj yuav xav tau lub zog hloov pauv rau ESP8266s, tom qab ntawd. Koj kuj tseem tuaj yeem tau txais WS2811 LED cov hlua nrog cov txuas tsis sib txuas yog tias koj xav tau. Cov hlua LED uas kuv tau siv muaj JST SM txuas ntawm ob qho kawg - tus poj niam yog tus tawm tswv yim, txawm hais tias kuv tau pom lawv txuas lwm txoj hauv kev (txiv neej raws li kev nkag). Cov kev taw qhia kuj tau cim rau ntawm LEDs lawv tus kheej. Kuj tseem muaj cov xov hluav taws xob txhaj tshuaj - Kuv tau txiav qhov kawg tawm kom cov tinned tsis tuaj yeem luv. Koj tseem tuaj yeem yuav lawv hauv pob ntawm 10.

330 Ohm 1/4 Watt Resistor - qhov no yog siv ntawm cov ntaub ntawv tus pin ntawm ESP8266 txhawm rau tiv thaiv ib qho flickering ntawm LEDs.

JST SM 3 Tus Pin Txiv Neej Txuas - Cov no yog txhawm rau txuas rau cov hlua LED. Nco ntsoov tias qhov "txiv neej" txuas muaj lub hood hla nws.

2.1mm CCTV Female Connector - cov no yog siv rau lub hwj chim txuas. Koj tuaj yeem siv qee qhov txuas txuas rau qhov no yog tias koj xav tau.

5V Cov Khoom Siv Hluav Taws Xob - qhov ntsuas amp nyob ntawm seb koj yuav muaj pes tsawg LEDs. 2A ib qho yog tej zaum OK rau 50 lossis 100 LEDs uas tsis tau ua tiav (saib cov kab txuas rau cov lus qhia ntxiv).

JST SM 3 Tus Pin Txuas Hluav Taws Xob lossis 2.1 hli txuas txuas hlau - txij li JST txuas ntawm D1 Mini ze rau ntawm LEDs, koj feem ntau xav tau kev txuas ntxiv kom tso cov LEDs tso rau deb ntawm CPU. Hauv kuv qhov xwm txheej, Kuv tau xaus tso CPU siab dua hauv qhov kho kom zoo nkauj kom tau txais WiFi ntau dua, yog li kuv khaws CPU nyob ze ntawm LEDs thiab siv 2.1mm txuas txuas txuas ntxiv.

USB rau 2.1mm Cable - qhov no yog nyob ntawm yeem - cia koj siv lub zog los ntawm ib qho USB los yog roj teeb.

3mm Thaum Tshav Kub Kub Shrink Tubing - koj tsuas xav tau txog 1 ntawm qhov no los npog qhov tiv thaiv ntawm D1 Mini.

20mm Clear Heat Shrink Tubing - qhov no yog ib feem xaiv los tiv thaiv cov txuas ntawm D1 Mini. Nco ntsoov kaw ib ncig ntawm qhov hloov pauv rov qab tom qab thov yog tias tubing nrawm hloov qhov hloov pauv.

Lub thawv tsis muaj dej - los tiv thaiv lub hwj chim thiab CPU sab nraud. Kuv cov neeg nyob ze feem ntau siv hnab yas xwb.

1/2 "EMT conduit - ib daim 29" haum rau cov khaub noom pas nrig zoo nkauj - Kuv siv 4 txoj hlua sib txuas los tuav nws. Kuv sim 1/2 "PVC, thiab nws haum, tab sis kov LEDs ntawm ob sab.

3/8 "x 3 'rebar - ib zaug EMT tau txuas nrog cov duab, koj tuaj yeem hlais cov hlau txuas hauv av thiab muab EMT yeeb nkab hla nws. 1/2" rebar yuav haum, tab sis koj yuav tsum txiav tawm ib qho khoov qhov chaw, thiab nws nyob ze - yog tias nws tau tiaj tus lossis ib yam dab tsi thaum ntaus nws, nws yuav nruj heev. Yog li, 3/8 "yog qhov yooj yim dua kom tshem tau txoj kab sab hauv ntawm EMT yeeb nkab.

Khoom qab zib Cane zoo - saib cov kauj ruam ntawm cov no, koj tuaj yeem DIY lub ntsej muag, npog lawv hla lub hav txwv yeem, lossis siv cov duab zoo li no.

Kauj Ruam 2: Tus Tswj Xyuas Lub Rooj Sib Tham

Cov Rooj Sib Tham Tswj
Cov Rooj Sib Tham Tswj
Cov Rooj Sib Tham Tswj
Cov Rooj Sib Tham Tswj
Cov Rooj Sib Tham Tswj
Cov Rooj Sib Tham Tswj
Cov Rooj Sib Tham Tswj
Cov Rooj Sib Tham Tswj

Tus tswj hwm muaj D1 Mini (ESP8266), 2.1mm CCTV poj niam lub hwj chim txuas, 330 ohm resistor, thiab 3 Pin JST txiv neej txuas.

Qhov kev xav rau txoj haujlwm no yog tias koj yuav siv 50-100 LEDs. Yog tias koj xav siv ntau dua, koj yuav tsum tau siv lub zog txhaj tshuaj kom muaj zog rau txhua lub LEDs. Saib qhov no Lwm Cov Lus Qhia rau kev sib tham tob dua ntawm qhov ntawd.

Nrog 50 LEDs tag nrho ntawm cov dawb, lawv yuav kos 50 x 0.06A = 3 amps. Yog li, nrog 2A adapter, peb xav tias lawv yuav tsis ua tiav. Rau 100 LEDs, qhov siab tshaj plaws yog 6A, yog li kev saib xyuas ntau ntxiv yuav tsum tau ua kom tsuas muaj qee qhov ntawm ib lub sijhawm. Txawm tias muaj 100 LEDs ntawm 0.02A txhua, peb muaj 2 Amps tau siv. Yog li, lub zog hluav taws xob siab dua tam sim no tau pom zoo, txawm hais tias kuv saib cov lus qhia kom tsis txhob siv tag nrho cov LEDs lossis xim ib zaug, ua rau lawv poob ntau, thiab tau pib nrog 2A cov khoom siv nrog qhov loj dua hauv kev khaws cia. Nov yog kab lus zoo txog kev txo hwj chim xav tau.

330 ohm resistor inline nrog cov ntaub ntawv xaim yog txhawm rau tiv thaiv kev ntsais muag los ntawm hluav taws xob nrov nrov vim tias cov ntaub ntawv yog qhov ncaj ncees. Qhov no yog qhov tseem ceeb dua nrog ntau ntawm LEDs, tab sis yog kev coj ua zoo los ntxiv nws.

Kuv tau siv cov tshuaj tiv thaiv rau D1 Mini ncaj qha, tab sis sab laug li 1/8 ntawm cov hlau lead saum lub rooj tsavxwm kom kuv tuaj yeem khoov lawv ncaj. pawg thawj coj saib.

Kuv tau siv 20mm qhov cua sov kom qis los tiv thaiv D1 Mini los ntawm kov cov hlau thiab lwm yam. Kuv xav tau qhov ntawd ntawm kuv tus kheej.

Nco ntsoov tias kuv tsis zoo li xav tau qib hloov pauv los ntawm 3.3V ESP8266 cov txiaj ntsig thiab LEDs khiav ntawm 5V (txij li cov txheej txheem LED nti yog kom muaj cov kab ntawv tsis pub tsawg dua 70% ntawm cov khoom siv). Kuv tau xav tau lub diode/txi LED hauv cov phiaj xwm yav dhau los (Kauj Ruam 3) nrog WS2812b ib daim hlab, tab sis ncaj qha WS2811 chips hauv LEDs zoo li OK.

Koj tuaj yeem ua qhov no yam tsis siv tshuaj yaj yeeb! ESP8266 lub davhlau ya nyob twg thaiv nrog CPU sib txawv yuav ua haujlwm ib yam nkaus. D1 Mini daim ntawv foos yog qhov zoo thiab me me, tab sis lawv txhua tus ua haujlwm zoo ib yam.

Kauj ruam 3: Cov duab

Cov duab
Cov duab
Cov duab
Cov duab
Cov duab
Cov duab

Cov hlua LED tuaj yeem ua daim ntawv dawb, lossis koj tuaj yeem ua rau lawv ua cov duab - xws li DIY, lossis los ntawm khw hauv online. Kuv xaj ob peb daim duab los ntawm HolidayCoro - qee cov ntoo me me, cov khoom lag luam, thiab cov pas nrig qab zib. Cov khoom lag luam coj 50 LEDs zoo - qhov ntev ntawm ib txoj hlua. Tsob ntoo me me siv 100 LEDs, tab sis koj tsuas tuaj yeem ua ib nrab ntawm nws yog tias koj xav tau - ntsib txoj kev. Thaum kawg cov pas nrig qab zib yog cov neeg nyob ze nyiam vim nws loj dua me ntsis. 99 LEDs, thiab kuv tau tso qhov kawg rau sab nraub qaum nrog lub tswv yim nws tuaj yeem siv rau kev debugging.

Txij li cov duab tau los dawb, peb txiav txim siab pleev xim kab txaij liab rau lawv kom lawv zoo nkauj dua nyob rau hnub nruab hnub. Kuv tau npog lawv tawm, ua cov xuab zeb zoo, so nrog acetone (tag nrho lub zog ntsia thawv polish tshem tawm), thiab siv ob lub tsho loj ntawm cov xim tsuag uas ua haujlwm ntawm yas. Nws zoo li ua raws zoo. Peb tau ua feem ntau ntawm ib sab, thiab ob peb sab rau ob peb lub tsev uas muaj 2 ntawm lawv.

Kauj ruam 4: Code & WiFi

Tus lej & WiFi
Tus lej & WiFi
Tus lej & WiFi
Tus lej & WiFi
Tus lej & WiFi
Tus lej & WiFi

D1 Mini siv tus qauv Espressif ESP8266. Kuv programmed nws siv Arduino IDE, yog li nws zoo li muaj zog Arduino nrog WiFi ua hauv. Muaj ntau cov lus qhia hauv Is Taws Nem yuav ua li cas teeb tsa Arduino IDE rau ESP8266 thiab D1 Mini yog li kuv yuav tsis rov hais dua ntawm no.

Txoj cai yog raws li Kev Qhia Ua Ntej dhau los. Nws siv Lub Tsev Tsis Txaus Siab Mesh kom muaj tag nrho cov CPU tham nrog ib leeg. Kuv siv lub tsev qiv ntawv FastLED txij li thaum kuv muaj teeb meem yav dhau los nrog lub tsev qiv ntawv mesh thiab Neopixel lub tsev qiv ntawv, thiab kuv tsis tau rov ntsuas dua lub sijhawm no.

Kuv tsis paub meej tias qhov siab tshaj plaws yog pes tsawg tus lej. Qee cov ntawv tshaj tawm qhia tias nws yuav raug txwv los ntawm cov xov thiab hom CPU thiab tej zaum lub hau nyob ib puag ncig 30-60 nodes. Daim ntawv thov no tsis xa ntau cov lus - tsuas yog hloov pauv cov duab, txawm hais tias muaj qee qhov tsis siv neeg zoo li hloov pauv thiab lub sijhawm sib txuas lus.

Koj tuaj yeem txuas cov LEDs rau D1 Mini thaum ntsuas, tab sis koj yuav xav tau cov khoom siv sab nraud yog tias koj muaj ntau dua 50 txij li koj yuav muaj peev xwm tshaj qhov muab los ntawm koj lub khoos phis tawj USB chaw nres nkoj thiab lub zog tswj hwm ntawm D1 Mini. Qhov ntawd tau hais tias, nrog kuv cov cai tsis tig LEDs tag nrho, Kuv muaj peev xwm ua haujlwm 100 LEDs ntawm USB txuas yam tsis muaj teeb meem.

ESP8266 module muaj onboard WiFi. Txij li cov mesh txoj cai (PAINMesh) peb tab tom siv los tsim Kev Nkag Mus Rau ntawm txhua tus qauv, thaj tsam rau ib puag ncig thoob plaws kev mus cuag yog qhov tseem ceeb. Kuv siv cov khoom qab zib pas nrig, thiab muab CPU tso rau saum toj kom tau txais qhov zoo tshaj plaws, thiab nws yog li 50-100 ko taw - ib mev lossis ob hauv kuv lub zej zog. Qib siab thiab zoo dua kab pom (LOS) txhim kho yam. Qhov ntau tau hla txoj kev hauv qee kis (vam khom ntau lub tsheb thaiv LOSSIS).

Muaj ob peb lub tsev uas tsis tau sib txuas vim muaj WiFi cuam tshuam, tab sis cov teeb pom kev zoo txawm tias thaum tsis sib txuas. Kuv tau ua "rov ua dua" ntawm qhov tsuas yog D1 Mini ntawm tus pas uas siv los ntawm USB roj teeb. Thaum muab tso nruab nrab ntawm cov tsev, lawv tau sib dhos kom raug. Rau qhov rov ua dua tej thaj chaw deb koj tuaj yeem siv tau lub hnub ci USB roj teeb, txawm hais tias lawv tsis tau them ceev heev.

Kuv tseem pom cov teeb meem sib txuas sib txuas tsis tu ncua, tom qab ntawd pom cov ntawv no ntawm muaj ntau lub hauv paus lossis ua rau lawv nthuav tawm:

gitlab.com/p stainlessMesh/pitnessMesh/-/wik…

Siv qhov teeb tsa ntawd, nws pib ua haujlwm zoo dua! Qhov no txheeb xyuas ib qho tshwj xeeb ntawm qhov tseem ceeb, yog li kuv cov cai los tham txog kev tswj hwm ntawm qhov tsis muaj qhov xav tau, uas tuaj yeem faib cov mesh. Kuv tau txuas qhov hloov tshiab/hloov pauv tus lej piv txwv. Txoj hauv kev no xav kom lub hauv paus tseem ceeb nyob rau lawv kom ua tiav, yog li cov mesh tsis yog qhov ua txhaum cai, tab sis ua haujlwm tau zoo dua thaum kis tawm raws li kuv li. Nco ntsoov hloov kho cov cai rau cov ntawv ntawd - tsuas yog ib lub hauv paus yuav tsum tau teeb tsa rau hauv paus - saib cov lus hauv kab lus.

Kuv kuj tau ntxiv ib qho hloov tshiab rau SetRoot qhov sib txawv: Kuv ntxiv cov cai rov pib dua ESP8266 yog tias tsis muaj lus txib rau 10 feeb. Qhov no muab txoj hauv kev rau rov tshawb pom lub hauv paus node. Qhov no zoo li pab nrog qee qhov ntawm cov nyob deb dua.

Thaum kawg ntawm lub caij, kuv muaj peev xwm sim qee qhov D1 Mini Pro modules. Lawv muaj lub kav hlau txais xov ceramic ntawm lub rooj tsavxwm, thiab koj tseem tuaj yeem siv U. FL txuas thiab lub kav hlau txais xov sab nraud yog tias koj txav lub xoom ohm resistor. Kuv sim ob peb tus uas tau teeb tsa cov teeb meem nrog D1 Mini Pros nrog cov kav hlau txais xov ceramic, thiab lawv ua haujlwm tau zoo dua. Kuv tau ua qee qhov kev ntsuas tom ntej nrog ib qho ntawm kuv lub tsev. Raws li cov txiaj ntsig, peb yuav hloov mus rau D1 Mini Pro cov qauv nrog cov kav hlau txais xov ceramic xyoo tom ntej.

Nrog lub chaw deb D1 Mini: Tsuas yog D1 Mini Pro nrog lub kav hlau txais xov sab nraud pom nws, thiab lub teeb liab lub zog qis

Nrog lub chaw deb D1 Mini Pro nrog cov kav hlau txais xov ceramic: D1 Mini, D1 Mini Pro nrog cov kav hlau txais xov ceramic, thiab D1 Mini Pro nrog lub kav hlau txais xov sab nraud txhua tus pom nws nrog kwv yees tib lub teeb liab lub zog, yog li ntawd yog kev txhim kho. Kev taw qhia ntawm cov laug cam (kav hlau txais xov) ua teeb meem rau qib

Nrog lub chaw deb D1 Mini Pro nrog lub kav hlau txais xov sab nraud: Txhua lwm cov laug cam pom nws, tab sis lub teeb liab lub zog tsis zoo dua li kev ntsuas nrog onboard ceramic kav hlau txais xov, yog li kuv yuav tsis thab txav cov xoom ohm resistors thiab tso cov kav hlau txais xov rau ntawm khoom qab zib canes

Kauj Ruam 5: Rooj Sib Tham Kawg

Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg

Thaum koj muaj tus maub los npaj thiab ua haujlwm, txhua yam koj yuav tsum tau ua yog txuas cov LEDs rau tus tswj nrog JST xov hlau, thiab lub zog 5v ntawm 2.1 hli nkaus.

JST txuas ntxiv yuav tsum muaj txiaj ntsig zoo kom tswj hwm tus tswj hwm thiab lub zog hloov pauv ib txwm los ntawm LEDs. Los yog, kom tau txais CPU siab dua, Kuv muab lub hnab yas me me hla lawv ruaj nrog txoj hlua khi, thiab siv 2.1 hli txuas txuas txuas rau lub zog siv.

Lub thawv tsis muaj dej yuav pab tiv thaiv lub adapter thiab CPU, tab sis feem ntau ntawm kuv cov neeg nyob ze siv hnab yas yooj yim.

Nyiaj so koobtsheej Decorations Speed Challenge
Nyiaj so koobtsheej Decorations Speed Challenge
Nyiaj so koobtsheej Decorations Speed Challenge
Nyiaj so koobtsheej Decorations Speed Challenge

Qhov khoom plig thib ob hauv Kev Kho Kom Zoo Nkauj Hnub So Kev Sib Tw

Pom zoo: