Cov txheej txheem:

3x3 LED Sweep: 9 Kauj Ruam
3x3 LED Sweep: 9 Kauj Ruam

Video: 3x3 LED Sweep: 9 Kauj Ruam

Video: 3x3 LED Sweep: 9 Kauj Ruam
Video: Watch till the End, Really Possible? | @miss__cuber | #shorts #rubikscube #kingofcubers 2024, Hlis ntuj nqeg
Anonim
3x3 LED Sawb
3x3 LED Sawb

Hauv Cov Lus Qhia no kuv yuav qhia cov qib thiab cov cai los tsim koj tus kheej arduino raws li tus kws saib xyuas lub nkoj!

Tej Yam Koj Yuav Tsum Xav Tau 1 X Arduino UNO R3

2 X Potentiometer

  • 1 x Khawm
  • 9 x lwd
  • 10 x 220 Ohm Resistors

Kauj Ruam 1: Cov Hluav Taws Xob Zoo thiab Av

Zoo thiab Hauv av Hlau
Zoo thiab Hauv av Hlau

YOOJ YIM TSHUAJ

  1. Txuas 1 jumper hlau (liab) mus rau + sab ntawm lub khob cij rau GND chaw nres nkoj ntawm arduino
  2. Siv lwm lub jumper hlau (liab) txuas mus rau lwm sab ntawm lub khob cij ntawm lub + tsheb nqaj hlau
  3. Txuas 1 jumper hlau (dub) mus rau - sab ntawm lub khob cij rau 5v chaw nres nkoj ntawm arduino
  4. Siv lwm lub jumper hlau (dub) txuas mus rau lwm sab ntawm lub khob cij ntawm lub + tsheb nqaj hlau

Kauj Ruam 2: Ntxiv Potentiometers

Ntxiv Potentiometers
Ntxiv Potentiometers
  1. Txuas ob sab zoo thiab tsis zoo mus rau txoj kev tsheb nqaj hlau sib npaug ntawm lub khob cij
  2. Txuas thawj lub zog rau tus pin A1, tus thib ob rau tus pin A2

Kauj Ruam 3: Ntxiv Khawm

Ntxiv khawm
Ntxiv khawm
  1. Txuas zoo rau ib sab ntawm khawm
  2. Txuas 220 Ohm resistor rau lwm tus pin ntawm tib sab ua qhov zoo
  3. Txuas cov xaim av los ntawm GND txoj kev tsheb nqaj hlau mus rau tus tiv thaiv
  4. Txuas tus pin 13 ntawm arduino khawm sab rov los ntawm hauv av

Kauj Ruam 4: Ntxiv LEDS

Ntxiv LEDS
Ntxiv LEDS

Ntxiv 9 Leds ib yam li hauv daim duab saum toj no. Xyuas kom lawv zoo li qhov no kom yooj yim txuas. Daim ntawv ceeb toom yuav ua li cas cov LED tau teeb tsa kom tag nrho cov hauv av kov, thiab lwm sab npaj rau tus pin kom txuas nrog

Kauj ruam 5:

Duab
Duab

Txuas cov xaim av mus rau 3 txoj kab tsis zoo txuas nrog 3 LED Kab

Kauj Ruam 6: Ntxiv Resistors

Ntxiv Resistors
Ntxiv Resistors

Ntxiv cov resistors rau txhua qhov zoo ntawm LEDs, koj yuav ntxiv 9

Kauj Ruam 7: Txuas Thawj 3

Txuas Thawj 3
Txuas Thawj 3

Txuas tag nrho cov no

  • Pin 4 yog; ast Liab LED
  • Tus Pin 7 yog kawg Green LED
  • Pin 1 yog qhov kawg Blue LED

Kauj Ruam 8: Ntxiv 3 LEDs ntxiv

Ntxiv 3 LEDs ntxiv
Ntxiv 3 LEDs ntxiv

Txuas tag nrho cov no

Chaw nres nkoj 3 mus rau nruab nrab Liab LED

Chaw nres nkoj 6 mus rau nruab nrab Green LED

Chaw nres nkoj 9 mus rau nruab nrab Blue LED

Kauj Ruam 9: Ntxiv LEDs Kawg

Ntxiv LEDs kawg
Ntxiv LEDs kawg

Txuas cov no

Pin 2 rau thawj Liab LED

Pin 5 rau thawj Green LED

Pin 8 rau thawj Blue LED

Pom zoo: