Build Your Own Radar System

Video thumbnail (Frame 0) Video thumbnail (Frame 993) Video thumbnail (Frame 2441) Video thumbnail (Frame 5761) Video thumbnail (Frame 8440) Video thumbnail (Frame 9370) Video thumbnail (Frame 10299) Video thumbnail (Frame 15015) Video thumbnail (Frame 20105) Video thumbnail (Frame 21861) Video thumbnail (Frame 24500) Video thumbnail (Frame 27248) Video thumbnail (Frame 30668) Video thumbnail (Frame 32786) Video thumbnail (Frame 36425) Video thumbnail (Frame 37927) Video thumbnail (Frame 39286) Video thumbnail (Frame 41570) Video thumbnail (Frame 43190) Video thumbnail (Frame 44970) Video thumbnail (Frame 48349) Video thumbnail (Frame 50062) Video thumbnail (Frame 51263) Video thumbnail (Frame 53774) Video thumbnail (Frame 55583)
Video in TIB AV-Portal: Build Your Own Radar System

Formal Metadata

Build Your Own Radar System
Alternative Title
Build your own Synthetic Aperture Radar
Title of Series
CC Attribution 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Release Date

Content Metadata

Subject Area
Radar is used extensively by the military, police, weather, air travel, and maritime industries - why not you? Come learn how to build a radar imaging system on the cheap! This talk will explain the basics of how radar works as well as how to measure range and velocity of your chosen targets. You will learn how to use synthetic aperture techniques to generate a two- or even three-dimensional image. The hardware and software design will be totally opened up so you can go home and build your own system. The talk will try to run through the basics pretty fast, so some knowledge of electronics or basic physics might help, but is not required! Regardless of your background, you will see the capabilities of a modern home-built radar system and hopefully get some ideas for your own uses. Michael Scarito is a multidisciplinary hacker masquerading as an electrical engineer. Interests include physical and cyber security, surveillance systems, innovative uses for radio frequency electronics, and projects which incorporate all of the above.
Mathematics Presentation of a group System programming System programming Bit Information security
Pulse (signal processing) Dependent and independent variables Direction (geometry) Surface Spektrum <Mathematik> Field (computer science) Type theory Frequency Medical imaging Word Velocity Velocity Point cloud System programming Quicksort Position operator
Point (geometry) Pulse (signal processing) Multiplication sign Demo (music) Set (mathematics) Computer Surface of revolution Measurement Medical imaging Telecommunication Analogy Computer hardware System programming Process (computing) Extension (kinesiology) Information security Wireless LAN Observational study Building Computer Surface of revolution Measurement Data mining Type theory Process (computing) Medical imaging Computer hardware Telecommunication System programming Quicksort Information security Spacetime
Metre Point (geometry) Trail Cross section (physics) Functional (mathematics) Game controller Divisor Multiplication sign Set (mathematics) Distance Graph coloring Power (physics) Doppler-Effekt Medical imaging Propagator Term (mathematics) Velocity System programming Metre Range (statistics) Control flow Cartesian coordinate system Greatest element Measurement Power (physics) System programming Website Nichtlineares Gleichungssystem Right angle
Trail Trail Multiplication sign Planning Control flow Cartesian coordinate system Distance Predictability Wave packet Frequency Quadrilateral System programming System programming Collision Quicksort Extension (kinesiology) Near-ring Spacetime
Complex (psychology) Building Trigonometry Digital electronics Multiplication sign Direction (geometry) View (database) Range (statistics) 1 (number) Water vapor Food energy Dimensional analysis Measurement Medical imaging Mathematics Velocity Different (Kate Ryan album) Arrow of time Extension (kinesiology) Local ring Identity management Point cloud Trigonometry Digitizing Range (statistics) Bit Instance (computer science) Measurement 10 (number) Hand fan Degree (graph theory) Befehlsprozessor Process (computing) Frequency Ring (mathematics) Octave Summierbarkeit Quicksort Spacetime Metre Sine Functional (mathematics) Image resolution Computer-generated imagery Distance Computer Code Trigonometric functions Power (physics) Product (business) Oscillation Frequency Propagator System programming Spacetime Binary multiplier Domain name Shift operator Direction (geometry) Cartesian coordinate system Digital electronics Diameter Wind tunnel Medical imaging Personal digital assistant Point cloud Identity management
Metre Pulse (signal processing) Sine Dependent and independent variables Multiplication sign Correspondence (mathematics) Real number Range (statistics) Plastikkarte Distance Depiction 2 (number) Revision control Frequency Doppler-Effekt Mathematics Velocity Operator (mathematics) Analogy System programming Nichtlineares Gleichungssystem Dependent and independent variables Phase velocity Theory of relativity Sampling (statistics) Range (statistics) Bit Instance (computer science) Sound card Measurement Sample (statistics) Frequency Right angle Pulse (signal processing) Spacetime
Metre Point (geometry) Clique-width Multiplication sign Plotter Orientation (vector space) Image resolution Direction (geometry) Range (statistics) Mereology Computer Tracing (software) Power (physics) 2 (number) Frequency Different (Kate Ryan album) System programming Energy level Multiplication Multiplication Dependent and independent variables Touchscreen Sampling (statistics) Range (statistics) Inverse element Bit Line (geometry) Cartesian coordinate system Measurement Degree (graph theory) Frequency Medical imaging Grand Unified Theory Phase transition Simulation Spacetime
NP-hard Building Demo (music) Electronic mailing list Planning Bit Musical ensemble System programming Flag Musical ensemble Information security Information security Social class
Web page Slide rule Pulse (signal processing) Building Mass flow rate Digital electronics Multiplication sign Connectivity (graph theory) Set (mathematics) Function (mathematics) Mereology Computer Data transmission Power (physics) Oscillation Heegaard splitting Frequency CAN bus Mixed reality Synchronization Videoconferencing System programming Gotcha <Informatik> View (database) Bit Line (geometry) Sound card Oscillation Frequency Block diagram output Block (periodic table) Diagram Near-ring Row (database)
Greatest element Digital electronics Connectivity (graph theory) Diffuser (automotive) Function (mathematics) Complete metric space Sound card Different (Kate Ryan album) Data acquisition Videoconferencing Cuboid Conditional-access module Diagram Whiteboard Videoconferencing Row (database)
Ocean current Point (geometry) Game controller Transformation (genetics) Multiplication sign Digital signal Plastikkarte Computer Power (physics) Computer configuration Analogy Videoconferencing Energy level System programming Data conversion Hydraulic jump Computer program Voltmeter Bit Line (geometry) Sound card Demoscene Digital signal processing Process (computing) Analog-to-digital converter Whiteboard Videoconferencing
Touchscreen Dependent and independent variables Digital electronics Touchscreen Demo (music) Dependent and independent variables Plotter Range (statistics) Planning Mereology Distance System call Fast Fourier transform Fast Fourier transform Digital signal processing Medical imaging Process (computing) Frequency Whiteboard Electronic visual display Whiteboard Electronic visual display Position operator Row (database)
Serial port Oval Computer Error message Computer programming Spectrum (functional analysis) Asynchronous Transfer Mode
Metre Pulse (signal processing) Noise (electronics) Dependent and independent variables Touchscreen Scaling (geometry) Multiplication sign Plotter View (database) Interface (computing) 1 (number) Bit Disk read-and-write head Distance 2 (number) Number Power (physics) Different (Kate Ryan album) Right angle Musical ensemble Window
Pulse (signal processing) Slide rule Touchscreen Electronic data interchange Information Dependent and independent variables Sound effect Bit Time domain Demoscene Element (mathematics) Fast Fourier transform Medical imaging Frequency Computer configuration Different (Kate Ryan album) Phase transition Object (grammar) Electronic visual display Table (information)
Point (geometry) Trail Multiplication sign Orientation (vector space) Direction (geometry) Computer-generated imagery Range (statistics) Set (mathematics) Inertialsystem Field (computer science) 2 (number) Medical imaging Latent heat Virtual reality Different (Kate Ryan album) Term (mathematics) Videoconferencing Smartphone System programming Position operator Overlay-Netz Area Theory of relativity Trail Mapping Virtualization Inertialsystem Digital electronics Product (business) Number Googol Network topology Orientation (vector space) Smartphone Right angle Object (grammar) Quicksort Pole (complex analysis)
Building Group action View (database) Multiplication sign Direction (geometry) Range (statistics) 1 (number) Set (mathematics) Real-time operating system Field programmable gate array Mereology Fast Fourier transform Medical imaging CAN bus Mathematics Bit rate Computer configuration Different (Kate Ryan album) Videoconferencing Extension (kinesiology) Position operator Scripting language Arm Sound effect Bit Measurement Band matrix Type theory Process (computing) Order (biology) Right angle Quicksort Whiteboard Figurate number Metre Slide rule Overhead (computing) Clique-width Divisor Image resolution Characteristic polynomial Microcontroller Software-defined radio Power (physics) 2 (number) Frequency Doppler-Effekt System programming Angular resolution Noise (electronics) Information Planning Voltmeter Cartesian coordinate system Limit (category theory) System call Medical imaging Integrated development environment Personal digital assistant Electromagnetic radiation Object (grammar) Musical ensemble Spectrum (functional analysis)
okay hi everyone my name is michael scotto and i'm going to talk to you about how you can build your own radar system so this talks a little bit off the wall i guess you know traditionally is more security focused at Def Con but I thought it was a pretty cool topic and I like remote sensing system so I wanted to present something that I've been working on with some people at MIT so when talking about stuff like this is going to be a some amount of math I mean there's not really any way to avoid that so i do apologize in advance but you know we're going to talk about it and hopefully i'll explain it in a way that you can understand pretty easily but i didn't want to you know kind of overwhelm anyone with it so we'll try I'll try my best I agree so first of all
what is radar basically it's it's some way of looking at the world through radio waves you know you're measuring something you're sensing some sort of electromagnetic field and basically what you're doing generally if you send out a pulse and you look at the response so radar used to be an acronym it's become a word it stands for radio detection and ranging and that's basically what it is so you know what you might think of traditionally is something like you know these is I think that's a weather radar from like the 40s or something so you know that's kind of the basic idea of what people think but we can what you're measuring is essentially position of something velocity of something direction of motion of something but the thing is you can actually do a lot with this type of technology you can look at pretty much anything I mean you can look at like here we got people terrain like land surface you can look at you know foliage weather patterns you can look at clouds rain ships aircraft spacecrafts like pretty much anything you can think of so when I'm not really talking with something like this but what we can do today is is more something like this
this is an image of the capital I guess this is a Sandhya radar system but this is what synthetic aperture radar can really do with a nice system so what we have is a 3d point cloud of the Capitol building taken from an aircraft so you
know why do it yourself why is this you know something that we could talk about now and the reason that you know it's particularly interesting nowadays is because it's become extremely easy to do this and it's become cheaper than it ever was for to do this and the big thing was the wireless revolution is given us access to a lot of hardware that used to be really expensive and pretty much only available to the military but the need for it in the commercial communication space means you can buy a lot of the stuff just off the shelf and the other thing is for processing all this stuff used to be done in analog nowadays you can just feed it into a computer in the computer will do pretty much everything for you and I guess you know the main reason to do it yourself is because it's pretty cool you can do some pretty interesting things with it you know the stuff that I'm going to demonstrate today hopefully is not not even close to the extent of what you can do I just want to give a simple demo of like you know in this space what what can we look at so who am i I'm from MIT I'm an electrical engineer mostly and the rest of the time I do pretty much anything else engineering or science related when I need to currently I'm working on RF remote sensing systems not not radar systems but actually weather instrumentation at MIT and I have a pretty broad set of interest but a lot of stuff related RF technology including like RFID communications stuff imaging systems remote sensing wireless comm and you know security of course is a big interest of mine and anything that can combine those issues is awesome so I guess what I'm going to start with is talking about how radar works in a general sense then I'm going to go a little more detail like how would you actually make some of these measurements I was talking about with the radar system after that you know talk about how you could build your own radar hopefully we can demo that if it works for me I'm going to go into a little more about synthetic aperture radar which is basically a technique for taking pictures with radar and this is both 2d and 3d imaging and then we'll go into maybe improving the design of the home-built radar like what sort of stuff I'm looking to do in the future and what stuff I'd love to see some people here talking about next year if they did it themselves so first with an overview
like I said before the basic idea is you know we transmit a signal and we get some kind of return off of it so you know this is a this is an aviation system so basically what this is doing is it spinning around sending out a pulse and measuring how long it takes to come back but it's not necessarily that specific you could do a lot of processing with that return signal and the key point here is that every radar system works on this type of principle you're transmitting a signal from somewhere or somebody's transmitting from it signal from somewhere and you're looking at how that reflects off of a target and all this was governed by this thing
called the radar equation which is this big thing with a whole bunch of terms that you know there's a whole bunch of stuff here so basically what we're looking at is the function of received power versus transmitted power and the way the Beck exchanges you know get transmitter gain antenna aperture which is like how big your dishes cross-section propagation factor refers to the medium that you're in I don't you don't really care about most of the stuff right now the main point I want to make is this target distance here so we have power over our to the fourth that's that means that basically um you know your your transmit power doesn't matter that much so the received power is going to decrease with the fourth power of the distance so if you move by a factor of 10 away like you know I guess my example here is if you trim if you receive a signal of one Mel a lot at 10 meters at a kilometer that's 10 pika wats it's really tiny so you know but in that sounds kind of bad because it does severely limit your range but at the same time the system right here that I'm going to show uses about 10 milliwatts of transmit power that's only ten times worse than 100 watt radar which would be like the size of a car so you really you can get a lot of performance with kind of these low costs like simple systems so where's radar use in general it's pretty much used for anything I'll go
over a couple applications air traffic control is a really big one they use it for enroute tracking so this is actually a picture from a website you can go to to like track flights live it's kind of neat so this is Las Vegas a couple days ago it's used for weather measurement it's a huge set of data for trying to track precipitation so what's happening here is this is this is a doppler radar image so what it's doing is it's actually measuring the velocity of the the rain or the hail or whatever it's looking at and the the color is the strength of the return so it's how much precipitation is there but the other cool thing is they can figure out which way the storms moving by the Doppler shift of the signal which is why it's called Doppler radar another thing is
you know police applications they use speed guns to you know give you tickets and that sucks but you know it's a lot of a lot of uses automotive side there's actually a lot more of the stuff so any time you want to kind of track things that are by there's radar systems they're also lidar to some extent which is pretty similar but they're using it for cruise control now so your car can follow a certain distance behind the next car collision avoidance ear Carl apply the brakes right before you hit something automated parking which i think is in the prius uses radar to figure out where the parking spot is and then you know a ton of the staples in general continued need a ton of this technology to figure out where they are in like the near space it's used for surveying
applications so you can fly a plane over some terrain and get a 3d image of what the train looks like that's pretty useful and the military is it for practically everything they love radar you know this it's hard to get some good examples but you know pretty much any system that involves you know shooting something somewhere or like looking at something or you know anything that they might want to do is going to use some sort of radar system and like I said it's kind of hard to get good examples so why radio frequency you know that you
can there's tons of sensing systems that operate from you know basically extremely low frequency maybe like tens of kilohertz even lower like tens of hurts all the way up to the visible light beyond like x-ray is everything up there so you know what's special about this frequency band and by the way what we're talking about is something in the range of 50 megahertz to about 50 gigahertz so and more recently been going up from there but what's special about this range is we get pretty good propagation in the atmosphere so we can transmit a signal that runs thousands of miles or thousands of kilometers and it can go through the atmosphere through space not so much through water because it's hard to propagate through that and that's why they sonar but um the signals are you know they can travel through clouds or smoke obscuration to some extent with certain systems you can penetrate the ground and there's something called ground penetrating radar for searching for tunnels or wiring or anything under there without actually digging it up the signals travel really fast which is both a positive and a negative so the plus side is well you know it's you're getting your signal there really fast you can detect things really far away in a short amount of time like sonar could take minutes to go any real distance but you know this isn't this is instantaneous there at three thousand three hundred thousand kilometers a second i think is like six or seven trips around the world in a second any other advantages that the antennas are reasonably sized so we used to use systems lower frequency hundreds of makers tens of megahertz and anyone at those amateur radio knows how friggin big those antennas are and if you want a directional antenna it's going to be even bigger because that dish is going to be 50 meters 100 meters that is enormous so we can build stuff with like you know a can this is at 2.4 gigahertz this can is what three inches in diameter and it's coffee cute so you know how do we build these radio frequency systems the big thing is that it's hard to build circuits that operate at these frequencies if you think about your computer and how hard it is to get the CPU to run it you know 4 gigahertz or something that is a chip that's about you know three quarters of an inch on the side it's trying to switch at that frequency and get a signal three quarters of an inch or less and that's at 4 gigahertz if we want to build something that's like a transmitter of 50 gigahertz that's going to be really hard to like do any sort of complex digital coding or modulation or anything like that so the way that virtually every single radio works is what they do is they process the data at some low frequency so like if you have a you know voice like FM radio or something the transmitter is just recording audio and its processing audio and then when it gets ready to transmit it just magically shifts that signal to the frequency it's transmitting it up to you know 100 megahertz or something and what this is called as heterodyning reddit radar pretty much works the exact same way in almost every case so the way this works
is there's a little more math here so the trig identity that I'm looking at is the product of some role basically if you multiply two trig functions or two sine waves at two different frequencies what you get out is the sum of the there are some the frequency of their sum and the difference of the two frequencies and it you lose half the power basically in the process of doing that because the two signals are you know have so what this is called is mixing so what we're getting at you know the sum in different different frequencies so as an example if you take your 2.4 gigahertz like Wi-Fi signal and you mix that with something that's very slightly higher this is 2.4 0 0 0 0 1 gigahertz then you get something at about 4.8 gigahertz which you don't really care about because well I don't know I don't need it and you get something at 1 kilohertz which is actually a lot more interesting so I can measure very precisely what the frequency of that second signal is if I'm very good at measuring the first one because they're really close to each other and you know I can get this one kilohertz like resolution for instance that's that's pretty useful so there's a device called a mixer which basically multiplies some known signal with your unknown signal and it shifts it in frequency and thatthat's just magical you can do that's how radio is possible so as a visual example of this and we take two functions which I just got an octave you know we have sine of T sine of 1.1 times so that's something that's like ten percent faster and frequency if you multiply those you get something like this this is what you can see here is the sum of two signals one of them is a fast-moving signal and the other one's a slow-moving signal so um you know looking at in the frequency domain it's the same sort of thing and this is actually a relevant picture so if you haven't done some stuff like this before it could be a little bit foreign to you but basically what we're looking at with these arrows is that's indicating that there is a continuous wave tone that's the the sine wave at that frequency and it has no energy in any other frequency so that sine wave in time is equivalent to that spike or delta in frequency so in this in this third example what you get out is these two different frequencies and as an example of this you've probably heard this before if you have a bunch of like case fans in a computer for instance you can get those really annoying like very time varying tones so if you ever at something running like 6,000 rpm and one running it like 6010 rpm you have a 10 rpm signal that's being generated acoustically between those two things so you have some faster signal and then you have the slower one and that's going to give you that like beating tone which is really annoying that's exactly what's happening there so let's talk a little bit more about you know what we can measure here so like I said before there's a couple things that we're talking about Direction is like you know if I have some target which you know where do I go to get to it range is the distance to the target and velocity is kind of how fast the target is moving so that we can combine all these things into basically imaging so we can use various techniques to generate a 2d or a 3d picture which is what I'm pulling this range in cross ring domain of one of these measurements and when I say range and cross drains what I mean is in the radar world you're not if you take a picture of like this wall for instance or you know that wall whatever your two dimensions are kind of like up and to the side there but they're both perpendicular to you the radar kind of flips that 90 degrees so one of your dimensions is range which is like how far away the thing is another one is like in some other axis so it's cool because you can look from the side and then get like kind of an overhead view of what something looks like so if we
want to measure range it seems pretty simple right we send out a pulse you know just hang it out and wait for the response and we just time how long that takes so here's a visual depiction here if we have a transmitted pulse at time zero then you know we're going to get some returns from some targets and we're going to say one it's like I'm 15 meters away one is 30 meters one is 65 and so that seems pretty easy we just look for and like a scope or something and the reason that this is hard is because the waves travel really fast they travel the speed of light so we have this equation the time it takes to get back is two times the distance because it has to go there and come back divided by the speed of light which means that it's 70 meters we're talking about I guess that's 500 nanoseconds of time which is pretty hard to measure if you want to do it easily so if you're using a sound card for instance which is what the original version this thing actually used to sample know that 44 kilohertz sample rate corresponds to a seven kilometer distance in space and range so you know that's probably not going to work for most systems so if we're trying to UM measure velocity now and I'm going to go
back to your age in a second let's say we want to measure a person walking well they move really slow so it's going to be kind of hard to like see a real real change right you know so the way this is done is the Doppler effect if we have so if we haven't put something moving like this is I guess the car analogy you know we have a car driving by on the road and you're standing there on the side of the road and you're listening to it when it's coming towards you you know sounds a little bit higher pitch it passes you and the frequency suddenly drops and it sounds lower pitched and that's because any like sound being generated by the car is basically being like compressed in space as it propagates because the car is moving as those waves are coming you know emanating from the car so it's a higher frequency taunton it's a lower frequency tone so if we send a radar pulse like what I'm calling a continuous wave tone which is just a sine wave at something that's moving towards you it's going when it reflects that it's going to increase the frequency because it's moving faster it's not going to change the propagation speed because everything moves at the speed of light you know dude relativity but it's going to compress it in time or in space rather so it's going to increase the frequency of the signal so you know if we had a 3 meters per second signal returning that 2.4 gigahertz into 2.4 plus 24 hurts so that's going to be pretty hard to differentiate but if we have a really good 2.4 gigahertz reference we can just mix with that and we get out 24 hurts and i can i can see that on a scope pretty easily i can measure that and then that way i know pretty accurately how far away the target is and by the way the previous the previous example was kind of how radar first got developed it was that's like basically a pulsed radar this would be called continuous wave operation which basically is returns transmitting one frequency all the time so going back to measuring range if we're trying to see a
difference in frequency it's pretty easy we can do that and the really cool thing is if you take that into the computer and Fourier transform it you can very easily get a plot of the frequency at you know versus power and it's harder to see a difference in time just because we can't sample that fast or it's expensive to sample that fast so what if we took the frequency that we're transmitting that were you know we have plotted here and we just ramped it so what that means is it's going to be a tone that looks sort of like this it's this is called a chirp and what's happening is you know it starts out of the low frequency and it just gets faster and faster and faster and then it's done and then it restarts or guts back down or something so what happens with the return signal then if you're trying to transmit it something that's far away is you know you get like let's say the first line is a transmitted signal and the second line is the receive signal so you have if you're looking at what you're transmitting to get time compared to what you just received its going to be shifted by however much time it took between you know when you sent it and when you just got it back and so that's some small amount of time but if you're ramping the frequency it actually corresponds to a difference in frequency and then you can actually do the exact same thing if you mix those two signals together using a mixer you will get out basically the difference in frequency between the two signals and what that means you know practically is let's say we have a 10 meter target or you know something that's 10 meters away if we ramp over 200 megahertz in 20 milliseconds which is reasonable you know something that we can achieve pretty easily that you know point whatever the hell that is I don't how long that is but I think it's 66 nano seconds or something that signal turns into 667 Hertz which is in the middle of the audio range I could sample that with a sound card and tell you how fat or how far away you are so this is known as FM CW radar frequency modulated continuous wave and that's how I think most of the systems work today um so then you know
let's say we want to go a little bit further then we want to take a picture of something so there's a few ways of doing that but basically a high level what we're doing is we're basically just taking these measurements and just repeating them again and again and again in some different place or different orientation or whatever so there's a few ways of doing that one is just scanning so if you ever seen a big dish to spinning around repeatedly your pricing them probably seeing them at airports before all that's doing is it's a very directional beam and it's just pointing it out and measuring the responses back to try to find all the planes and so it just scans and it you know just traces out a path and it's exactly what you see on those old radar scopes we have a line going around your little circular screen so you know we've got a little bit more sophisticated than that since then so there's something called synthetic aperture radar which basically means you can get better resolution if you have a bigger dish but the problem is then you have a bigger dish and the bigger dishes are more directional so that's the advantage so a synthetic aperture radar what you're doing is you're actually taking coherent measurements of the signal at different places and you're trying to simulate having a larger dish and you know the reason you would do that is so that you can get a finer resolution of space so if you just point it in one direction like I think the beam widths on these things are like 40 degrees or something so you couldn't see out there but the idea is that you make it highly directional by simulating measurements from multiple places and then you can kind of combine all those measurements together and get a you know range cross-range plot and I can't do that live right now but i will show you some pictures of that and then another system is actually called inverse R where you actually you keep the radar fixed but you move the target and this is if you want to get like kind of radar cross-section measurements of the aircraft or something i'm not sure why you'd want to do that but you know and then more recently something that they've been doing is called is basically multi-antenna beamforming and be informing is where you take a whole bunch of antennas and you instead of having like a directional tuna to begin with you basically steer the beam with fanta with the antennas and the way that works is you're basically adjusting the phase of each signal so that you have some flat front in some direction and you can control that direction and scan really fast and the advantage there is you have no moving parts and you can scan really really quickly and we use you know we use that for a bunch of surveillance applications like it's just it's useful if you want to find things really fast and it's much it's much more flexible than something just physically scans so you know let's go on to you
know how you might build a system like this so I the the home-built radar that
I have here which I guess if you want to get a good look at it I guess come to the Q&A room and we can show it off the original design was by this guy named Greg charvet he's a employ at MIT and you know I've worked with him a good bit and he's a pretty cool guy so he really loves radar and so he designed this system to be built as an M as an MIT class as basically a I think it's a two-week long class where you just learn how to build these things and it's pretty simple the cost is a few hundred dollars it operates in the Wi-Fi band 2.4 gigahertz and it's it's pretty simple to use the down side at least with the one that I belt is that it's actually really hard to get through airport security they give you a lot of if you try to take something like that on the plane what I was told when I went through the the check in was that well I I showed I flag the guy down and I showed him this thing he's like what the hell is that and I told it to right like what's that so so you know I was like okay you can look in here or something and then you know his comment was perfect he she just says it looks like a bomb and I was like well I'm glad I didn't say that but anyway eventually they did let me throw and I was able to get here hopefully I'm not on a watch list now so let's try to let's try to describe how the system works um so this
is a this is a block diagram for RF stuff and I guess it's that's not too hard to read up here so this is how RF engineers kind of like deal with the world of circuits so we don't this isn't really a circuit it's a set a set of components so you know try to go through it and explain what's happening here so the first thing is the thing that says modular that little like spike thing is that's the ramp generator it's generating just a rampant voltage which gets fed to this thing with the curvy line called a voltage controlled oscillator and it does exactly what you think that the frequency of oscillation is related to the input voltage so you send it a ramp and it gets faster and faster and that generates the chirp I was talking about earlier there's an attenuator power amplifier which just makes the signal you know louder more powerful that signal gets split and one of the you know one of the copies of the signal gets transmitted out by you know one of these one of these dishes here coffee cans sorry the other one the other part of the signal goes to that mixer and that's the what I said before is the local oscillator for that mixer so then what happens is the signal gets sent out by one antenna it gets reflected off of whatever and then it comes back and the other antenna gets amplified again because it's going to be really really weak now I remember that one over R the fourth thing I was talking about and then it gets mixed with that known signal so then it's basically what we did if we took the signal we shifted it all the way down to pretty low frequency near near DC where we could record it with the original system for this use the sound card I've actually changed out a little bit since then but that's that's what's cool about this is you can literally build something like this and record your radar data with your sound card and just process it on the computer with you know you record with audacity and then process it in MATLAB that was how the original system worked and then there's this thing down here called a video amplifier and what that does is it basically just takes that really small signal that's still pretty small and amplifies it a bunch of times at low frequency so we can feed it out to the to the computer and there's two outputs of this one of these is the sync pulse which basically tells us when the chirp starts and then the other one is the actual data signal back out and then I guess the components are heading with those slides later but this is these are all off-the-shelf parts when this company called mini circuits which builds these things they basically they take a little chat and they put it in the package and do all the testing and make it actually work and then you just like screw on little SMA connectors to it it's pretty cool because you just it's like doing plumbing but you're building at RF circuit so here's a picture of the thing
that's sitting right there I guess I think I have call outs on the next page so basically these are all the parts i
just talked about it's a little bit different than that diagram because that green board is not in the original design that's actually basically a USB data acquisition board that i developed for this and i'm working on getting that to be releasable but right now it's not quite ready to it ready for public use yet but eventually i'd like to just kind of publish the designs online so you can see all the components i was talking about before we have you know the vcr first which gets a signal from that green board which is actually generating our ramp now so it's computer-controlled so the vco goes to the attenuator goes to one of those amplifiers and they see the splitter out there one of those signals goes to the transmit cam 10 in which you can see at the bottom and then you know the original goes to the mixer there see a signal goes to one of the other eye pro fires into the mixer and then everything goes out to the video amplifier and then back into the board so that's basically you know that's pretty much all the components we just talked about um I guess just for completeness I'm not going to explain
these schematics but this is the original circuit this is something you could build yourself really easily to do data capture so one of these things is the video amplifier that thing at the you know the box thing at the top and the other one is the ramp generator which is just a chip that generates ramps and it generates two output signals which you plug into your sound card and record your radar data yeah sorry yeah oh um so the reason that's
there is because when I was trying to make the scene USB powered and so I just wired it on to the power 4 so their stuff everything on here was Ronald runs off with 5 volts so i plug the USB in and then the computer doesn't like that it just turns off the port so the problem was the inrush current was too high and I needed something to like slow that down so I was like okay I'll put an inductor in there and the only work when I could find was this big like choke transformer thing so I just shoved that in there and that work so that was that's all that's for ok so let's say we
want to do a little bit more we want to get a little more sophisticated the sound card because there are some its disadvantages there it's hard to collect every chirp it's hard to stay synchronized and it's not as fast as we might like for sample rate so I developed this board that's basically my controller with an A to D D to a converter the way that we generate the ramps is we take a digital signal in the DA converter and then feed it through an integrator and if you remember your signals and systems that that continuous line turns into a ramp and we can control the speed of that ramp and the reason that we're not just directly generating the ramp tis because if you ever looked at how a DAC outputs a signal every time you switch it it like jump to the next level a little but it doesn't like kind of smooth it out so we could filter the hell out of it and it probably wouldn't work or we could just do something like this where we just generated a flat signal and then in analog we make the ramp and that was the easiest option and it works pretty well and then we just send that out to the vco and then on the receive side you know we have a video amp that was actually not on the green board is on though sorry on the other board there and then this in a 2d converter which is way fast in the other one I think it could actually run it five hundred thousand samples per second which is a lot faster than your sound card at 44 96 or something like that if you have a nicer one and the other advantages are you know internal triggering which basically means i start the ramp and i know where the ramp is and then I started captured a certain point I capture data really fast and then it's done and I send it back to the computer so it's completely kind of self-contained I don't have to deal with like processing it later to do the triggering and that makes a lot of the real-time stuff a lot easier so this is
a picture of the board I guess it's not really too much to say here it's just you know yay circuits and then there's a call outs on that so actually the the two other things on there that I didn't mention was a gyro accelerometer and I haven't really gotten to using these yet but this is part of my future plan is well if we can just track the position of the thing we can do a lot of this kind of coherent imaging stuff without any effort and I'll talk about that a little more later so I'd like to try a
demo now I really hope this works but you know I'm not I know how demos work at Def Con and I I'm not you know we'll see what happens but basically we're going to do is we're going to try to do a range finding demo so I'm going to take this thing and set it up to basically generated sharp record the response and display it on the screen and what's going to happen is they'll be a couple of plots there and i'll describe does when they come up but basically what you should be able to see is the distance to a wall or something is going to come up as a stronger signal at some range and we'll plot it with respect to range and then all that processing is done with an FFT so let's see if i can get out of this and ok oh
wow that worked surprisingly well so if i plug this under the computer so we have to hope that VMware properly captures the device because sometimes it doesn't like to let's just confirm that
it looks like it's connected so little
Python program I actually found this program online it was just like something to generate an audio spectrum and I was like well it's Python it's kind of really easy to make it do whatever the hell I want so I adapted it to my little USB serial on her face and and actually I should probably I think I'm forgetting something I get us at the mode on this sorry I'm sorry and where else preg enough see if this works so it doesn't give any error messages we
should be getting something sprawling across the screen in a second ok so there's a couple different things here so in the middle plot that's actually a lot of noise here and I can explain why that probably is in a little bit but um so that that plot in the middle is basically the time plot of the signal that we're sending out or this is the response so this is literally at you know low frequency it's basically an audio tone is what it would sound like and thats related to the signal it's not very directly related so what we do is we Fourier transform that which you can see on the left and the right so the one on the right is kind of a scrolling view of that and it's kind of hard to see the scale on here but on that spectrogram view those numbers are supposed to be the distance in meters to whatever you're looking at so I guess you've seen a fish finder before it's basically the same interface so what i can do is i pointed at the wall i'm pretty sure that that that strong response at about 30 meters is probably bout the distance that which sounds about right i pointed up at the ceiling it's going to drop down and we see a very strong red line at about eight you know it's about the correct distance and we can just kind of scan it around you know so sorry yeah so we get something at about four which is all right so you know it's basically you can you can also see the power thing here so when this is being displayed this is a log scale so it's not going to decline as fast as you would expect but um as they get further out obviously they're going gets way way weaker the other thing which I haven't actually seen yet which I'm a little surprised by is uh so this thing operates in the Wi-Fi band there's a lot of noise i'm not exactly sure why that's happening i was having before but what you do see occasionally is these pulses kind of towards the top end of that and that's actually Wi-Fi signal bursts from the thing transmitting it's a you know i think it's a 25 megahertz wide signal and what you see that four is like a little pulse in the middle of the time window and unfortunately i guess no one's using Wi-Fi devices in here because i'm not picking anything up so i guess everyone's being smart now and they're not using Wi-Fi at defcon but yeah this is basically you know that's all there is to it to doing something you know pretty simple so literally all i did here is i'm recording the analog signal I'm for a transforming it and displaying it on the screen and that's all there is to it so let's go we're good there so let's head back to the talk glad that worked so
so let's talk a little bit about you know trying to image with one of these things so synthetic aperture radar is basically the idea of instead of having you know a really big antenna or a lot of little antennas let's just take this thing and like move it like slide it on a table or something and just keep taking images and there's to basically techniques of doing that one is basically kind of scanning around the object you want to look at and it's called spotlights are as you might expect the other option is basically trying to scan your radar across a scene and getting you know basically getting is repeating pulses to the side and that's actually it's a little easier to process so that's how this was originally working and I'll give you an example that in a second basically what you're doing is you take these pulses and you can get a lot of information about the phase of that signal so that analog signal that I showed you in the time domain is actually pretty important because all the phase of those frequencies effects like subtly the difference between you know your transmitter and various elements of the target so you can kind of coherently combine those and get a 2d image so this is an example that dr. charvet gave gave
me of what he built with something that's very similar to this using the same sort of specifications so we have a 2d image from google earth and he went out to this field and he did this I think I mean you know you move the basically move the radar about 8 feet and you get an overlay image like this so I'm gonna go back and forth a couple times but what's cool is you're basically looking at the foliage from the tree so you get all those red areas are basically where there's something that returned and the other thing is you can see that on telephone pole or whatever the hell that is right there is also giving a pretty strong return and the range on this is like a couple hundred feet so it's actually pretty good I was testing this in my car one point and I was actually able to get about probably half a kilometer if you're going down the highway and you see like some faraway objects you can kind of see them like getting closer to you as you move so that's kind of neat so let's let's talk about what what you
know what you might be able to do to you know improve on this sort of stuff um one thing was what I was talking about before I'd really like to do an inertial star system and unfortunately I've been having some problems with the accuracy of the accelerometer and gyro well you know I'm going to be working on that in near future to try to get that accurate enough for my purposes so i can do position tracking for basically a few seconds enough to capture the image and so what we would do is we basically use a Darwin accelerometer to figure out relative position and orientation as I move the thing around and the idea is that I don't have to measure that I don't have to like you know carefully annotate what I'm doing is I'm capturing the data it makes it much faster and a cool thing you might be able to do is if you take a GPS in a magnetometer you probably could just dereference it on a map have the direction you're looking and just over lay it on you know google earth map and at this point you can pretty much do that with a smartphone because that's got all of those sensors just add that with a sensor like this and you're good to go you just got right threats off for um the other thing is something that we might actually be doing at MIT in the next few months is a phased array radar system so what we would do there as we'd have a set of transmit and receive antennas and the path of the system here is we basically switch between pairs of them so you might have you know a couple transmitted in terms of the couple receive antennas each pair of those if they're spaced appropriately basically gives you a virtual Intendant at a different position and so you can just very rapidly switch between you know let's say you have like eight on each side that's 64 different pairs of antennas or 32 anyway whatever you get I this is 64 yeah i get sixty four pairs of like virtual antennas that you can take and you can very quickly generate an image and I guess so basically what we would get with that is um I have a video here
of something that's actually been built this was built by by MIT this is a was the video okay what they did here is they built a phaser a radar system designed to capture images at 10 Hertz and what's happening here is we have a metal ball in the middle and then what they did is they rolled another metal wall past it and you can basically see the thing rolling in real time past the thing and it's pretty neat so you see that little dot there it just kind of comes past and so this is pretty fast there's another video online which I couldn't include due to time there's someone like swinging a baton and it's interesting because like I said before this is an overhead view so if someone swinging that it's like it looks like a spike and then it kind of spreads out and goes back forth and back and forth so you know that's a I can play that again um but yeah you can see right there it just kind of comes by and then it's a little bit of interference when it comes to past it due to multipath effects of the signal because remember we are looking at electromagnetic waves here but this is a sort of capability you could you know achieve with something you know a little more sophisticated because the real-time aspect is really interested me in real-time imaging I think would be pretty cool to implement especially as like I do it yourself thing so I have a
few more references here I guess you can get these from the slides but these are some resources this is probably enough information to build one of these things maybe not with the laser cut stuff but uh it's it's you know it's um it's it's not that hard I mean it's it's a pretty simple concept and all the parts are available commercially nowadays which is amazing so I guess you know the main reason I gave this talk is cuz i really wanted to see people build something like this you know actually build it and so that's kind of like my call to action is like i would love to see someone do something really cool with this stuff and come back next year and you know say okay I'm gonna give a talk on you know my you know improvements of the system that would be awesome so I think that's about all I have so yeah I guess if there's any questions you know go ahead yeah sorry I I can't hear you oh well the coffee cans are somewhat directional sorry he asked why coffee cans as opposed to a different type of antenna on their coffee cans are fairly directional they were really cheap because their coffee cans we have done anyway but basically it's going to be hard to see inside this thing so you might just have to come back later and see but what the way this works is there's an SMA connector in here and there's a little wire being fed into here so this is this is basically a waveguide port it's an adapter from that little feed antenna to this larger waveguide and then that just it's basically a crappy directional antenna but you could use a notice for Wi-Fi so if you wanted to make your signal more directional it's the exact same principle and if you took some of those really big Wi-Fi antennas you can make a highly directional system just with that so anyone else oh yeah here switch microcontroller i'm using i'm actually using a pic it's a one of the 16-bit pics i tend to get a lot of for using their parts but I in general what I find is if they they're very inexpensive I love that it's just they're very cheap parts and this thing was like two bucks and as off-the-shelf USB and stuff so it's it's pretty good for my applications but oh yeah I she just worth talking about so on yes with the power requirements were um I believe this entire system uses about 200 milliamps at 5 volts so like I said it's easily powered by the USB port it's the only power source here the original was powered off with two sets of double a batteries so that's about all you're talking about yeah ok so this system is operating in the wife oh sorry I've got to do this um yes how much you know how much gotta increase the power the limits of 2.4 gigahertz I believe her a lot but that's a lot I think it's for what's radiated so you could you could transmit what's that ok so you could basically probably have the transmit a lot and no one's going to complain too much the problem with this is you would have to ban limit it some more so the way this works is it does actually extend past the Wi-Fi band a little bit and that's why we know we only is it instead of controlled environments but um basically we don't want to you know step on anyone elses spectrum so I wouldn't transmit a lot in that whole range you know this is like 10 milliwatts is pretty low so yeah anyone else well yeah um well okay what's the signal to noise with Wi-Fi so I guess it's pretty it's pretty dull because what you see is actually with the Wi-Fi signals you actually see the burst on the on the spectrum I'm actually I was shocked I didn't see that today I was I would sure someone was gonna be using Wi-Fi device in here but um basically what happens is you get these little blips and the signal and that chirp is like it's a pretty strong signal and it's hard to filter out because it's not like related to your signal all you're just like basically sweeping right through it and you pick up all that crap but if they're not transmitting it's not really a big deal yeah is the upper frequency limit defined about how easily you can obtain a reference signal the frequency bands that you can operate in our it's mostly there's a few bands you can operate and you pretty much are stuck to the ice on bands if you want to do this stuff like legitimately because those are you know what's license for kind of this unrestricted or pseudo unrestricted use so if we go up to five gigahertz it would be a little harder to find parts basically as you go up in frequency the parts just get a little more expensive or as you get even higher they can get a lot more expensive but the big thing you want actually a system like this you want wide bandwidth because the bandwidth is get what's giving you that spatial resolution and the time resolution anyone else yeah um i guess if i was looking at software-defined radio systems um i think there would be some benefits of that if you wanted to make you know do some certainly the SAR coherent processing stuff that would benefit greatly from an fpga system because it does it can take a few seconds to process an image like that on the computer but in this case like the main goal with simplicity in low cost so you know if you bring in you know one of those uh was that edits research boards and like the u.s. RP or something that's going to add a big but you know a big chunk of change to your design but there's definitely a lot of potential there I would say that's absolutely worth exploring anyone else oh yeah um yes is the Doppler effect from a fast-moving object enough to mess up your position measurement that kind of depends on what you're trying to do ok so i guess if it's if you're trying to measure something moving really fast like on the order of you know like a plane or something you might have you might have some impact so i guess when I was talking about it before I said that something was moving three meters per second which is like a person walking really quickly or maybe slow jog is producing a 24 hurt signal at the chirp rates I was dealing with you know I think 10 meters correspond to like 667 hurts so it wouldn't affect it too much but that all depends on your chirp rate and your bandwidth and you know a bunch of other factors so yeah you can you could make it had to have an impact or not and the other thing is there's actually a of disambiguating those because I didn't talk about this but you can you can chirp up and you can shirt back down and if you think about it the effects are a little bit different because the Doppler shift is always going to change the frequency in one direction but if you trip the other direction of those shifted backwards all you have to do is kind of figure out what's happening there and you can you can disambiguate them doesn't oh got one more so I keep doing questions or okay uh yeah go ahead yeah on that microcontroller would be pretty hard the processing power on this thing is pretty weak it's just it's it's useful for fast at grabbing are quickly grabbing data if you switch to like a DSP or like you know a nice arm or an fpga would be you know probably the best option in that regard you could definitely do that it's not it's not a very computationally intensive process I mean this is like a Python script I was running to do the fft oh okay yeah so to some extent actually for the sour stuff we want something a little less directional than that part of it is that the coffee cans were what was available at the time but not what that's probably true yes um but yeah I mean it's it's pretty open you basically get different characteristics so if you're trying to do this are imaging having a wide beam width is actually somewhat useful because you can get it decreases some of your spatial fidelity but you also get a wider image so if you have a very narrow beam you're not going to get any signal from something that's you know further apart so it's a trade-off there anyone else okay I guess if there's anyone else that wants to like see the system closer or talk I get think I'm to move over to the Q&A rooms so yeah thanks for uh thanks for here am I talk that's great you