Cov txheej txheem:

LED Matrix: 4 Kauj Ruam
LED Matrix: 4 Kauj Ruam

Video: LED Matrix: 4 Kauj Ruam

Video: LED Matrix: 4 Kauj Ruam
Video: arduino+max7219+led matrix 2024, Kaum ib hlis
Anonim
LED Matrix Cov
LED Matrix Cov

Qhov no yog 8x8 LED matrix ua siv WS2812 LEDs thiab ESP8266 Microcontroller

Txoj haujlwm no tau tshoov siab los ntawm:

Kauj Ruam 1: Txuas Txuas WS2812 LEDs

Txuas Txuas WS2812 LEDs
Txuas Txuas WS2812 LEDs
Txuas Txuas WS2812 LEDs
Txuas Txuas WS2812 LEDs
Txuas Txuas WS2812 LEDs
Txuas Txuas WS2812 LEDs

Hauv ntej, LEDs tau raug kaw nyob rau hauv cov kab ntev uas tau qhia saum toj no. (Kab los ntawm kab, thiab qhov kawg ntawm 1 kab txuas nrog rau pib ntawm kab tom ntej)

(Tsis quav ntsej qhov 4 LEDs uas ploj lawm, Kuv tau khiav tawm ntawm LEDs. Lawv tsis ua qhov sib txawv loj ib qho ntxiv)

Tom qab ntawd, LED sawb tau txuas nrog lub microcontroller (ESP8266)

Kauj Ruam 2: Case Acrylic (thiab Ntoo)

Acrylic (thiab Ntoo) Case
Acrylic (thiab Ntoo) Case
Acrylic (thiab Ntoo) Case
Acrylic (thiab Ntoo) Case
Acrylic (thiab Ntoo) Case
Acrylic (thiab Ntoo) Case
Acrylic (thiab Ntoo) Case
Acrylic (thiab Ntoo) Case

2 daim ntawm acrylic dub tau txiav (nrog riam), khoov (siv cov hlau txuas) thiab kub glued ua ke (nrog tus pas ntoo raws li kev txhawb nqa) los ua ob sab ntawm lub matrix

Ib daim ntawv ntshiab ntawm acrylic thiab cov ntawv taug qab nws tau siv ua lub vijtsam pem hauv ntej, muab tso rau pem hauv ntej ntawm lub matrix kom nthuav dav LEDs thiab tiv thaiv cov khoom siv hluav taws xob.

Cov ntoo tau txiav rau hauv txoj hauv kev uas lawv tuaj yeem haum ua ke thiab tsim faib faib ntawm LEDs. Qhov no tiv thaiv cov xim los ntawm LEDs los ntawm kev nkag mus rau ib leeg tuaj yeem ua rau kom tsis meej

Tom qab ntawd, tso lub LED matrix, faib thiab pom tseeb acrylic hauv cov xim dub acrylic sab

Kauj ruam 3: Software

Software
Software

Kuv siv Adafruit NeoMatrix Library, NeoMatrix GFX Demo.

Koj tuaj yeem sau lwm cov software los txuas ESP8266 rau Wifi thiab khaws cov ntaub ntawv.

Kauj Ruam 4: Raspberry Pi LED Matrix

Raspberry Pi LED Matrix
Raspberry Pi LED Matrix

(Nov yog Txoj Haujlwm Ua Haujlwm)

Thaum kawg, Kuv tso Raspberry Pi (1B) hauv LED Matrix. Kuv kuj tau teeb tsa thiab teeb tsa nws los qhia Pixel Art (thiab tej zaum Animations) dhau Wifi.

Kuv txuas cov ntaub ntawv tus pin ntawm LEDs rau Pin 18 ntawm Raspberry Pi. Ntxiv mus, 5V thiab Hauv Pins Pins ntawm LEDs tau txuas nrog rau Lub Hwj Huam Sab Nraud (Zoo li lwm lub USB Charger), cais los ntawm Raspberry Pi. Qhov no yog kom ntseeg tau tias cov LEDs muaj Lub Hwj Chim txaus los teeb.

Client Side WebApp tau sau tag nrho hauv Pure vanilla HTML, CSS thiab Javascript. Qhov Kev Pabcuam Neeg rau zaub mov yog Daim Ntawv Thov Flask, thiab siv Adafruit Neopixel Library. Txij li nws siv Adafruit Lub Tsev Qiv Ntawv, cov LEDs yuav siv sijhawm ntev dua los hloov kho (thiab tsis qhia cov duab ua kom raug thiab lwm yam) Cov lej muaj nyob ntawm GitHub ntawm no, thiab txoj haujlwm tau teeb tsa rau khau raj (siv /etc/rc.local raws li tau hais tseg) hauv GitHub)

Pom zoo: