Cov txheej txheem:

Xim Sensor: 5 Kauj Ruam (nrog Duab)
Xim Sensor: 5 Kauj Ruam (nrog Duab)

Video: Xim Sensor: 5 Kauj Ruam (nrog Duab)

Video: Xim Sensor: 5 Kauj Ruam (nrog Duab)
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Kaum ib hlis
Anonim
Xim Sensor
Xim Sensor

Nqe lus piav qhia:

Xim Sensor Module yog lub ntsuas xim tiav, suav nrog 4 LEDs dawb thiab TAOS TCS3200 RGB sensor nti. Plaub lub LED dawb kom muab lub teeb pom kev dav dav. Qhov TCS230 muaj 8 x 8 array ntawm photodiodes nrog lim xim (16 Liab, 16 Xiav, 16 Ntsuab, 16 Ntshiab). Lub teeb rau qhov hloov pauv zaus ua rau 50% lub luag haujlwm voj voog square yoj ntawm tus pin tso tawm. Zaus yog ncaj qha piv rau lub teeb pom kev zoo. Cov txiaj ntsig kev ntsuas tawm 100%, 20% thiab 2% tso cai rau qhov dav dav dav ntawm qhov hnyav. Cov xim xaiv (S2, S3), qhov ntsuas ntau zaus (S0, S1) thiab cov zis yog TTL qib kev xav thiab tuaj yeem txuas ncaj qha rau lub micro tswj. Kev nyeem yooj yim yooj yim siv Arduino "pulsein" hais kom ua. Nyeem ntawv rau txhua xim. Kev nyeem ntawv nrog qhov nqaim nqaim tshaj plaws lossis qhov siab tshaj plaws yog xim loj.

Nta:

  • Ib Leeg Ua Haujlwm (2.7V txog 5.5V)
  • Kev daws teeb meem siab ntawm kev siv lub teeb kom nquag
  • Programmable Xim thiab Tag Nrho Cov Nplai Zis
  • Hwj chim Down Feature
  • Sib txuas lus ncaj qha rau Microcontroller/Arduino
  • S0 ~ S1: Cov zis tawm ntau zaus xaiv cov tswv yim
  • S2 ~ S3: Kev xaiv hom kev xaiv photodiode
  • OUT Pin: Tso zis zaus
  • EO Pin: Qhov tso zis ntau zaus ua rau tus pin (nquag qis)

Kauj Ruam 1: Kev Npaj Khoom

Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom

Rau qhov kev qhia no, cov khoom xav tau los ua txoj haujlwm no yog:

  1. Arduino Ib
  2. USB Cable hom A rau B.
  3. Poj niam rau txiv neej jumper hlau
  4. Txiv neej rau txiv neej jumper hlau
  5. LED (Liab, Ntsuab thiab Xiav)
  6. 470 hmo

Kauj Ruam 2: Kev Kho Vajtse

Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse

Daim duab saum toj no qhia qhov sib txuas yooj yim ntawm Xim Sensor thiab Arduino UNO:

  1. vc> 5v
  2. GND> GND
  3. TSO> D3
  4. S1> D4
  5. S2> D5
  6. S3> D6
  7. TSO> D2

Kev sib txuas ntawm LED thiab Arduino UNO:

  1. Liab LED> D8
  2. Ntsuab LED> D9
  3. Xiav LED> D10

Tom qab ua tiav qhov kev sib txuas, txuas Arduino rau lub zog txuas nrog USB cable.

Kauj Ruam 3: Ntxig rau Source Code

  1. Rub cov ntawv xeem thiab qhib nws los ntawm kev siv Arduino software lossis IDE.
  2. Nco ntsoov tias koj tau xaiv lub rooj tsav xwm raug thiab qhov chaw nres nkoj sib raug. (Hauv qhov kev qhia no, Arduino Uno tau siv)
  3. Tom qab ntawd, xa cov ntawv xeem mus rau hauv koj Arduino Uno.

Kauj Ruam 4: Qhov tshwm sim

Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim

Thaum cov xim ntsuas mus rau xim liab, Liab LED yuav ON. Zoo ib yam li Ntsuab LED thiab Xiav LED nws yuav ON thaum lub teeb xim mus rau xim.

Kauj ruam 5: Yees duab

Txaus siab rau saib cov lus qhia!

Pom zoo: