Cov txheej txheem:
- Kauj Ruam 1: Ua qauv Snowflake / Star
- Kauj Ruam 2: Tsim Kev Txhawb Nqa
- Kauj Ruam 3: Soder LED Sawb
- Kauj Ruam 4: LEDs Tsav Tsheb
- Kauj ruam 5: Software thiab Animations
Video: LED Sawb Snowflake / Star Animations: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Phau ntawv qhia me me txog yuav ua li cas kuv tsim kho kom zoo nkauj Christmas nrog LEDs kab txaij kuv tau tso tseg los ntawm lwm qhov haujlwm. Cov phiaj xwm, software thiab cov ntawv ua kom pom tseeb tau muab. Txoj haujlwm no tau tshoov siab los ntawm cov vis dis aus hauv qab no hauv youtube.
Kauj Ruam 1: Ua qauv Snowflake / Star
Thawj kauj ruam yog los npaj cov qauv kev txhawb nqa rau LEDs qhov no tau ua tiav nrog Inkscape. Lub tswv yim yog kom muaj Snowflake nrog Lub Hnub Qub sab hauv. Dav tau xaiv los ua qhov dav ntawm ob daim kab xev kom muaj peev xwm tsim txhua yam nrog ib kab rov qab los ntawm nws tus kheej.
Kauj Ruam 2: Tsim Kev Txhawb Nqa
Kev txhawb nqa yog tsim los ntawm ntoo thiab sib dhos nrog cov kua nplaum kub.
Kauj Ruam 3: Soder LED Sawb
Cov hlua LEDs tau txiav rau qhov ntev uas raug rau txhua ntu thiab tom qab ntawd ua ke ua ke nrog npaj cov xov hlau. Qhov no siv sijhawm ntev thiab kuv xav kom coj cov LEDs ntawm cov hlau tsis txhob txiav cov kab.
Kauj Ruam 4: LEDs Tsav Tsheb
Hauv qhov haujlwm no LEDs tsis tau tsav los ntawm Arduino, tab sis yog NodeMCU board (ESP8266) nrog MicroPython ntawm nws.
Thawj kauj ruam yog sab saum toj nyem micropython firmware raws li phau ntawv qhia no: Pib nrog MicroPython ntawm ESP8266. Nws yog qhov ua tau siv nws los tsav cov LEDs zoo li qhia hauv 11. Tswj NeoPixels.
Ntawm kuv lub Rooj Tswjhwm Saib Machine.pin (4) yog D2 (raws li pom hauv daim duab). Tsis txhob hnov qab txuas lub gnd nrog LEDs.
Kauj ruam 5: Software thiab Animations
Cov software sau hauv Python tuaj yeem rub tawm ntawm kuv GitHub.
Cov ntaub ntawv main.py saib xyuas kev ua yeeb yaj kiab. Nws tuaj yeem muaj hom moos uas lub sijhawm tau tshwm sim ua feem pua ntawm cov lej ntawm LEDs. Thiab kuj tseem muaj txhua qhov kev ua yeeb yaj kiab uas pom hauv daim vis dis aus uas tuaj yeem theej los ntawm cov ntawv animations.txt. Cov yeeb yaj kiab ua rau peb ntawm snowflake_esp.py module uas muaj chav kawm Snowflake kom yooj yim nkag tau txhua qhov ntawm cov qauv. Yog li nws tuaj yeem tswj hwm txhua lub LEDs ua ke lossis tsuas yog lub hnub qub, lossis tsob ntoo, nplooj ntoo lossis pob tw ntawm txhua caj npab, nqes mus rau tus kheej LED.
Piv txwv li:
los ntawm snowflake_esp ntshuam *sf = Snowflake (0)
tawm = Xim (0, 0, 0) def tos (ms): time.sleep (ms/1000.0) --- lub hnub qub loj thiab me me nrog kev hloov snowflake y = Xim (255, 220, 0) sf.paint (tawm) sf.star.color (y) tos (1000) sf.star.paint (tawm) sf.trees.color (w) tos (1000) sf.trees.trunk.paint (tawm) sf.trees.leaf.color (y) tos (1000)
Pom zoo:
DIY LED Sawb: Yuav Txiav Li Cas, Txuas, Cuam Tshuam thiab Hwjchim LED Sawb: 3 Kauj Ruam (nrog Duab)
DIY LED Sawb: Yuav Ua Li Cas Txiav, Txuas, Cuam Tshuam thiab Lub Hwj Huam LED Sawb: Pib qhia rau koj tus kheej lub teeb pom kev zoo siv LED sawb.Flexible ntseeg tau thiab siv tau yooj yim, LED strips yog qhov kev xaiv zoo tshaj plaws rau ntau yam kev thov.Kuv yuav npog cov hauv paus ntawm kev txhim kho yooj yim sab hauv tsev 60 LED's/m LED sawb, tab sis
Kev Tswj Lub Teeb, Arduino (nrog Animations): 7 Kauj Ruam
Brightness Control, Arduino (nrog Animations): Ob peb xyoos dhau los kuv tau tsim ob lub tshuab pinball (pinballdesign.com) thiab ob lub taub hau neeg hlau (grahamasker.com) txhua tus tswj los ntawm Arduinos. Muaj kev ua haujlwm ua tus kws kho tshuab kuv zoo nrog kev tsim cov txheej txheem, txawm li cas los xij kuv
ESP8266 RGB LED Sawb WIFI Tswj - NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi - RGB LED Sawb Smartphone Tswj: 4 Cov Kauj Ruam
ESP8266 RGB LED Sawb WIFI Tswj | NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi | RGB LED Sawb Smartphone Tswj: Nyob zoo cov neeg hauv qhov kev qhia no peb yuav kawm paub siv nodemcu lossis esp8266 li IR chaw taws teeb los tswj RGB LED sawb thiab Nodemcu yuav raug tswj los ntawm smartphone dhau wifi. Yog li hauv paus koj tuaj yeem tswj RGB LED Sawb nrog koj lub xov tooj
POV GLOBE Nrog Animations: 6 Kauj Ruam
POV GLOBE Nrog Animations: Nyob Zoo Makers, Hnub no kuv yuav qhia koj txog txoj haujlwm tshiab. POV Globe Kev tsis pom kev. Kev taw qhia sai rau POV lossis kev pom kev tsis tu ncua: Txhua lub teeb hluav taws xob AC tau ntsais muag thiab tawm ntawm qhov zaus ntawm 60hz lossis 60 zaug hauv ib pliag. Peb lub hlwb rau
LED Snowflake: 15 Kauj Ruam (nrog Duab)
LED Snowflake: Cov daus snow LED no muaj cov xim ua los ntawm 7 APA102 LEDs, thiab tswj los ntawm Arduino Nano microcontroller. Cov khoom yog laser txiav acrylic. Koj tuaj yeem tsim koj tus kheej tsim raws li cov ntsiab lus ntawm no, thiab laser txiav lawv ntawm koj lub nroog ua