Cov txheej txheem:

Yuav Ua Li Cas Siv APDS9960 Gesture Sensor Nrog Arduino: 7 Kauj Ruam
Yuav Ua Li Cas Siv APDS9960 Gesture Sensor Nrog Arduino: 7 Kauj Ruam

Video: Yuav Ua Li Cas Siv APDS9960 Gesture Sensor Nrog Arduino: 7 Kauj Ruam

Video: Yuav Ua Li Cas Siv APDS9960 Gesture Sensor Nrog Arduino: 7 Kauj Ruam
Video: Sim Siv koob xov tooj(oppo Reno4) thaij vdo1080p seb tau zoo npaum cas,ทดสอบถ่ายvdo1080p(oppo Reno4 2024, Kaum ib hlis
Anonim

Hauv qhov kev qhia no peb yuav kawm Yuav Ua Li Cas Siv APDS9960 Gesture Sensor nrog Arduino los tso saib cov lus qhia ntawm OLED Display siv Visuino software.

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
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

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau 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 ADD thiab Teeb Khoom

Hauv Visuino ADD thiab Teeb Khoom
Hauv Visuino ADD thiab Teeb Khoom
Hauv Visuino ADD thiab Teeb Khoom
Hauv Visuino ADD thiab Teeb Khoom
Hauv Visuino ADD thiab Teeb Khoom
Hauv Visuino ADD thiab Teeb Khoom
Hauv Visuino ADD thiab Teeb Khoom
Hauv Visuino ADD thiab Teeb Khoom
  • Ntxiv "Gesture Color Proximity APDS9960 I2C" tivthaiv
  • Ntxiv "Cov Ntawv Tus Nqi" tivthaiv ob npaug nyem rau ntawm "TextValue1" tivthaiv thiab hauv Elements window rub 4x "Teeb Tus Nqi" mus rau sab laug Xaiv "SetValue1" ntawm sab laug thiab hauv lub qhov rai khoom teeb tsa tus nqi rau UPSelect "SetValue2" ntawm sab laug sab thiab hauv cov khoom vaj khoom tsev teeb tsa tus nqi rau DOWNSelect "SetValue3" ntawm sab laug thiab hauv cov khoom qhov rai teeb tsa tus nqi rau LEFTS Xaiv "SetValue4" ntawm sab laug thiab hauv cov khoom qhov rai teeb tus nqi rau RIGHT Kaw cov ntsiab lus qhov rai

Ntxiv "SSD1306/SH1106 OLED Display (I2C)" tivthaiv ob npaug nias rau ntawm "DisplayOLED1" tivthaiv thiab hauv Elements window drag "Text Field" mus rau sab laug Ntawm sab laug xaiv TextField1 thiab hauv cov khoom qhov rai teeb tsa me me rau 3 Kaw lub ntsiab qhov rai

Kauj Ruam 5: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "GestureColorProximity1" tus pin "Up" rau "TextValue1"> "SetValue1" tus pin [Hauv]
  • Txuas "GestureColorProximity1" tus pin "Down" rau "TextValue1"> "SetValue2" tus pin [Hauv]
  • Txuas "GestureColorProximity1" tus pin "Sab laug" rau "TextValue1"> "SetValue3" tus pin [Hauv]
  • Txuas "GestureColorProximity1" tus pin "Txoj Cai" rau "TextValue1"> "SetValue4" tus pin [Hauv]
  • Txuas "GestureColorProximity1" I2C tus pin "Tawm" rau Arduino Board tus pin I2C [Hauv]
  • Txuas "GestureColorProximity1" I2C tus pin "Tawm" rau "DisplayOLED1"> "TextField1" tus pin [Hauv]
  • Txuas "DisplayOLED1" I2C tus pin "Tawm" rau Arduino Board tus pin I2C [Hauv]

Kauj Ruam 6: 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 7: Ua si

Yog tias koj ua lub zog Arduino UNO module, thiab txav tes hla lub ntsej muag lub ntsej muag lub ntsej muag OLED Zaub yuav tsum qhia kev taw qhia ntawm tes tes.

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: