Cov txheej txheem:

Nco Nco: 5 Kauj Ruam
Nco Nco: 5 Kauj Ruam

Video: Nco Nco: 5 Kauj Ruam

Video: Nco Nco: 5 Kauj Ruam
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Peb Yuav Tsum Tau Dab Tsi?
Peb Yuav Tsum Tau Dab Tsi?

Taw qhia

Koj puas cuam tshuam los ntawm kev hnov qab yam? Kuv mob siab rau nws tiag. Kev them lub computer yog kuv li niaj hnub siv vim kuv yuav siv nws txhua hnub hauv tsev kawm ntawv. Txawm li cas los xij, Kuv feem ntau tsis nco qab them nws uas kuv yuav muaj lub computer roj teeb tawm hnub tom qab. Txhawm rau zam qhov teeb meem no, Kuv ua qhov phiaj xwm kom nco kuv ntawm them kuv lub computer.

Kauj Ruam 1: Peb Yuav Xav Li Cas?

Peb Yuav Tsum Tau Dab Tsi?
Peb Yuav Tsum Tau Dab Tsi?

Khoom siv

1. Arduino Leonardo board x1 - Ua tau txhua yam ntawm Arduino board zoo.

2. LED teeb x3 - Teeb rau qhib. (Tsis txwv qhov LED teeb 'xim)

3. Daj tsis kam x3 - Cheebtsam rau teeb LED.

4. photosensitive tsis kam x1 - Lub sensor uas hnov lub

5. Xiav tsis kam x1 - Cheebtsam rau kev ua kom muaj zog tiv taus.

6. Arduino hlau x20 - Txuas txhua feem rau Arduino board.

< Outward appearance >

1. Lub thawv x1 - Tso lub Arduino board.

2. Txhuam Txhuam Txhuam x2 - pleev xim rau sab nrauv ntawm qhov haujlwm.

3. Cov xim dub xim x1 - Cov xim ntawm txoj haujlwm sab nrauv.

4. Cov cuab yeej siv hluav taws xob x1 - Txiav qhov rau cov khoom siv uas xav tau sab nraum lub thawv.

Kauj Ruam 2: Txuas Cov Khoom Siv

Txuas Cheeb Tsam
Txuas Cheeb Tsam
Txuas Cheeb Tsam
Txuas Cheeb Tsam

Cov teeb pom kev ntawm LED thiab cov duab tiv taus tiv taus yog ob feem ntawm daim duab kab lus no. (Tsuas yog ceeb toom, qhov tsis kam uas kuv ncig yuav tsum yog xiav.)

Txuas koj cov khoom siv los ntawm daim duab qhia chaw saum toj no. Nco ntsoov txuas koj Arduino pawg thawj coj thiab lub khoos phis tawj ua ke yog li koj tuaj yeem sim qhov "Serail chaw nres nkoj saib xyuas qhov rai" uas ua kom ntseeg tau tias cov duab ua haujlwm zoo.

Kauj Ruam 3: Rub Txoj Cai ntawm Txoj Haujlwm no

Rub tawm Txoj Cai ntawm Txoj Haujlwm no
Rub tawm Txoj Cai ntawm Txoj Haujlwm no
Rub tawm Txoj Cai ntawm Txoj Haujlwm no
Rub tawm Txoj Cai ntawm Txoj Haujlwm no
Rub tawm Txoj Cai ntawm Txoj Haujlwm no
Rub tawm Txoj Cai ntawm Txoj Haujlwm no

Kuv siv Arduino block los tsim kuv tus lej.

Txuas

1. Rub tus lej ntawm txoj haujlwm no los ntawm qhov txuas no:

2. Unzip cov ntawv khaws tseg.

3. Tshaj tawm cov cai no rau koj li Arduino program raws li koj qhov project.

Serial chaw nres nkoj (Yuav tsum tau hloov)

Hauv txoj haujlwm no, lub ntsuas hluav taws xob tiv taus hluav taws xob los ntawm tus nqi ci ntsa iab. Txawm li cas los xij, tus lej lej raug yog nyob ntawm tus nqi pom ntawm qhov xwm txheej uas koj nyob. Yog li, koj tuaj yeem tshawb xyuas koj tus lej tus lej hauv "Serail chaw nres nkoj saib xyuas qhov rai".

Kauj Ruam 4: Txhim Kho Txhua Yam Khoom / Kho Kom Zoo Nkauj

Nruab tag nrho cov Cheebtsam / Kho Kom Zoo Nkauj
Nruab tag nrho cov Cheebtsam / Kho Kom Zoo Nkauj
Nruab tag nrho cov Cheebtsam / Kho Kom Zoo Nkauj
Nruab tag nrho cov Cheebtsam / Kho Kom Zoo Nkauj
Nruab tag nrho cov Cheebtsam / Kho Kom Zoo Nkauj
Nruab tag nrho cov Cheebtsam / Kho Kom Zoo Nkauj

Cheebtsam

1. Poke qhov rau peb lub teeb LED thiab cov duab ua haujlwm tsis kam.

2. Nruab peb lub teeb LED nyob rau sab laug sab laug ntawm lub npov.

3.. Txhim kho qhov teeb meem tiv taus duab nyob nruab nrab ntawm lub thawv.

Kho kom zoo nkauj

1. Nkaum Arduino lub rooj tsavxwm thiab cov xov hlau sab hauv lub thawv.

2. Txiav lub qhov rau lub computer cable uas pib txoj haujlwm no.

3. Xim lub thawv tag nrho hauv cov xim uas koj nyiam. Rau kuv, Kuv muab lub thawv rau xim dub.

Kauj ruam 5: Ua tiav

Ua tiav!
Ua tiav!

Txhawm rau nres lub teeb los ntawm lub teeb ci LED, tsuas yog ntsaws lub charger ua ntej koj tsaug zog. Nyob rau hnub tom ntej, koj yuav tau them lub computer tag nrho!

Pom zoo: