Cov txheej txheem:

Arduino: Tsev Hluav Taws Minegame: 5 Kauj Ruam (nrog Duab)
Arduino: Tsev Hluav Taws Minegame: 5 Kauj Ruam (nrog Duab)

Video: Arduino: Tsev Hluav Taws Minegame: 5 Kauj Ruam (nrog Duab)

Video: Arduino: Tsev Hluav Taws Minegame: 5 Kauj Ruam (nrog Duab)
Video: Hluav Taws - Nyiaj (Money X. ) - Txhob Tham Tham 2024, Kaum ib hlis
Anonim
Arduino: Tsev Hluav Taws Minegame
Arduino: Tsev Hluav Taws Minegame

Qhia

Hauv qab no kuv tau muab cov kev xav tau thiab piav qhia rau kev ua qhov haujlwm no. Kuv siv sijhawm ntau ntawm cov cai. Kev xaiv koj tuaj yeem ua ib puag ncig ntawm lub tsev rau koj tus kheej nyiam (xav txog ntoo, txoj kev lossis ntau lub tsev).

Qhov tseem ceeb uas kuv tau siv:

- Arduino Ib

- Cov qhob cij

- 4 LEDs

- 2 LDRs

- 11 kab

4 x 220 Resistors

- 2 x 10k Resistors

Kauj Ruam 1: Npaj Arduino

Npaj Arduino
Npaj Arduino

Ntawm no koj pom cov duab ntawm kev teeb tsa. Cov ntaub ntawv nrog cov cai tseem suav nrog ntawm no.

Kauj Ruam 2: Tsim Lub Tsev

Image
Image
Tsim Lub Tsev
Tsim Lub Tsev
Tsim Lub Tsev
Tsim Lub Tsev
Tsim Lub Tsev
Tsim Lub Tsev

Kuv siv cov ntawv tawv tawv rau lub tsev. Kuv pib los ntawm kev ntsuas cov arduino, kom muaj chaw txaus hauv tsev. Tom qab ntawd kuv muab lub hauv ntej ntawm lub tsev ua ke. Koj tuaj yeem ua rau pem hauv ntej raws li koj xav tau, tab sis nws yog qhov tseem ceeb uas muaj lub qhov rais kom thaum kawg muab LDRs tso rau ntawm nws xub ntiag.

Tam sim no lub ru tsev tab tom los. Kuv ua qhov no ua ke nrog ntau qhov sib txawv (saib cov duab saum toj no).

Kauj Ruam 3: Xim Tsev

Xim Tsev
Xim Tsev
Xim Tsev
Xim Tsev
Xim Tsev
Xim Tsev
Xim Tsev
Xim Tsev

Tam sim no peb yog ib nrab. Lwm qhov yuav pleev xim lub tsev thiab ua tus tua hluav taws (qhov no tuaj yeem yog lwm yam ntxiv). Kuv siv daim ntawv so ntswg rau ntawm lub qhov rais. Xim tsev uas kuv tau ua nrog cov cim (Promarkers). Nco ntsoov tias cov nplaim hluav taws loj txaus los tsim duab ntxoov ntxoo thaum cov neeg tua hluav taws sawv ua ntej LDR.

Kauj Ruam 4: Hluav Taws Hluav Taws

Kev tua hluav taws
Kev tua hluav taws

Thaum kawg, koj xav tau qee yam txav tus neeg tua hluav taws. Qhov kuv tau siv yog cov hlua ywj uas mus ncig ob lub log tooj liab. Cov log tooj liab tuaj yeem ntsia tau ntawm lub hauv paus ntoo.

Kauj Ruam 5: Nqa Cov Tshooj Ua Ke

Nqa Cov Khoom Ua Ke
Nqa Cov Khoom Ua Ke

Thiab koj mus!

Saum toj no koj pom qhov khoom kawg. Koj tuaj yeem hloov kho lub teeb pom kev zoo hauv cov cai rau lub teeb ntawm koj qhov chaw (hauv qab ldrstatus2).

Pom zoo: