Cov txheej txheem:

Apple HomeKit WS2812B LED Controller: 3 Kauj Ruam (nrog Duab)
Apple HomeKit WS2812B LED Controller: 3 Kauj Ruam (nrog Duab)

Video: Apple HomeKit WS2812B LED Controller: 3 Kauj Ruam (nrog Duab)

Video: Apple HomeKit WS2812B LED Controller: 3 Kauj Ruam (nrog Duab)
Video: SEXY DESSOUS für Silvester! | SAT.1 Frühstücksfernsehen 2024, Hlis ntuj nqeg
Anonim
Image
Image
Apple HomeKit WS2812B LED Tswj
Apple HomeKit WS2812B LED Tswj
Apple HomeKit WS2812B LED Tswj
Apple HomeKit WS2812B LED Tswj
Apple HomeKit WS2812B LED Tswj
Apple HomeKit WS2812B LED Tswj

Muaj ntau txoj haujlwm raws li WS2812B LED kab txaij tawm muaj, tab sis feem ntau ntawm cov no tau siv homebridge lossis lwm yam kev daws teeb meem - feem ntau raws MQTT - sib tham nrog HomeKit.

Qee qhov haujlwm tau siv los ntawm Apple HomeKit ib yam nkaus, tab sis tsis muaj leej twg txhawb nqa HomeKit ib leeg tsis tas yuav muaj tus choj Kuv tab tom siv WS2812B LEDs ze li 3-4 xyoo tam sim no nrog HomeKit thiab lawv ua haujlwm tau zoo heev

Txij li cov cai yog qhov nyuaj heev thiab kuv tau siv ntau lub tsev qiv ntawv kev cai Kuv tau ua cov ntaub ntawv firmware ua ntej. Rau cov uas txaus siab ua cov phiaj xwm HomeKit ib txwm muaj, qhov chaws rau esp-homekit muaj nyob ntawm no.

Cov Ntaub Ntawv Tseem Ceeb:

  • Tam sim no tsuas yog WS2812B, WS2812B ECO thiab WS2813 LED strips tau txais kev txhawb nqa!
  • Cov lej LED ntau tshaj plaws raug txwv rau 500 kom txuag RAM
  • Logic Level converter xav tau (rau 3.3V txog 5V hloov pauv cov ntaub ntawv)
  • Zoo zoo 5V fais fab mov yog tsim nyog ib yam nkaus
  • Xav paub ntau ntxiv tuaj yeem nrhiav tau ntawm kuv GitHub
  • Adafruit Überguide kuj tseem tuaj yeem pab tau:-)

PCB Tsim:

Kuv tau tsim PCB yooj yim rau kev tsav tsheb NeoPixel LEDs txoj hauv kev tau piav qhia hauv Adafruit's NeoPixel Überguide siv qhov tseeb SN74HCT125N Logic Level Converter IC thiab tseem pom zoo 1000uF capacitor:-) Kuv tam sim no siv PCB nrog 5V 10A fais fab mov tsis muaj teeb meem (qhov kub thiab txias):-)

Tsis tas li kuv muaj USB Hom-C version ib yam rau luv luv LED strips!

Koj tuaj yeem xaj cov PCBs ntawm no thiab ntawm no

Koj tuaj yeem nrhiav cov ntaub ntawv ntau ntxiv txog PCBs ntawm no

Nta:

  • Hloov Xim
  • Hloov Brightness
  • Hloov Xim Xim (tsis xav tau RGBW sawb)
  • WS2812FX Teeb Teeb (beta !!!)
  • Teeb WS2812B suav suav (ntawm thawj khau raj ntawm 1 txog 500)
  • Tus Cwj Pwm Tus Cwj Pwm tus yam ntxwv (Default Color / Last Siv thaum pib ntawm Eve app)
  • Kev hloov pauv (Ceev / Default / Nruab Nrab / Calm ntawm Eve app)
  • Me Nyuam Xauv (Pab/Disable khawm nias ntawm Eve app)
  • Downloadable Tus Neeg Siv Phau Ntawv (ntawm Eve app)
  • Fais fab / Pib dua khawm

Khoom siv

Txhawm rau tsim cov kev cai PCB Koj yuav xav tau Cov Khoom Siv Hluav Taws Xob pheej yig, lossis Chaw Muag Khoom Zoo li qhov no lossis ib qho no. Kuj Kub Cua Soldering Phom yuav pab tau ib yam nkaus! Rau kev xa cov cai koj yuav tsum tau yuav USB TTL adapter ib yam nkaus.

Yam Yuav Tsum Tau Ua:

  • NodeMCU lossis Wemos D1 Mini
  • Logic qib converter IC
  • WS2812B LED sawb
  • JST 3 tus pin poj niam txuas
  • 5V 2-10A fais fab mov v1 lossis 5V 2-10A fais fab mov v2
  • Jumper cables

Qhov PCB:

  • ESP12F/E.
  • ESP-01S (1MB nyem)
  • SMD 0805 resistors
  • SMD 0805 capacitors
  • AMS1117-3.3
  • Tactile Khawm
  • 2.54mm lub taub hau
  • SN74HCT125N
  • SMD 10.5x10.5 1000uF capacitor
  • DC txuas
  • 3 Pin ntsia hlau davhlau ya nyob twg
  • Fuse yas dhos
  • Fuse

Kauj ruam 1: Txhim kho Firmware

Txhim kho Firmware
Txhim kho Firmware
Txhim kho Firmware
Txhim kho Firmware
Txhim kho Firmware
Txhim kho Firmware

Koj tuaj yeem rub tawm cov firmware los ntawm kuv nplooj GitHub

Qhov rai

Rau Windows koj tuaj yeem siv lub official Firmware Download Tool los ntawm Espressif

Teeb tsa qhov chaw nyob flash (0x2000), flash loj (1MB/8mbit, 4MB/32mbit) thiab hom nyem (DIO/QIO) yog kauj ruam tseem ceeb heev, tab sis cov teeb tsa no yuav hloov pauv raws tus qauv uas koj siv! Tsis tas li kuv tau hais kom lwv lub eeb ua ntej rub tawm cov ntaub ntawv.bin!

Chaw:

  • Baud tus nqi 115200
  • Flash loj 4MB lossis 32mbit (nyob ntawm koj tus qauv)
  • Flash hom QIO (lossis DIO, nyob ntawm koj tus qauv)
  • 0x0000 rboot.bin ua
  • 0x1000 blank_config.bin
  • 0x2000 ledstrip.bin
  • 40 MHz

Mac OS

Rau MacOS koj tuaj yeem siv cov cuab yeej flasher no

Chaw:

  • Lwv flash - yog
  • Baud tus nqi 115200
  • Flash loj 4MB lossis 32mbit (nyob ntawm koj tus qauv)
  • Flash hom QIO (lossis DIO, nyob ntawm koj tus qauv)
  • Cov ntaub ntawv: ledstrip.bin
  • 40 MHz

Manually nyem

Peb yuav tsum teeb tsa esptool.py ntawm peb Mac txhawm rau txhawm rau tuaj yeem nyem peb lub ESP module. Txhawm rau ua haujlwm nrog esptool.py, koj yuav xav tau Python 2.7, Python 3.4 lossis txhim kho Python tshiab ntawm koj lub system. Peb pom zoo kom siv Python version tshiab, yog li mus rau Python lub vev xaib thiab teeb tsa nws hauv koj lub computer.

Nrog Python teeb tsa, qhib Terminal qhov rai thiab teeb tsa qhov tseeb ruaj khov esptool.py tso nrog pip:

pip nruab esptool

Nco tseg: nrog qee qhov Python kev teeb tsa uas hais kom ua yuav tsis ua haujlwm thiab koj yuav tau txais qhov yuam kev. Yog tias qhov xwm txheej no, sim nruab esptool.py nrog:

pip3 nruab esptool sej -m pip nruab esptool pip2 nruab esptool

Tom qab teeb tsa, koj yuav muaj esptool.py teeb tsa rau hauv lub hauv paus Python executables directory thiab koj yuav tsum muaj peev xwm khiav nws nrog cov lus txib esptool.py. Hauv koj lub qhov rais Terminal, khiav cov lus txib hauv qab no:

esptool.py

Nrog esptool.py teeb tsa hauv koj lub khoos phis tawj, koj tuaj yeem yooj yim nyem koj li ESP8266 lub rooj tsavxwm nrog lub khoos phis tawj.

Thaum xub thawj koj yuav tsum rub peb daim ntawv rau hauv: rboot.bin thiab blank_config.bin thiab tso tawm zaum kawg. Lub rboot.bin muaj lub bootloader rau ESP8266 thiab blank_config.bin tsuas yog cov ntaub ntawv teeb tsa dawb thiab ledstrip.bin muaj cov firmware. Tam sim no txuas koj lub cuab yeej rau koj li FTDI adapter hauv hom nyem.

Daim iav txuas:

rboot.binblank_config.binledstrip.bin

Muab Ntaus rau Hauv Hom Flash

Kom pab tau ESP8266 firmware flashing GPIO0 tus pin yuav tsum rub qis thaum lub zog ntaus ntawv. Nrog kuv qhov kev cai PCB muaj lub pob, nodeMCU tseem muaj lub khawm nyem thiab Wemos nws puas siv tau USB. Hloov pauv, rau lub khau raj ib txwm, GPIO0 yuav tsum rub siab lossis ntab. Pib hauv FLASH MODE

Mus rau phau ntawv teev npe uas koj tau ua qhov twg koj tso rau yav dhau los rub tawm rboot.bin blank_config.bin cov ntaub ntawv (piv txwv li rub tawm)

Qhib Terminal app. Nyem rau Finder icon hauv koj cov khoom. Nyem mus. Nyem Utilities. Ob-nias Terminal. Hloov mus rau phau ntawv teev npe rub tawm.

Koj yuav xav tau USB TTL adapter txuas rau ESP8266. Yog tias koj siv Wemos D1 Mini tsuas yog xav tau yog microUSB cable, Wemos muaj TTL adapter ua-hauv.

cd cov downloads

Nco tseg: Yog tias koj siv lwm lub tsev qiv ntawv khaws cia peb lub.bin cov ntaub ntawv, mus rau hauv lub tsev qiv ntawv ntawd siv 'cd` hais kom ua:

Siv esptool.py los nyem koj lub cuab yeej. Ua ntej peb yuav tsum lwv lub flash:

esptool.py -p / dev / erase_flash

Feem ntau, koj li ESPPort yuav yog ib yam zoo li /dev /cu.usbserial-`xxxxxx`. Tom qab ntawd, teeb tsa koj lub cuab yeej hauv hom nyem dua, thiab nyem qhov firmware tshiab:

esptool.py -p /dev/cu.wchusbserial1420 --baud 115200 write_flash -fs 32m -fm dio -ff 40m 0x0 rboot.bin 0x1000 blank_config.bin 0x2000 ledstrip.bin

Kauj ruam 2: Wi-nkaus thiab HomeKit Teeb

Wi-nkaus thiab HomeKit Teeb
Wi-nkaus thiab HomeKit Teeb
Wi-nkaus thiab HomeKit Teeb
Wi-nkaus thiab HomeKit Teeb

Teeb Wi-nkaus

Koj yuav tsum teeb tsa wifi network ua ntej ntxiv cov khoom siv rau HomeKit. Txhawm rau teeb tsa Wi-Fi chaw, lub cuab yeej tsim nws tus kheej Wi-nkaus hauv AP hom. Koj yuav tsum txuas rau nws txhawm rau teeb tsa koj li Wi-nkaus network. Cias coj koj lub cuab yeej iOS, mus rau Chaw-> Wi-nkaus, thiab tshawb rau SSID hu ua HomeKid- ua raws los ntawm tus qauv MAC chaw nyob thiab txuas rau nws. Rau qhov laj thawj nyab xeeb AP yog tus tiv thaiv tus password! Default AP password: 12345678

Tos ob peb feeb kom txog thaum lub vev xaib tshwm los qhia koj txhua Wi-nkaus tes hauj lwm uas lub cuab yeej tau pom. Xaiv koj li, thiab sau tus password! Tom qab ntawd koj tuaj yeem ntxiv tus lej pes tsawg ntawm LEDs hauv koj daim kab xev LED! Sau tus lej ntawm 1 txog 500! Tom qab ntawv nyem khawm Koom! Tus qauv yuav sim txuas lub Wi-nkaus network uas tau xaiv, qhov no yuav siv ob peb feeb.

Nco tseg: Yog tias lo lus zais muab tsis raug, koj tuaj yeem rov pib dua Wi-nkaus teeb tsa los tuav lub pob pib dua rau 10sec

Kev teeb tsa HomeKit

Hauv koj lub cuab yeej iOS, qhib Lub Tsev App thiab ua raws cov kauj ruam ib txwm ntxiv cov khoom siv tshiab. Kev teeb tsa ua khub yuav siv sijhawm li 30 feeb.

Default HomeKit code yog 021-82-017

Koj tseem tuaj yeem luam theej duab HomeKit QR code no:

Nco tseg: Kuv f ua khub tsis tiav, koj tuaj yeem siv lub zog ntawm koj lub cuab yeej, rov ua dua, thiab pib teeb tsa HomeKit dua (Wifi teeb tsa tau teeb tsa). Tom qab ua tiav kev sib koom ua ke ntawm cov hlua LED yuav ci dawb 3 zaug!

Teeb meem tshwm sim:

  • Qee zaum ntxiv ntau yam khoom siv siv QR code ua tsis tiav, yog tias HomeKit tshaj tawm "Cov khoom siv tau ntxiv lawm" tsuas yog ntxiv cov lej ua ke xwb tsis txhob luam QR code!
  • Yog tias muaj qee yam ua tsis raug koj tuaj yeem pom cov ntaub ntawv teev cia siv Arduino's serial monitor thiab poob dawb los qhib qhov teeb meem ntawm GitHub

Kauj ruam 3: Custom Settings

Cov Kev Cai
Cov Kev Cai
Kev Cai
Kev Cai

Hmoov tsis zoo Lub Tsev app tsis txhawb kev cai/tus yam ntxwv thib peb yog li koj yuav xav tau Elgato EVE app rau hloov cov teeb tsa no thiab siv WS2812B cov teebmeem. Tsis tas li cov khoom siv tau ua zoo li Fake Eve Light Strip accessory thaum koj ntxiv nws ntawm Eve app?

Kev Hloov thiab Kev Coj Tus Cwj Pwm

Tus thawj Eve Light strip txhawb nqa ob tus yam ntxwv no. Nrog Kev Hloov pauv koj tuaj yeem hloov pauv qhov nrawm ntawm LED sawb thaum siv WS2812FX Cov teebmeem! Teeb nws kom nrawm yuav ua rau tsis tuaj yeem ploj mus/tawm thiab nws yuav qhib sai!

Nrog Tus Cwj Pwm Coj Tus Cwj Pwm koj tuaj yeem hloov xim xim thaum lub teeb LED qhib! Los ntawm lub neej ntawd nws tau teeb tsa rau Xeem Siv Xim, yog li thaum koj tua lub LED hlua nws yuav nco ntsoov xim kawg koj siv! Thaum teem rau Dawb Dawb, txhua lub sijhawm koj tua lub LED kab, xim yuav rov qab mus rau Dawb!

Pib dua

Cov cai muaj qhov rov pib ua haujlwm thaum muaj qee yam tsis raug. Tos txog 5 vib nas this kom tso cai ntaus ntawv kom tiav, thiab tom qab ntawd nias lub pob kom ntev li 10sec!

Txhua qhov teeb tsa teeb tsa tau raug tshem tawm thiab ntaus ntawv rov pib dua. Qhov no tshem tawm HomeKit thiab Wi-Fi chaw, thiab koj lub cuab yeej yuav mus rau Access Point hom nyob rau lwm lub sijhawm txhawm rau txhawm rau teeb tsa Wi-nkaus.

Nco tseg: Ib leeg nias tib lub pob yuav toggle LED strip ON lossis OFF

Pom zoo: