All right, just to make sure you guys are in the right speech, this is Brain Games, make your own biofeedback video game. I'm Neon Rain, and this is the amazing Joe Grand. You probably know him because from the badges you have around your neck. So if you don't, you really should know him. So how many of you were at my speech last year and want to know if I actually ponied up the hardware? Hi, guys. It's right here. For those of you who weren't here last year, I'm actually Canadian. So I had a little problem with bringing electronics into America that weren't labeled. But I actually have the hardware this year. Apparently, if you put static sensitive stickers on things, they have a tendency not to open them. So kudos to that. So I guess we'll get started. The problem is I only have a 50-minute slot, and so we have to cover biofeedback and basic electronics and do a demo. So unfortunately, I'm probably going to go really, really fast. If you don't think this was long enough time, feel free to go up to DT and be like, Hey, give her more time. So unfortunately, we're going to probably go way too fast. But they lock me in the QA room later. So if I went and you don't understand anything, just let me know, and we'll cover it. Oh, and in case you're wondering what the hell's up with the wings, Forbes published a picture of me last year, and I was looking very deep and serious, very, very serious. And I'm like, I'm not serious. So just on the off case that anybody takes a picture, that's never going to happen again. So, yeah, I guess we'll get started. So, and also, I'm making the mistake of putting everything on my slides. I'll be reading from my slides, but like I said, 50-minute slot. I don't want you to miss anything. I have a tendency to talk really fast, and so it's quite possible that you'll totally miss stuff. So if you haven't already read the slide, basically, we're just covering that the interest in the human brain has been around for a long time. Like even in Samaria, there was records of some hip guy or girl that was playing with poppy. And they were playing with plants and wrote down what their experience was like. So, but even though, like through the years, human behavior has changed radically, and our ideas of it, like psychology and what we believe to be true, the methods of studying the brain until very recently had changed very, very little. So with the evolution of microcomputers and digital technology, everything has been changing to lead us to technological advance to help us understand the human brain better. So now, as computers and electronics have become more affordable, a whole do-it-yourself neurohacking movement has emerged. This information has been out forever, but finally, we're able to embrace it and make it our own. So biofeedback, everybody's like, biofeedback, hasn't that been around forever? Isn't that like, you know, 8-track tapes or bell-bottoms and disco? Doesn't that like so belong in the past and we should just forget about it? But it's actually making a comeback. Because in today, with everything so fast-paced and us having to try and take in so much information, everybody's trying to harness their mind-body connection for all it's worth. Everybody wants to be able to process as much data as possible. They want to know as much about their body as possible just to be the best that they can be. So, can't talk about a biofeedback video game without talking about biofeedback. So, according to the American Heritage Science Dictionary, who are very, very serious people, the definition of biofeedback is the techniques of using a monitoring device to obtain information about the involuntary function of the central autonomic nervous system, such as body temperature and blood pressure, in order to gain some voluntary control over the function. Using biofeedback, individuals can be trained to respond to abnormal measurements and involuntary function. Anybody else bored of this? Is it just me? Okay. So, basically, if we don't want to use a bunch of words to explain it, biofeedback devices are devices that give feedback regarding our biology. Easy enough, right? So, as a broad generalization, something as simple as a scale that measures your weight or a thermometer that measures your temperature can be considered a biofeedback device because they provide information about the state of your bodily workings. More traditionally, though, the term biofeedback device is usually used to describe equipment that shows, in real time, as it's happening, the physical effects of our thoughts, emotions, attitudes, perceptions, and mental processes. So, different types of biofeedback devices are used to measure different types of things in your body. Unfortunately, I have 50 minutes, so I can't cover many types of biofeedback devices, as there's many types of things that are going on in your body, but we really don't have time to cover that. So, if you don't like it, complain to DEF CON. So, how does biofeedback work? That's a very good question. Scientists aren't really sure how it works. They do know it works, but they're not exactly sure why. But there does seem to be a common thread. Most people who benefit from biofeedback has conditions that are brought on or made worse by stress. Simple enough? So, in the late 1960s, where the term biofeedback was actually used, biofeedback was actually coined. Biofeedback actually goes back a very long time, but the term biofeedback didn't come around until the 60s. And I'm sure you guys, anyone who's interested in the brain, probably heard of the HIP time, where they're talking about biofeedback, and there would be some great, beautiful future that we'd have such a major degree of control that we wouldn't need chemical drugs. We would totally just be using biofeedback, and it would help with any uncomfortable side effects in patients. And because it's not just biofeedback, biofeedback has been around for a long time, and there's no negative long-term effects. But what scientists found out is biofeedback isn't magic. It's not gonna cure any diseases if that's what you're looking for, or make a person healthy. It can't do these things on its own. What it can do is be a highly effective, non-invasive tool to control stress by helping people observe the signals generated by their own bodies in a tangible way. And doing so can end up helping people with problems that are linked to or aggravated by stress. And I'm sure it's no big news. I don't have to produce any white papers to prove that stress is a major problem with both mental illness and physical illness, that it will make things worse if you're stressed out. I mean, there's probably nobody in the audience that hasn't been stressed and have felt that feeling in your stomach and have wanted to throw up on your shoes, right? So today, most scientists agree that such high hopes of the past were not realistic. Research shows that we do have more control over so-called, involuntary bodily functions than we once thought possible. But nature will put limits on the extent of such control. But interestingly enough, scientists to this day are still trying to determine how much voluntary control we can actually exert over the things that we consider we have no control over. So, I'm probably going so fast. I'm so nervous, as usual. So, heart rate and heart rate variability. So, we can't really cover most types. We can't really cover most types of biofeedback. But we will be talking about heart rate, because you have to use something to power the machine. Because that's the most common question that people ask me. They're like, biofeedback? What the hell are you using? So, we're actually using your heart rate. So, no surprise to anyone. Your heart rate is the number of times that your heart beats per minute. You can measure your heart rate by feeling your pulse, the arithmetic expansion and contraction or throbbing of artery of blood forced through it by regular contractions of the heart. Everybody knows what their pulse is. We've all gone to the doctors. This is not a surprise. But here comes the part of the speech where you're all going to humor me and we're going to take our pulses. But I'm actually going somewhere with this. I promise. I'm not just doing this to make you guys wonder. I'm not going to pull out a camera and make you guys wonder. So, this is the part you humor me and just pretend you're doing it. Everybody knows how to take their pulse. If not, it's up there. I want you to try and take your pulse. We're going to have a nice relaxing moment. And what I want you to do is try to feel your heart rate and when you want a permanent pulsing that you're following it. So, I'm going to wait here till you do it. So, if you don't want me to go any farther, you guys kind of at least have to fake taking your pulse. Come on. See, Joe's doing it. Oh, you guys are no fun. Come on, it's fun. Yeah, totally. Haven't you ever wanted to feel your heartbeat? Yeah, totally. Come on. Thank you for the people who are humoring me. You are the neurohackers of the future. Thank you. For those who would have took their pulse, you would have been able to discover what heart rate variability is. And that's actually the places in between the heartbeats. So, thank you for not humoring me. Man, do you guys want me to come back or what? So, basically, heart rate variability, if you would have taken your pulse, is, um, you would have felt something called respiratory sinus arrhythmia. So, if you took your pulse, and you inhaled, and you exhaled quickly, you would have felt a really cool double beat. And that's what happens when your body is trying to meet the demands, either emotional or physical, of the beat of your heart. And this is why you should care, because there's a difference between heart rate and heart rate variability. And you kind of have to know that if you're going to make a video game. So, heart rate variability is the spaces in between. Heart rate variability is also a better gauge than heart rate when it comes to biofeedback. So, in summary, biofeedback's a tool that helps conditions brought on or made worse by stress. Ooh, bright light. There are many types of biofeedback. Biofeedback's not a magic bullet. And heart rate and heart rate variability, are two different things. The first being the beat of your heart itself, and the other being the time in between beats. Wow, this is going to look so great on video. Hi, everybody. It's not me. It's the light. I'm not shy, honestly. So, this comes apart that Joe Grant is actually going to come and explain to you the electronics of what we did. We're actually using heart rate instead of heart rate variability. We just put it together like that, and we're just going to change it up at the last minute, but right at a time. So, everybody, Joe Grant. Yay. All right. So, yeah, what we have is some electronics that we're going to hook up to somebody and demonstrate this game that Neon Rain's been working on for quite a while. So, I'm just going to go through a little bit about some basic electronics. We have the schematic on here. There's a bunch of information online. So, if you want to end up building your own system, to play this game or write some other code, then you can. Yeah, there's some cool things with stress-related changes in your body and biofeedback and everything. And the heart rate and the heart rate variability is just one. But I don't know how many of you have actually given a talk or had to do a presentation and your hands get sweaty or someone cuts you off when you're driving and you're like, shit, your palms get sweaty, your heart rate goes up. And that's the type of stuff that we're measuring to see your physiological state and the change in your state. So, this is one. This is one example of that. Sorry. All right. So, a little bit of electronics in a nutshell because we're going to go into the details of what the hardware actually is. When you want to build this, you're going to want to know how to solder. You're going to want to know how to read schematics and just some basic electronics assembly. And I have a few little tips. We don't have parts here for you to build your own. But if you do happen to go to Fry's and get some stuff, you can put it together in the hardware hacking village if you want. But you don't really need to understand electronics at all just to build the thing and get it working, which is good. So, yeah, the first thing, soldering, if you want to solder, is one way to do it, to put together a board like the one Neon Rain's been working on or I put together another version that I'll explain later. So, you can solder and put it on a breadboard. Or you can just use a plug board, like a little white plug board. You can get it like Radio Shack and you plug the parts into that. So, there's a number of ways to do it. But soldering is the easiest because you sort of, hard code everything onto a board. So, just some information about it. Really, it's easy to do. A lot of people just do it wrong. So, the two things you need to worry about. Good heat distribution from the soldering iron tip to the component and the pin and the pad that you're soldering to. And then make sure your surface is clean. And there's a video podcast on there that the colors are messed up. But you can go there and see an entire diatribe that I made about soldering. So, reading schematics is another thing you're going to need to know because we're presenting a schematic. And in order for you to put the circuitry together, you want to understand what it is. And a schematic, for those who don't know, is basically an electronic roadmap of how all the parts connect to each other. Each component of the circuit has its own little symbol. And each component also has a part designator, which is usually an alphanumeric character followed by a number. So, each part gets a unique identifier. So, the example is like R1, C4, SW2. And you'll see all of that. That way we can identify individually every component that we're working with. And if I say, to NeonRain, oh, we've got to change resistor R2. I think it's bad. And she'll know exactly where to go to change it. One thing I put together for something completely different a long time ago for some homebrew video game stuff I was working on was this basic assembly manual for electronics. Just download that from the Make Store. And it's sort of cool. It has a resistor color code chart and some other just basic things. Stuff you might run into when you're just building electronic stuff. And these are the most common things that usually will just bite you in the ass. And sometimes you overlook the simplest things before you go look at more complicated ones. So, these are the ones you should look at first. Check your power. Make sure that your system's actually receiving power. Because if it's electronic, it probably needs something. Make sure your battery is in properly. Unlike some people that I've heard of that put their batteries in backwards on here and burn their fingers. Look for polarity markings and put the battery in the right way. Faulty solder connections. So, that's why you need to know how to solder properly. Because a lot of people can solder. But they end up with what's known as a cold solder joint. Where it looks like the solder is actually holding things together properly. But it gets a little loose over time. And it starts wearing out. And all of a sudden your circuitry doesn't work. So, check for faulty solder connections. Make sure you're putting in the wrong part. Or make sure you're putting in the right part. Putting in the wrong part would pretty much suck. A lot of these parts look the same when you're looking at resistors. For example, 1K and 10K. They look exactly the same except for one color of one band. So. Just pay attention to that. Make sure polarity is right for certain types of components. That have to go in a certain way. Like capacitors. Like integrated circuits. You know, just kind of basic things. What you might need to verify that your circuit is working. Before you want to actually attach it to your body. And risk the chance of shocking yourself. Is a multimeter. Which is basically what I like to say is the Swiss army knife of electronic measurement tools. It provides you with all sorts of capabilities. Measurement functionality for voltage, resistance, capacity. So we can use that to just make sure our voltage levels are proper. Coming into the board. And then the oscilloscope gives you a visual description. And a visual indication of how of an electrical signal. And how it changes over time. So that's sort of like if you look at my shirt. For example. That's an oscilloscope sine wave. If you look at your heart rate. You know that's something that you could visually see on an oscilloscope. Or on an EKG. And Neon Rain is going to show you that. So. And oscilloscope is good. And what I did when I built the second circuit for her. Um. Was just make sure that I could see. Some sort of semblance of heart rate on my oscilloscope. Before I hooked it up to myself. And even when I did. I still had my wife standing next to me. Ready to kick me over if I started going into shock. So the hardware that we're using. Is very simple. I really didn't do anything. I just built this circuit based on Jason's work. And Neon Rain's. Been using this type of device for a long time. And basically it's just an amplifier circuit. That we'll look at. It's really simple to build. So you can build something for maybe around 10 bucks. And I have a bill of materials. Most of the parts you can get at Radio Shack. There's a few parts. Some of the amplifiers. I don't think you can get at Radio Shack. But they might have a replacement part you can use. But still very cheap. Ramsey Electronics sells a kit. That I built a long time ago. And it is also an amplifier type of circuit like this. So that's a good place to start too. If you're. If you're. You know. If you don't want to. Build something from scratch. You can try to build that kit first. And they have step-by-step instructions and everything. And you might actually be able to use that kit with her game. Yeah. We can neither confirm nor deny that. But I'm pretty sure. I mean it's outputting a heart rate signal. And then you can capture variability from that. So the parts list for the board. We're using just three op amps. Potentiometer. Some discrete components. The cool thing. That when I was reading these websites. When Neon Rain was like. You want to do this talk with me? I need more heart. Where I'm like okay. I was reading this website. And the person who did it was using pennies for electrodes. Instead of like real medical grade stuff. Which we're using here. I built on pennies. Which was really strange. But it worked okay. And let's see what else. Yeah battery. So all the stuff you can get at DigiKey. I put the DigiKey part numbers there. Because I like DigiKey. And you can order stuff from them. And get it shipped the same day. And get it very fast. Of course if you do that. Your total cost. Is going to end up being $39. Instead of $9. But you'll have the parts. This is the schematic. I ripped it right from Jason's site. So thank you Jason. If you're here. But what you have. Is you have two inputs. Which are let's see. In minus is the upper left. And then in plus is a little bit down. And those are just taking signals in. From electrodes on your body. Measuring very, very, very tiny electrical signals. Generated from your body. From your heart. And then we have another probe down. A little bit below. There's a resistor. It says body. And that's just like a body reference. That you put somewhere else in your body. So you know. So those signals are referenced to something. You have some amplifiers. That go into some other amplifiers. And then end up with the voltage. That is the V out. Which is your sort of heart rate signal. A little bit noisy. If you have electrodes that aren't put on properly. But that's all the system needs. Plugged into the sound port of your system. Your computer. And then Neon Rain stuff takes over. So pretty just simple amplifier circuit. And I think I just said all of this. Super weird. Yeah. So let's see. Some changes if you want. These are things that are recommended on Jason's site. And also things that I had noticed. If you, you can use LM324s instead. For better performance. If you want. But the pinout is different than the LF353. We're using the LF353 here. If you want to use the 324s, that's fine. And those are probably more easily available. But just make sure you're connecting things to the right place. And there is actually on Jason's website. A good step by step of verifying the connections. Of various voltage levels that you should be seeing. Before you hook it up to yourself. And I highly recommend doing that. And I added bypass caps on all of the amplifiers. Just to reduce noise. And what Jason has. Is the final stage. On the right side. There's a 200k resistor connected for the final gain stage. And I put a 500k pot there instead. So you can fine tune the gauge. Or the gain. So if you're overloading your signal. Or it's too small. You can increase the gain. Or decrease the gain if you need to. And that's it. So now Neon Rain can talk about code. I'm totally. You know what to do with the mic man. This is awesome. Although I'm gonna have to stand on this side of the podium. Or nobody will see me. Everybody always complains about my talk. Because I'm so short. That you can just kind of. I'm a floating head for the whole talk. So all right. This is the part where I'm going to talk about the code. As like the thing says. Oh I do want to point out though. I know people are going to ask. So this is Joe's KY. Not mine. Because how the penny electrodes work. Is you have to have something in between. To complete the circuit. So yeah. I know people are going to ask. So I just happen to have this stuff lying around. You know you never know. You never know when you're going to need it. But if you do. If you do decide to go the penny way. These electrodes. I purchased off of eBay. Because I guess you guys have something called like. The FDA or something. And you're not allowed to buy these. Without having some sort of license. But we don't have that in Canada. So they were nice enough that I was like. I'm Canadian. I'm I don't follow those laws. So right. It says caution. As Joe just pointed out. Caution US federal law. Restricts the use of this device. To sale by or on the order of a physician. Yes. So as long as you have no follow-up questions. I am a physician. Yes. I'm not a sure physician or what. So you can actually buy these. Someplace. If you're a physician. That they actually work a lot better. Than the penny electrodes. You'll get a better signal. So you guys probably have gone to the hospital. And have seen these. So if you know somebody who works in the ER. And they really like you or something. So I highly recommend these more. Than the penny electrodes. But if I mean. You got to do what you got to do right. So the penny electrodes do work. But I think you get more noise. I'm pretty sure. And it's harder to keep it. If it's not solid. A solid connection. It's harder to keep your signal solid. If that makes any sense. So all right. So did anybody read New Scientist at all. Anyone New Scientist readers. Possibly heard that I'm a programmer. Has anybody heard this. Yeah I'm not. I'm sure it was not. They weren't specifically. I'm sure they were confused. But I'm sure they're a very nice magazine. But a lot of people. That's one of the first things that they asked me. Is they're like oh well you program right. And I'm like I know of programming. So I actually did not write. This code. It was actually two of my good friends. We're in Canada. Old Grover and psychedelic bike. So for the last year. They've had to deal with me. And having to make this project. So they can't be here today. Because America makes them nervous. So but they send the regards. And so I just want to give a shout out to them. Because they're the ones that made this all happen. For the last year. It always makes me quite sad. When people come up to me. And they always are like oh. What you do is so amazing. But I can never do that. Neuro hacking is just an emerging field. Like it is what we define what it is. Everybody can bring something to the table. I once had someone tell me that I was a mediocre genius. Yeah I was kind of smart. But you know it really really wasn't that impressive. And sometimes I feel like you know. As much as I love the scene. And have been a part of it for many many years. I find. That some people especially people who are coming in. Emerging people who aren't old school. Someone who's very dear to me always makes the joke. That you know how you become old school right. You get old right. So we have a lot of new people that are coming to DEF CON. And I just I want people to realize. When it comes to neuro hacking. Everybody has a brain. Everybody can bring something to the table. This is an emerging field. Please if you're interested. Please. Even if you can't. Program. Even if you can't do electronics. There's so many different things. There's so many different ways that you can figure out. Things that are going on with your body. Like like so many little experiments. That you can do and report back on. Even though I do this speech. I'm actually quite famous. Because I brought something that were caffeinated pixie sticks. With vitamins. Because I had read a white paper. That people were using caffeine the wrong way. That you actually should only use two ounces. Every hour. But you kind of have to be careful. Because after eight hours. You kind of get like methamphetamine like effects. If you decide to go with that. But I mean there's so many things. That you can talk about. And post about. And blog about. Because really neuro hacking is what we decided is. It's because that hardware. All the hardware for this kind of thing. Hasn't been accessible. But now we have the open EEG project. So people can build their own EEG. And there's actually an open transcranial. A project. But please only do stuff with that. If you're quite knowledgeable. And that makes me a little nervous. But there are many things that you can do. Without frying your brain. There's many things that. Many ways that you can take part. Please don't think that I'm any more intelligent than you. Like I'm no more intelligent than anyone at this conference. Anyone in this room. Or especially anyone on this stage. So you guys can all take part. And please please do. Like the whole reason why I made this code. Is the fact that I want you guys to take it. I want you guys to take and run with it. It's a proof of concept thing. Heart rate. Please take it. Put it in your favorite games. Make it for your own. This is my gift to you. This is my gift to start you off. And all becoming neuro hackers. I want everybody to be able to. Control. Contribute. Everybody can bring something to the table. So please please do. Please don't think. I'm so tired of being here. And you know alone. And not having. There's not a lot of people in the field. There's a few of us that are neuro hackers. And we make the joke that even though there's a huge movement. There's really only four of us that I hang around with. So if someone gets in a horrible plane crash. We can't be a movement anymore. There's just not enough of us. So please please join us. So. The code after my whole like. Please become neuro hackers. Hack the planet. Kind of thing. Hack your brain. Hack the planet. A lot of people ask me why I chose Python. For the code. Which is a good question. I chose it because it was very easy for beginners to use. And it was also very easy for the people. For experts to pick it up. As much as they hate the white space thing. The people who worked with me. Neither of them knew Python before we started. It's free. It's platform independent. Because I wanted to make this. So people could use it on Linux. Or Windows. Or whatever your cup of tea is. And the most important thing. Someone gave me a book on Python as a gift. So that was very important. So I was like. Python. Yeah that goes. That goes for it. I have a book. We can totally work on that. So because you know. It wasn't in the library. So we actually use two modules as well. And one of them is Pygame. I don't know if anyone does Python. Or uses Pygame. But it's really. Kick ass. Two thumbs up to the people there. And it's also free. It's a small amount of code. And there's some tutorials on it. There's not a lot. So if you want to write a tutorial. Please email me and let me know. Because I could use a really good tutorial. We're also using something that's called Pymedia. The reason we're using Pymedia. Is the fact that Pygame wasn't enough. To control the sound alone. It really didn't give us enough control. But. It's. I'm not sure if it's an abandoned project. Or what they're doing. The documentation is. So. But it's free. You know. What do you expect? So on to problems. Because whenever you're making hardware. You're always going to have some sort of problems. Pymedia has been tested for Mac. We were trying it. We were having problems. We were trying it with Linux. I'm not a Linux guru. I wasn't hanging out with Linux gurus. So we were kind of having problems. Getting it to work. It almost worked. But not enough to be able to present it. Another one of the problems. Is that. Like I was saying. The documentation. Or Pymedia's lack of documentation. Definitely. It really came down to the wire. I really. We couldn't get things to work correctly. To like the last couple of months. I really did not think. Because the original hardware that I brought. For the people who were in the speed. Who came. Was a hundred dollars. So we kind of went from a hundred to ten. Because I wanted. To be more affordable. So I took the year. And rewrote the speech and stuff. So since this is proof of concept. It can be really finicky. Please, please, please. Make sure that your computer is unplugged from the wall. That would be great. Not only for static. But I would feel really bad. If you know. I had to go to anybody's funeral. The chances of you shocking yourself. Are really. You probably have a better chance. Of a Russian satellite falling on your head. But you know. We should all be careful so. And another thing is. When you have the electrodes on. Don't touch them. Like if anything touches them. You'll get a spike. And it will interfere with your readings. I'm just making sure I'm not running long. So we can actually have a demo. Because you guys will totally. Especially people from last year. If I was like. Oh I don't have time for the demo. Goodbye. See you next year. You guys would totally kill me. So jumping off points. So like I said. This is your code. This is not my code. This is your code. I want you to take it. And make it your own. This is not mine anymore. I'm moving on to other things now. This is all for you. So I didn't use heart rate variability. I used heart rate to start. Because it was easier. You can turn it into heart rate variability. It's mathematical formulas and stuff. If you're good at that. And you know. If you know how much to tip. And can do that in your head. You know that kind of thing. So you can totally change it to that. It's pretty easy to use. Also you can also try. To make things easier and harder. You know gauging on. Or fix it so if people. If you're playing the game for a while. That you have a smaller and smaller window. On how to relax. So you can also change it and do that too. And please if you do any of this. Please email me and give me a heads up. I would love to see this stuff in action. I'm going to be abandoning this. And going in a completely different direction. For next year. So and goal tracking. I love the Wii Fit. I don't love the Wii Fit. For anything that has to do with the exercises. But their goal tracking software is amazing. They have these little things. That if you put so much time in. They change the colors of things. And they really know where it's at. Like these virtual rewards. So after I started playing with my Wii Fit. I was totally like. Something like this in order to make it. Totally needs goal tracking. Some sort of reward in order to keep you to do it. Because even though it's a video game. You know video games on a side tangent. Video games actually a lot of people like them. Because it lights up your reward center. You're actually getting some sort of reward. You're like yay I finished this long long long game. And totally I always love people. When they're like I finished this game. And they're so proud. And they share it with everyone. And you're like yay. So but they really. But they really do feel like their adrenaline's going. They're hyped. It's totally like they run a marathon. A virtual marathon. So goal tracking would be fabulous. I would love to see that as well. And oh guess what. Apparently it's time for the demo. I have something that I lovingly like to call. Both Canadian and girl guilt. Which means that I cannot choose any of you people for a volunteer. Because then there's a whole bunch of people. Who I wouldn't choose as a volunteer. And I would feel horribly guilty. And it'll keep me up at night. And I'll cry in a corner. So Joe how about you choose a volunteer. I have no guilt. And I won't feel bad at all. So who wants to give a demo. And take their shirt off for science. Oh yeah. There you go. Oh yeah. Don't forget to tell them about that. Oh. Make sure you go over to the start. All right. Here's how it's going to work. Volunteer. Take their shirt off. How come it's all guys. Man you didn't tell me about this part. In defense we couldn't have a girl up here if we wanted. When I first started. When we first started working. On the hardware. I mean my good friend psychedelic bike. It was only working part-time. And for some reason it was only working when he used it. And so we got ourselves a drink. And we were sitting and thinking. And we're like what is different between you and me. What is diff. What is. Is that what's blocking the signal. So there's actually. If you're a girl. You actually have to have an entirely different setup. You actually have to have an electrode here. An electrode here. So. Back in my. Hometown. We. Totally had this joke where we're like. Take your shirt off for science. So yeah. So my friend totally teases that if you would have known. He would have seen this many boobies. He would have totally like. Changed direction. And would have been a neurohacker. So all right. Put your hands up again. This guy up here. He doesn't have his hand up. But he looks just like. He looks just like you man. Like a little version of Joe. He's like. Totally looks like you. So. Yeah. See look. We're not even related. Totally. You guys totally look the same. So I take it you were voluntold. So he's 18. He's 18. How many DEFCONs has he been to? First one. Wow. Yeah. First one. And that means that you would probably would have had. Let's see. I would have been. 14. 14. If you're really my son. I don't think that can happen. Joe. I had no idea. Man. Yeah. All right. So where is he going to sit? Well I guess. So the point. So this game that we have to hook him up to electrodes. And then he's going to play this video game on the laptop. Yeah. And if we have extra time we'll pull somebody else too. So we'll see. We'll see how it goes. And his heart rate affects the game. Right. He's going to have to stand up. Yeah. How are we going to do this? Like how we. Because we'd have to move the computer. But before that you have to take your shirt off. We totally know what we're doing. We're just. Yeah. Totally. Do you still have. Okay. He's having a little problem wanting to take his shirt off. I think you guys need to give him some encouragement. Take your shirt off. Take your shirt off. His heart rate right now is probably through the roof. Yeah. His palms are sweaty. Well, I guess I should totally explain how the game works. Well, Joe's helping our lovely assistant. I don't know if he's going to stand or something. You guys have to figure that out. If I take my shirt off, will you take your shirt off? Will that make it easier? It doesn't matter how much you cheer. I will not be taking my shirt off. Okay. What was that? All right. So he's going to stand here and remove your clothing, sir. I love being a DEF CON speaker. Did you guys know that? This is perfect because you're so nervous. It'll be awesome. Yeah. It'll totally be awesome. While they're arranging this, I guess I'll quickly explain how this one works. For the people who were around last year for this might take a little while, so I'll stall. Oh, it's right here. Okay. Um, for the people around last year, I actually made a. A version of bio Tetris and I was like, oh, super simple, right? The faster, you know, the more your heart rate goes up, the faster the pieces will go. Can I even remove this? That'd be, oh, sweet. I can go great. Now you can go see me. So the problem was, I don't know if a lot of people know if you've attended a lot of my speeches, you know, I actually have an anxiety disorder that is not treatable by chemicals because people are always like, how the hell did you get into this? Oh, it's in my purse. So anyway, so what happened with. Um, the Tetris, uh, problem is I was playing the game because I don't do this gut thing for you guys. I do it for me first, right? Uh, cause I'm actually trying to cure myself because the doctors aren't able to do it. So I'm just gonna keep building devices until I find something that works. That's just the way it is. I, I totally, I've been quoted as the person who wants to go down in history for killing Prozac. And I truly do believe that. So, um, so the bio Tetris thing had a flaw, which was the fact that the pieces would go faster. And you. Didn't. Have a chance to recover, which your computer kind of, I don't know, my computer went flying across the room on a regular basis. So when I did this one, I decided instead, what we would do is that if you got too stressed out, that we would pause, that we would pause it's in here. I swear. What's that thing doing in there? My DS. Thank you, Nintendo. I love you. Okay. There we go. Um, that we would pause it instead. Um, uh, when someone got, uh, two, I want some. People got too stressed. So, um, so basically a lot of people say, well, what's the point of this? Um, well, the point of this is I want to give kids with ADD other options. A lot of people don't realize that you can't really, um, that it's not a natural state of relaxation. People are always surprised when I tell them that mice can't relax. It's impossible. It's something that you need for, um, you need a lot of, well, that's why we have the cortex for us. So not a lot of people when you're just like, just relax. Some people totally, do you want to start with this one or do you just want to go right to the game? I guess we'll go right to the game. He needs to be hooked up first. Um, all right. Here we go. I totally know what I'm doing for this. Yeah. Stickers are here. All right. Um, okay. Neon rain is going to put on the stickers. I'm putting on the stickers. We should have another volunteer. Uh, okay. Wait. I guess I'll have to go on that tangent in a little bit. Okay. Um, uh, that's perfect. Um, you don't have your shirt on. Do you know how hard it is to take your shirt off on stage? Look at that. There's already blue markings on it. Is that where we put the electrodes? Oh my God. It looks like he has a birthmark that you totally could put a lecture on. Who would have thought that would have happened? Only at that's amazing. It's totally amazing. It's destiny. All right. So the two. Two electrodes, the, the one down here in his arm is the, uh, the body, just the reference. And that can pretty much go anywhere, um, away from this area. Ideally down on the leg, almost in like the groin area or down inner thigh. But, uh, we couldn't get him to take his, we couldn't get him to take his pants off. So the arm will do. And then there's just, um, sometimes depending on, on the person, you get a better signal. If you have both electrodes up here, kind of right above the pectoral muscle. But we were messing around with AJ and experimenting to see what worked best for the demo. And it's, uh, down here somewhere. So this should work. And yeah, see, we totally fooled you guys. Well, we may pull someone else up. The problem is that electrode placement. So, um, and he'll totally tell you how much he hates us. Like, cause I had to move the lectures out and I'm like rip. And he's just like, I hope something bad happens to you. And it's his first DEF CON. So he's been a very good sport. Okay. Yeah. All right. So he is hooked up and he's still breathing. All right. So there's the first program that we're running is like a test program. It shows heart rate and that's beautiful. Yay. And that is, are you ticklish? What if we like tickle you? Does your heart rate. I guess so. Um, oh yeah. Can, can the, uh, audio guy turn up the sound coming from the laptop, please? We don't want to miss the amazing, um, beeps and boops from this turn on. Yeah. So the upper left, do you, Desiree, do you want to explain the, what we're seeing? Okay. You can tell, uh, if it's a normal heart rate generally. Um, uh, people with depression have lower heart rates and people, oh, there we go. Love the little Joe grand symbols. Oh, your heart rate's still too. Are we, can we go yet? And the game stops. And the game stops when you're too stressed. So let's all sing him some lullabies. Calm, calm, blue ocean. Check that out. Oh, there we go. As you can see proof of concept. It works. If you're ever on stage and you need to learn how to calm down, this is your game. Oh, come on. You guys gotta love that. Do you not love that? Give him a little round of applause. Yeah. Yeah. Yeah. Yeah. Yeah. So now we can rip the electrodes off of him. Do we, do, do we want to get it? I guess we have, we have a few more minutes for one more demo. Do we want a real volunteer from the audience possibly? She'll pick. No, I'm not picking. Oh. You have to pick. You have to pick. Who took their pulse earlier? Who actually took their pulse? Who's not lying about it? What was one of those people who took their pulse? 60? He took, he actually has a digit. Okay. If he had a number, okay. All right. He either actually took his pulse or made up a good number. He did nicely done. Yay! Everyone give a hand to AJ. So since I've never met this other person before who should really get to introduce himself, I'm not really sure where the electrodes need to be on. Oh, thank God you don't have a lot of hair. He can put them on himself. So we're going to give it a shot. It may be, it will be a little more fiddly and therefore you understand why we had a stooge originally. So is anyone else annoyed about that beeping? Is it just me? Okay. All right. So we'll figure this out. Are you doing this? Okay. Yay! So, yeah. So you put one on the body and two on the chest. Depending on different people, you get different types of signals. So. It might be a little high. Yeah. You want to. Yeah, totally. It's like at the hospital. There we go. My great labeling. So we're going to give it a shot. Now we're going to attach you. Yeah, totally. The best thing to do too is make sure you always mark which one's your body. And then you totally have to check it with a multimeter and stuff. And it's a lot of pain. So I just put a little tape on it so I always know. All right. So we're going to have to see if this works. Okay. Always make sure your electrodes are on firmly. Because if not. So if this works on the first try, I'm going to be amazed. But, you know, you always have to show demos that don't work. Right? You know, just because we lucked out. Someone who's very beloved to me, when I said I was worried about my demo, totally told me, like, demos don't work at DEF CON. Forget about it. It's not going to happen. That's why we had a plant in the audience. Yeah, so we had to have a plant. If it doesn't work, you'll be able to see what it looks like when it doesn't work. Yeah, it just doesn't work. Okay. There's a lot of static going on. And here's a fine example of when it doesn't work. Thank you. So as you can see, these are variables that there's no way that it's somebody's heart. It's the placement of the electrodes that are doing it. As you can tell because the hardware worked. So this one probably has to be more over there. So definitely. And you can see that the signal changes where the electrode is. So we'll have to restart it. Actually, that's way better. Yeah, but the problem is it takes a certain amount of samples to figure out what your limit is in order to play. Right? Oh, and just so you know, there's two programs. The original program I was running, you can get them online. You can get them at DEF CON. So basically you just grab it. It's a module. You know, you want to play Pac-Man? Throw it in Pac-Man. You want to throw it in any open source game, you can totally do it. It should be easy peasy. If not, you have my sincere apologies ahead of time. Oh, that looks like a heart, right? He's half dead. There we go. So in case those of you who don't get the inside joke, those little G's are actually Joe Grand's symbol. So that's the whole thing. It was her idea. Yeah, it was all my idea. Ta-da! Yay! What time do we end? We're almost done? Yeah, so that's it. Thank you guys. Thank you very much for our lovely audience member for helping us as well. Cool. Thank you. Oh, my name's Tim. Thanks, Tim! Thanks for coming. I'll have a whole new speech next year, hopefully. We'll see. I'm trying to do a do-it-yourself sleep clinic, so we'll see whether or not I pull it off. If not, it'll be the year after. So we'll see everybody. Bye, guys. Thanks for coming. I truly, truly appreciate it.