Cov txheej txheem:

Accu Multicololred LED Teeb Nrog Huab Cua: 6 Kauj Ruam
Accu Multicololred LED Teeb Nrog Huab Cua: 6 Kauj Ruam

Video: Accu Multicololred LED Teeb Nrog Huab Cua: 6 Kauj Ruam

Video: Accu Multicololred LED Teeb Nrog Huab Cua: 6 Kauj Ruam
Video: Мужские золотые и черные часы Casio G-Shock G-STEEL | GST400G-1A9 Топ 10... 2024, Hlis ntuj nqeg
Anonim
Image
Image

Nyob Zoo Txhua Tus

Muaj ib qhov haujlwm nrog Accu rechargable WS2812 LEDs teeb, uas tuaj yeem tswj tau los ntawm Wifi nrog txhua lub browser muaj peev xwm siv tau ib yam tuaj yeem koom ua ke rau hauv Apple Home Kit thiab tswj ntawm lawv

Qee qhov kev xaiv:

1. Kev koom ua ke 2xAccu 18650 muab ~ 12 teev ua haujlwm tsis muaj lub zog sab nraud ntawm nruab nrab qhov ci ci

2. Ua-hauv OLED 0.96 zaub

3. Huab cua ntsuas BME280 los ntsuas Kub, Vaum thiab Siab. Cov ntaub ntawv tuaj yeem pom hauv Web lossis ntawm kev sib xyaw 0.96 OLED zaub

4. Micro USB chaw nres nkoj rau recharging

Kauj Ruam 1: Ua Lub Cev

Ua Lub Cev
Ua Lub Cev

Kuv tau luam tawm txhua feem ntawm kuv lub tshuab luam ntawv 3d

1. Lub cev

2. ESP32 Dev board npog

3. Txhawb nqa USB them nyiaj tswj nrog kuv tus kheej tsim, saib txuas STL

Kauj Ruam 2: Tshooj Hluav Taws Xob

Tshooj Hauv
Tshooj Hauv
Tshooj Hauv
Tshooj Hauv
Tshooj Hauv
Tshooj Hauv

Txhawm rau tsim txoj haujlwm no koj xav tau

1. ESP32, kuv tau siv ESP32 dev board

2. OLED zaub, Kuv tau siv 0.96 nti hauv SSD1306 nti

3. BME280 sensor

4. 2x 18650 Lithium Accu 3000 mAh/h

5. USB lithium charger module

6. DC-DC step UP

7. Txhua Qhov Hloov

8. WS2812 LEDs sawb 120 LEDs ib lub meter kwv yees li 1.5 m

8. Qee Cov Hluav Taws Xob

Kauj Ruam 3: Sib dhos thiab thaiv

Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv

Kev sib dhos tuaj yeem ua tiav nrog cov theem hauv qab no

1. Muab ESP32 tso rau ntawm lub hau thiab cov xov hlau txuas rau tus PIN uas tsim nyog, raws li daim duab thaiv kab

2. Muab 2x18650 ua ke thiab muab lawv tso ua ke

3. Muab lub USB charger tso rau ntawm qhov chaw txhawb nqa thiab tshaj rau hauv qab ntawm lub cev kom muab tso nrog qhov tsim nyog, haum qhov yog tias tsis tuaj

4. Muab qhov hloov mus rau lwm lub qhov

5. Solder tawm Accu 18650, Hloov, USB charger thiab DC-DC tawm mus (tsis txhob txuas ESP32!)

6. Tom qab fais fab hloov ON, kho qhov hluav taws xob tso tawm ntawm DC-DC rau ~ 5v siv lub tshuab ua kom muaj zog

7. Ntxig OLED zaub rau ntawm phab ntsa. Kho lub duab plaub ntawm lub cev yog tias tsim nyog

8. Solder tawm lwm qhov, ESP 32, Zaub, sensor thiab WS2812 txuas

8. Qhwv WS2812 kab txaij rau ntawm lub cev raj. Zais cov xov tooj nyob ib sab ntawm lub raj

Ib co tricks:

  • Kuv tau siv cov kua nplaum kub thiab B7000 los kho txhua yam khoom
  • Resistor tau muag sab nraum ESP lub thawv, ncaj qha ntawm cov xov hlau
  • Txhua lub xov hlau txuas tau them los ntawm lub raj cua sov

Kauj Ruam 4: Programming ESP

Txog qhov haujlwm no kuv tau siv software thoob ntiaj teb, tsim los ntawm kuv tus kheej

Thov saib ib nplooj ntawv github

Qhov no muaj tag nrho cov lus qhia yuav ua li cas sau thiab teeb tsa

Rau qhov phiaj xwm phiaj xwm teeb tsa no tau xa ua piv txwv.

Hovewer koj tuaj yeem ua qhov no nrog kev hloov pauv uas yuav tsum tau ua

Yam koj xav tau txheeb xyuas thiab hloov pauv: 1. Services.json - kho "suav": xxx, qhov xxx tus lej ntawm koj li LEDs tiag, tom qab txiav kab

2. config.json - teeb tsa tus tswv tsev lub npe rau koj lub cuab yeej "localhost":

3. config.json - teeb tsa qhov tsim nyog rau koj qhov kev sib txuas mqtt: "mqtt_host", "mqtt_port":, "mqtt_user", "mqtt_pass"., yog mqtt_host tsis muaj dab tsi, ntaus ntawv yuav tsis sim txuas rau mqtt

Kauj ruam 5: Txaus siab rau

Txaus siab rau
Txaus siab rau
Txaus siab rau
Txaus siab rau
Txaus siab rau
Txaus siab rau

Tam sim no, thaum txhua yam ua tiav koj tuaj yeem txaus siab nrog koj lub teeb thiab tswj ntawm Web interface

Lub teeb no kuv tseem tsis tau suav nrog Apple Home Kit, tab sis qhov no yooj yim heev, koj yuav tsum hloov pauv me me hauv cov ntaub ntawv teeb tsa. Tom qab ntawd koj yuav tuaj yeem tswj lub cuab yeej ntawm Apple Home kit

Txhawm rau ua qhov ntawd thov kom muaj qhov haujlwm zoo sib xws

www.instructables.com/id/Bed-Room-Lamp-Ws2…

thiab nyeem wiki

github.com/Yurik72/ESPHomeController/wiki/…

Kauj Ruam 6: FAQ, Cov lus qhia thiab daws teeb meem

Qee qhov chaw tsim khoom ntawm WS2812 tsis ua haujlwm, vim tias nws xav tau 5v logic, tab sis ESP32 muab 3.3 v

Qhov teeb meem no tuaj yeem daws tau los ntawm cov hauv qab no

  • Sim txo qhov hluav taws xob ntawm DC-DC tawm mus rau 4.7-4.8 V. Feem ntau nws pab nrog 80%
  • Muab ib qho diode nruab nrab ntawm +5 v tso zis thiab WS2812 +5v cov tswv yim. Diode yuav poob qhov hluav taws xob los ntawm 0.6-0.8 volt thiab nws yuav pab tau

2. Hauv qhov ua piv txwv thiab kev cia siab tias WS2812 LEDs yuav muab GRB ua ntu zus, hovewer kuv tau ntsib ntau daim kab xev hauv RGB. Txhawm rau daws qhov no koj tuaj yeem hloov kho firmware ntawm tsuas yog yooj yim ntxiv qhov chaw tshiab rau hauv cov kev pabcuam.json rau "rgb_startled": 1 rau RGBStripController cov kev pabcuam txhais. Qhov no txhais tau tias RGB ntu yuav pib los ntawm LED #1. Zoo li yog tias koj xaim ob daim kab xev hauv kab sib txawv. Piv txwv li firt strip yog 30 Leds GRB thiab thib ob 60 coj RGB koj tuaj yeem txhais "rgb_startled": 31, thiab ob lub tsev qiv ntawv yuav ua haujlwm tau zoo ua ke

3. Muab ESP32 firmware twb tau txhawb nqa lwm qhov ntub dej. zoo li DHT12, Dallas. Nws tuaj yeem yooj yim teeb tsa nrog lawv ib yam

Pom zoo: