Cov txheej txheem:

Lub Ntsej Muag Ntsej Muag Ntsej Muag => Covid Tiv Thaiv!: 5 Kauj Ruam
Lub Ntsej Muag Ntsej Muag Ntsej Muag => Covid Tiv Thaiv!: 5 Kauj Ruam

Video: Lub Ntsej Muag Ntsej Muag Ntsej Muag => Covid Tiv Thaiv!: 5 Kauj Ruam

Video: Lub Ntsej Muag Ntsej Muag Ntsej Muag => Covid Tiv Thaiv!: 5 Kauj Ruam
Video: tuav wb lub neej kom ruaj khov - Mang Vang ft. Christina Xyooj [Official Audio] 2021-22 2024, Kaum ib hlis
Anonim
Qhia Pixy2 rau Mask
Qhia Pixy2 rau Mask

Covid Tiv Thaiv! "Src =" https://content.instructables.com/ORIG/FP4/KQHL/KBP335PR/FP4KQHLKBP335PR-j.webp

Qhia Pixy2 rau Mask
Qhia Pixy2 rau Mask

Covid Tiv Thaiv! "Src =" {{file.large_url | ntxiv: 'pib = webp & thav duab = 1 & qhov siab = 300' %} ">

Tus naj npawb 1 yam uas cov neeg saib xyuas kev noj qab haus huv xav kom tib neeg ua thaum lub sijhawm muaj tus kabmob kis no yog hnav lub ntsej muag thaum tawm mus rau qhov chaw pej xeem, tab sis qee tus neeg tseem ua qhov muag tsis pom qhov ceeb toom.

Nkag mus….. COVID PrevEnter

Tus neeg hlau no siv Pixy2 lub koob yees duab txhawm rau txhawm rau pom lub ntsej muag. Yog tias daim npog ntsej muag pom ntsuab LED yuav qhib. Yog tias tsis pom daim npog ntsej muag liab LED yuav qhib nrog lub suab nrov nrov.

Khoom siv

Kho vajtse

Pixy2 Lub Koob Yees Duab

Arduino (Kuv tab tom siv Arduino nano tab sis uno lossis mega yuav ua haujlwm. Lwm cov qauv yuav tsis ua haujlwm)

LED*2 (Liab*1 thiab Ntsuab*1)

220 Ohm Resistor*2

Piezo Buzzer Cov

Cov qhob cij

Novoo roj teeb

Jumper xov hlau

Cable- Micro USB rau USB (rau kev ua haujlwm thiab lub zog)

Software

Arduino IDE Cov

Pixymon v2

Kauj Ruam 1: Qhia Pixy2 rau Mask

Qhia Pixy2 rau Mask
Qhia Pixy2 rau Mask

Txuas Pixy2 rau lub khoos phis tawj thiab qhib pixymon.

Point Pixy2 ntawm daim npog ntsej muag.

Mus rau kev nqis tes ua-teeb kos npe 1.

Luag nyem rau kos lub npov nyob hauv nruab nrab ntawm daim npog ntsej muag.

Nws yuav tsum qhia lub thawv nyob ib ncig ntawm daim npog ntsej muag thiab hauv nruab nrab, nws yuav hais s = 1.

Mus rau cov ntawv-teeb tsa thiab xaiv cov ntawv kos npe.

Ntaus daim npog ntsej muag rau hauv kos npe 1 lub thawv.

Nws yuav tsum qhia tib yam tab sis nws yuav hais tias lub ntsej muag lub ntsej muag hloov s = 1.

Kauj ruam 2: Txuas Txhua Yam Ntxiv

Txuas Txhua Yam Ntxiv
Txuas Txhua Yam Ntxiv

Ua ntej, txuas Arduino GND rau Breadboard.

Tom ntej no, txuas LED's thiab Buzzer GND rau GND.

Tom qab ntawd txuas LED 5V rau tus tiv thaiv.

Txuas lub ntsuab LED resistor rau tus pin 8 thiab LED liab rau tus pin 9.

Txuas Buzzer 5V rau tus pin 7.

Txuas pixy2 rau Arduino siv cov kab ntawv (Ntawm pixy2 nws yog tus yuam sij tab sis ntawm Arduino kev teeb tsa kev teeb tsa, yog tias koj siv Arduino nano cable txuas rau sab hauv tab sis yog tias koj siv uno lossis mega cable ntsej muag sab nrauv).

Kauj ruam 3: Nruab Libraries

Nruab Libraries
Nruab Libraries
Nruab Libraries
Nruab Libraries
Nruab Libraries
Nruab Libraries

Pixy2 siv lub tsev qiv ntawv los ua kom yooj yim dua. Txhawm rau nruab nws ua raws cov theem hauv qab no:

Mus rau Pixy2 rub tawm nplooj ntawv thiab rub lub zip qiv ntawv.

Qhib Arduino IDE.

Nyem kos duab-tsev qiv ntawv-ntxiv zip lub tsev qiv ntawv.

Nrhiav tus zip file koj rub tawm thiab xaiv nws.

Kauj ruam 4: Code

Code
Code
Code
Code
Code
Code

Rub cov ntawv txuas nrog.

Kauj Ruam 5: Ua Tsaug

Ua Tsaug
Ua Tsaug

Ua tsaug rau koj nyeem cov lus qhia no. Yog tias koj nyiam txoj haujlwm no thov pov npav rau nws hauv kev sib tw Arduino.

Pom zoo: