Okay. Hi, everyone. My name is Michael Scurito, and I'm going to talk to you about how you can build your own radar system. So this talk's a little bit off the wall, I guess. You know, traditionally it's more security-focused at DEF CON, but I thought it was a pretty cool topic, and I like remote sensing systems, so I wanted to present something that I've been working on with some people at MIT. So when talking about stuff like this, there's going to be 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 I'll try my best. I agree. So first of all, what is radar? Basically, 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 is 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, 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, and 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've got people, terrain, like land surface. You can look at, you know, foliage. You can look at weather patterns. You can look at clouds, rain, ships, aircraft, spacecraft, like pretty much anything you can think of. So I'm not really talking about something like this, but what we can do today is more something like this. This is an image of the Capitol. I guess this is a Sandia 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 before to do this. And the big thing was the wireless revolution has 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 this 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, and the computer will do pretty much everything for you. So 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 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 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 radar systems, but actually weather instrumentation at MIT. And I have a pretty broad set of interests, but a lot of stuff related to RF technology, including, like, RFID communication 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 into a little more detail, like, how would you actually make some of these measurements I was talking about with the radar system? After that, I'm going to go into some more detail. After that, you know, talk about how you could build your own radar. Hopefully, we can demo it 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 a 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 an aviation system. So basically what this is doing is it's 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 a signal from somewhere, and you're looking at how that reflects off of a target. And all this is 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 that that gets changed is, you know, you get transmitter gain, antenna aperture, which is like how big your dish is, cross-section, propagation factor refers to the medium that you're in. I actually don't really care about most of this stuff right now. The main point I want to make is this target distance here. So we have power over R to the fourth. That means that basically... You know, 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 ten away, like, you know, I guess my example here is, if you receive a signal of one milliwatt at ten meters, at a kilometer, that's ten picawatts. It's really fucking tiny. So, you know, that sounds kind of bad because it does severely limit your range, but at the same time, this system right here that I'm going to show uses about ten milliwatts of transmit power. It's like ten times worse than a hundred-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-cost, like, simple systems. So where is radar used 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 in-route 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 a Doppler radar image. So what it's doing is it's actually measuring the velocity of the rain or the hail or whatever it's looking at. And 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 storm's 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 uses. On the automotive side, there's actually a lot of... A lot more of this stuff. So any time you want to kind of track things that are close by, there's radar systems there. 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. Your car will 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, autonomous vehicles in general are going to 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 terrain looks like. That's pretty useful. And the military uses it for practically everything. They love radar. It's hard to get some good examples, but pretty much any system that involves shooting something somewhere or looking at something or 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? There's tons of sensing systems that operate from basically extremely low frequency, maybe like tens of kilohertz, even lower, like tens of hertz, all the way up to visible light beyond, like, x-rays and 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. And more recently, we've 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, it can go so much through water because it's hard to propagate through that. And that's why we have sonar. But 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, you're getting your signal there really fast. You can detect things really far away at that time. Like sonar could take minutes to go any real distance. But, you know, this is instantaneous. 300,000 kilometers a second I think is like six or seven trips around the world in a second. And the other advantage is that the antennas are reasonably sized. So we used to use systems that were lower frequency, hundreds of megahertz, tens of megahertz. And anyone that does amateur radio knows how freaking 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. 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 a coffee can. 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 at, you know, four 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 that's at four gigahertz. If we want to build something that's, like, a transmitter at 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 voice like FM radio or something, the transmitter is just recording audio and it's processing audio. And then when it gets ready to transmit, it just magically shifts that signal to the frequency it's transmitting at, up to, you know, 100 megahertz or something. And what this is called is heterodyning. 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-to-sum rule. Basically, if you multiply two trig functions or two sine waves at two different frequencies, what you get out is the sum of their sum, the frequency of their sum and the difference of the two frequencies. And if you multiply that, you lose half the power basically in the process of doing that because the two signals are, you know, half. So what this is called is mixing. So what we're getting is, you know, the sum and difference 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.400001 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 really need it. And you get something at 1 kilohertz, 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 1 kilohertz resolution, for instance. 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 that's just magical. That's how radio is possible. So as a visual example of this, we take two functions, which I just got in an octave, you know, we have sine of t, sine of 1.1 times t, so that's something that's like 10% faster in frequency. If you multiply those, you get something like this. What you can see here is the sum of two signals. One of them is a fast-moving signal and the other one is a slow-moving signal. So, you know, looking at it 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's a continuous wave tone. It's 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 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 case fans in a computer, for instance, you can get those really annoying time-varying tones. So if you have something running at like 6,000 RPM and one running at like 6,010 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 this slower one. And that's going to give you that beating tone which is really annoying. That's exactly what's happening there. So let's talk a little bit more about what we can measure here. So like I said before, there's a couple things that we're talking about. Direction is like if I have some target, 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 then we can combine all these things into basically imaging. So we can generate a 2D or a 3D picture which is in what I'm calling this range and cross-range domain of one of these measurements. And when I say range and cross-range, what I mean is in the radar world, if you take a picture of this wall, for instance, or that wall, whatever, your two dimensions are kind of up and to the side. They're both perpendicular to you. The radar kind of flips that 90 degrees. So one of your dimensions is range, which is how far away the thing is. And the other one is in some other axis. So it's cool because you can look from the side, and you can get 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, just ping 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 transmit pulse at time zero, then we're going to get some returns from some targets, and we're going to say one is 15 meters away, one is 30 meters, one is 65. And so that seems pretty easy. And the reason that this is hard is because the waves travel really fast. They travel at 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 at 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 of this thing actually used to sample, that 44 kilohertz sample rate corresponds to a 7 kilometer distance in space, in range. So that's probably not going to work for most systems. So if we're trying to measure velocity now, and I'm going to go back to range 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 see a real person walking. It's going to change, right? So the way this is done is the Doppler effect. If we have something moving, like this is, I guess, the car analogy. 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, it sounds a little bit higher pitched. It passes you and the frequency suddenly drops and it sounds lower pitched. And that's because any sound being generated by the car is basically being compressed in space as it propagates because the car is moving as those waves are emanating from the car. So it's a higher frequency tone and then it's a lower frequency tone. So if we send a radar pulse, what I'm calling a continuous wave tone, which is just a sine wave, at something that's moving towards you, 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 due to 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 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 hertz. And I can see that on a scope pretty easily. I can measure that. And that way I know pretty accurately how far away the target is. And by the way, the previous example was kind of how radar first got developed. That's like basically a pulse radar. This would be called continuous wave operation, which basically means you're transmitting the signal by 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 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, so what that means is it's going to be a tone that looks sort of like this. This is called a chirp. And what's happening is it starts out at a low frequency and it just gets faster and faster and faster and then it's done. And then it restarts or goes back down or something. So what happens with the return signal then if you're trying to transmit something that's far away is you get, let's say the first line is the transmitted signal and the second line is the received signal. So if you're looking at what you're transmitting at a given time compared to what you just received, it's going to be shifted by however much time it took between 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 practically is let's say we have a 10 meter target or something that's 10 meters away. If we ramp over 200 megahertz in 20 milliseconds, that's something that we could achieve pretty easily. That point, whatever the hell that is, I don't know how long that is, but I think it's 66 nanoseconds 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 far away you are. So this is known as FMCW radar, Frequency Modulated Continuous Wave. And that's how I think most of the systems work today. So then, let's say we want to go a little bit further than that. We want to take a picture of something. So there's a few ways of doing that. But basically, at 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've ever seen a big dish just spinning around repeatedly, you've probably seen 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 that's exactly what you see on those old radar scopes where you have a line going around your little circular screen. So we've gotten a little bit more sophisticated in that sense 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 bigger dishes are more directional, so that's the advantage. So with 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 would do that 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 shit 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 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 SAR where you actually keep the radar fixed but you move the target. So it's like the radar cross-section measurements of an 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, it's basically multi-antenna beamforming. And beamforming is where you take a whole bunch of antennas and you, instead of having like a directional beam to begin with, you basically steer the beam 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 we use that for a bunch of surveillance applications. It's useful if you want to find things really fast. And it's much more flexible than something that just physically scans. So, you know, let's go on to how you might build a system like this. So 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 an employee 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 MIT class. Basically, 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 pretty simple to use. The downside, at least with the one that I've built, is that it's actually really hard to get through airport security. They give you a lot of shit if you try to take something like that on the plane. What I was told when I went through the check-in was that... Well, I flagged the guy down and I showed him this thing. And he's like, what the hell is that? And I tell him it's a radar. And he's like, well, what's that? So, you know, I was like, okay, you can look in here or something. And then, you know, his comment was perfect. He just says, it looks like a bomb. And I was like, well, But anyway, eventually they let me through and I was able to get here. Hopefully I'm not on a watch list now. So let's try to describe how the system works. So this is a block diagram for RF stuff. And I guess it's not too hard to read up here. So this is how RF engineers kind of like deal with the world of circuits. So this isn't really a circuit. It's a set of components. So, you know, I'll try to go through it and explain what's happening here. So the first thing is, the thing that says modular, the spike thing is, that's the ramp generator. It's generating just a ramp and voltage, which gets fed to this thing with the curvy line called a voltage controlled oscillator. And it does exactly what you think. 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 louder or more powerful. That signal gets split and one of the copies of the signal gets sent out by 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 what I said before, 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 in the other antenna, gets amplified again because it's going to be really, really weak now. Remember that one over R to the fourth thing I was talking about. So basically what we did is we took the signal and we shifted it all the way down to pretty low frequency near DC where we could record it. And the original system for this used a sound card. I've actually changed that a little bit since then but that's what's cool about this. You can literally build something like this and record your radar data with your sound card and just process it on the computer. 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 a signal that's still pretty small and it amplifies it a bunch of times at low frequency so we can feed it out to the computer. And there's two outputs to 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 here. You can get the slides later. But these are all off the shelf parts from this company called Mini Circuits which builds these things. They take a little chip and they put it in a package and do all the testing to make it actually work and then you just screw on little SMA connectors to it. So it's like doing plumbing but you're building an RF circuit. So here's a picture of the thing that's sitting right there. 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 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 the VCO 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 then you see the splitter out there. One of those signals goes to the transmit cantina which you can see at the bottom. And then the other signal goes to the mixer the received signal goes to one of the other amplifiers into the mixer and then everything goes out to the video amplifier and then back into the board. So that's pretty much all the components we just talked about. I guess just for completeness I'm not going to explain these schematics but this is the original circuit. This is something you can build yourself really easily to do data capture. So one of these things is the video amplifier 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? So the reason that's there is because I was trying to make this thing USB powered and so I just wired it onto the power for this other stuff. Everything on here runs off of 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 slow that down so I was like okay I'll put an inductor in there and the only one I could find was this big choke transformer thing so I just shoved that in there and that worked. So that's all that's for. Okay so let's say we want to do a little bit more we want to get a little more sophisticated in the sound card because there are some 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 a microcontroller with an A to D, D to A converter the way that we generate the ramps is we take a digital signal in the D to A converter and then feed it through an integrator and if you remember your signals and systems 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 ramps is because if you ever looked at how a DAC outputs a signal every time you switch it it jumps to the next level a little bit it doesn't 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 generate 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 we have a video amp on the screen board on the other board there and then there's an A to D converter which is way faster than the other one I think it could actually run at 500,000 samples per second which is a lot faster than your sound card at 44 or 96 or something like that if you have a nicer one and the other advantages are internal triggering which basically means I start the ramp and I know where the ramp is and then I start a capture at 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 with 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 there's not really too much to say here it's just yay circuits and then there's call outs on that so actually the two other things on there that I didn't mention was the gyro and 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'm not you know we'll see what happens but basically what 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 generate a chart record the response and display it on the screen and what's going to happen is there'll be a couple plots there and I'll describe those 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 okay oh wow that worked surprisingly well so if I plug this into 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 a 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 going to be really easy to make it do whatever the hell I want so I adapted it to my little USB serial interface and actually I should probably I think I'm forgetting something I've got to set the mode on this or sorry whatever that's probably good enough let's see if this works so it doesn't give any error messages we should be getting something scrolling across the screen in a second oh okay there's a couple different things here so in the middle plot there's actually a lot of noise here and I can explain why that probably isn't a little bit so 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 low frequency it's basically an audio tone is what it would sound like and that's 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 you can 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 if you've seen a fish finder before it's basically the same interface so what I can do is if I point it at the wall I'm pretty sure that that strong response at about 30 meters is probably about the distance to that which sounds about right if I point it up at the ceiling it's going to drop down and we see a very strong red line at about 8 you know it's about the correct distance and we can just kind of scan it around you know so so we get something at about 4 which is not right so you know it's basically 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 as they get further out obviously the signal gets way way weaker and the other thing which I haven't actually seen yet which I'm a little surprised by so this thing operates in the wifi band and there's a lot of noise I'm not exactly sure why that's happening but there's a lot of pulses kind of towards the top end of that and that's actually wifi signal bursts from the thing transmitting I think it's a 20 megahertz wide signal and what you see that for is a little pulse in the middle of the time window and unfortunately I guess no one is using wifi devices in here because I'm not picking anything up so I guess everyone is being smart now and they're not using wifi at DEF CON but yeah this is basically that's all there is to doing something pretty simple so literally all I did here is I'm recording and displaying it on the screen and that's all there is to it so let's go if we're good there so let's head back to the talk I'm glad that worked so let's talk a little bit about trying to image with one of these things so synthetic aperture radar is basically the idea of instead of having a really big antenna let's just take this thing and like move it like slide it down a table or something and just keep taking images and there's two basic techniques of doing that one is basically kind of scanning around the object that you want to look at and it's called Spotlight SAR as you might expect the other option is basically trying to scan your radar across a scene and getting you know basically getting these 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 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 affects like subtly the difference between 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 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 did this basically you move the radar about 8 feet and you get an overlay image like this so I'm going to go back and forth a couple of 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 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 at one point and I was actually able to get about probably about half a kilometer and you see some far away objects you can kind of see them getting closer to you as you move so that's kind of neat so let's talk about what you might be able to do to improve on this sort of stuff 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 I'm going to be working on that in the 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 so what we would do is we'd basically use a gyro and 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 carefully annotate what I'm doing as 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 and a magnetometer you probably could just georeference it on a map have the direction you're looking and just overlay it on a Google Earth map and at this point you can pretty much do that with a smartphone because that's got all of those sensors with the right software the other thing is something that we might actually be doing at MIT in the next few months is a phased ray radar system so what we would do there is we'd have a set of transmit and receive antennas and the system here is we'd basically switch between pairs of them so you might have a couple transmit antennas a couple receive antennas each pair of those if they're spaced appropriately basically gives you a virtual antenna at a different position and so you can just very rapidly switch let's say you have like 8 on each side that's 64 different pairs of antennas or 32 anyway whatever this is 64 you get 64 pairs of 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 I have a video here of something that's actually been built this was built by MIT this is a what is the video? what they did here is they built a phased ray 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 ball 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's swinging that it looks like a spike and then it kind of spreads out back and forth and back and forth so you know that's I can play that again but yeah you can see right there it just kind of comes by and then there's a little bit of interference when it comes past it due to multi-path effects of the signal because remember we are looking at electromagnetic waves here but this is the sort of capability you could achieve with something a little more sophisticated because the real time aspect is really interesting and real time imaging I think would be pretty cool to implement especially as like a 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 it's it's not that hard I mean 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 because 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 to see someone do something really cool with this stuff and come back next year and say okay I'm going to give a talk on my improvements to the system that would be awesome so I think that's about all I have so yeah I guess if there's any questions go ahead yeah sorry 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 um they're fairly directional they're really cheap because they're coffee cans and we have them 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 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 basically a wave guide port it's an adapter from that little feed antenna to this larger wave guide and then that just it's basically a crappy directional antenna but you could use some of this for wifi too if you wanted to make your signal more directional it's the exact same principle you could make a highly directional system just with that so anyone else? oh uh yeah he asked which microcontroller I'm using I'm actually using a PIC it's one of the 16 bit PICs I tend to get a lot of shit for using their parts but in general what I find is that they're very inexpensive I love that they're very cheap parts and this thing was like two bucks and has off the shelf USB and stuff so it's pretty good I think it's worth talking about so I guess what the power requirements were 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 of two sets of double A batteries so that's about all you're talking about yeah ok so this system is operating in the oh sorry I gotta do this he asked how much could I increase the power the limits at 2.4 gigahertz I believe are a watt but that's a watt I think it's 4 watts radiated so you could transmit what's that? ok so you could basically you'd probably be able to transmit a watt and no one's going to complain too much the problem with this is you would have to band limit it some more so the way this works is it does actually extend past the wifi band a little bit and that's why we only use it in controlled environments but um basically we don't want to step on anyone else's spectrum so I wouldn't transmit a watt in that whole range this is like 10 milliwatts it's pretty low anyone else? yeah well ok what's the signal to noise with wifi so I guess it's pretty doable because what you see is actually you actually see the burst on the spectrum I'm actually I was shocked I didn't see that today I was sure someone was going to be using wifi device in here but um basically what happens is you get these little blips in the signal and that chirp is like fucked it's a pretty strong signal and it's hard to filter out because it's not like related to your signal at 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 by how easily you can obtain a reference signal the frequency bands that you can operate in are it's mostly I mean there's a few bands you can operate in you pretty much are stuck to the ISM bands if you want to do this stuff like legitimately because those are you know what's licensed for kind of this unrestricted or pseudo unrestricted use so if you go up to 5 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 in a system like this is you want wide bandwidth because the bandwidth is what's giving you that spatial resolution and the time resolution anyone else? yeah he asked if I was looking at software defined radio systems I think there would be some benefit to that if you wanted to make certainly the SAR coherent processing stuff that would benefit greatly from an FPGA system because it can take a few seconds to process an image like that on the computer but in this case like the main goal is simplicity and low cost so if you bring in one of those what is it research boards in like the USRP or something that's going to add 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? yeah 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 you're trying to measure something moving really fast like on the order of you know like a plane or something you might have some impact so I guess when I was talking about it before I said something was moving 3 meters per second walking really quickly or maybe slow jog is producing a 24 hertz signal at the chirp rates I was dealing with I think 10 meters corresponded to 667 hertz so it wouldn't affect it too much but that all depends on your chirp rate and your bandwidth and a bunch of other factors you could make it have an impact or not and the other thing is there's actually a way of disambiguating those because I didn't talk about this but you can chirp up and you can chirp back down and if you think about it the effects are a little bit different the Doppler shift is always going to change the frequency in one direction but if you chirp the other direction it will shift it backwards so all you have to do is kind of figure out what's happening there and you can disambiguate them is that it? oh got one more should I keep doing questions or ok yeah go ahead how practical would it be to move the data from the range line to the range line on that microcontroller it would be pretty hard the processing power on this thing is pretty weak it's useful for quickly grabbing data if you switch to a DSP or an ice arm or an FPGA would be probably the best option in that regard you could definitely do that it's not a very computationally intensive process it's like a Python script I was running to do the FFT ok yeah yeah so to some extent actually for the SAR 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 that's probably probably true yes but yeah I mean it's pretty open you basically get different characteristics so if you're trying to do the SAR 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 further apart so it's a trade off there anyone else? ok I guess if there's anyone else that wants to see the system closer or talk I think I'm going to move over to the Q&A room so thanks for hearing my talk it was great