Cov txheej txheem:

Photomicrosensor rau Arduino: 4 Kauj Ruam
Photomicrosensor rau Arduino: 4 Kauj Ruam

Video: Photomicrosensor rau Arduino: 4 Kauj Ruam

Video: Photomicrosensor rau Arduino: 4 Kauj Ruam
Video: 🤞8 YAM COV NEEG TXAWJ NTSE ZAM TSIS UA YOG DAB TSI?🚫 2024, Kaum ib hlis
Anonim
Photomicrosensor rau Arduino
Photomicrosensor rau Arduino
Photomicrosensor rau Arduino
Photomicrosensor rau Arduino

Nyob zoo! Hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas txuas lub photomicrosensor rau Arduino board.

Photomicrosensor yog lub ntsuas qhov muag me me, uas muaj cov emitter (infrared LED) thiab tus txais (phototransistor) (hauv peb cov ntaub ntawv), uas nyob ib sab. Thaum ib yam dab tsi nontransparent thaiv lub teeb tawm los ntawm LED, kev coj ua ntawm phototransistor hloov pauv. Qhov kev hloov pauv no tuaj yeem txiav txim siab los ntawm cov khoom sib cais lossis los ntawm microcontroller.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam

Peb tes num muaj cov hauv qab no:

  • Arduino Uno pawg thawj coj saib
  • Photomicrosensor (ee-sx1137)
  • Cov qhob cij
  • Jumper xov hlau (Txiv neej-Txiv neej)
  • 220-330Ω resistor
  • 10KΩ resistor
  • LED + 330Ω resistor (Koj tuaj yeem siv cov teeb tsa built-in ntawm D13 tso zis)
  • Soldering hlau, solder, luam tawm Circuit board (yeem)

Kauj Ruam 2: Txuas Txhua Yam Ua Ke

Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke

Ua ntej koj yuav tsum txuas lub photomicrosensor nrog 10K rub tawm thiab 330Ω resistors rau Arduino board. Ib qho LED txuas nrog tus pin D13, uas tau qhib thaum lub nqaj cuam tshuam.

Kauj ruam 3: Programming

Programming
Programming

Cov kauj ruam tom ntej yog los teeb tsa koj li Arduino board. Raws li koj tuaj yeem pom, daim duab me me thiab nkag siab yooj yim, yog li koj yuav tsis muaj teeb meem ntau nrog nws.

Kauj ruam 4: Ua tiav Txoj Haujlwm

Tiav Project!
Tiav Project!
Tiav Project!
Tiav Project!

Nws yog lub sijhawm los sim txhua qhov no! Thaum peb muab ib daim ntawv tso rau hauv lub sensor, LED tig rau. Txhua yam ua haujlwm! Ua tsaug rau koj nyeem Cov Lus Qhia no!

Pom zoo: