Cov txheej txheem:

4X4 LED MATRIX Siv 74hc595 IC: 7 Kauj Ruam
4X4 LED MATRIX Siv 74hc595 IC: 7 Kauj Ruam

Video: 4X4 LED MATRIX Siv 74hc595 IC: 7 Kauj Ruam

Video: 4X4 LED MATRIX Siv 74hc595 IC: 7 Kauj Ruam
Video: How to make LED Cube (4x4x4) 2024, Kaum ib hlis
Anonim
4X4 LED MATRIX Siv 74hc595 IC
4X4 LED MATRIX Siv 74hc595 IC

Nqe lus piav qhia

Hauv blog no peb yuav tsom mus rau yuav ua li cas thiab ua tus lej 4x4 LED matrix siv kev hloov npe (SN7HC595N)

Khoom siv

Cov Ntaub Ntawv Yuav Tsum Tau

  • Hloov npe (SN7HC595N)
  • Jumper cables
  • Arduino board (Kuv yuav siv Arduino UNO)
  • 16 LEDs
  • 330 ohm tus tiv thaiv x4
  • Cov khoom siv Soldering
  • Pcb phaj
  • Cov xov hlau

Kauj Ruam 1: CIRCUIT

Tso 16 LED'S hauv cov xwm txheej zoo li qhov anode ntawm txhua LED tau tig mus rau hauv qab thiab cathodes tig mus rau sab xis

  • Txuas tag nrho cov cathodes ntawm LED hauv kab
  • Txuas txhua qhov anodes ntawm LED'S hauv kab
  • Siv cov zis los ntawm txhua kab thiab kab, yog li thaum kawg koj yuav muaj 8 qhov tawm los ntawm 4x4 matrix.

Kauj Ruam 2: CIRCUIT DIAGRAM

CIRCUIT DIAGRAM
CIRCUIT DIAGRAM

Kauj Ruam 3: KEV ZOO SIAB

  • Qhov raug tus nqi ntawm tus tiv thaiv yog ib qho tseem ceeb heev vim tias lub Circuit Court yuav tsis ua haujlwm zoo yog tsis muaj nws.
  • Thaum siv tshuaj txhuam yuav tsum ceev faj heev thiab xyuas kom tsis muaj kab thiab kab xov kab sib chwv sib cuam tshuam.
  • Tsis txhob txuas lub Circuit Court thaum arduino nyob rau piv txwv li-thaum arduino board tau siv.
  • Ib tus zuj zus txheeb xyuas txhua tus LED'S ua ntej txuas.

Kauj ruam 4: CODE

download tau cov cai los ntawm qhov txuas muab. txuas rau cov cai

Kauj ruam 5: Piav qhia

Cov pins tseem ceeb ntawm IC-

SER (Serial) qhov twg cov ntaub ntawv tau txais hauv;

SRCLK (Serial Clock) tus pin koj teeb tsa siab rau khaws dab tsi hauv SER;

RCLK (Sau Npe) tus pin koj teeb tsa siab thaum koj ua tiav teeb tsa txhua tus pin

Hloov pauv cov npe hloov pauv cov khoom uas tau tso rau hauv kab ntawv hla cov ntaub ntawv tus pin mus rau 8 qhov khoom sib luag, Yog li yog koj xav xa tuaj hais 10010000 koj pib nrog qhov tsawg kawg tseem ceeb (0) yog li koj teeb SER rau LOW (D10 ntawm Arduino). Tom ntej no, koj teeb SCK (D11 ntawm Arduino) rau HIGH thiab tom qab ntawd LOW, kom "txuag" tus nqi

Kauj Ruam 6: Yam Yuav Tsum Tawm

  • Los ntawm kev hloov pauv tus lej koj tuaj yeem luam cov qauv sib txawv thiab cov duab ntawm 4x4 matrix.
  • Nws tuaj yeem ua raws li tus nqi qis rau cov phiaj xwm me

Pom zoo: