Cov txheej txheem:

TFMini Lidar Zaub - Zoo li Radar Tsuas Yog Teeb! :-): 3 Kauj Ruam
TFMini Lidar Zaub - Zoo li Radar Tsuas Yog Teeb! :-): 3 Kauj Ruam

Video: TFMini Lidar Zaub - Zoo li Radar Tsuas Yog Teeb! :-): 3 Kauj Ruam

Video: TFMini Lidar Zaub - Zoo li Radar Tsuas Yog Teeb! :-): 3 Kauj Ruam
Video: Воды как в дипломе. Финал ► 6 Прохождение Hogwarts Legacy 2024, Kaum ib hlis
Anonim
TFMini Lidar Zaub - Zoo li Radar Tsuas Yog Teeb!:-)
TFMini Lidar Zaub - Zoo li Radar Tsuas Yog Teeb!:-)
TFMini Lidar Zaub - Zoo li Radar Tsuas Yog Teeb!:-)
TFMini Lidar Zaub - Zoo li Radar Tsuas Yog Teeb!:-)

Muaj ntau yam uas tuaj ua ke los ua txoj haujlwm no, tab sis qhov loj tshaj (thiab dab tsi tshoov kuv siab kom ua nws) yog "Arduino Radar Project" pom ntawm howtomechatronics.com los ntawm Dejan Nedelkovski (hnub tsis paub).

Kuv tau ua txoj haujlwm no ob peb hlis dhau los (10-18-2018), nrog kev xav tshaj tawm kuv cov txiaj ntsig, thiab tsuas yog tsis tau nyob ib puag ncig-hnub no zoo li yog hnub zoo los caum cuag qee qhov haujlwm kuv xav sau.

Ib qho kev hloov pauv tau ua nyob rau sab Arduino ntawm yam kom tau txais txoj haujlwm no, Lub ultrasonic tau hloov pauv nrog chav TF Mini Lidar https://www.sparkfun.com/products/14588 (Chav no yog cov khoom siv, uas ua rau nws yooj yim txaus siv)

PCA9685 PWM/Servo board tau siv vim tias lub tsev qiv ntawv servo ua teeb meem thaum siv lub tsev qiv ntawv softwareserial.

Lwm qhov kev hloov pauv me me yog lub roob kuv siv, uas yog qhov tseem ceeb me me - Kuv tau siv PAN pheej yig/Tilt mount, thiab ob peb qhov kev pabcuam - Thawj qhov kev xav yog los nthuav qhov no ntau ntxiv, thiab muaj qhov siab xaiv (muab ntau dua) ntawm 3D saib) Kuv tsoo ob peb txoj kev thaiv nrog lub tswv yim, thiab tsis rov qab mus rau nws. Yog li qhov tseeb yog koj tsuas xav tau ib qho servo (Kuv muaj ob).

Tshooj ntawm Arduino code tau ua raws Juan Jose Luna Espinosa TFMini thiab ESP32 code

Tsuas yog lub tsev qiv ntawv uas xav tau yog Adafruit PWM Servo Driver Library

Kauj Ruam 1: Peb Yuav Tsum Ua Dab Tsi Li No…

Peb Yuav Tsum Ua Dab Tsi Li No…
Peb Yuav Tsum Ua Dab Tsi Li No…
Peb Yuav Tsum Ua Dab Tsi Li No…
Peb Yuav Tsum Ua Dab Tsi Li No…
Peb Yuav Tsum Ua Dab Tsi Li No…
Peb Yuav Tsum Ua Dab Tsi Li No…

Kuv twb tau hinted rau feem ntau ntawm nws…..

Peb xav tau TFMini Lidar, 2 servos, yias/ qaij mount, PCA9685 board thiab yog Arduino UNO/ lossis clone.

Peb kuj xav tau lub zog ntxiv 5v rau pawg tswj hwm. (Kev qhia zoo rau PCA9685 pawg thawj coj tuaj yeem pom ntawm no

Txoj hlua yog yooj yim zoo rau qhov no, Los ntawm Arduino koj yuav xav txuas 5v rau ob qho tib si VCC ntawm PCA9685 pawg thawj coj, thiab TFMINI chav tsev nyob, nrog rau hauv av rau ob qho tib si. PCA9685 yog I2C ntaus ntawv, yog li SCL txuas rau A5, thiab SDA rau tus pin A4.

Los ntawm TFMini koj yuav txuas tus pin TX rau PIN 8 ntawm Arduino.

Ntawm PCA9685 koj yuav txuas ib qho servo rau header 0, thiab ib qho servo rau header 1 (Besure kom txuas lawv kom raug, hauv av (xim av) xaim yuav tsum nyob hauv qab lossis sab ntug) Lub taub hau 0 yuav siv rau PAN servo (lossis ib qho uas peb yuav siv) - qaij servo txuas nrog lub taub hau 1 (Cov cai hloov qhov no me ntsis tsuas yog ua kom nws mus rau txoj haujlwm ncaj).

Qhov ntawd yog nws rau kho vajtse, ntawm software sab ntawm yam, peb yuav xav tau teeb tsa Arduino IDE (thaum lub sijhawm sau ntawv no kuv siv 1.8.5, tab sis qhov tseeb yuav tsum ua haujlwm ib yam) thiab kuv tsis tau sim lossis siv tus kho online (yog li kuv tsis muaj lub tswv yim yog tias nws yuav ua haujlwm nrog qhov no).

Koj yuav xav ua raws cov lus qhia nruab rau koj OS, pom ntawm no:

Koj tseem yuav xav hloov kho cov laug cam, thiab cov tsev qiv ntawv raws li xav tau (siv cov tsev qiv ntawv ruaj khov, tsis txhob siv ib qho ntawm cov beta, lawv muaj kab laum)

Peb kuj yuav tsum tau teeb tsa Kev Ua Haujlwm - rau cov uas tsis paub tias ua haujlwm zoo li cas - nws yog cov software hloov pauv yooj yim sketchbook thiab lus rau kev kawm paub yuav ua li cas tus lej hauv cov ntsiab lus ntawm kev kos duab.

Hauv lwm lo lus, nws ua rau nws yooj yim heev los ua cov lus thiab tso tawm cov ntaub ntawv.

processing.org/download/

Thaum kawg koj yuav xav lob cov cai los ntawm kuv qhov chaw cia khoom github.

github.com/kd8bxp/Lidar-Display

Kauj ruam 2: Software…

Cov Software…
Cov Software…
Cov Software…
Cov Software…
Cov Software…
Cov Software…
Cov Software…
Cov Software…

Los ntawm cov chaw cia khoom koj yuav pom qee qhov kev ntsuas tus lej rau Arduino, ntsaws qhov no ntawm UNO, thiab qhib lub console txuas, thiab yog txhua yam ua haujlwm raug, koj yuav tsum pib pom qee qhov kev ncua deb ntawm koj TF MINI - Tus lej no yog ua raws kev ua haujlwm ntawm Juan Jose Luna Espinosa (2018) TFMini thiab ESP32

github.com/yomboprime/TFMiniArduinoTest

Thaum koj txheeb xyuas tias lub lidar ua haujlwm, koj npaj txhij thauj lub lidar_radar_with_processing2 code ntawm UNO.

Tam sim no peb yuav tsum thauj cov txheej txheem, Peb yuav tsum hloov chaw nres nkoj txuas - qhov no yog kab 42.

Cov duab kos muaj qhov chaw nres nkoj uas kuv UNO siv, qhov no hauv Linux thiab yog tias koj siv linux nws yuav tsum yog qee yam zoo sib xws (nws kuj tseem yuav yog qee yam xws li /dev /ttyUSB0) rau lub tshuab Windows nws yuav yog COM#

ob qho tib si, qhov no yuav tsum yog tib qhov chaw nres nkoj uas koj Arduino IDE siv. - Koj yuav xav kaw Arduino Serial console, thiab khiav cov txheej txheem kos duab.

Yog tias txhua yam mus koj yuav tsum pib pom "Radar" zaub.

Koj yuav pom tias kuv cov duab tsis zoo ib yam li qhov haujlwm uas tau tshoov siab nws -

Kuv tau hloov qee qhov hloov pauv rau kos duab - vim tias TFMini Lidar tuaj yeem pom ntawm 12 ntiv tes thiab 36 taw - Kuv tau hloov pauv ntau yam - Kuv kuj tsis nyiam li cas daim duab qub tau ua kab RED, yog li kuv hloov qhov ntawd tsuas yog taw tes ntawm RED (BTW qhov kev hloov pauv yog nyob rau hauv kev kos duab ntawm kab 115 thiab kab 116 yog tias koj xav hloov nws rov qab). Qhov ntau yog qhov ua piv txwv rau tus nqi ntawm 1 txog 39 hauv Arduino kos duab.

* Nco tseg: kab 39 cia koj hloov qhov kev daws teeb meem, Koj yuav lossis tsis xav tau kho qhov no - yog tias koj tsis pom qee yam uas zoo li daim duab saum toj no tej zaum koj yuav tau kho kab 39.

** Nco tseg 2: - Koj yuav tau txais qhov yuam kev hais txog qhov chaw nres nkoj, kuv tau hnov qab qhov kev txiav txim ntawm cov khoom siv - Kuv xav tias koj pib Arduino ua ntej, tom qab ntawd pib ua cov duab kos - Tab sis kuv yuav muaj qhov rov qab - yog li koj yuav pib ua cov duab kos, tom qab ntawd ntsaws rau hauv Arduino…. Ib txoj hauv kev muab qhov yuam kev hauv txheej txheem, thiab lwm txoj haujlwm.

Kauj Ruam 3: Ntau Cov Duab thiab Ua Tsaug Rau Kev Nyeem…

Ntau Cov Duab thiab Ua Tsaug Rau Kev Nyeem Ntawv …
Ntau Cov Duab thiab Ua Tsaug Rau Kev Nyeem Ntawv …
Ntau Cov Duab thiab Ua Tsaug Rau Kev Nyeem Ntawv …
Ntau Cov Duab thiab Ua Tsaug Rau Kev Nyeem Ntawv …
Ntau Cov Duab thiab Ua Tsaug Rau Kev Nyeem Ntawv …
Ntau Cov Duab thiab Ua Tsaug Rau Kev Nyeem Ntawv …

Kuv vam tias kuv tau ua tiav txoj haujlwm ncaj ncees thawj zaug, thiab kuv vam tias koj tau zoo siab qhov kuv tau ua nrog nws.

* Kuv zoo li kuv tsis tau piav qhia qhov no zoo heev….. Tej zaum kuv yuav tsum tau sau kuv cov phiaj xwm sai dua tom qab 3 lub hlis tawm *