Cov txheej txheem:

Tsim kom muaj Arduino LED Matrix Nrog Tsom Tsom Qhov Tseeb: 7 Cov Kauj Ruam
Tsim kom muaj Arduino LED Matrix Nrog Tsom Tsom Qhov Tseeb: 7 Cov Kauj Ruam

Video: Tsim kom muaj Arduino LED Matrix Nrog Tsom Tsom Qhov Tseeb: 7 Cov Kauj Ruam

Video: Tsim kom muaj Arduino LED Matrix Nrog Tsom Tsom Qhov Tseeb: 7 Cov Kauj Ruam
Video: Phooj ywg ມະຫາໄລ (ຄະນະວິສະວະກຳສາດ) by ntsim vaj 2024, Kaum ib hlis
Anonim
Tsim kom muaj Arduino LED Matrix Nrog Tsom iav qhov muag
Tsim kom muaj Arduino LED Matrix Nrog Tsom iav qhov muag

Cov Lus Qhia no qhia yuav ua li cas tsav tus nqi pheej yig LED los ntawm Arduino. Kuv tseem yuav qhia koj li cas siv lub tshuab luam ntawv 3D thiab cov khoom pheej yig los tsim cov iav me me kom tsom mus rau lub teeb los ntawm LEDs thiab pab lawv pom qhov ci dua li qhov lawv ua tiag. Hauv qhov tsaus ntuj, nws tuaj yeem npaj cov qauv nthuav dav thoob plaws hauv chav!

Cov LEDs siv hauv txoj haujlwm no yog 4x4 matrix ntawm qhov chaw nyob WS2812 LEDs. Cov no yog pheej yig thiab tau yooj yim tsav los ntawm Arduino. Cov lo ntsiab muag yog 8 hli txoj kab puag ncig puag ncig iav iav cabochons, uas yog pheej yig heev thiab pheej yig dua li lo ntsiab muag tiag.

Kauj Ruam 1: Sau cov Khoom

Sau Cov Khoom
Sau Cov Khoom

Rau LED matrix:

  • Plaub-ntawm-plaub qhov sib txawv ntawm tus kheej qhov chaw nyob WS2812 LEDs (kwv yees li $ 5 los ntawm eBay)
  • Qee qhov tawg tawm lub taub hau
  • Plaub tus txiv neej-rau-poj niam jumper cables
  • Soldering hlau thiab solder
  • Pab txhais tes

Rau kev sib sau ua ke micro-lens array:

  • Kaum rau 8 hli txoj kab uas hla tiaj tus rov qab iav cabochons (kwv yees li $ 2 los ntawm eBay rau 20)
  • Ib lub tshuab luam ntawv 3D

Kauj Ruam 2: Cov Pins Solder rau LED Module

Solder Pins rau LED Module
Solder Pins rau LED Module

Siv sab txiav kom tshem tawm plaub tus pin ntev ntawm lub taub hau thiab muab lawv txuas rau ntawm LED module, raws li qhia hauv daim duab.

Kauj Ruam 3: Nqes Arduino

Sib Nqus Arduino
Sib Nqus Arduino
Sib Nqus Arduino
Sib Nqus Arduino

Khiav peb lub xov tooj hluav taws xob los ntawm Arduino mus rau LED module, raws li hauv qab no:

  • 5v rau 5v
  • GND to CSY
  • ~ 5 to AW

Nco tseg: Tsis txhob sim tsav ntau dua 4x4 LED matrix los ntawm koj li Arduino. Yog tias koj xav tsav tsheb ntau dua, koj yuav xav tau cov khoom siv hluav taws xob cais.

Kauj Ruam 4: Nruab FastLED Library

Qhib Arduino IDE thiab mus rau hauv "Sketch" -> "Xws li Lub Tsev Qiv Ntawv" -> "Tswj Cov Tsev Qhua …". Nruab ib lub tsev qiv ntawv "FastLED" los ntawm Daniel Garcia.

Tam sim no, los ntawm "Cov Ntaub Ntawv" ntawv qhia zaub mov, xaiv "Piv txwv" -> "FastLED" -> "ColorPalette" thiab xa cov duab kos rau koj Arduino. Tam sim no LEDs yuav ci thiab pib ua xim nyob rau hauv cov qauv sib txawv!

Hauv cov kauj ruam tom ntej, kuv yuav qhia koj yuav ua li cas txhawm rau txhim kho lub lens me me kom mob siab rau thiab teeb tsa lub teeb los ntawm LEDs.

Kauj Ruam 5: Sib dhos Lens Array

Sib dhos Lens Array
Sib dhos Lens Array

Siv lub tshuab luam ntawv 3D los luam tawm ob qho khoom siv uas ua rau cov neeg tuav lub lens:

  • LensArray.stl
  • LensShell.stl

Qhib cov lo ntsiab muag rau hauv txoj hauj lwm thiab tom qab haum ob qhov yas ua ke.

Kauj Ruam 6: Txheeb Xyuas Focal Ntev ntawm Lens Matrix

Txiav txim siab Focal Ntev ntawm Lens Matrix
Txiav txim siab Focal Ntev ntawm Lens Matrix

Koj tuaj yeem siv lub teeb rooj los txiav txim siab qhov chaw nyob ntawm cov iav me me. Tsiv lub lens teeb tsa nce thiab nqis kom txog thaum lawv tsim cov duab ci ntawm lub teeb ntawm lub rooj. Qhov no yog hais txog qhov nrug koj xav kom lub lens teeb los ntawm LED matrix.

Kauj Ruam 7: Sim nrog LED Matrix thiab Lens Array

Image
Image

Tam sim no koj yuav tsum tuaj yeem sim nrog lub lens teeb thiab LED matrix. Sim tawm qhov sib txawv deb thiab pom deb npaum li cas koj tuaj yeem npaj cov qauv teeb pom kev hauv chav tsaus!

Koj tuaj yeem siv txheej txheej ntawm tes pab ua qhov no, lossis koj tuaj yeem tsim txoj hauv kev kom ntse dua los tuav txoj haujlwm ua ke. Muaj kev lom zem!

Pom zoo: