Cov txheej txheem:

7 Segment Display Counter With Shift Register: 3 Cov Kauj Ruam
7 Segment Display Counter With Shift Register: 3 Cov Kauj Ruam

Video: 7 Segment Display Counter With Shift Register: 3 Cov Kauj Ruam

Video: 7 Segment Display Counter With Shift Register: 3 Cov Kauj Ruam
Video: How to use 74HC595 Shift registers to control mulitple 7 segment displays 2024, Kaum ib hlis
Anonim
7 Segment Display Counter With Shift Register
7 Segment Display Counter With Shift Register
7 Segment Display Counter With Shift Register
7 Segment Display Counter With Shift Register

Nov yog txoj haujlwm pib zoo tshaj plaws yog tias koj nyuam qhuav kawm paub siv kev hloov pauv npe thiab nws ua haujlwm li cas nrog cov cai. Ib qho ntxiv, txoj haujlwm no yog qhov pib zoo yog tias koj tshiab rau 7 ntu saib. Ua ntej koj pib txoj haujlwm no kom ntseeg tau tias lub zog rau lub khob cij nrog 3.3 V thiab GND (ob sab ntawm lub khob cij).

Khoom siv

  • 8 220 Ohm resistors
  • 7 ntu zaub
  • 74HC595 Shift Resistor
  • Arduino
  • Cov qhob cij
  • Jumper xov hlau

Kauj Ruam 1: Kauj Ruam 1: Xya Segment Zaub

Kauj Ruam 1: Xya Segment Zaub
Kauj Ruam 1: Xya Segment Zaub

Txhawm rau pib nrog, koj xav paub yog tias koj 7 ntu ntu muaj cov cathode ntau lossis ib qho anode ntau. Raws li, koj yuav tsum tau xaim koj 7 ntu zaub. Qhov kev qhia no tuaj yeem ua haujlwm rau ob qho tib si cathode lossis anode, tsuas yog xyuas kom tseeb tias koj muaj cov anode sib txuas, txuas tus pin tshwj xeeb rau VCC thiab yog tias koj muaj cathode ntau, txuas tus pin rau GND.

  • Txuas tus pin A rau 200-ohm resistor uas tom qab ntawd txuas rau Output 1 ntawm kev hloov npe
  • Txuas tus pin B rau 200-ohm resistor uas tom qab ntawd txuas rau Output 2 ntawm kev hloov npe
  • Txuas tus pin C rau 200-ohm resistor uas tom qab ntawd txuas rau Output 3 ntawm kev hloov npe
  • Txuas tus pin D rau 200-ohm resistor uas tom qab ntawd txuas rau Output 4 ntawm kev hloov npe
  • Txuas tus pin E rau 200-ohm resistor uas tom qab ntawd txuas rau Output 5 ntawm kev hloov npe
  • Txuas tus pin F rau 200-ohm resistor uas tom qab ntawd txuas rau Output 6 ntawm kev hloov npe
  • Txuas tus pin G rau 200-ohm resistor uas tom qab ntawd txuas rau Output 7 ntawm kev hloov npe
  • Txuas tus pin DP rau 200-ohm resistor uas tom qab ntawd txuas rau Output 8 ntawm kev hloov npe
  • Txuas CA mus rau 200-ohm resistor uas tom qab ntawd txuas rau Lub Hwj Chim

Kauj Ruam 2: Kauj Ruam 2: Hloov Sau Npe

Kauj ruam 2: Hloov Sau Npe
Kauj ruam 2: Hloov Sau Npe

Feem ntau ntawm cov pins hauv daim ntawv teev npe ua haujlwm twb tau xaim raws li hauv cov kauj ruam kawg. Tam sim no, tsuas yog cov pins uas xav tau txuas yog cov pins digital tso tawm nrog rau GND.

  • Txuas Cov Khoom Siv Tso Cai thiab Pin tus pin rau GND
  • Txuas tus pin fais fab mus rau 5 V ntawm Arduino ntxiv rau kev hloov pauv rau npe kom meej
  • Txuas Cov Lus Qhia rau tus pin 2 ntawm Arduino
  • Txuas cov ntawv tso npe teev rau tus pin 3 ntawm Arduino
  • Txuas ua haujlwm teev npe teev rau tus pin 4 ntawm Arduino

Kauj Ruam 3: Kauj Ruam 3: Txoj Cai

Kauj ruam 3: Txoj Cai
Kauj ruam 3: Txoj Cai

Nov yog qhov txuas rau cov cai. Yog koj muaj lus nug dab tsi qhia rau kuv paub!

Pom zoo: