Cov txheej txheem:
- Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Kauj ruam 2: Circuit Court
- Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type
- Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam
- Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom
- Kauj Ruam 6: Hauv Visuino Connect Components
- Kauj Ruam 7: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Kauj ruam 8: Ua si
- Kauj Ruam 9: Txheeb Xyuas Kuv Lwm Txoj Haujlwm
Video: RADAR Lidar System VL53L0X Laser Sijhawm-ntawm-Dav Hlau: 9 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
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
- 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
- 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
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
- 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
- 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
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
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:
Kev Ntsuas Sijhawm (Daim Kab Xev Ntsuas Sijhawm): 5 Kauj Ruam (nrog Duab)
Kev Ntsuas Sijhawm (Daim Kab Xev Ntsuas Sijhawm): Rau qhov haujlwm no, peb (Alex Fiel & Anna Lynton) tau siv cov cuab yeej ntsuas txhua hnub thiab hloov nws mus rau hauv lub moos! Thawj lub tswv yim yog siv lub tshuab ntsuas kab xev uas twb muaj lawm. Hauv kev ua qhov ntawd, peb txiav txim siab nws yuav yooj yim dua los tsim peb tus kheej lub plhaub kom mus nrog
Ncua Sijhawm Tawm Sijhawm Rau Tsheb kauj vab: 5 Kauj Ruam
Ncua Sijhawm Hloov Sijhawm Rau Tsheb kauj vab: Teeb meem: Kuv tau ntxiv cov cuab yeej sib txawv ntawm kuv lub tsheb kauj vab. Qhov teeb meem yog lawv tau txuas ncaj qha rau lub roj teeb thiab lawv kos qhov xau tam sim no lossis tom qab lub hloov tseem ceeb thiab tsis muaj thaum kuv hloov kuv lub tsheb kauj vab.Examples: Koj yuav tsum them nyiaj rau koj
Siv DS1307 thiab DS3231 Lub Sijhawm Teev Sijhawm Sijhawm Nrog Arduino: 3 Kauj Ruam
Siv DS1307 thiab DS3231 Lub Sijhawm Caij Nyoog Sijhawm Nrog Arduino: Peb tseem tau txais kev thov yuav siv DS1307 thiab DS3231 lub sijhawm teev sijhawm nrog Arduino los ntawm ntau qhov chaw-yog li qhov no yog thawj ntawm ob ntu kev qhia yuav siv li cas. Txog qhov kev qhia Arduino no peb muaj ob lub sijhawm teev sijhawm ua haujlwm rau peb
Ntsuas Neeg Hlau / 3 Log Neeg Hlau / STEM Neeg Hlau: 8 Kauj Ruam
Ntsuas Cov Neeg Hlau / 3 Log Neeg Hlau / STEM Neeg Hlau: Peb tau tsim ua ke sib npaug thiab 3 lub log neeg hlau rau kev kawm siv hauv tsev kawm ntawv thiab tom qab kawm ntawv cov haujlwm. Tus neeg hlau yog ua raws Arduino Uno, tus tiv thaiv kev tiv thaiv (txhua qhov kev tsim kho cov ntsiab lus muab), Li -Ion roj teeb pob (txhua qhov tsim tawm
Ib txoj hauv kev yooj yim dua los Siv Cov Hlau Hlau Hlau Hlau rau SMD LEDs: 5 Kauj Ruam
Ib txoj hauv kev yooj yim dua los Siv Cov Hlau Hlau Hlau Hlau rau SMD LEDs: Cov lus qhia no piav qhia txoj hauv kev yooj yim dua ntawm kev txuas cov hlau nplaum hlau zoo rau saum npoo LEDs. Nws yog nyob rau hauv cov lus teb rau lub Rag ntawm Fireflies qhia uas qhia pom siv "pab txhais tes" clip los ua txoj haujlwm no. Kuv xav tias kuv txoj kev yooj yim dua