Cov txheej txheem:

RADAR Lidar System VL53L0X Laser Sijhawm-ntawm-Dav Hlau: 9 Kauj Ruam
RADAR Lidar System VL53L0X Laser Sijhawm-ntawm-Dav Hlau: 9 Kauj Ruam

Video: RADAR Lidar System VL53L0X Laser Sijhawm-ntawm-Dav Hlau: 9 Kauj Ruam

Video: RADAR Lidar System VL53L0X Laser Sijhawm-ntawm-Dav Hlau: 9 Kauj Ruam
Video: Arduino sample Radar with VL53L0X Time of Flight Distance Sensor 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas RADAR Lidar System siv VL53L0X Laser Time-of-Flight sensor.

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)
  • VL53L0X Laser Sijhawm-ntawm-Davhlau sensor
  • OLED Zaub
  • Servo tsav
  • Cov qhob cij
  • Jumper xov hlau
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas OLED Display pin [VCC] rau Arduino tus pin [5V]
  • Txuas OLED Display pin [GND] rau Arduino tus pin [GND]
  • Txuas OLED Display pin [SDA] rau Arduino tus pin [SDA]
  • Txuas OLED Display pin [SCL] rau Arduino tus pin [SCL]
  • Txuas TimeOfFlight Sensor tus pin [VCC] rau Arduino tus pin [3.3V]
  • Txuas TimeOfFlight Sensor tus pin [GND] rau Arduino tus pin [GND]
  • Txuas TimeOfFlight Sensor tus pin [SDA] rau Arduino tus pin [SDA]
  • Txuas TimeOfFlight Sensor tus pin [SCL] rau Arduino tus pin [SCL]
  • Txuas Servo motor "Txiv kab ntxwv" tus pin rau Arduino Digital tus pin [7]
  • Txuas Servo motor "Liab" tus pin rau Arduino tus pin zoo [5V]
  • Txuas Servo motor "Brown" tus pin rau Arduino tus pin tsis zoo [GND]

Txuas TimeOfFlight Sensor nrog cov kab xev txuas rau lub cav servo.

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 "Lub Sijhawm Ntawm Dav Hlau Laser Ranger VL53L0X 'tivthaiv
  • Ntxiv "Faib Analog Los Ntawm Tus Nqi" tivthaiv
  • Ntxiv "Analog To Unsigned 'tivthaiv
  • Ntxiv "SSD1306/SH1106 OLED Display (I2C) 'tivthaiv
  • Ntxiv "Clock Generator" tivthaiv
  • Ntxiv "Daim duab peb sab Analog Generator 'tivthaiv
  • Ntxiv "Clock Generator" tivthaiv
  • Ntxiv 2X "Sib piv Tus Nqi Analog" tivthaiv
  • Ntxiv "Daim Ntawv Qhia Ntau Yam Analog" tivthaiv
  • Ntxiv "Servo" tivthaiv
  • Ntxiv "Inverse Analog (Change Sign)" tivthaiv
  • Ntxiv "Analog Multi Source" tivthaiv

Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
  • Xaiv "DivideByValue1" thiab hauv cov khoom qhov rai teeb tus nqi rau 2
  • Xaiv "ClockGenerator1" thiab hauv cov khoom qhov rai teeb tsa Zaus rau 5
  • Xaiv "TriangleAnalogGenerator1" thiab hauv cov khoom qhov rai teeb tsa Zaus rau 0.1
  • Xaiv "CompareValue1" thiab hauv cov khoom vaj huam sib luag teeb tsa Sib Piv Hom rau "ctBiggerOrEqual" thiab Tus Nqi rau 0.98
  • Xaiv "CompareValue2" thiab hauv cov khoom vaj huam sib luag teeb tsa Sib Piv Hom rau "ctSmallerOrEqual" thiab Tus Nqi rau 0.02
  • Xaiv "MapRange1" thiab hauv cov khoom vaj huam sib luag teeb tsa "Output Range"> "Max" txog 180
  • Ob npaug nias rau ntawm DisplayOLED1 thiab hauv Elements window
  • Drag "Draw Angled Line" rau sab laug
  • Hauv cov khoom vaj khoom tsev teeb tsa "Lub kaum sab xis" rau -10, "Xaus" txog 60, "X" txog 64, "Y" txog 63
  • Nyem rau ntawm "Angle" tus lej cim thiab xaiv "FloatSinkPin"
  • Nyem rau ntawm "Xaus" tus cim tus pin thiab xaiv "IntegerSinkPin"
  • Luag "Sau Screen" mus rau sab laug hauv lub qhov rai ntsiab lus

  • Kaw lub Elements window

Kauj Ruam 6: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components

Txuas LaserRanger1 tus pin Sensor I2C rau arduino board tus pin I2C Hauv

Txuas DisplayOLED1 tus pin I2C Tawm rau arduino board tus pin I2C Hauv

  • Txuas LaserRanger1 tus pin nrug (hli) rau DivideByValue1 tus pin Hauv
  • Txuas DivideByValue1 tus pin tawm mus rau AnalogToUnsigned1 tus pin Hauv
  • Txuas AnalogToUnsigned1 tus pin tawm rau DisplayOLED1> Kos Angled Line1 tus pin kawg
  • Txuas ClockGenerator1 tus pin Tawm rau TriangleAnalogGenerator1 tus pin Moos
  • Txuas peb togAnalogGenerator1 tus pin tawm rau Sib PivValue1 thiab Sib PivValue2 tus pin Hauv
  • Txuas TriangleAnalogGenerator1 tus pin tawm mus rau MapRange1 thiab Servo1 tus pin In
  • Txuas Txuas Sib Piv 1 thiab Sib PivValue2 tus pin tawm rau DisplayOLED1> Sau Screen1 tus pin moos
  • Txuas MapRange1 tus pin tawm mus rau AnalogMultiSource1 tus pin Hauv
  • Txuas Servo1 tus pin Tawm mus rau Arduino tus pin 7
  • Txuas AnalogMultiSource1 tus pin [0] rau Inverse1 tus pin In
  • Txuas AnalogMultiSource1 tus pin [1] rau DisplayOLED1> Kos Angled Line1 tus pin moos
  • Txuas Inverse1 tus pin tawm mus rau DisplayOLED1> Kos Kab Kab Kab 1 tus pin Lub Ntsej Muag

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

Yog tias koj ua lub zog Arduino UNO module, OLED Display yuav pib qhia txog Radar nrug thiab servo motor yuav tig sab laug thiab sab xis.

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:

Kauj Ruam 9: Txheeb Xyuas Kuv Lwm Txoj Haujlwm

Thov siv sijhawm me ntsis los tshuaj xyuas kuv lwm Txoj Haujlwm Zoo ntawm no:

Pom zoo: