Cov txheej txheem:

Arduino Light Blocking Sensor (Photo Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Qauv): 4 Cov Kauj Ruam
Arduino Light Blocking Sensor (Photo Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Qauv): 4 Cov Kauj Ruam

Video: Arduino Light Blocking Sensor (Photo Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Qauv): 4 Cov Kauj Ruam

Video: Arduino Light Blocking Sensor (Photo Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Qauv): 4 Cov Kauj Ruam
Video: Arduino sensors: Photo Interrupter sensor module 2024, Kaum ib hlis
Anonim
Arduino Lub Teeb Pom Teeb Pom Kev Pom Zoo (Duab Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Daim Qauv)
Arduino Lub Teeb Pom Teeb Pom Kev Pom Zoo (Duab Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Daim Qauv)
Arduino Lub Teeb Pom Teeb Pom Kev Pom Zoo (Duab Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Daim Qauv)
Arduino Lub Teeb Pom Teeb Pom Kev Pom Zoo (Duab Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Daim Qauv)
Arduino Light Blocking Sensor (Photo Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Tsab Ntawv)
Arduino Light Blocking Sensor (Photo Interrupter Module) - Khaws Koj Cov Ntawv Nyab Xeeb (Tsab Ntawv)

Txoj haujlwm no yog tus qauv thiab hauv qhov haujlwm no kuv yuav tham txog yuav ua li cas koj daim npav - xws li daim npav rho nyiaj, daim debit card, daim npav khoom plig - tuaj yeem khaws tau nyab xeeb. Ua tibzoo saib cov duab saum toj no kom pom tias txoj haujlwm no ua haujlwm li cas.

Cia kuv qhia koj qhov kev pom ntawm qhov haujlwm no. Thaum kuv nias lub pob nyem, xim ntawm ob-xim LED module hloov xim los ntawm Txiv Kab Ntxwv rau Ntsuab. Lub teeb thaiv lub ntsej muag lub ntsej muag tau qhib thiab thaum daim npav khaws cia hauv nws qhov sib txawv U-puab, lub ntsej muag pom tau tias muaj cov khoom nyob hauv qhov sib txawv uas thaiv lub teeb. Qhov no xa HIGH teeb liab. Thaum daim npav raug tshem tawm, lub teeb tsis thaiv thiab lub ntsuas cua xa lub LOW teeb liab thiab raws li kuv cov lej, qhov no ua rau lub tswb nrov nrov thiab ob-xim LED module hloov xim los ntawm Ntsuab rau Liab.

Txhawm rau pom cov ncauj lus kom ntxaws txog qhov haujlwm no ua haujlwm li cas, thov saib hauv YouTube cov vis dis aus uas kuv tau teeb tsa hauv ntu 'Saib Qhov Kawg' ntawm nplooj ntawv no.

Khoom siv

  1. Arduino Uno R3/ Arduino Nano
  2. Solderless Breadboard - Loj tag nrho
  3. Cov neeg dhia
  4. Jumper xov hlau-[Txiv neej-rau-Txiv neej] 30cm thiab 10cm (x7 txhua)
  5. 9V roj teeb
  6. 9V roj teeb davhlau ya nyob twg
  7. Lub suab nrov nrov (KY-012)
  8. Lub teeb thaiv qhov ntsuas - tseem hu ua Photo Interrupter module (KY -010)
  9. Laub khawm - tseem hu ua Key switch module (KY -004)
  10. Ob xim xim LED (KY-011)

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

Koj lub khoos phis tawj teeb tsa yuav tsum zoo ib yam li uas tau qhia hauv daim duab saum toj no. Yog xav paub ntau ntxiv txog teeb tsa koj lub khoos phis tawj, thov saib cov vis dis aus YouTube pom ntawm ntu kawg ntawm nplooj ntawv no.

Kauj ruam 2: Kev sib txuas

Kev sib txuas
Kev sib txuas
  1. Buzzer - D3
  2. Lub teeb thaiv lub teeb sensor - D4
  3. Ntsuab LED - D5
  4. Liab LED - D6
  5. Hom cathode (Ob -xim LED module) - GND (Hauv av)
  6. Laub -khawm -D7

Kauj ruam 3: Coding

Coding
Coding

*Nco tseg: Cov lej tsis tiav. Txhawm rau kom tau txais cov lej tag nrho, thov hu rau kuv ntawm [email protected]

Kauj Ruam 4: Saib Kawg

Yog xav paub ntau ntxiv txog Arduino cov haujlwm, thov mus saib kuv qhov blog:

Yog tias koj muaj lus nug ntxiv txog txoj haujlwm no, thov hu rau kuv ntawm [email protected]

Pom zoo: