Anda di halaman 1dari 3

20140620DopplerRadarSpeedDetectionusinganHB10010.

525ghz
radargun.

(Iveupdatedthistoanewlibrarywithbetterresults,seebelow)

TheHB100isa10.525Ghzradargun,normallyfoundinautomaticdooropeners.Butitcanbe
usedforotherthings.
FormostoftheinformationIusedtofinallygetthistowork,IreferredtotheMicrowaveSensor
ApplicationNotes
http://www.limpkin.fr/public/HB100/HB100_Microwave_Sensor_Application_Note.pdf
Itcontainsalltheinformation,radiationdata,andcircuittoamplifytheoutputsingle.
TheHB100hasanIFoutputfrequencythatisorshouldbetween10hzand(say)400hz.

ItgivestheformulatofigureoutDopplerfrequency,whichis
Fd=2V(Ft/c)COStheta
Fd=DopplerFrequency,V=Velocityofthetarget,Ft=TransmitFrequency,c=speedoflight
(3*10^8msec)
theta=theanglebetweenthetargetmovingdirectionadntheaxisofthemodule.

IFthetargetismovingstraighttowardorawayfromHB100(Ft=10.525Ghz)theformulais
simplifiedto:
Fd=19.49V(Velocityinkm/hour)or31.36V(Vinmileperhour)

Sowearegoingtousethesimplestofthetwo,weknowthedopplerfrequency,andwewantto
findthespeed.
V=Fd/31.36Whatthisreallymeansthou,isforever31.36Hzwillequal1MPH
SoiftheIFFrequencyis31.36thenthespeedofthetargetis1MPH.Easy!

AndaIFFrequencyofsay400Hzwouldbeabout13Mphifyourounditup.

ThiswasmadeeveneasiertofindthefrequencyoftheIFbecauseIfoundasketchthatwasa
Frequencycounterofsorts,andaftertheamplifierwasbuilt,Istartedtogetsomegoodspeeds
offtheradar.
TheFreqMeasureLibrarycanbefoundhere:
https://www.pjrc.com/teensy/td_libs_FreqMeasure.html
Thiswasahughtimesaver,anditworksverywell.
Youdohavetoapproachthegunfromheadon,butitworksanddoesagoodjob,andgive
speedsthatIbelieveareveryclosetobeingright.OverthenextdayorsoIlltrytogetouton
theroadandseeifIcangetsomerealspeedtests.
Videowillbepostedshortly.

UpdatedMay23,2014:Anewlibraryandbetterresults:
http://interface.khm.de/index.php/lab/experiments/frequencymeasurementlibrary/
Foundtheabovelibraryfromalinkontheprjcwebsite,thisisapparentlythelibraryhebased
hislibraryoffof.WhatisinterestingisIthinkIamgettingbetterresultsfromtheoriginalwork
thenIwasfromtheprjclibraries.
Acoupleofthings,thelibraryseemstobeusing3pinsforinput,andacoupleofresistors,butI
foundthatwiththisdopplersetupreallyonlyonepinwasneeded(asitwasbefore)howeverits
pin7,aresistordoesntappeartobeneeded.Thelibrarydoesnthaveanyexamplestospeak
of,andthecodethatisonthesitecontainsmanyerrors(Yup,IspottedalotoferrorsbeforeI
evengotstarted)IamthinkingthecodewaswritteninpureCandthelibrarywaswrittenforthe
arduino(maybeevenanoldversionoftheIDE)Ithasntbeenupdatedsince2012.

SOthecodeIcameupwith:

#includeFreqPeriod.h

doublelfrq
longintpp

voidsetup(){
Serial.begin(9600)
FreqPeriod::begin()
Serial.println(FreqPeriodLibraryTest)
}

voidloop(){
pp=FreqPeriod::getPeriod()
if(pp){
Serial.print(period:)
Serial.print(pp)
Serial.print(1/16us/frequency:)

lfrq=16000400.0/pp
Serial.print(lfrq)
Serial.print(Hz)
Serial.print(lfrq/31.36)
Serial.println(Mph)
}
}

ThislibraryisalotfasterthentheFreqMeasurelibrary(whichseemstobetakinganavgovera
periodoftimeandgivingbackafreq.)Thisoneseemstojustspitoutfreqs.Soitseemslikeits
alotmoresensitivetochanges.InfactasIapprovethedopplerevenfromthebacksideofit,I
getachangeonthescreen.Good/Bad???Imnotsureoftheanswer.
Thespeedsseemmuchmorereasonableaswell,andperhapsthatisthemathusingthe
doubleinteger,perhapsthatisthefactthatIamdividingtheHZ/31.36(whichisthereal
numbertouse)

Thou,IhavenoticethatusingthisDopplerGun,andthefactthatitisnotverydirectionalisa
problemfordoinganyrealspeedsoffit.

Theotherthingtonoteisthatwiththislibrarymyrangeseemstohaveincreased,Iamthinking
thismightbebecauseitsnottryingtotakeanaverageandisjustspittingnumbersoutasthings
change.

Iamgoingtodoanewvideowiththeupdatedlibrary.

Anda mungkin juga menyukai