Cov txheej txheem:

Multiplexed Echo Locator: 6 Kauj Ruam
Multiplexed Echo Locator: 6 Kauj Ruam

Video: Multiplexed Echo Locator: 6 Kauj Ruam

Video: Multiplexed Echo Locator: 6 Kauj Ruam
Video: Bcm body control module located behind the dash #honda #mechanic #mechanictools #repair #mecanica 2024, Hlis ntuj nqeg
Anonim
Image
Image
Daim duab thaiv
Daim duab thaiv

Cov lus qhia no piav qhia yuav ua li cas thiaj ua "scanning" echo locator siv Arduino thiab plaub lub ntsej muag sib xyaw ua ke. Tsis muaj qhov txav chaw.

Kev tsim kho yog qhov yooj yim… txhua yam koj xav tau yog rab riam ntse, ob qho kev xyaum ua, ib tus hlau txuas, thiab lub hacksaw.

Hauv kev tshawb xav qhov chaw nyob txog plaub yam khoom tuaj yeem ua tus pin-taw qhia. Hauv kev xyaum ua qhov zoo tshaj plaws uas kuv tau tswj yog peb.

Lub Circuit Court thiab cov cai yog kev sim dawb thiab tau tshaj tawm hauv kev cia siab tias ib tus neeg yuav pom lawv muaj txiaj ntsig.

Duab

  • Daim duab 1 qhia txog cov teeb tsa sib tham sib ncho.
  • Cov vis dis aus qhia tus echo locator tus pin-taw qhia qhov chaw ob yam khoom

Kauj Ruam 1: Daim Kab Xaim

Daim duab 1 qhia txog daim duab kab xev rau "plaub lub ntsej muag lub ntsej muag lub ntsej muag".

Sensor B1 thiab B2 tau ua "passive" los ntawm kev tso ob peb txheej ntawm daim kab xev npog rau ntawm tus xa (T) transducers.

Daim kab xev no thaiv lub suab ultrasonic uas yuav txwv tsis pub tso tawm.

Kauj Ruam 2: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Daim duab 1 qhia txog ntu rau kuv ob lub suab sensor ncha locator. Plaub lub ntsuas hluav taws xob echo locator piav qhia hauv kab lus no xav tau ob lub ultrasonic ntxiv.

Cov hauv qab no tau txais los ntawm

  • 1 tsuas yog Arduino Uno R3 ua tiav nrog USB cable
  • 4 tsuas yog HY-SRF05, lossis HC-SR04, ultrasonic transducers

Cov hauv qab no tau txais hauv zos:

  • 1 tsuas yog txiv neej arduino header strip
  • 4 tsuas yog poj niam arduino header strips
  • 2 tsuas yog cov seem ntawm txhuas
  • 2 tsuas yog ntoo me me xwb
  • 2 tsuas yog cov ntsia hlau me me
  • 6 tsuas yog cov hlua txuas
  • 12 tsuas yog qhov ntev ntawm cov yas coated hlau (xim sib txawv) [1]

Sau ntawv

[1]

Tag nrho qhov ntev ntawm cov xov hlau yuav tsum sib npaug qhov xav tau ntawm nruab nrab ntawm cov ntsuas hluav taws xob ntxiv rau qhov me me rau cov laug. Cov xov hlau tom qab ntawd sib txuas ua ke los ua ib qho cable.

Kauj ruam 3: Txoj kev xav

Txoj kev xav
Txoj kev xav
Txoj kev xav
Txoj kev xav
Txoj kev xav
Txoj kev xav

Lub Circuit Court tsim los ntawm kuv "Dual Sensor Echo Locator". [1]

Dual sensor ncha locator

Daim duab 1 qhia txog "thaj chaw tshawb pom" rau qhov chaw nyob ncha saum toj no.

Qhov sib npaug rau qhov ntsuas no tau qhia hauv daim duab 2.

Qhov "dual-sensor" echo locator ua haujlwm tau zoo tab sis xav kom ob lub ntsuas hluav taws xob tau teeb tsa hauv qab lub hauv paus (piv txwv li yuav tsum tau them ua ntej) kom tsis txhob loj "qhov chaw tuag" uas tshwm sim los ntawm kev siv nqaim nqaj transducers.

Tab sis yuav ua li cas yog tias qhov offset tsis tuaj yeem ua tau?

Plaub sensor echo locator

Nws tshwm sim rau kuv tias cov "qhov chaw tuag" no, thiab "offset", tuaj yeem raug tshem tawm yog tias peb plaub npaug ntawm cov chaw tshawb pom los ntawm ob npaug ntawm tus lej ntsuas raws li pom hauv daim duab 3.

Hloov pauv sai (ntau qhov sib txawv) ntawm plaub qhov ua tau ua ke ua ke ua tau zoo tsim ib txoj kab sib hloov (duab 3). Tag nrho cheeb tsam tau them thiab "offset" tau raug tshem tawm.

Txawm tias zoo dua … tib yam sib npaug (duab 2) tuaj yeem siv tau!

Hauv kev tshawb xav qhov "quad-sensor" echo locator:

  • tuaj yeem tshawb pom txog plaub yam khoom. [2]
  • tsis muaj "qhov chaw tuag"
  • yuav tsum tsis muaj offset

Cov txiaj ntsig

Lub tswv yim ua haujlwm, raws li ntau yam khoom tuaj yeem kuaj pom, tab sis me me "qhov chaw tuag" tseem nyob li qhov nqaim nqaj-qhov dav tsis ua kom pom qhov pom tseeb qhov chaw thaum qhov offset yog xoom. [3]

Sau ntawv

[1]

Saib https://www.instructables.com/id/Dual-Sensor-Echo… kom ua tiav cov lus piav qhia thiab cov qauv.

[2]

Plaub yam khoom xav tias:

  • beam-dav ntawm 45 degrees.
  • tsis muaj "duab ntxoov ntxoo" ntawm ib qho khoom los ntawm lwm tus

[3]

Rau lub ntsuas ntsuas tau ntsuas ntawm 30 qib sib nrug yuav tsum tshem tawm "qhov chaw tuag"

Kauj Ruam 4: Kev tsim kho

Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho

Dluab:

  • daim duab 1: mounting brackets
  • daim duab 2: saib ua ntej
  • daim duab 3: saib tom qab
  • daim duab 4: saib sab saum toj

Mounting nkhaus

Ob txoj hlua sib dhos tau tsim los ntawm 18 ntsuas cov ntawv txhuas siv cov txheej txheem piav qhia hauv kuv cov lus qhia

Siv lub hacksaw, lossis tin snips, txhawm rau txiav 30mm ntawm ib sab mus rau 45 degree kab kab. Tam sim no "tau qhab nia" ob sab ntawm kab nruab nrab ntawm qhov pom-txiav mus rau lub hauv paus ces "qoj" ntu tsis xav tau kom txog thaum nws tawg dawb.

Qhov ntev rau kuv cov kab zauv tau qhia hauv daim duab 1.

Sensor qhov (socket)

Cov ntsuas qhov ntsuas tau tsim los ntawm tus qauv Arduino lub taub hau ntsaws.

Txhua tus pins uas tsis xav tau tau rub tawm thiab 3mm qhov drilled los ntawm cov yas.

Thaum siv cov khoom sib txuas ua tib zoo saib xyuas kom tsis txhob xaim xov rau aluminium bracket.

Nyuaj nyem

Ib qho me me ntawm cov cua sov-ntsws tubing ntawm txhua qhov kawg ntawm txoj hlua tiv thaiv cov xov hlau los ntawm kev tawg.

Cov hlua txuas tau siv los tiv thaiv kev tsis xav tau cable txav.

Kauj Ruam 5: Txhim Kho Software

Txhim kho cov cai hauv qab no hauv qhov kev txiav txim no:

Arduino IDE Cov

Rub tawm thiab teeb tsa Arduino IDE (kev txhim kho ib puag ncig ib puag ncig) los ntawm https://www.arduino.cc/en/main/software yog tias tsis tau teeb tsa.

Ua 3

Rub tawm thiab teeb tsa Kev Ua 3 los ntawm

Plaub Sensor Echo Locator

Luam cov ntsiab lus ntawm cov ntawv txuas, "quad_sensor _echo_locator.ino", rau hauv Arduino "kos duab", txuag, tom qab ntawd xa nws mus rau koj Arduino Uno R3.

Kaw Ardino IDE tab sis tawm ntawm USB cable txuas.

Quad Sensor Zaub

Luam cov ntsiab lus ntawm cov ntawv txuas, "quad_sensor_echo_locator.pde" rau hauv Kev Ua "Sketch".

Tam sim no nyem rau sab laug-laug "Khiav" khawm … lub vijtsam duab yuav tsum tshwm ntawm koj lub vijtsam.

Teeb meem-tua

Kev ua yuav yws yog tias [tus lej] cuam tshuam nrog koj qhov chaw nres nkoj COM xav tau hloov pauv, tab sis ua ntej yuav ua li ntawd nws yuav tso tawm cov npe ntawm "COM" cov chaw nres nkoj txhua nrog nrog [tus lej] hauv cov kab zauv.

Cias hloov tus [0] hauv kab ntawv hauv qab no nrog ib ntawm cov lej no:

myPort = Serial tshiab (qhov no, Serial.list () [0], Baud_rate);

Sim txhua qhov tig… ib ntawm lawv yuav ua haujlwm.

Kauj Ruam 6: Xeem

Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem

Txuas Arduino USB cable rau koj lub PC thiab khiav "dual_sensor_echo_locator.pde" los ntawm txhaj "sab laug-sab laug" khiav khawm ntawm koj Kev Ua 3 IDE (ib puag ncig kev txhim kho ib puag ncig).

Cov lej, sib cais los ntawm tus lej yuav tsum pib ntws hauv koj lub vijtsam raws li qhia hauv daim duab 1.

Tus lej kawg yog thaj tsam… ob tus lej yog lub cim A1/A2 thiab lub cim B1/B2 nyob deb.

Qhov liab (flashing) dot yuav tshwm ntawm lub vijtsam thaum twg pom cov khoom pom sab hauv thaj chaw. Cov ntaub ntawv ntxiv kuj tseem yuav tshwm sim thaum cov ntsuas tau pom qhov khoom (duab 2).

Cov lus yuam kev thaum pib

Koj tuaj yeem tau txais cov lus yuam kev thaum pib.

Yog li hloov pauv [0] hauv kab 85 ntawm daim duab 1 kom phim tus lej cuam tshuam nrog koj "COM" chaw nres nkoj.

Ntau qhov "COM" cov chaw nres nkoj tuaj yeem teev nyob ntawm koj lub kaw lus. Ib tus lej yuav ua haujlwm.

Hauv daim duab 1 tus lej [0] cuam tshuam nrog kuv "COM4".

Tso koj cov sensors

Chaw koj lub ntsuas cua nrug 100cm sib nrug nrog lub hom phiaj 80cm..100cm nyob rau pem hauv ntej.

Tig ob lub ntsuas kom maj mam tig mus rau kab pheeb ces kaum ntawm qhov xav tau 1 meter square.

Thaum koj tig lub ntsuas cua koj yuav pom txoj haujlwm uas lub teeb liab liab (s) tshwm ntawm daim duab duab.

Cov ntaub ntawv hauv qab no yuav tshwm sim thaum pom cov khoom:

  • cheeb tsam
  • nrug 1
  • nrug 2
  • lub hauv paus
  • ib nrab puag ncig
  • thaj tsam
  • X koom tes
  • Ycoordinate

Duab

Duab 1: Tsis muaj khoom siv … txhua qhov kev ncua deb sab nraum qhov chaw tshawb nrhiav.

Daim duab 2: Pom ib qho khoom hauv "Zone 3"

Nyem qhov no mus saib kuv lwm cov ntawv qhia.

Pom zoo: