Cov txheej txheem:

Yuav Ua Li Cas 4x4x4 LED Cube: 6 Kauj Ruam
Yuav Ua Li Cas 4x4x4 LED Cube: 6 Kauj Ruam

Video: Yuav Ua Li Cas 4x4x4 LED Cube: 6 Kauj Ruam

Video: Yuav Ua Li Cas 4x4x4 LED Cube: 6 Kauj Ruam
Video: Yuav ua li cas By Nhia Lor [full version] 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas 4x4x4 LED Cube
Yuav Ua Li Cas 4x4x4 LED Cube

Hauv Cov Lus Qhia no, koj yuav kawm paub yuav ua li cas LED lub voos xwmfab ib kauj ruam yooj yim nrog Arduino.

Ib lub voos xwmfab LED yog kev teeb tsa ntawm LEDs hauv qhov cubical, qhov twg LEDs ci hauv ib qho qauv tshwj xeeb.

Cia Peb Pib…

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

  • Arduino Nano Cov
  • Resistors -100 Ohms -4 [LCSC]
  • LEDs (Diffused) - 64 [LCSC]
  • Cov tsis tooj liab tooj liab hlau
  • Perfboard
  • Duab los qhia
  • Poj niam Header pins [LCSC]
  • Ib Leeg Swb Hlau
  • Cov cuab yeej

    • Soldering Hlau
    • Soldering Hlau [LCSC]
    • Nipper

Hav Guys, Tau txais cov khoom siv hluav taws xob ntawm qhov zoo.

LCSC: Cov Khoom Siv Khoom Siv Hluav Taws Xob, Sau npe hnub no thiab tau txais $ 8 tawm ntawm koj thawj daim ntawv xaj.

Kauj Ruam 2: Saib Video Ua Ntej

Image
Image

Ua ntej Saib cov vis dis aus no, koj yuav yooj yim ua.

Kauj Ruam 3: Tsim Frames

Tsim Ncej
Tsim Ncej
Tsim Ncej
Tsim Ncej
Tsim Ncej
Tsim Ncej

Ua ntej tsim lub voj ntawm txhua qhov tsis zoo ntawm LEDs.

Txiav cov coj ua ntxiv.

Laum qhov hauv daim duab los qhia raws li qhia hauv kab ntawv.

Ntxig cov LEDs hauv qhov raws li qhia hauv daim duab.

Txiav tooj liab hlau raws li qhov ntev ntawm tus ncej (3.5 nti).

Luag txhua lub dav hlau zoo nyob hauv kab, nrog kev pab los ntawm tooj liab xaim.

Kauj Ruam 4: Tsim Lub Vev Xaib

Lub Tsev Cube
Lub Tsev Cube
Lub Tsev Cube
Lub Tsev Cube
Lub Tsev Cube
Lub Tsev Cube

Coj tus ncej, thiab ntxig tooj liab hlau hauv lub voj ntawm qhov tsis zoo ntawm LEDs.

Muab cov pob qij txha txuas.

Ntxig ntxiv cov ntas, tswj chaw txaus ntawm cov thav duab.

Solder tag nrho cov pob qij txha.

Muab lub voos xwmfab LED tso rau ntawm perfboard thiab cov laug.

Solder poj niam lub taub hau, rau ntxig rau Arduino Nano.

Kauj ruam 5: Kev sib txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Siv cov xaim xaim rau txhua tus thav duab thiab txuas qhov kawg dawb rau perfboard.

Solder 100 Ohms resistor ntawm txhua lub davhlau ya nyob twg ntawm xaim.

Lwm qhov kawg ntawm tus tiv thaiv yuav tsum txuas rau Arduino Nano raws li hauv qab no

  • Txheej 1 -> A0
  • Txheej 2 -> A1
  • Txheej 3 -> A2
  • Txheej 4 -> A3

Txuas cov xov hlau, los ntawm Arduino nano rau thav duab raws li tau hais hauv daim duab.

Kauj Ruam 6: Upload Arduino Code

Rub tawm Arduino Code
Rub tawm Arduino Code

Download tau cov chaws txuas.

Tam sim no upload cov cai rau Arduino Nano.

Ntawd yog txhua tus txiv neej, koj ua nws!

Yog tias koj nyiam kab lus no, sau npe yuav ua rau kuv YouTube Channel, rau ntau txoj haujlwm zoo tshaj.

Pom zoo: