Cov txheej txheem:

Kev Ntsuas Kev Ntsuas Ze Nrog Kev Piav Qhia Sensor APDS9960: 6 Cov Kauj Ruam
Kev Ntsuas Kev Ntsuas Ze Nrog Kev Piav Qhia Sensor APDS9960: 6 Cov Kauj Ruam

Video: Kev Ntsuas Kev Ntsuas Ze Nrog Kev Piav Qhia Sensor APDS9960: 6 Cov Kauj Ruam

Video: Kev Ntsuas Kev Ntsuas Ze Nrog Kev Piav Qhia Sensor APDS9960: 6 Cov Kauj Ruam
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla использовать для? 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub ntsuas qhov nrug deb li cas siv lub ntsej muag ntsuas lub ntsej muag APDS9960, arduino thiab Visuino.

Saib cov yees duab!

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino UNO (lossis lwm yam Arduino)
  • APDS9960 Sensor
  • Jumper xov hlau
  • Cov qhob cij
  • OLED Zaub
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas Sensor Pin [GND] rau Arduino board pin [GND]
  • Txuas Sensor Pin [Vin] rau Arduino board tus pin [3.3V]
  • Txuas Sensor Pin [SDA] mus rau Arduino board pin [SDA]
  • Txuas Sensor Pin [SCL] rau Arduino board pin [SCL]
  • Txuas OLED Display Pin [GND] rau Arduino board pin [GND]
  • Txuas OLED Display Pin [VCC] mus rau Arduino board pin [+5V]
  • Txuas OLED Display Pin [SCL] rau Arduino board pin [SCL]
  • Txuas OLED Display Pin [SDA] rau Arduino board pin [SDA]

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Visuino: https://www.visuino.eu xav tau kev teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  • Ntxiv "Gesture Color Proximity APDS9960 I2C" tivthaiv
  • Ntxiv "OLED" tivthaiv
  • Ob npaug nias rau ntawm "DisplayOLED1"
  • Hauv Elements window rub "Text Field" mus rau sab laug, hauv cov khoom qhov rai teeb tsa me me rau 3
  • Kaw lub Elements window
  • Txuas "GestureColorProximity1"> Qhov sib thooj tus pin [Tawm] rau "DisplayOLED1"> Text Field1 tus pin [Hauv]
  • Txuas "GestureColorProximity1" I2C tus pin "Tawm" rau Arduino Board tus pin I2C [Hauv]
  • Txuas "DisplayOLED1" I2C tus pin "Tawm" rau Arduino Board tus pin I2C [Hauv]

Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 6: Ua si

Yog tias koj ua lub zog Arduino UNO tus qauv, thiab txav daim ntawv hla lub ntsej muag lub ntsej muag lub ntsej muag OLED Zaub yuav tsum qhia qhov nrug deb ntawm hli ntawm daim ntawv.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub nws thiab qhib nws hauv Visuino:

Pom zoo: