Cov txheej txheem:

Arduino LED Laser Arcade Game: 3 Kauj Ruam (nrog Duab)
Arduino LED Laser Arcade Game: 3 Kauj Ruam (nrog Duab)

Video: Arduino LED Laser Arcade Game: 3 Kauj Ruam (nrog Duab)

Video: Arduino LED Laser Arcade Game: 3 Kauj Ruam (nrog Duab)
Video: Amazing arduino project 2024, Lub Xya hli ntuj
Anonim
Arduino LED Laser Arcade Game
Arduino LED Laser Arcade Game

Hauv cov lus qhia no kuv yuav ua kom pom yuav ua li cas Laser Arcade Game siv LED thiab lub teeb pom kev zoo. Cov cai tau suav nrog thiab koj tsis xav tau ntau qhov los tsim nws. Kuv yuav tsis qhia koj li cas kuv tsim rooj plaub, koj yuav tsum ua qhov ntawd rau koj tus kheej!

Lub tswv yim yog tias kuv xav tsim kev ua si siv Arduino siv qhov yooj yim tshaj plaws uas nws muaj. Koj siv lub cwj mem laser kom pom lub teeb pom kev zoo yog li lawv yuav ntsuas nws, thiab yog tias LED nyob ntawm koj tus qhab nia taw tes thiab sib txawv LED teeb.

Koj tuaj yeem pom qhov project tiav ntawm no:

Nov yog yam koj xav tau los tsim qhov no:

Arduino UAS

3 x LED xiav (lossis lwm xim)

3 x LED Liab (lossis lwm xim)

6 x Lub Teeb Sensor

12 x 220 Ohm resistors

1 x 10k Ohm resistor

1 x Laub khawm

1 x Piezo Sounder

2 x Laser cwjmem

Cov xov hlau, kab laug sab, daim txiag ntoo thiab lwm yam.

Nws raug nquahu kom ntsuas qhov no ntawm lub khob cij ua ntej yuav muab sib dhos ua ke, qhov no yuav ua rau nws yooj yim dua los kho qhov ua yuam kev.

Kauj Ruam 1: Teeb Koj Cov Khoos Phis Tawj

Teeb Koj Cov Khoos Phis Tawj
Teeb Koj Cov Khoos Phis Tawj
Teeb Koj Cov Khoos Phis Tawj
Teeb Koj Cov Khoos Phis Tawj
Teeb Koj Cov Khoos Phis Tawj
Teeb Koj Cov Khoos Phis Tawj

Thawj qhov koj xav ua yog txuas cov LEDs thiab Lub Teeb pom kev zoo, thaum koj tau teeb tsa lawm, txuas lub pob thiab lub suab nrov. Peb txuas cov ntsuas hluav taws xob mus rau qhov sib piv, vim tias lawv yuav xav tau xa cov txiaj ntsig los tshuaj xyuas yog tias lub laser ci ntsa iab ntawm nws thiab LEDs rau digital, raws li peb tsuas yog xav tau qhib thiab tua. Lub suab module thiab khawm tau txuas nrog digital ib yam. Txhua cov lus qhia ntxaws ntxaws txog yuav ua li cas txuas thiab ua cov lej no tuaj yeem pom ntawm Arduino lub vev xaib. Txhua yam yog qhov yooj yim yooj yim.

Nco ntsoov tias lub pob yog qhov uas siv 10k Ohm resistor.

Kauj ruam 2: Code

Rub tawm cov cai thiab xa mus rau Arduino thiab kuaj seb nws puas ua haujlwm!

Kauj Ruam 3: (tsis teb los tau): Solder and Build Case

(tsis teb los tau): Solder and Build Case
(tsis teb los tau): Solder and Build Case
(tsis teb los tau): Solder and Build Case
(tsis teb los tau): Solder and Build Case
(tsis teb los tau): Solder and Build Case
(tsis teb los tau): Solder and Build Case
(tsis teb los tau): Solder and Build Case
(tsis teb los tau): Solder and Build Case

Nov yog qhov kuv tau siv kuv cov khoom siv kho vajtse. Tom qab ntawd kuv tau ua rooj ntoo nyob ib puag ncig nws. Nws nyob ntawm koj li cas koj xav ua qhov no txawm li cas los xij, yog li muaj tswv yim!

Kuv vam tias koj nyiam nyeem qhov no thiab pom qhov kuv tau tsim!

Pom zoo: