Cov txheej txheem:

Siv Adafruit NeoPixels Nrog Tus Pab Tsev: 7 Kauj Ruam
Siv Adafruit NeoPixels Nrog Tus Pab Tsev: 7 Kauj Ruam

Video: Siv Adafruit NeoPixels Nrog Tus Pab Tsev: 7 Kauj Ruam

Video: Siv Adafruit NeoPixels Nrog Tus Pab Tsev: 7 Kauj Ruam
Video: Civrays InMoov - Neopixel troubleshooting 2024, Kaum ib hlis
Anonim
Image
Image

Adafruit NeoPixels yog cov nplhaib, ib daim kab xev thiab lwm cov ntawv luam tawm hauv Circuit board nrog qhov chaw nyob RGB LED strips. Lawv yog cov sib txuas tau rau ib leeg. Adafruit NeoPixels yog cov neeg nyiam tshaj plaws hauv zej zog tsim thiab siv dav hauv ntau yam ua-nws-koj tus kheej (DIY) cov haujlwm.

Tus Pabcuam Hauv Tsev yog pub dawb thiab qhib qhov chaw siv tshuab hauv tsev tau sau hauv Python 3. Nws tso cai rau koj los tswj ntau yam khoom siv hauv koj lub tsev ntse. Lub Tsev Pabcuam ua haujlwm zoo kawg nkaus ntawm Raspberry Pi 3 lossis 4 thiab tuaj yeem teeb tsa ua Hass.io duab.

Hauv qhov kev qhia no koj yuav kawm paub siv Adafruit NeoPixels nrog Tsev Pabcuam yam tsis muaj lub program! Hauv ob peb kauj ruam peb yuav teeb tsa thiab teeb tsa txhua yam yam tsis muaj coding. Peb yuav txuas Adafruit NeoPixels mus rau qhib qhov chaw txhim kho WiFi pawg thawj coj saib ANAVI Miracle Controller.

Yuav tsum tau kho vajtse

  • Adafruit NeoPixel Nplhaib
  • Adafruit NeoPixel lo
  • 6 txiv neej rau txiv neej jumper xov hlau
  • 5V DC fais fab mov
  • ANAVI Miracle Controller
  • Raspberry Pi 3 lossis 4

Kauj Ruam 1: Nruab Tus Pab Tsev

Nruab Tsev Pabcuam Hauv Tsev
Nruab Tsev Pabcuam Hauv Tsev
Nruab Tus Pab Tsev
Nruab Tus Pab Tsev

Rub tawm Hass.io, nyem nws ntawm daim npav microSD, ntsaws daim npav microSD hauv Raspberry Pi thiab qhib nws. Thawj zaug khau raj, nws rub tawm qhov hloov tshiab kawg ntawm Tsev Pabcuam uas siv sijhawm li 20-30 feeb nyob ntawm koj li kev siv Is Taws Nem. Yog tias koj lub router txhawb mDNS, Koj yuav tuaj yeem ncav cuag koj kev teeb tsa ntawm https://hassio.local: 8123.

Kauj ruam 2: Nruab Mosquitto

Nruab Mosquitto
Nruab Mosquitto
Nruab Mosquitto
Nruab Mosquitto
Nruab Mosquitto
Nruab Mosquitto

Nruab Mosquitto MQTT broker los ntawm Hass.io add-on store, teeb tsa username thiab password ntxiv rau Access Control Lists (ACL), thaum kawg tso Mosquitto.

Kauj Ruam 3: Ntxiv MQTT Kev Sib Koom rau Tus Pab Tsev

Ntxiv MQTT Kev Sib Koom rau Tus Pab Tsev
Ntxiv MQTT Kev Sib Koom rau Tus Pab Tsev
Ntxiv MQTT Kev Sib Koom rau Tus Pab Tsev
Ntxiv MQTT Kev Sib Koom rau Tus Pab Tsev

Los ntawm Configure> Integrations ntxiv MQTT tshiab kev koom ua ke. Nkag mus rau IP chaw nyob, lub npe siv, tus lej zais thiab nyem Pab kom pom. Nws yog qhov yuav tsum tau ua thiab tseem ceeb heev los pab kom pom pom.

Kauj Ruam 4: Tus Txiv Neej Solder rau Txiv Neej Jumper Wires rau Adafruit NeoPixel Ring thiab NeoPixel Stick

Solder Male to Male Jumper Wires to Adafruit NeoPixel Ring and NeoPixel Stick
Solder Male to Male Jumper Wires to Adafruit NeoPixel Ring and NeoPixel Stick
Solder Male to Male Jumper Wires to Adafruit NeoPixel Ring and NeoPixel Stick
Solder Male to Male Jumper Wires to Adafruit NeoPixel Ring and NeoPixel Stick
Solder Male to Male Jumper Wires to Adafruit NeoPixel Ring and NeoPixel Stick
Solder Male to Male Jumper Wires to Adafruit NeoPixel Ring and NeoPixel Stick

Tawm ntawm lub thawv Adafruit NeoPixel Rings thiab Sticks tsis muaj cov coj. Cov laug txiv neej rau txiv neej jumper xov hlau rau Adafruit NeoPixel Ring thiab NeoPixel Stick. Peb yuav tsum muaj xov hlau rau txhua lub NeoPixel ntaus ntawv. Ib jumper hlau yog rau GND, lwm rau 5V DC thiab qhov thib peb yog rau DIN (Cov ntaub ntawv nkag mus).

Kauj Ruam 5: Txuas rau ANAVI Miracle Controller

Txuas mus rau ANAVI Miracle Controller
Txuas mus rau ANAVI Miracle Controller
Txuas mus rau ANAVI Miracle Controller
Txuas mus rau ANAVI Miracle Controller
Txuas mus rau ANAVI Miracle Controller
Txuas mus rau ANAVI Miracle Controller
  • Txuas NeoPixel Stick DIN rau LED1, GND rau GND thiab 5VDC rau VOUT ntawm ANAVI Miracle Controller.
  • Txuas NeoPixel Ring Cov Ntaub Ntawv Tso Tawm rau LED2, GND rau GND thiab 5V DC Fais Fab rau VOUT ntawm ANAVI Miracle Controller.
  • Teeb lub jumper ntawm ANAVI Miracle Controller rau 5V.
  • Txuas qhov tsim nyog 5V DC qhov chaw muaj lub zog zoo rau lub tog raj (5.5x2.1mm) ntawm ANAVI Miracle Controller.

Kauj Ruam 6: Kho ANAVI Miracle Controller

Txhim kho ANAVI Miracle Controller
Txhim kho ANAVI Miracle Controller
Txhim kho ANAVI Miracle Controller
Txhim kho ANAVI Miracle Controller

Thawj zaug khau raj ANAVI Miracle Controller tsim lub WiFi nkag mus. Los ntawm koj lub xov tooj smartphone, ntsiav tshuaj lossis khoos phis tawj txuas rau ANAVI Miracle Controller. Ua raws cov lus qhia ntawm lub qhov rooj raug kaw kom ua tiav kev teeb tsa ntawm ANAVI Miracle Controller. Txuas nws mus rau koj li Wi -nkaus network, teeb tsa MQTT tus tswv chaw nyob, lub npe siv thiab tus lej nkag, teeb hom LED rau NEOPIXEL, tus lej ntawm LEDs rau LED1 txog 8 rau Adafruit NeoPixel Stick thiab tus lej ntawm LEDs rau LED2 txog 12 rau Adafruit NeoPixel Ring.

Kauj Ruam 7: Tswj NeoPixels Los Ntawm Tus Pabcuam Hauv Tsev

Tswj NeoPixels Los Ntawm Tus Pabcuam Hauv Tsev
Tswj NeoPixels Los Ntawm Tus Pabcuam Hauv Tsev
Tswj NeoPixels Los Ntawm Tus Pabcuam Hauv Tsev
Tswj NeoPixels Los Ntawm Tus Pabcuam Hauv Tsev
Tswj NeoPixels Los Ntawm Tus Pabcuam Hauv Tsev
Tswj NeoPixels Los Ntawm Tus Pabcuam Hauv Tsev

Tom qab ua tiav kev teeb tsa, ANAVI Miracle Controller yuav txuas rau koj li WiFi network thiab muab MQTT broker. Tom qab ntawd Tus Pabcuam Tsev yuav txiav txim siab pom ANAVI Miracle Controller. Qhib Tsev Pabcuam GUI, qhib rau ANAVI Miracle Controller LED1 thiab ANAVI Miracle Controller LED2. Teeb cov teebmeem sib txawv thiab xim rau txhua ntawm ob Adafruit NeoPixels.

Pom zoo: