Cov txheej txheem:

Arduino Light Game: 7 Kauj Ruam
Arduino Light Game: 7 Kauj Ruam

Video: Arduino Light Game: 7 Kauj Ruam

Video: Arduino Light Game: 7 Kauj Ruam
Video: Mind-boggling arduino UNO project. You need to do it yourself! #arduino #electronics 2024, Kaum ib hlis
Anonim
Image
Image

Tsis lees paub

Txoj haujlwm no yog qhov hloov pauv me ntsis ntawm

Thov mus saib thawj qhov haujlwm.

================ cais kab ================

Taw qhia

Nov yog kev ua si los ntawm Arduino LEDs.

Yeej, koj muaj tsib lub neej.

Cov LEDs yuav ci ib ntawm ib qho.

Lub hom phiaj tag nrho ntawm qhov kev ua si no yog nias lub pob thaum lub teeb mus txog ib nrab.

Yog tias koj ua tiav, koj 'nce qib', lub teeb nruab nrab yuav ntsais ob zaug kom pom tias koj tau txais nws.

Yog koj swb, koj 'plam txoj sia'

Qhov ntau koj 'qib nce', lub teeb tau sai dua.

Yog tias koj lub neej mus txog xoom, LED uas koj nias tsis raug thiab thawj LED yuav ci rau ib pliag, qhia tias 'Game Over', tom qab ntawd kev ua si rov pib dua.

Kauj Ruam 1: Npaj Koj Cov Khoom Siv

Npaj Koj Cov Khoom Siv
Npaj Koj Cov Khoom Siv

- Arduino ib

- Cov qhob cij

- Usb kab

- 10 jumper xov hlau

- 9 LEDs

-9 resistors

- Ib lub pob

Kauj ruam 2: Txuas Nws

Txuas Nws
Txuas Nws

Nws zoo li cov duab saum toj no.

Yeej …

LED1 -(txuas rau)> Pin2

LED2 -(txuas rau)> Pin3

LED3 -(txuas rau)> Pin4

LED4 -(txuas rau)> Pin5

LED5 -(txuas rau)> Pin6

LED6 -(txuas rau)> Pin7

LED7 -(txuas rau)> Pin8

LED8 -(txuas rau)> Pin9

LED9 -(txuas rau)> Pin10

Khawm -(txuas rau)> Pin13

Tsis txhob hnov qab txuas GND rau txoj kev tsheb nqaj hlau

Kauj ruam 3: Muab tso rau hauv Txoj Cai

Cov cai tuaj yeem pom ntawm no:

create.arduino.cc/editor/InfinityStars/499…

Kauj Ruam 4: Npaj Ua Sab Nrauv

Npaj Ua Sab Nraud
Npaj Ua Sab Nraud
Npaj Ua Sab Nraud
Npaj Ua Sab Nraud

Nov yog cov lus pom zoo koj yuav tsum npaj:

- Ib lub thawv me me, kwv yees qhov loj ntawm koj Arduino.

- Qee daim ntawv xim

- Cov xaum xim thiab cim rau kos

- Koj tuaj yeem npaj riam riam kom txiav tawm cov duab

- Daim yas

- Daim kab xev

Kauj Ruam 5: Txiav Tawm Qhov Chaw thiab Kho Kom Zoo Nkauj

Txiav Tawm Qhov Chaw thiab Kho Kom Zoo Nkauj
Txiav Tawm Qhov Chaw thiab Kho Kom Zoo Nkauj
Txiav Tawm Qhov Chaw thiab Kho Kom Zoo Nkauj
Txiav Tawm Qhov Chaw thiab Kho Kom Zoo Nkauj
Txiav Tawm Qhov Chaw thiab Kho Kom Zoo Nkauj
Txiav Tawm Qhov Chaw thiab Kho Kom Zoo Nkauj

- Txiav tawm cuaj qhov chaw me me tso LEDs

- Txiav tawm lub voj voog kom tso lub pob

- Txiav tawm me me ntawm ob sab (yog li koj tuaj yeem txuas kab usb)

- Kos rau pem hauv ntej

- Khawb daim ntawv xim rau sab kom npog lub thawv

Kauj Ruam 6: Muab Txhua Qhov Ua Ke

Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke

- Muab tso rau hauv cov teeb ci LED

- Daim kab xev ntawm yuav luag pob tshab yas hla cov LEDs

- Muab tso rau hauv lub pob

- Muab Arduino tso rau hauv lub thawv

- Txuas txhua yam

Kauj ruam 7: Ua tiav

Kaw lub hau npog, thiab txuas kab usb.

Khiav cov cai, sim yog nws ua haujlwm lossis tsis.

Yog tias koj 'Poob Lub Neej', tau txais 'Game Over', lossis 'Levels up' koj tuaj yeem pom nws hauv Cov Ntawv Teev Npe

Ua si kom txog thaum lub teeb mus nrawm heev koj tsis tuaj yeem pom qhov twg yog qhov txav mus tiag!

Txaus siab rau!

Pom zoo: