 All right Just to make sure you guys are in the right speech This is brain games make your own biofeedback video game on 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 I want to know if I actually ponied up the hardware Hi guys, it's right here Um 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 So but I actually have the hardware this year apparently if you put a Static sensitive stickers on things they have a tendency not to open them so two kudos to that So I guess we'll get started um the problem is I only have a 50 minute slot And so we have to cover like 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 like go up to DT and be like hey give her more time So Unfortunately, we're going to probably go way too fast So 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 like, you know deep and like, you know Serious very very serious, and I'm like I'm not serious So just on the off case that anybody takes the 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 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 technology a 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 neural hacking 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 Isn't I've been around forever isn't that like you know eight 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 it's 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 or 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 have normal measurements and involuntary Function did anybody else board of this is just me okay, so basically if we don't want to be 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 device are used to measure different types of things in your body Unfortunately, I have 50 minutes So I can't cover there are 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 deaf on so how does biofeedback work? That's a very good question Scientists are 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 coined Biofeedback actually goes back a very long time But the term biofeedback didn't come around to the 60s And I'm sure you guys anyone who's interested in the brain probably heard of the hip time where you know 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 and patients and because 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 going to 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 I've 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 and that 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 You know, we have no control over So I've probably gone so fast. I'm so nervous as usual So heart rate and heart rate variability So 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 So but here comes the part of the speech where you're all gonna humor me and we're gonna take our pulses But I'm actually going somewhere with this. I promise. I'm not just doing this to make you guys like Wonder, you know, I'm not gonna 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 gonna have a nice relaxing moment And what I want you to do is try to feel, you know, your heart rate and when it's you want, you know A permanent pulsing that you're following it. So I'm gonna 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 balls. Come on See Joe's doing it. Oh, you guys are no fun. Come on. It's fun. Yeah, totally Yeah, totally. Thank you for the people are you marrying me? You are the newer hackers 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 You would have felt something called respiratory sign is 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 so so 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 gonna 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 is a tool that helps conditions brought on are made worse by stress bright light There are many types of biofeedback Biofeedback is not a magic bullet and heart rate and heart rate variability are two different things The first being the video heart itself and the other being the time in between beads Wow, this can be looks so great on video Hi, everybody. It's not me. It's light. I'm not shy honestly So this comes apart that Joe Grant is actually gonna come and explain to you the electronics of what we did this We're actually using heart rate instead of heart rate variability I just put it together like that and was gonna change it up the last minute but ran at a time So everybody Joe Gran All right, so Yeah, what we have is some electronics to that we're gonna hook up to somebody and demonstrate this game that Neon Rain's been working on for quite a while So I'm just gonna 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 some other code than you can One of the yeah, there's some some cool things with with stress related changes in your body and biofeedback and everything in the heart rate And the heart rate variability is just one But I don't know how many of you have actually like given a talk or had to do a presentation Your hands get sweaty you're like someone cuts you off and you're driving and you're like shit You know your palms get sweaty your heart rate goes up And that's the type of stuff that we're measuring to sort of change to see your physiological state and the change in your state So this is you know one example of that Sorry All right, so a little bit of electronics in a nutshell because we're gonna go into the details of what the hardware actually is When you want to build this you're gonna want to know how to solder You're gonna 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 like go to fries and get some stuff you can put it together in the hard-racking 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 Yeah So yeah, the first thing soldering if you if you want to solder is one way to do it to put it to put together a board Like the one neon rain has been working on or I put together another version that I'll explain later So you can solder and put 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 like see an entire diatribe that I made about soldering So reading schematics is another thing you're gonna 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 the schematic for those who don't know is basically an electronic road map 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 examples 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 neon rain. Oh, we got a 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 like basic assembly manual for electronics just download that From the make store and it's sort of cool. It has like 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 is 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 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 circuit She 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 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 an electron of electronic measurement tools It provides you with all sorts of capabilities measurement functionality for voltage resistance capacitance, etc 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 We're on an EKG and Neonurain's gonna show you that So and still scopes good and what I did when I built the second circuit for her 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 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 Neonurain'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 you can build something for maybe around ten bucks And I have a bill of materials most of the parts you can get a radio shack There's a few parts some of it the the amplifiers you I don't think you can get a 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 a Amplifier type of circuit like this So that's a good place to start to 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 You might actually be able to use that kit with her game Yeah, we can either 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 when neon rain was like you want to do this talk with me I need more hardware. 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 Let's see what else you have 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 to the same day and Get it very fast Of course, if you do that your total cost is going to end up being thirty nine dollars instead of nine dollars But you'll have the parts. This is the schematic. I ripped it right from Jason site So thank you Jason if you're here but what you have is You have two 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 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 a 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 of that's all the system needs plugged into the sound port of your computer and then neon rain stuff takes over So pretty just simple Amplifier circuit and I think I just said all of this 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 LM 324s instead for a better performance if you want but the pinout is different than the LF 353 We're using the LF 353 here. So if you do 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 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 on 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 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 You know what to do with the mic man. This is awesome Although I'm gonna 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 a floating head For the whole 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 gonna ask. So, um, 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 gonna ask so I Just happen to have this stuff lying around, you know, you never know you never know and you're gonna need it But if you do if you do decide to go the penny way um 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, um Right it says caution does Joe just pointed out caution US federal law Restricts the use of this device to sail 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 Um, 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 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 Yeah, 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. Um, 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 and asked me So 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 Um So for the last year they've had to deal with me and 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 when people come up to me and they always are like Oh, what you do is so amazing, but I can never do that Neurohacking 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 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? Yeah, 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 neural 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 some thing 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 neural 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 trans cranial a project, but Please only do stuff with that if you're quite knowledgeable and that makes me that Makes me a little nervous, but oh 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 than intelligent than anyone at this conference anyone in this room or especially anyone on this stage, so 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, you know 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 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 We 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 Onto the code after my whole like please come neuro hackers hack the planet kind of thing I could bring heck the planet a lot of people ask me why 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. Um, so Yeah, it wasn't in the library. So we actually use two modules as well and one of them is pie game I don't know if anyone does Python or use this pie game, but it's really kick-ass to you 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 pie media The reason we're using a pie media is the fact that pie game 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 onto problems because whenever you're making hardware, you're always gonna have some sort of problems Pie media hasn't 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 works, but not enough to be able to present it another one of the problems is that like I was saying the documentation or Pie media'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 weren't 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 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 have 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 So we can actually have a demo because you guys will told especially people from last year if I was like Oh, don't have time for the demo. Goodbye. See you next year. You guys are totally killing 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 um Also, you can also try to make things easier and harder, you know a 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 in a completely different direction for next year. So And goal tracking um, 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 I after I started playing with my Wii Fit I was totally like something like this in order to make it totally need school 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 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 they're drill ins 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 Oh Alright, here's how it's gonna work volunteer take their shirt off. How come it's all guys 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 different? 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 But you actually have to have an electrode here and electrode here So back in my hometown. We I 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 you would have seen this many boobies He would have totally like changed direction and would have been a neural hacker, so Alright 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 See look we're not even related You guys totally look the same So I take it you were volunteer old, so he's 18. He's 18. How many death cons has he been to? Yeah, first one and that means you probably would have had let's see I would have been 14 if you're really my son I had no idea Yeah, all right, so where's he gonna sit? So the point so this game that we have to hook him up to electrodes and then he's gonna 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. Um, and his heart rate affects the game, right? He's gonna have to stand up Like how we because we'd have to move the computer But before that you have to take your shirt. We totally know what we're doing. We're just Okay, he's having a little problem wanting to take his shirt off. I think you guys His heart rate right now is probably through the roof. Yeah Palms are sweaty. Oh, I guess I should totally explain how the game works So well Joe's helping our lovely assistant. I don't know if he's gonna stand or something You guys have to put 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 All right, so he's gonna stand here and remove your clothing sir I love being a Defconn speaker This is perfect because you're so nervous it'll be awesome. Yeah, I'll totally be awesome I'm arranging this. I guess I'll quickly explain how this one works for the people who are around last year for This might take a little while so I'll stall For the people around last year I actually made a version of bio Tetris and I was like oh super simple right the faster You know the moral your heart rate goes up the faster the pieces will go. Can I even remove this? I'll 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 I was like How the hell did you get into this? It's in my purse So anyway, so what happened with the the Tetris problem is I was playing the game because I don't do this good thing for you Guys I do it for me first right because 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 and history for killing Prozac and I truly do believe that so 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 My DS thank you, Nintendo. Okay, there we go That we would pause it instead When someone got to when some people got too stressed so So basically a lot of people say well, what's the point of this? 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 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 You need a lot of well, that's why we have the cortex for 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 won't go right to the game? I guess we'll go right to the game. He needs to be hooked up first. Um, All right, I totally know what I'm doing for this Here all right, okay, you know Ryan's gonna put on the stickers. I'm putting on the stickers. We should have another one Okay, wait, I guess I'll have to go in my tangent a little bit. Okay You don't have your shirt off You know how hard it is to take your shirt off on stage Give him some encouragement Look at that there's already blue markings on is that where we put the electrodes He has a birthmark that you totally could put electrodes I thought that would have been only at death. That's amazing. It's totally amazing. It's destiny All right, so the two electrodes the one down here in his arm is the the body ages the reference That can pretty much go anywhere away from this area Ideally down on the leg almost in like the groin area or down inner thigh, but we couldn't get him to take us 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 the pectora muscle But we were messing around with AJ and experimenting to see what worked best for the demo and it's down here Somewhere so this should work And yeah, so you totally fooled you guys Well, we may pull someone else up the problem is that electrode placement. So And he'll totally tell you how much he hates us like because I had to move the electrodes out 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 being a very good sport 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 to show his heart rate and that's beautiful Yeah And then is are you ticklish? What if we like tickle you does your heart rate? I? Guess so oh Yeah, can can the audio guy turn up the sound coming from the laptop, please We don't want to miss the amazing beeps and boops from this Turn on yeah, so the upper left you know it does right you want to explain the You can tell if it's a normal heart rate generally People with depression have lower heart rates and people. Oh, there we go. Love the little Joe Gran symbols Oh your heart rate still to you. Oh, we can we go yet? And the game stops because in the game stops when you're too stressed So let's all sing you some lullabies come on Check that out. Oh, there we go As you can see proof of concept it works if you're ever on stage you need to learn how to calm down. This is your game 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 No, I'm not picking. Oh you have to pick You have to pick who took their pulse earlier who actually took the pause. Who's not lying about those people took their pulse Okay, if you had a number okay Either actually took his pulse or Everyone you have a hand to AJ 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 so um. Oh, thank God. You don't have a lot of hair So So we're gonna 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 interesting? Okay? All right, so we'll figure this out. Um, you still are you doing this? Okay? Yay So basically this is um, how you do it at home after you build your hardware because I know you guys are all gonna run home 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 Yeah, you want to Yeah, totally it's like at the hospital there we go Right my great labeling. So we're gonna give it a shot. Yeah, totally And the best thing to do too is make sure you always mark which one's your body because when you get like this You're like which 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 gonna have to see if this works Okay, is that you always make sure your electrodes are on firmly? Because if not so if this works on the first try I'm gonna be amazed But you know, we 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 I totally told me like those don't work at DEF CON forget about it. It's not gonna happen So we had a plant yeah, so we had to have a plant so 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 what 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 So definitely and you can see that the signal changes where the electrode is so we'll have to restart it Actually, that's oh, it's do we got it 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? So oh and just you know, there's two programs the original program I was running you you can get them online you can get them at DEF CON so basically you just grab it It's a module just throw it in whatever else you want You know, you want to play Pac-Man throw it in Pac-Man you want to throw it in any like open source game You can totally do it. It's it should be easy peasy if not You have my sincere apologies ahead of time. So well, that looks like a heart, right? He's half dead there we go there we go and then this is this is a shoe So in case those of you who don't get the inside joke those little G's are actually Joe grand symbol So I so that's the whole thing. It was her idea. Yeah, it was my yeah, it was all my idea. So What time do we end we're almost done it? Yeah, so that's it. Thank you guys for thank you very much for our lovely Audience member for helping us as well. That's too high. Cool. Thank you. Oh My name's 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 will be the year after so Yeah, so we'll see everybody Bye guys, thanks for coming. I truly truly appreciate it