Cov txheej txheem:

Tus Nqi Tsawg Tus Nqi Radar Ceev: 11 Kauj Ruam (nrog Duab)
Tus Nqi Tsawg Tus Nqi Radar Ceev: 11 Kauj Ruam (nrog Duab)

Video: Tus Nqi Tsawg Tus Nqi Radar Ceev: 11 Kauj Ruam (nrog Duab)

Video: Tus Nqi Tsawg Tus Nqi Radar Ceev: 11 Kauj Ruam (nrog Duab)
Video: 8 yam tsis txhob ua thaum sib deev tag tsis li yuav phom sij txog lub neej txoj sia. 2024, Hlis ntuj nqeg
Anonim
Tus Nqi Tsawg Tus Nqi Radar Ceev
Tus Nqi Tsawg Tus Nqi Radar Ceev

Koj puas tau xav tsim koj tus kheej tus nqi qis radar nrawm kos npe? Kuv nyob ntawm txoj kev uas lub tsheb tsav nrawm heev, thiab kuv txhawj xeeb txog kev nyab xeeb ntawm kuv cov menyuam. Kuv xav tias nws yuav muaj kev nyab xeeb dua yog tias kuv tuaj yeem teeb tsa lub cim radar nrawm ntawm kuv tus kheej uas qhia txog qhov nrawm kom kuv tuaj yeem tau txais cov tsav tsheb kom qeeb. Kuv saib online hauv kev yuav lub cim radar nrawm, tab sis kuv pom tias cov cim feem ntau raug nqi ntau dua $ 1, 000, uas kim heev. Kuv kuj tsis xav mus dhau cov txheej txheem ntev hauv nroog txhim kho daim paib, txij li kuv tau hnov nws tuaj yeem raug nqi lawv ntau dua $ 5, 000-10, 000. Xwb kuv txiav txim siab los tsim qhov kev daws teeb meem me me rau kuv tus kheej, thiab txuag qee cov nyiaj thaum muaj kev lom zem.

Kuv pom OmniPreSense uas muaj tus nqi qis-luv luv-ntau radar sensor module zoo rau kuv daim ntawv thov. PCB module daim ntawv foos me me ntawm tsuas yog 2.1 x 2.3 x 0.5 ntiv, thiab hnyav tsuas yog 11g. Cov khoom siv hluav taws xob muaj tus kheej thiab muaj kev sib koom ua ke, yog li tsis muaj lub raj fais fab, cov khoom siv hluav taws xob loj, lossis xav tau lub zog ntau. Qhov ntau rau qhov khoom loj xws li tsheb yog 50ft txog 100ft (15m txog 30m). Tus qauv siv txhua qhov ntsuas nrawm, ua haujlwm tag nrho cov teeb liab ua haujlwm, thiab tom qab ntawd tsuas yog tso tawm cov ntaub ntawv nrawm nrawm dhau nws qhov chaw nres nkoj USB. Kuv siv tus nqi qis Raspberry Pi (lossis Arduino, lossis lwm yam uas muaj USB chaw nres nkoj) kom tau txais cov ntaub ntawv. Nrog me ntsis ntawm nab nab cim thiab qee qhov nqi qis loj LEDs tau teeb tsa rau ntawm lub rooj tsavxwm, Kuv tuaj yeem tso saib qhov nrawm. Kuv lub rooj tsav xwm tuaj yeem txuas ntawm tus ncej ntawm ib sab ntawm txoj kev. Los ntawm kev ntxiv daim paib uas nyeem "Ceev Txheeb Xyuas los ntawm RADAR" saum toj ntawm cov zaub, tam sim no kuv muaj kuv tus kheej lub cim radar nrawm uas ua rau cov neeg tsav tsheb mloog thiab ua rau lawv qeeb! Tag nrho cov no rau tsawg dua $ 500!

Kauj Ruam 1: Cov Khoom thiab Cov Cuab Yeej

Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
  • 1 OPS241-A luv luv radar sensor
  • 1 OPS241-A mount (luam tawm 3D)
  • 1 Raspberry Pi Qauv B v1.2
  • 15V microUSB fais fab mov
  • 1 Rhino Qauv AS-20 110V rau 12V/5V 4-pin molex fais fab mov thiab fais fab cable
  • 1 Terminal thaiv 3poles Ntsug, 5.0mm chaw
  • 1 Micro-USB rau Standard USB cable
  • 4 Spacers, ntsia hlau, txiv ntseej
  • 1 Lub thawv kaw thiab plated PCB
  • 4 Plated PCB mounting screws
  • 3 1/8W 330ohm resistors
  • 3 NTE 490 FET transistor
  • 1 NTE 74HCT04 Kev Sib Txuas TTL Kev Kub Ceev CMOS hex inverter
  • 1 OSEPP mini board board nrog nplaum thaub qab
  • 2 0.156 "header square straight wire pin, 8-Circuit
  • 20 6 "F/F hwm jumper xov hlau 22AWG
  • 1 1 "x 12" los ntawm 24 "ntoo mounting board
  • 1 Cov tshuaj tsuag xim dub
  • 2 Sparkfun 7 -Segment Display - 6.5 "(Liab)
  • 2 Sparkfun tus lej loj tsav tsav (SLDD)
  • 1 "Ceev Txheeb Xyuas los ntawm Radar" Kos Npe

Kauj Ruam 2: Kev Npaj Hauv Pem Hauv Ntej ntawm Electronics PCB Board

Kev Npaj Hauv Pem Hauv Paus ntawm Electronics PCB Board
Kev Npaj Hauv Pem Hauv Paus ntawm Electronics PCB Board

Kuv pib nrog lub khoos phis tawj tswj hwm tseem ceeb uas yog Raspberry Pi. Qhov kev xav ntawm no yog tias koj twb muaj Raspberry Pi nrog OS ntawm nws thiab muaj qee qhov kev paub Python. Raspberry Pi tswj hwm OPS241-A radar sensor thiab siv cov ntaub ntawv tshaj tawm ceev. Qhov no yog tom qab hloov pauv kom pom nyob ntawm LED loj 7-ntu tso saib.

a Kuv xav tso tag nrho cov khoom siv hluav taws xob tsis yog lub radar sensor thiab LED qhia mus rau ib qho khoom siv hluav taws xob hauv PCB PCB uas tau teeb tsa rau sab nraum qab ntawm lub rooj tsavxwm. Qhov no ua rau pawg thawj coj saib tsis pom kev thiab nyab xeeb los ntawm cov ntsiab lus. Hauv qhov no, tsuas yog ob txoj hlua yuav tsum tau khiav los ntawm sab nraum qab ntawm lub rooj tsavxwm mus rau hauv ntej. Ib txoj hlua yog USB cable uas ua haujlwm rau OPS241-A module thiab tau txais cov ntaub ntawv ntsuas nrawm. Qhov thib ob cable yog tsav 7-Segment zaub.

b. Lub Rooj Tswjhwm Saib PCB yuav tsum tau tso chaw ntau rau Raspberry Pi, uas yuav siv feem ntau ntawm thaj chaw. Kuv kuj yuav tsum ua kom ntseeg tau tias kuv yuav tuaj yeem nkag mus tau yooj yim ob peb ntawm nws cov chaw nres nkoj ib zaug ntsia. Cov chaw nres nkoj kuv xav tau nkag mus yog USB chaw nres nkoj (OPS241-A module nrawm cov ntaub ntawv), Ethernet chaw nres nkoj (PC interface rau kev txhim kho/debugging Python code), HDMI chaw nres nkoj (tso saib Raspberry Pi qhov rai thiab debug/kev txhim kho), thiab micro USB chaw nres nkoj (5V zog rau Raspberry Pi).

c. Txhawm rau muab kev nkag mus rau cov chaw nres nkoj no, qhov raug txiav hauv qhov thaiv uas phim qhov chaw nres nkoj ntawm Raspberry Pi.

d. Tom ntej no kuv yuav tsum nrhiav chav rau lub rooj noj mov uas muaj cov khoom siv hluav taws xob sib cais los tsav cov LEDs. Qhov no yog qhov khoom loj thib ob. Yuav tsum muaj chaw txaus nyob ib puag ncig nws uas kuv tuaj yeem txuas cov xov hlau rau nws los ntawm Raspberry Pi thiab tso tawm cov cim rau lub taub hau rau tsav LEDs. Qhov zoo tshaj, yog tias kuv muaj sijhawm ntau dua, Kuv yuav muab cov khoom sib txuas thiab cov xov hlau ncaj qha mus rau PCB pawg thawj coj es tsis txhob siv lub khob cij, tab sis rau kuv lub hom phiaj nws zoo txaus.

e. Kuv npaj kom muaj cov tsav tsheb pom lub taub hau nyob ib sab ntawm daim ntawv qhia zaub mov ntawm ntug ntawm PCB, yog li kuv tuaj yeem khaws kuv cov xov hlau ntev luv, thiab tseem yog li ntawd kuv tuaj yeem txiav lub qhov hauv lub hau thiab ntsaws rau hauv kab txuas rau qhov txuas.

f. Thaum kawg, Kuv tso chav nyob ntawm PCB rau lub zog thaiv. Lub kaw lus xav tau 5V rau qib hloov pauv thiab tso saib tsav tsheb, thiab 12V rau LEDs. Kuv txuas tus qauv 5V/12V txuas hluav taws xob mus rau lub zog thaiv, tom qab ntawd qhia lub zog hluav taws xob los ntawm qhov thaiv mus rau lub khob cij thiab LED header. Kuv txiav ib lub qhov hauv lub hau kom kuv tuaj yeem txuas lub hwj chim 12V/5V rau lub hwj chim txuas.

g. Nov yog qhov kawg ntawm cov khoom siv hluav taws xob PCB hauv pem teb zoo li (nrog npog tawm):

Kauj Ruam 3: Txhim Kho Raspberry Pi

Mounting Raspberry Pi
Mounting Raspberry Pi

Kuv tau teeb tsa kuv lub Raspberry Pi rau qhov perforated thiab plated PCB board siv 4 spacers, ntsia hlau, thiab txiv ntseej. Kuv nyiam siv cov plated PCB board kom kuv tuaj yeem muab cov khoom sib txuas thiab cov xov hlau yog xav tau.

Kauj Ruam 4: LED Teeb Tsa Qib Hloov Hloov

LED teeb liab theem Shifters
LED teeb liab theem Shifters

Raspberry Pi GPIOs tuaj yeem muab qhov siab tshaj ntawm 3.3V txhua. Txawm li cas los xij, LED zaub xav tau 5V tswj lub cim. Yog li ntawd, kuv xav tau los tsim qhov yooj yim, tus nqi qis mus rau theem-hloov pauv Pi tswj cov cim los ntawm 3.3V txog 5V. Lub Circuit Court kuv siv muaj 3 discrete FET transistors, 3 discrete resistors, thiab 3 integrated inverters. Cov tswv yim tawm tswv yim los ntawm Raspberry Pi GPIOs, thiab cov txiaj ntsig tau tso tawm tau raug xa mus rau lub taub hau uas txuas rau ib kab ntawm LEDs. Peb lub cim uas tau hloov pauv yog GPIO23 rau SparkFun LDD CLK, GPIO4 rau SparkFun LDD LAT, thiab SPIO5 rau SparkFun LDD SER.

Kauj Ruam 5: Loj LED Xya-Segment Zaub

Loj LED Xya-Segment Zaub
Loj LED Xya-Segment Zaub

Rau kev nthuav tawm qhov nrawm Kuv siv ob lub LED loj uas kuv pom ntawm SparkFun. Lawv yog 6.5 siab uas yuav tsum nyeem tau los ntawm qhov zoo. Ua kom lawv nyeem tau zoo dua, Kuv tau siv daim kab xev xiav los npog rau tom qab dawb txawm hais tias dub yuav muab qhov sib txawv ntau dua.

Kauj Ruam 6: LED Tsav Tsheb

LED tsav tsav
LED tsav tsav

Txhua lub LED xav tau cov npe hloov pauv thiab kaw rau tuav tuav cov cim tswj los ntawm Raspberry Pi thiab tsav ntu LED. SparkFun muaj qhov sau zoo heev los ua qhov no ntawm no. Raspberry Pi xa cov ntaub ntawv xov xwm mus rau LED xya-ntu qhia thiab tswj lub sijhawm kaw. Cov tsav tsheb tau teeb tsa nyob tom qab ntawm LED thiab tsis pom los ntawm sab xub ntiag.

Kauj Ruam 7: Mounting OPS241-A Radar Module

Lub OPS241-A lub radar sensor tau sau rau hauv 3D luam tawm ib tus phooj ywg ua rau kuv. Xwb, kuv tuaj yeem ntsia nws rau hauv lub rooj tsavxwm ncaj qha. Lub radar sensor tau teeb tsa nyob rau sab xub ntiag ntawm lub rooj tsavxwm ze ntawm LEDs. Lub ntsuas qhov ntsuas tau teeb tsa nrog lub antennas (thaj ua rau kub nyob rau sab saum toj ntawm lub rooj tsavxwm) tau teeb tsa kab rov tav txawm hais tias daim ntawv qhia tshwj xeeb hais tias tus qauv kav hlau txais xov zoo sib xws nyob rau ob qho tib si kab rov tav thiab ntsug qhia yog li tig nws 90 ° tej zaum yuav zoo. Thaum ntsia rau ntawm tus xov tooj, tus radar sensor tau tig mus rau sab nraud ntawm txoj kev. Ob peb qhov siab sib txawv tau sim thiab pom tso nws ib puag ncig 6 '(2 m) siab kom zoo tshaj plaws. Ib qho siab dua thiab kuv xav kom muaj peev xwm angling lub rooj tsavxwm me ntsis.

Kauj Ruam 8: Lub Hwj Chim thiab Cov Teeb Meem Sib Txuas

Fais fab thiab teeb liab sib txuas
Fais fab thiab teeb liab sib txuas

Muaj ob lub zog siv rau daim paib. Ib qho yog hloov pauv HDD fais fab mov uas muab rau 12V thiab 5V. 7-ntu zaub yuav tsum muaj 12V rau LEDs thiab 5V qib teeb liab. Pawg tswj hwm hloov pauv siv 3.3V cov cim los ntawm Raspberry Pi thiab qib hloov lawv mus rau 5V rau cov zaub raws li tau hais los saum no. Lwm qhov khoom siv hluav taws xob yog lub xov tooj ntawm tes lossis ntsiav tshuaj 5V USB adapter nrog USB micro txuas rau Raspberry Pi.

Kauj Ruam 9: Kawg Mounting

Kawg Mounting
Kawg Mounting
Kawg Mounting
Kawg Mounting

Txhawm rau tuav lub radar sensor, LEDs, thiab lub rooj tswj hwm, txhua yam tau teeb tsa ntawm 12 "x 24" x 1 "daim ntoo. Sab nraum qab. Cov ntoo tau pleev xim dub los pab ua kom LEDs nyeem tau zoo dua. Lub zog thiab tswj lub cim rau LED tau hla hla lub qhov ntoo tom qab cov LEDs. Lub radar sensor tau teeb tsa nyob rau sab xub ntiag ntawm ib sab ntawm LEDs. USB lub zog thiab tswj cov kab rau lub ntsuas radar tau muab qhwv rau saum toj mus rau lub rooj ntoo. Ob peb qhov nyob rau sab saum toj ntawm lub rooj tsavxwm nrog txoj hlua khi tau muab txhais tau tias txhawm rau txhim kho pawg thawj coj ntawm lub xov tooj xov tooj ntawm ib sab ntawm "Ceev Xyuas los ntawm Radar "npe.

Lub rooj tsav xwm tswj tau raug ntsia mus rau sab nraub qaum ntawm pawg thawj coj nrog rau lub zog hloov pauv.

Kauj ruam 10: Python Code

Python khiav ntawm Raspberry Pi tau siv los rub cov kab ke ua ke. Cov cai nyob ntawm GitHub. Qhov tseem ceeb ntawm txoj cai yog teeb tsa kev teeb tsa, cov ntaub ntawv nyeem dhau USB-serial chaw nres nkoj los ntawm lub radar sensor, hloov cov ntaub ntawv nrawm los tso saib, thiab tso saib lub sijhawm tswj.

Kev teeb tsa lub hauv paus ntawm OPS241-A radar sensor tau zoo tab sis kuv pom ob peb qhov kev hloov kho xav tau rau kev pib teeb tsa. Cov no suav nrog kev hloov pauv ntawm m/s qhia rau mph, hloov tus nqi piv rau 20ksps, thiab kho qhov chaw squelch. Tus qauv piv txwv ncaj qha hais txog qhov nrawm tshaj plaws uas tuaj yeem tshaj tawm (139mph) thiab ua kom nrawm dua qhov tshaj tawm.

Ib qho kev kawm tseem ceeb yog teeb tsa tus nqi squelch. Thaum xub thawj kuv pom lub radar sensor tsis tuaj nqa lub tsheb ntawm qhov deb deb, tej zaum tsuas yog 15-30 ko taw (5-10m). Kuv xav tias kuv yuav muaj lub radar sensor teeb tsa siab dhau vim nws tau nyob ib puag ncig 7 feet saum txoj kev. Nqa nws nqes mus rau 4 taw tsis zoo li yuav pab tau. Tom qab ntawd kuv pom qhov teeb meem squelch hauv API daim ntawv thiab hloov nws mus rau qhov nkag siab tshaj plaws (QI lossis 10). Nrog qhov no qhov ntsuas pom tau nce mus rau 30-100 ko taw (10-30m).

Siv cov ntaub ntawv hla qhov chaw nres nkoj txuas thiab txhais rau xa mus rau LEDs tau ncaj ncaj rau pem hauv ntej. Ntawm 20ksps, cov ntaub ntawv nrawm tau tshaj tawm ib puag ncig 4-6 zaug hauv ib pliag. Qhov ntawd yog me ntsis nrawm thiab tsis zoo kom cov zaub hloov pauv sai. Cov lej tswj hwm tau ntxiv los saib rau qhov tshaj tawm tshaj tawm nrawm txhua ob thiab tom qab ntawd tso tus lej ntawd. Qhov no ua rau ncua sijhawm thib ob hauv kev tshaj tawm tus lej tab sis qhov ntawd zoo lossis tuaj yeem hloov kho tau yooj yim.

Kauj Ruam 11: Cov Ntsiab Lus thiab Kev Txhim Kho

Cov txiaj ntsig thiab txhim kho
Cov txiaj ntsig thiab txhim kho

Kuv tau ua kuv tus kheej kev sim tsav tsheb dhau los ntawm qhov teeb tsa nrawm thiab qhov nyeem tau sib phim kuv qhov nrawm tau zoo. OmniPreSense tau hais tias lawv tau ntsuas qhov ntsuas thiab nws tuaj yeem hla tib qhov kev ntsuas tus qauv tub ceev xwm radar phom mus nrog qhov tseeb ntawm 0.5 mph.

Zuag qhia tag nrho, qhov no yog txoj haujlwm zoo thiab txoj hauv kev zoo los txhim kho qee yam kev nyab xeeb rau kuv txoj kev. Muaj qee qhov kev txhim kho uas tuaj yeem ua rau qhov no muaj txiaj ntsig ntau dua uas kuv yuav saib ua hauv kev hloov tshiab tom qab. Thawj qhov yog nrhiav LEDs loj dua thiab ci dua. Cov ntawv hais tias cov no yog 200-300 mcd (millicandela). Yeej muaj tseeb ib yam dab tsi siab dua qhov no xav tau raws li lub hnub yooj yim ntxuav tawm saib lawv thaum nruab hnub. Xwb, ntxiv kev tiv thaiv ib puag ncig LEDs cov npoo tuaj yeem ua rau lub hnub ci tawm.

Ua kom tag nrho cov ntaub ntawv pov thawj huab cua yuav xav tau yog tias nws yuav raug tshaj tawm mus tas li. Hmoov zoo qhov no yog radar thiab cov cim yuav yooj yim hla lub thawv yas, tsuas yog xav tau nrhiav qhov loj me uas yog tseem muaj dej pov thawj.

Thaum kawg ntxiv lub koob yees duab rau Raspberry Pi kom thaij duab ntawm txhua tus neeg uas dhau qhov txwv tsis pub nrawm ntawm peb txoj kev yuav zoo heev. Kuv tuaj yeem siv qhov no txuas ntxiv los ntawm kev siv WiFi ntawm lub nkoj thiab xa ceeb toom thiab duab ntawm lub tsheb nrawm. Ntxiv lub sijhawm thwj cim, hnub tim, thiab kuaj pom nrawm rau daim duab yuav ua tiav yam khoom tiav. Tej zaum muaj txawm tias ib qho app yooj yim los tsim uas tuaj yeem nthuav qhia cov ntaub ntawv kom zoo.

Pom zoo: