Cov txheej txheem:

Teeb Chav Teeb Ws2812: 6 Cov Kauj Ruam (nrog Duab)
Teeb Chav Teeb Ws2812: 6 Cov Kauj Ruam (nrog Duab)

Video: Teeb Chav Teeb Ws2812: 6 Cov Kauj Ruam (nrog Duab)

Video: Teeb Chav Teeb Ws2812: 6 Cov Kauj Ruam (nrog Duab)
Video: TikTok Chavs Dancing 2024, Kaum ib hlis
Anonim
Image
Image
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Nyob zoo txhua tus, Kuv txiav txim siab rov txhim kho lub teeb chav pw uas twb muaj lawm kom muaj peev xwm tswj tau nws los ntawm lub xov tooj ntawm tes lossis ib qho khoom siv nrog browser thiab sib koom ua ke dua li Apple Home.

Cov hom phiaj yog:

1. Siv WS2812b coj sawb los tswj qhov ci ci, xim lossis ua kom pom tseeb/ntxim nyiam

2. Siv lub teeb ib txwm 220v tswj los ntawm relay kom coj tus cwj pwm zoo

3. Siv LDR los tswj lub teeb ci tsis siv neeg nyob ntawm chav teeb

4. Kev koom ua ke/tsim lub vev xaib los tswj ntawm ib qho khoom siv hauv browser

5. Muab tag nrho lawv rau hauv Apple Home kit, yog tias muaj

6. Tus neeg teem sijhawm sab hauv los txheeb xyuas cov cai, lub sijhawm txwv tsis pub qhib thiab ntawm kev ncua sijhawm los ntawm Apple Home

Kauj Ruam 1: Tshooj Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

1. Txhua lub teeb pom kev zoo 900-1000 mm siab

2. Cov yeeb nkab yas 20-40 mm txoj kab uas hla thiab qhov siab 900-1000 mm. Kuv tau siv cov kav xa dej pheej yig

3. WS2812 coj sawb 30-60 LEDs ib lub 'meter'. 2-3 meters ntev

4. ESP8266 lossis ESP32 ntaus ntawv. Kuv tau siv ESP8266 dev board

5. Lub hwj chim muab AC/DC 5V 2-3 A. (suav zoo li 1A rau 50 LEDs ntxiv rau rho tawm)

6. LWG

7. Relay module los tswj 220v teeb

8. Resistors: 1x 200 Ohm, 1x 10k Ohm

9. Qee cov xov hlau

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv

Tam sim no yog lub sijhawm los thaiv txhua qhov khoom ua ke.

Kauj ruam 3: Sib dhos

Sib dhos
Sib dhos
Sib dhos
Sib dhos

1. Qhwv LEDs kab ib ncig cov yeeb nkab yas

2. Muab ESP8266 tso rau hauv ib lub thawv yas

3. Muab cov qauv xa mus rau lwm lub thawv yas

4. Hlau raws kab kos

5. Muab cov thawv rau hauv qab teeb. Kuv tau siv yas Glue

6. Muab LDR tso rau saum lub teeb thiab nkaum cov xov hlau sab hauv ntawm cov yas yas

Kauj ruam 4: Software

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

Raws nraim rau txoj haujlwm no kuv tau siv cov ntaub ntawv teeb tsa hauv qab no

1. Configuration config.json

2. Kev pabcuam services.json

3. Tigig triggers.json

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: Kev koom ua ke rau Apple Tsev (xaiv tau)

Thov saib wiki, yuav ua li cas ua ke

github.com/Yurik72/ESPHomeController/wiki/…

Thov ua tib zoo saib ib feem ntawm kev teeb tsa rau Homekit2MQTT.

Yog tias koj tsis xav ntxiv txhua yam ntawm tus kheej, tsuas yog hloov tag nrho lossis ib feem ntawm cov ntawv (teeb tsa.json) hauv Homekit2MQTT teeb tsa.

Kauj ruam 6: Txaus siab rau

Txaus siab rau
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 ua tau

  1. Siv ib lub cuab yeej tswj hwm koj lub teeb ntawm browser

    • Hloov rau/tawm RGB LEDs
    • Qhib/tua teeb lub teeb
    • Tswj xim, ci ntsa iab thiab ntau dua 40 ua rau cuam tshuam rau WS2812
    • Teeb tsa lub sijhawm teem sijhawm yooj yim rau txhua txoj haujlwm tau piav qhia saum toj no
  2. Siv Apple Home kit

    • Hloov rau/tawm RGB LEDs
    • Qhib/tua teeb lub teeb
    • Tswj xim thiab ci ntawm RGB Leds
    • Siv Cov Khoom Siv Hauv Tsev automation tsab ntawv teeb tsa lub sijhawm
    • Siv siri rau kev tswj lub suab ntawm koj lub teeb

Pom zoo: