Cov txheej txheem:

Siv 2 Txoj Haujlwm Sau Npe (74HC595) rau Tsav 16 LEDs: 9 Cov Kauj Ruam
Siv 2 Txoj Haujlwm Sau Npe (74HC595) rau Tsav 16 LEDs: 9 Cov Kauj Ruam

Video: Siv 2 Txoj Haujlwm Sau Npe (74HC595) rau Tsav 16 LEDs: 9 Cov Kauj Ruam

Video: Siv 2 Txoj Haujlwm Sau Npe (74HC595) rau Tsav 16 LEDs: 9 Cov Kauj Ruam
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Hlis ntuj nqeg
Anonim
Siv 2 Txoj Haujlwm Sau Npe (74HC595) rau Tsav 16 LEDs
Siv 2 Txoj Haujlwm Sau Npe (74HC595) rau Tsav 16 LEDs

Lub voj voog no yuav siv 2 daim ntawv teev npe hloov pauv (74HC595). Cov npe hloov pauv yuav tsav raws li 16 LEDs. Txhua daim ntawv teev npe ua haujlwm yuav tsav 8 LEDs. Qhov kev sau npe ua haujlwm yog xaim kom txhua qhov kev hloov pauv rau npe tawm yuav zoo ib yam ntawm ib qho.

Kauj Ruam 1: Tus Neeg Sau Npe Hloov Dab Tsi?

Dab tsi yog Shift Register?
Dab tsi yog Shift Register?
Dab tsi yog Shift Register?
Dab tsi yog Shift Register?

Cov ntawv teev npe hloov pauv yog cov txheej txheem sib txuas ua ke. Lawv muaj peev xwm khaws thiab xa cov ntaub ntawv.

Cov ntawv teev npe ua haujlwm suav nrog ntau lub flip flops thiab cov moos uas txuas nrog ua ke. Qhov tso tawm ntawm kev hloov pauv cov npe hloov pauv tau hloov pauv lossis hloov pauv raws li lub moos (cov txiaj ntsig pulsed).

Kauj ruam 2: Siv Shift Registers

Kev siv Shift Registers
Kev siv Shift Registers

Hloov cov npe yog cov cim kev siv hluav taws xob siv hauv lub laij lej thiab khoos phis tawj. Shift cov ntawv sau npe tuaj yeem siv los nthuav cov lej tawm ntawm lub microcontroller zoo li Arduino.

Kauj Ruam 3: Cov Khoom Siv Hluav Taws Xob Siv Hauv Circuit

Cov Khoom Siv Hluav Taws Xob Siv Hauv Circuit
Cov Khoom Siv Hluav Taws Xob Siv Hauv Circuit

2 74HC595 hloov npe

16; 1 k resistors (xim av, dub, liab)

16 LEDs

1 Arduino UAS

2 electrolytic capacitors; 10 Uf

2 ntev breadbaords

xov hlau.

Kauj Ruam 4: Teeb Lub Circuit Court

Kev teeb tsa Circuit
Kev teeb tsa Circuit
Kev teeb tsa Circuit
Kev teeb tsa Circuit

Cov txiaj ntsig tau yog Qa rau Qh. Wire Qa ua ntej thiab tom qab ntawd mus rau txhua qhov tso tawm raws li pom yog daim duab.

pin14 yog SER txuas nrog Arduino digital pin 11. Qhov SER yog DATA cov tswv yim uas yuav hloov mus.

Pin12 yog RCLK (LATCH) txuas nrog

Arduino tus pin 8

Pin11 yog SRCLK (CLOCK) txuas nrog Arduino tus pin 12

txhua lub sijhawm tus pin no mus siab (1) qhov tseem ceeb hauv kev hloov pauv npe yuav hloov los ntawm 1 ntsis.

Vcc yog tus pin 16 txuas nrog rau txoj kab tsheb ciav hlau liab

tus pin 8 txuas nrog hauv av

Arduino 5 volts txuas nrog txoj kab liab ntawm lub khob cij

Arduino grounsd txuas nrog txoj kev tsheb ciav hlau dub

Txuas thaj chaw ntawm cov laug cam ua ke raws li qhia yog daim duab.

Kauj Ruam 5: Lub Circuit Court Ua Haujlwm Li Cas

Yuav ua li cas Circuit Court Ua Haujlwm
Yuav ua li cas Circuit Court Ua Haujlwm

3 qhov sib txawv inputs (CLOCK, LATCH, DATA) yuav hloov qhov hluav taws xob ntawm cov zis raws li pom ntawm LEDs. CODE yuav teeb tsa ntu ntawm LEDs thiab qhov nrawm ntawm LEDs tig thiab tawm.

Kauj Ruam 6: Cov Ntawv Tshaj Tawm Yuav Hloov Ua Ntej Sab laug mus Rau Sab Nraud Sai

Cov Outputs Yuav Hloov Ua Ntej Sab laug rau Txoj Cai Sai
Cov Outputs Yuav Hloov Ua Ntej Sab laug rau Txoj Cai Sai

Cov LEDS yuav txav sab laug mus rau sab xis sai.

Kauj Ruam 7: Tom qab ntawd LEDS Wil Mus Los Ntawm Txoj Cai mus Rau Sab Nrauv sai heev

Tom qab ntawd LEDS Wil Mus Los Ntawm Txoj Cai Mus Rau Sab Nrauv sai heev
Tom qab ntawd LEDS Wil Mus Los Ntawm Txoj Cai Mus Rau Sab Nrauv sai heev

LEDS hloov kev taw qhia (sab xis mus rau sab laug).

Kauj Ruam 8: Xaus

Xaus
Xaus

Kuv vam tias qhov haujlwm no yuav pab nkag siab cov npe hloov pauv thiab nws siv. Kuv nyiam qhov project. Nws tau sim rau

Tinkercad thiab ua haujlwm.

Muaj qhov txuas, tab sis koj yuav xav tau Tinkercad tus account kom pom nws. Qhov txuas tau tshaj tawm saum toj no nrog rau CODE.

Ua tsaug

Kauj Ruam 9: Daim vis dis aus ntawm Hloov Npe

video of shift registers cov

Pom zoo: