Cov txheej txheem:

LED Matrix Lub Tog Raj Kheej: 8 Kauj Ruam (nrog Duab)
LED Matrix Lub Tog Raj Kheej: 8 Kauj Ruam (nrog Duab)

Video: LED Matrix Lub Tog Raj Kheej: 8 Kauj Ruam (nrog Duab)

Video: LED Matrix Lub Tog Raj Kheej: 8 Kauj Ruam (nrog Duab)
Video: ЗАПРЕЩЁННЫЕ ТОВАРЫ с ALIEXPRESS 2023 ШТРАФ и ТЮРЬМА ЛЕГКО! 2024, Hlis ntuj nqeg
Anonim
Image
Image
Tsim thiab Laser Txiav Cov Ntaub Ntawv
Tsim thiab Laser Txiav Cov Ntaub Ntawv

Fusion 360 Cov Haujlwm »

Cov txheej txheem LED no siv tus qauv WS2812b LED kab txaij los tsim lub matrix nrog cov duab thooj voos kheej kheej thiab cov ntoo zoo nkauj ua tiav.

Cov npe:

  1. 790x384 duab los qhia 1.5 hli (lwm qhov loj me kuj tseem ua tau, tab sis CAD cov ntaub ntawv yuav tsum tau hloov)
  2. 100 WS2812b LED los ntawm LED-kab txaij (30 LED/meter)
  3. Raspberry Pi lossis Arduino
  4. Microwood veneer lossis txhua yam khoom siv hloov pauv tau yooj yim
  5. Hlau

Kauj Ruam 1: Tsim thiab Laser Txiav Cov Ntaub Ntawv

Tsim thiab Laser Txiav Cov Ntaub Ntawv
Tsim thiab Laser Txiav Cov Ntaub Ntawv

Qhov tsim qauv loj yog qhov tuab ntawm cov khoom siv. Hauv qhov kev tsim no, daim npav 1.5 hli tau siv vim nws yooj yim txiav thiab pheej yig heev. 3D tsim (piv txwv li Fusion360) pab kom tsis txhob muaj teeb meem hauv cov txheej txheem sib dhos. Txog kev txiav laser, ntu yuav tsum tau teeb tsa hauv txoj hauv kev uas lawv haum rau thaj chaw txiav laser ntawm koj lub tshuab, hauv qhov no 790x384 hli. Inkscape yog cov cuab yeej yooj yim thiab muaj zog los lis txoj haujlwm no. Txuas SVG cov ntaub ntawv muaj txhua ntu rau lub tog raj kheej nrog 1.5 hli khoom.

Hloov tshiab: Kuv tau hloov kho Fusion360 tus qauv nrog tus neeg siv ntsuas qhov tuab, yog li koj tuaj yeem hloov cov khoom tuab rau cov lej thiab tsim koj tus kheej cov ntawv txiav laser. Kev txiav tawm qhov rau kab txaij LED yuav raug ntxiv sai sai no.

Txuas mus rau tus qauv:

Kauj Ruam 2: Laser txiav thiab npaj ua ntej

Laser txiav thiab Preassemble
Laser txiav thiab Preassemble
Laser txiav thiab Preassemble
Laser txiav thiab Preassemble
Laser txiav thiab Preassemble
Laser txiav thiab Preassemble
Laser txiav thiab Preassemble
Laser txiav thiab Preassemble

Tom qab txiav laser, koj yuav tau txais cov hauv qab no:

- 12 C-puab kab rov tav

- 18 zuag zoo li ntu ntsug

- 2 ntu kev sib txuas ntsug

- 20 coj cov neeg nqa khoom ntu

8 C-Shapes, 9 zuag thiab 1 txuas txuas ua ke kom pom ib nrab. Hauv cov kauj ruam no, ntu tsuas yog txuas ua ke txhawm rau tshuaj xyuas yog tias txhua yam haum zoo. Tsis txhob siv kua nplaum tseem.

Kauj Ruam 3: Teeb ntawm LEDs

Kev tiv thaiv ntawm LEDs
Kev tiv thaiv ntawm LEDs
Kev tiv thaiv ntawm LEDs
Kev tiv thaiv ntawm LEDs
Kev tiv thaiv ntawm LEDs
Kev tiv thaiv ntawm LEDs

Cov kab txaij LED tau txiav rau hauv 5 ntu LED thiab txuas rau cov ntu thauj khoom nrog rau sab nraub qaum daim kab xev. Ua ntej DI (cov ntaub ntawv hauv) thiab DO (cov ntaub ntawv tawm) pins ntawm kab txaij tau txuas ua ke nyob rau hauv zig-zag yam, txuas DO ntawm thawj kab txaij nrog DI ntawm kab tom ntej thiab ntxiv rau. Qhov no ua tiav rau txhua ib nrab ntawm lub tog raj kheej suav nrog 10 kab txaij. 5V thiab GND txuas nrog tsuas yog ntawm ib sab ntawm kab txaij mus rau kab txaij. Qhov ntev ntawm cov xov hlau yuav tsum tau sib phim qhov kab nrug deb ntawm cov kab.

Ua ntej cov LEDs tau teeb tsa rau hauv cov lej, ntu ntawm cov lej yuav tsum tau ua ke ua ke rau txhua ib nrab ntawm lub tog raj kheej.

Thaum kawg 10 kab txaij tau muab tso rau hauv txhua ib nrab ntawm qhov matrix thiab kho nrog cov kua nplaum kub. Ua los ntawm ib nrab yog txuas nrog DI ntawm ib nrab thib ob. DI ntawm thawj ib nrab yuav yog cov tswv yim rau Raspberry Pi lossis Arduino.

Kauj Ruam 4: Thawj Xeem

Kev Xeem Thawj
Kev Xeem Thawj
Kev Xeem Thawj
Kev Xeem Thawj

Txhawm rau kom ntseeg tau tias txhua yam ua haujlwm, thawj qhov kev sim ntawm LEDs yuav tsum tau ua. Siv Arduino thiab Neopixel lub tsev qiv ntawv yuav tsum yog txoj hauv kev yooj yim tshaj plaws los ua qhov no.

Kauj Ruam 5: Ntoo Veneer Diffusor

Ntoo Veneer Diffusor
Ntoo Veneer Diffusor
Ntoo Veneer Diffusor
Ntoo Veneer Diffusor

Tom qab ntsuas txoj kab uas hla thiab qhov siab ntawm qhov sib txuam, cov ntoo ntoo tuaj yeem txiav tawm thiab dov ib ncig ntawm daim ntawv. Rau kev kho, pob tshab kua nplaum kab xev yog txaus.

Kauj Ruam 6: Raspberry Pi, Arduino thiab Cov Khoom Siv Hluav Taws Xob

Raspberry Pi, Arduino thiab Cov Khoom Siv Hluav Taws Xob
Raspberry Pi, Arduino thiab Cov Khoom Siv Hluav Taws Xob
Raspberry Pi, Arduino thiab Cov Khoom Siv Hluav Taws Xob
Raspberry Pi, Arduino thiab Cov Khoom Siv Hluav Taws Xob

Kom yooj yim coding hauv Python ntawm cov txiaj ntsig zoo matrix, Raspberry Pi tuaj yeem siv. Hauv qhov no, Raspberry Pi Zero tau siv, uas txuas nrog cov lej ntawm GPIO tus pin 18 ntawm 74HCT245 qib hloov pauv hloov 3.3V los ntawm Pi mus rau 5V ntawm WS2812. Kuj tseem muaj lub tshuab hluav taws xob loj (2200 uF) thiab cov tiv thaiv series (470 Ohm) tau siv zoo li tau hais qhia thaum siv Neopixel/WS2812 LED loj dua.

Hwj chim Mov

Lub hwj chim siab tshaj rau 100 WS2812b LEDs yog 100x60mA = 6A. Tau kawg, los ntawm kev txo qhov ci ci, kev siv hluav taws xob tuaj yeem txo qis. Thov xyuas, tias koj lub zog 5V tuaj yeem tsav tam sim no rau qhov koj xav tau qhov ci.

Arduino

Cov lej no ncaj qha ua haujlwm ntawm Arduino cov cuab yeej nrog NeoPixel thiab NeoMatrix tsev qiv ntawv los ntawm Adafruit. Koj yuav tsum hloov tus lej PIN thiab pib ua ntej yog tias koj xav siv cov piv txwv:

Neomatrix:

Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix (20, 5, PIN, NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG, NEO_GRB + NEO_KHZ800);

Koj kuj yuav tsum suav nrog Adafruit GFX lub tsev qiv ntawv thiab thauj cov ntawv sib txawv nrog qhov siab ntawm 5 pixel. Thov siv daim duab Arduino txuas ua qhov pib (siv tus lej 4 rau tus lej). Nws yog qhov hloov pauv ntawm Neomatrix piv txwv kos duab.

NeoPixel:

Adafruit_NeoPixel strip = Adafruit_NeoPixel (100, PIN, NEO_GRB + NEO_KHZ800);

Kauj Ruam 7: Simulation

Simulation
Simulation
Simulation
Simulation
Simulation
Simulation
Simulation
Simulation

Python source-code muaj nyob ntawm Github

Muaj ob txoj hauv kev rau coding. Yog tias PI = Tsis tseeb txhais thaum pib ntawm lub tog raj kheej.py, cov cai nyob hauv hom simulation. Koj tuaj yeem sim txhua qhov kev ua yeeb yaj kiab ntawm txhua lub platform uas muaj peev xwm khiav nab hab sej. Thov nruab ua ntej txhua lub tsev qiv ntawv uas tau siv los ntawm txoj haujlwm (zoo li pygame, lej, thiab lwm yam). Hauv kev sim ua hom, lub tog raj kheej tau tshwm los ua 5x20 pixel matrix.

Kauj ruam 8: Programming

Programming
Programming
Programming
Programming
Programming
Programming
Programming
Programming

Hom software thib ob yog PI = Tseeb (txhais hauv cylinder.py) thiab pib ntawm Pi. Qhov no ua rau GPIO tus pin 18 ntawm Raspberry Pi. Koj muaj kev ywj pheej ntxiv cov teebmeem ntxiv thiab ua si ib puag ncig nrog cov ntsuas.

Cov ntawv tau tshwm nrog 3x5 font, yog li tsis yog txhua tus ntawv yog qhov zoo vim qhov txwv qhov siab.

Txaus siab rau!

Kev sib tw Epilog X
Kev sib tw Epilog X
Kev sib tw Epilog X
Kev sib tw Epilog X

Khiav Tawm Hauv Kev Sib Tw Epilog X

Pom zoo: