Cov txheej txheem:

Siv RGB LEDs los Tsim Cov Xim Sequences: 12 Cov Kauj Ruam
Siv RGB LEDs los Tsim Cov Xim Sequences: 12 Cov Kauj Ruam

Video: Siv RGB LEDs los Tsim Cov Xim Sequences: 12 Cov Kauj Ruam

Video: Siv RGB LEDs los Tsim Cov Xim Sequences: 12 Cov Kauj Ruam
Video: Txawb Hais Lus Raug, OEM Xov tooj & Computer Accessories, Cov Khoom Siv logo, PC Peripherals Hoobkas 2024, Kaum ib hlis
Anonim
Siv RGB LEDs los Tsim Xim Sequences
Siv RGB LEDs los Tsim Xim Sequences

Cov Lus Qhia no yuav qhia paub siv RGB LEDs los tsim cov xim sib txuas los ntawm kev siv Arduino Uno thiab Txoj Cai.

3 RGB LEDs yuav hloov xim thaum lub sijhawm thaum 2 lwm RGB LEDs yuav nyob zoo ib yam.

Kauj Ruam 1: Yuav ua li cas RGB LEDs Ua Haujlwm thiab Cov Khoom Siv Hluav Taws Xob hauv Circuit Court

Yuav ua li cas RGB LEDs Ua Haujlwm thiab Cov Khoom Siv Hluav Taws Xob hauv Circuit Court
Yuav ua li cas RGB LEDs Ua Haujlwm thiab Cov Khoom Siv Hluav Taws Xob hauv Circuit Court

Cov khoom siv hluav taws xob hauv Circuit Court yog;

5 RGB LEDs (hom cathode)

10; 1 k resistors (xim av, liab liab)

3; 470 resistors (daj daj xim av)

Arduino Ib

xov hlau

RGB LEDs (saib duab 2) yog 3 LEDs txuas nrog ua ke nrog ib qho cathode (cov hmoov lead tsis zoo)

RGB yuav ua haujlwm thaum tam sim no ntws los ntawm anode mus rau cathode. (Saib duab peb)

Ib tus tiv thaiv tau txuas ua ntej mus rau anode los tswj tus nqi ntawm cov dej ntws tam sim no.

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit

Thov nyem rau ntawm thawj daim duab thiab nthuav nws. Thawj RGB coj (liab) txuas nrog tus lej digital 11.

Cov hlau lead thib ob yog cathode thiab txuas rau hauv av. Txhua tus hlau lead (xiav) txuas nrog tus pin 9.

Cov hlau lead kawg (ntsuab txuas nrog tus pin 10). Thawj RGB yog cov hlau lead RGB nws yuav tswj hwm lwm 2RGBs uas tau txuas rau nws. Thov saib tag nrho lwm qhov kev sib txuas ntawm Circuit (saib daim duab) Txoj Cai yuav tsim cov xim sib hloov hloov pauv. Qhov Code yog duab 3

Kauj Ruam 3: Thawj Xim Ib Zaug

Thawj Xim Xim
Thawj Xim Xim

Thawj xim ua ntej yog daim duab saum toj no. Thov nyem rau ntawm no thiab nthuav dav

Kauj Ruam 4: Qhov Xim Xim Thib Ob

Qhov xim thib ob
Qhov xim thib ob

Nov yog qhov xim thib ob. Nco ntsoov tias 3 RGB LEDs tau hloov xim (nyem rau ntawm daim duab thiab nthuav dav)

Kauj Ruam 5: Xim Xim thib peb

Xim thib peb
Xim thib peb

Nov yog qhov xim thib peb. Nco ntsoov hloov xim (nyem rau ntawm daim duab)

Kauj Ruam 6: Plaub Xim Ib Leeg

Plaub Xim Xim
Plaub Xim Xim

Nov yog ntu 4. Nco ntsoov hloov xim (kos duab)

Kauj Ruam 7: Qhov Xim Xim Tsib

Qhov Xim Xim Thib Tsib
Qhov Xim Xim Thib Tsib

Nov yog xim xim thib tsib. Thov hloov qhov xim (kos duab)

Kauj Ruam 8: Qhov Xim Xim Rau

The Sixth Color Sequence
The Sixth Color Sequence

Nov yog qhov xim thib 6. Nco ntsoov qhov hloov xim (saib daim duab saum toj no)

Kauj Ruam 9: Seventh Color Sequence

Seventh Colour Sequence
Seventh Colour Sequence

Qhov no kuv yog xim thib 7. Nco ntsoov hloov xim. (Saib duab)

Kauj Ruam 10: 3 RGBs Yuav Tawm

3 RGBs Yuav Tawm
3 RGBs Yuav Tawm

3 RGB LEDs yuav tig tawm. Qhov thib 1 RGB LED nyob qis qis. Nws yog xim paj yeeb. Nco ntsoov qhov sib txuas kom tau txais cov xim no.

Qhov kawg RGB LED nyob twj ywm thiab yog lub teeb xiav. Nco ntsoov qhov sib txuas kom tau txais cov xim no.

Kauj Ruam 11: Xaus

Xaus
Xaus
Xaus
Xaus
Xaus
Xaus

Cov Lus Qhia no qhia koj li cas siv RGB LEDs los tsim cov xim sib xws nrog Arduino Uno thiab Txoj Cai. (Txoj Cai tau suav nrog saum toj no, duab kawg.) Koj tuaj yeem pom qhov ua tiav yog tias koj nyem rau ntawm txhua daim duab.

Lub voj voog no tau tsim ntawm Tinkercad, Nws tau sim thiab ua haujlwm. Kuv nyiam tsim txoj haujlwm. Kuv vam tias nws yuav pab koj nkag siab RGB LEDs. Ua tsaug

Kauj Ruam 12: RGB Circuit; Xim xim

Nov yog RGB Circuit. Nws muaj cov xim sib xws nrog Arduino Code (saib cov vis dis aus hauv qab no; muaj teeb meem tso tawm, tab sis tam sim no nws ua haujlwm)

Pom zoo: