Cov txheej txheem:

24 ntsis RGB LED Emoji/Sprite Zaub: 4 Cov Kauj Ruam
24 ntsis RGB LED Emoji/Sprite Zaub: 4 Cov Kauj Ruam

Video: 24 ntsis RGB LED Emoji/Sprite Zaub: 4 Cov Kauj Ruam

Video: 24 ntsis RGB LED Emoji/Sprite Zaub: 4 Cov Kauj Ruam
Video: Pi Pico NTSC Sprite Animation, PNG image, and Pong 2024, Kaum ib hlis
Anonim
Image
Image

Raws li tus kws qhia rov qab mus rau chav kawm thaum muaj COVID thiab qhov yuav tsum tau hnav PPEs, Kuv paub tias kuv cov tub ntxhais kawm yuav tsis tuaj yeem pom kuv lub ntsej muag (Kuv qhia tsev kawm theem siab, tab sis muaj cov menyuam uas rov qab mus rau ob lub tsev kawm ntawv theem pib thiab theem nrab) tsev kawm ntawv). Puas tau xav txog kev hloov kho lub ntsej muag lub ntsej muag lossis lub npog ntsej muag nws tus kheej nrog LEDs thiab cov duab, tab sis xam pom tias kev tu ntawm cov no yuav yog qhov teeb meem me ntsis, yog li kev daws teeb meem uas tau xav yog ua kom hnav tau yooj yim, uas tuaj yeem tso tawm emojis thiab cov duab uas qhia kuv qhov kev xav. Nov yog kuv cov lus qhia yuav ua li cas kuv thiaj ua tiav qhov no.

Khoom siv

Cov Khoom Siv Lub Cev Yuav Tsum Muaj

  • 24 ntsis RGB LED Matrix

    https://www.amazon.ca/gp/product/B01DC0IOCK/ref=pp…

  • ESP32
  • xov hlau
  • keyboards/laub khawm (xaiv tau, tuaj yeem rov tsim dua ESP los siv kov cov cim)
  • EVA ua npuas ncauj (lossis qee yam ntawm cov thav duab)
  • acrylic (dawb, 1/4 "tuab)
  • acrylic (dub, 1/8 "tuab)
  • tinting yas (yeem)

Yuav tsum tau Software:

  • Arduino
  • Nab hab sej
  • kho duab duab (PhotoShop lossis GIMP)

Kauj ruam 1: Laser Txiav Template

Laser Txiav Template
Laser Txiav Template
Laser Txiav Template
Laser Txiav Template

Nov yog lub laser txiav qauv los ua cov thawv nyob ib puag ncig qee qhov acrylic, yog li nws tiv thaiv LEDs ua ib feem ntawm tus ncej. Kuv tau ua qhov no nrog 1/8 daim dub ntawm acrylic.

Kuv sim txiav ib daim tuab tuab ntawm cov xim dawb acrylic (1/4 "), tab sis pom tias kuv tsis muaj qhov teeb tsa muaj zog txaus los txiav txhua txoj kev, uas tau tshwm sim los ua qhov zoo dua qhov xav tau, raws li dawb tau ua txoj haujlwm zoo dua ntawm kev nthuav tawm lub teeb los ntawm LEDs thiab ua tiav qhov "pixel" zoo dua (btw, qhov tseeb lom zem, lo lus "pixel" yog cov lus luv ntawm Daim Duab Element - thov txim, tus kws qhia sab hauv kuv yuav tsum tau hais xwb)

Kauj ruam 2: Hloov Cov Duab

Hloov Dluab
Hloov Dluab
Hloov Dluab
Hloov Dluab
Hloov Dluab
Hloov Dluab
Hloov Dluab
Hloov Dluab

Cov kauj ruam tom ntej kuv coj yog hloov qee cov duab rau siv hauv Arduino code, uas yog kev hloov kho ntawm tus qauv RGB LED code pom rau ESP32 (hauv cov kauj ruam tom ntej).

Siv Python cov lej suav nrog saum toj no, kho cov ntaub ntawv qhov chaw ntawm cov cai los tsim cov cai hex kom raug rau siv hauv RGB LED Matrix (yog tias koj yog tus programmer, koj yuav pom tias cov LEDs tau txuas ua ke, thiab tsis yog Cartesian kev tswj hwm ib txwm muaj, yog li kev txheeb xyuas kom raug ntawm RGB qhov chaw xav tau zig zag nruab nrab ntawm kab ntawm LEDs).

Cov cai ntawm nplooj ntawv tom ntej twb muaj cov ntaub ntawv hauv paus hloov tshiab nrog cov npe uas cuam tshuam.

Daim duab Mario saum toj no tau muab los ntawm daim ntawv sprite kuv pom hauv Internet, thiab seem yog txhais tes tsim hauv PhotoShop … tsuas yog xav ua daim duab 16x16, thiab Zoom txhua txoj hauv kev, thiab siv txhuam 1x1 pixel los ua cov duab

Kauj Ruam 3: Teeb thiab Coding

Coding thiab Coding
Coding thiab Coding
Coding thiab Coding
Coding thiab Coding
Coding thiab Coding
Coding thiab Coding

Tus lej Arduino suav nrog saum toj no, thiab tsuas yog yuav tsum tau xaim RGB LEDs rau lub zog tsim nyog los ntawm ESP32 (5V thiab GND), nrog rau cov ntaub ntawv txuas (P4)

Siv cov laub khawm (rub los ntawm lwm daim ntawm cov khoom siv tsis zoo), txuas cov no rau pins P5 thiab P15, thiab lwm qhov kawg ntawm GND. Txoj cai ua PULLUP rau HIGH kom khawm qhib tau tshwm sim thaum nws lees paub LOW rau HIGH hloov (yog li qhov tseem ceeb thaum lub pob raug tso tawm tsis zoo li lub khawm qis)

Kauj Ruam 4: Muab Nws Txhua Qhov Ua Ke

Image
Image
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke

Hauv kev muab nws tag nrho ua ke, npog rau pem hauv ntej ntawm cov xim dawb acrylic nrog qee lub qhov rais tinting yas, uas muab nws lub ntsej muag dub zoo saib.

Txiav tawm lub thav duab siv txheej txheej ntawm EVA ua npuas ncauj (khoom siv uas kuv muaj rau cov khoom siv cosplay kuv kuj tsim), thiab glued cov uas siv kev sib cuag cov cement (ob txheej rau tsev cov khoom).

Ib txheej thib peb ntawm EVA ua npuas ncauj tau ntxiv nrog txiav tawm kom lub nraub qaum yuav haum zoo li daim duab dhos ua si.

Ntxiv cov pluaj kom nws yooj yim dai ntawm kuv caj dab. Qhov hnyav tag nrho ntawm txhua qhov no tsuas yog pom tsis tau.

Hais txog kev txhawb nqa chav tsev, Kuv txiav txim siab siv lub micro USB txuas uas tau siv los ua haujlwm ESP32, thiab nws tau txuas nrog lub USB fais fab mov uas kuv tsuas yog khaws hauv kuv lub hnab ris. Txhawm rau kom ntseeg tau tias qhov yuam kev rub ntawm txoj hlua tsis ua teeb meem, kuv tau ntxiv qhov siv ntawm ib qho ntawm cov khoom siv sib txuas nrog USB txuas lub zog txuas txuas rau lub micro USB.

Dab tsi ntxiv? Kuv tab tom nrhiav ntxiv lub microphone rau ESP, thiab tom qab ntawd ua kom muaj suab nrov suab nrov, zoo ib yam li KITT los ntawm Knight Rider, kom cov tub ntxhais kawm pom qhov pom kev sawv cev ntawm kuv lub suab … nyob twj ywm.

Duab
Duab
Duab
Duab

Khiav Hauv Qhov "Tsis tuaj yeem kov Qhov no" Kev Sib Tw Tsev Neeg

Pom zoo: