Cov txheej txheem:

Arduino thiab VL53L0X Sijhawm-ntawm-Dav Hlau + OLED Zaub Qhia: 6 Kauj Ruam
Arduino thiab VL53L0X Sijhawm-ntawm-Dav Hlau + OLED Zaub Qhia: 6 Kauj Ruam

Video: Arduino thiab VL53L0X Sijhawm-ntawm-Dav Hlau + OLED Zaub Qhia: 6 Kauj Ruam

Video: Arduino thiab VL53L0X Sijhawm-ntawm-Dav Hlau + OLED Zaub Qhia: 6 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas qhia qhov nrug deb hauv mm siv VL53L0X Lub Sijhawm-ntawm-Dav Hlau sensor thiab OLED Zaub.

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)
  • VL53L0X Laser Ranging Sensor Lub Sijhawm-ntawm-Dav Hlau Sensor
  • Jumper xov hlau
  • OLED Zaub
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas OLED Display pin (GND) rau Arduino tus pin (GND)
  • Txuas OLED Display pin (VCC) rau Arduino tus pin (5V)
  • Txuas OLED Display pin (SCL) rau Arduino tus pin (SCL)
  • Txuas OLED Display pin (SDA) rau Arduino tus pin (SDA)
  • Txuas VL53L0X tus pin sensor (GND) rau Arduino tus pin (GND)
  • Txuas VL53L0X tus pin sensor (VCC) rau Arduino tus pin (5V)
  • Txuas VL53L0X sensor tus pin (SCL) rau Arduino tus pin (SCL)
  • Txuas VL53L0X sensor tus pin (SDA) rau Arduino tus 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 Cov Lus Qhia no teeb tsa Arduino IDE rau program ESP 8266! 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 Ntxiv & Txuas Txuas

Hauv Visuino Ntxiv & Txuas Cheeb Tsam
Hauv Visuino Ntxiv & Txuas Cheeb Tsam
Hauv Visuino Ntxiv & Txuas Cheeb Tsam
Hauv Visuino Ntxiv & Txuas Cheeb Tsam
Hauv Visuino Ntxiv & Txuas Cheeb Tsam
Hauv Visuino Ntxiv & Txuas Cheeb Tsam
  • Ntxiv "Lub Sijhawm Ntawm Dav Hlau Laser Ranger VL53L0X" tivthaiv
  • Ntxiv "SSD1306/SH1106 OLED Display (I2C)" tivthaiv, Ob npaug nias rau ntawm "DisplayOLED1" thiab hauv cov ntsiab lus qhov rai luag "Text Field" mus rau sab laug thiab hauv cov khoom qhov rai teeb tsa loj: 2
  • Txuas LaserRanger1 tus pin Sensor I2C rau Arduino tus pin I2C
  • Txuas DisplayOLED1 tus pin Tawm I2C rau Arduino tus pin I2C
  • Txuas LaserRanger1 tus lej nrug (hli) mus rau DisplayOLED1 tus pin Text Field1> 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
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE

Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj ruam 6: Ua si

Yog tias koj ua lub zog Arduino UNO module, OLED cov duab yuav tsum pib ua kom pom qhov deb nyob rau hli uas nws tau txais los ntawm Lub Sijhawm ntawm lub davhlau ya nyob twg, koj tuaj yeem tso qee yam khoom ua ntej lub ntsej muag thiab tus nqi yuav hloov.

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

Pom zoo: