Cov txheej txheem:

Arduino LED Rocker Game !: 4 Kauj Ruam (nrog Duab)
Arduino LED Rocker Game !: 4 Kauj Ruam (nrog Duab)

Video: Arduino LED Rocker Game !: 4 Kauj Ruam (nrog Duab)

Video: Arduino LED Rocker Game !: 4 Kauj Ruam (nrog Duab)
Video: Amazing arduino project 2024, Kaum ib hlis
Anonim
Arduino LED Rocker Game!
Arduino LED Rocker Game!

Qhov no yog qhov kev ua si yooj yim arduino, yooj yim zoo nkauj tab sis ua rau tsis txaus ntseeg. Nws tau ua raws qhov ntsais muag yam tsis tau ncua piv txwv ntawm Arduino lub vev xaib.

Ua si, tsuas yog qhib Serial Monitor, thiab nias lub pob thaum nruab nrab LED qhib. Koj yuav tau txais peb lub neej ua ntej koj plam. Nyob zoo os !!

Kauj Ruam 1: Cov ntaub ntawv

Cov ntaub ntawv
Cov ntaub ntawv

Koj yuav tsum tau:

1. Arduino ib

2.9 LEDs

3. 10 400ohm resistors

4. khawm

5. breadboard thiab ib co jumper xov hlau

Kauj ruam 2: Tsim

Tsim
Tsim
Tsim
Tsim
Tsim
Tsim

Txhua lub LED yuav tsum txuas nrog tus tiv thaiv los ntawm tus pin 2 txog tus pin 10.

Ua raws cov fritz no, tom qab ntawd txuas lub pob rau tus pin 13 ntawm arduino (tsis txhob hnov qab rub tawm tus tiv thaiv).

Txuas hauv av GND tus pin rau hauv av tsheb nqaj hlau ntawm lub khob cij

Kauj ruam 3: Software

Pib nrog qhov ntsais muag yam tsis muaj ncua piv txwv txhawm rau nkag siab qhov project kawg.

Thaum ua tiav, thauj qhov project kawg.

Nco ntsoov tias lub rooj tsav xwm raug xaiv raug xaiv!

Kauj ruam 4: Txhua yam ua tiav

Ua Tiav!
Ua Tiav!

Koj muaj peb lub neej, txhua lub sijhawm koj nyem lub pob thaum lub teeb tsis nyob ntawm LED nruab nrab, koj plam txoj sia.

Thaum koj tsis muaj sia nyob, qhov kev ua si rov pib dua.

Thaum koj nyem lub pob thaum lub teeb nyob ntawm nruab nrab LED, lub teeb pob zeb nrawm dua.

Pom zoo: