I dont know your yeah exactly you cant get into it now. What if i was a drone pilot – and i just set my controller down, do you think you can just fly my controller around? I see youre going with it, you absolutely could its a chad. I found this in your closet. Can you tell me what this is? What are you doing in my closet? Dont worry about it, but thats. My fingerprint reader yeah so were gon na slap. This on a drone controller and were just lets just go test it and see what happens: Music whats up guys, welcome to another hack, make mod episode, im, brandon and im chad. So you want to put this on a drone controller. So not just anyone can come pick it up and fly your drone bingo. You dont even fly drones like. Why did you oh hold up chad get in the car truce? Calling yeah hold up hold up? You love the idea. So, for those of you who dont know drew is the ceo of rotor riot, which is one of the most prominent drone channels in the world. Well come next week i got ta go. I got ta go im in the middle of the show. Im not gon na love, you all right chad, so he loves. The idea were going to go, see him next week me and christian wait im going to build this and then what youre going to take it down to florida and hang out yeah thats right yeah.

That sounds good, see ya. This is a drone controller. Has a couple of joysticks some switches, some buttons and typically a drone pilot is going to program one of these switches to arm and disarm. The drone in this case were setting this up for drew and he uses this switch right here to arm his drone and the arm position is down or away. We have to introduce the fingerprint reader into this setup, so that means the fingerprint reader is going to have to go in line somewhere between the switch and the brain of the controller sounds like kind of a simple task, but the more i started thinking about it. The more difficult i think, its going to be and heres. Why? Because this is a dji controller and everything dji does is complicated. The power button, for instance its not just a little hard switch, its whats called a soft switch, so it actually tells the microcontroller inside this to turn on the equipment. So i know when i get into this im, going to be cutting into a computer and im going to try to make modifications so that it can always be undone like i dont want to do anything permanent to this. How are we going to go about doing that? Well, theres, three aspects to this project. You got one, you got the hardware, so we got the fingerprint reader, which is pretty nice. It does a lot of the heavy lifting it can store fingerprint files in it and it can identify if the fingerprint is one of those files, but from there all the controlling and button pushes and stuff that you might have to automate after that.

Youll have to do with an arduino, its, not an actual arduino, its an esp8266, so its a it uses, arduino code, but im pretty sure, were gon na have to have some additional components, because im gon na have to figure out how to get power. Out of this to this system, because the arduino and the fingerprint reader are going to need three to five volts, but the part thats just a little bit more complicated is going to be the coding right now how it works. Is you have a switch up here on the right and when its down like that, thats armed when its in the middle, its disarmed and when its up its disarmed? So you have a three position: switch that does those functions, so i want to be able to tap into that switch and be able to adjust those functions without taking it away from the computer, because the computer still uses it for other functions in here after we Do that were gon na have a mess of wires so were gon na have to contain them somehow well print a little case to make things nice and tidy and then well stick that on the back, and that should be everything. So we got to pull this apart, find out whats going on with the switch and then well go from there. Music Applause, Music Applause, Music, look! Look at all the progress im making! Oh my goodness! You see it yeah its all over the desk.

Okay, so heres whats, going on in the three position switch you have ground, is connected to the center and theres your switch. And then you have one side and you have the other, and these are both held high with whats called a pull up, resistor, so theres. Actually, a voltage here and a voltage here and what happens is when the ground touches this side. It grounds out that switch. It senses that, and it knows that the switch is contacting that side when the ground is not touching either. It knows that there is no connection and then, when its touching this one over here, we know it senses the ground, and it knows that its at that position. What were going to do is cut out the switch. The switch is then going to connect to the arduino, and then the arduino is going to connect to the motherboard and the radio and whats going to happen is youre going to try to arm it and arduino is going to say, hey. Are you who i think you are if the answer is yes, its going to say, im going to go ahead and pass along that message? The switch just sent me Music. Do you remember my number one concern? I was just telling you about this morning. Power pulling out power, yes, well, it turns out, it cannot handle any type of high current. I think its just a sensing voltage that 3.2 activates. This sets the voltage and then the output directly from the battery will power that, through this being regulated down to 3.

2 volts, so i have to add another little component into this mix, but it shouldnt be too bad. When i got into this, there is a ribbon cable that goes from the battery connector into the controller. When i got my multimeter out and tested everything, i found that the first three wires are ground wires. The next two are 3.3 volt and the next three are 7.4 volt approximately, and i was kind of excited. I was like oh 3.3 volts that will work for the fingerprint scanner and the arduino thats perfect. So the first thing that i tried was tying into that three volt system and just coming over here and powering this and it didnt work. When i tried to power up the controller, it would not come on what i realized was its not a supply. Power is more essentially a signal power and i was really excited because the 3.3 volt would turn on and off with the switch. The 7.4 volt would not turn on and off with the switch. It was just constant. Those three lines were always hot, so then the next thing i did was. I took a 5 volt regulator which its a very simple device. It just has an input and an output, and you run your higher voltage into it and then itll output 5 volts. When i hooked this up, it did work. Currently i dont you can see. I dont have my ground wire hooked up, but i just connected it to the chassis ground over here.

If i decided i wanted to run it like this, then i would have to add a separate power switch externally that turned on and off the fingerprint scanner. I was not happy with that, so i thought. Maybe what we could do is use this 3.3 volts to trigger a mosfet and then the mosfet could connect the ground and connect the entire system. But before i thought of the mosfet, i actually tried a few different things. I tried an opto isolator, a relay a transistor. The problem with any of these devices is, there are loads, so they all draw current and that 3.3 volt wire would not allow that if there was any current draw on that it, the the whole controller would not boot up. I realized that i remembered that a mosfet is just sensing voltage potential, its not actually drawing any current from the gate. The n channel mosfet allowed me to take the 3.3 volt switched output here into the gate. The gate controls this and then once this senses three volts what it does is it essentially bridges these two and then, when its active, it will connect that ground to the other ground, and this then becomes a complete system. So at this point everything was powered up and now what we need to do is write the code – hi im christian, so im here to write some code to make this thing work. But first i need a breadboard with all the little pieces on it.

So i can actually plug something in and see whats going on, okay, so this three position switch here has two wires coming out of it, and each wire can either be high or low so that results in four possible states for this to be in, but because Of the way the switch works we actually can only ever have three of them thats one on the other on or both off theyre. Never both going to be on. So we dont have to worry about that. So we know from the notes that drew sent us that, if the switch is to the right, which is position, three itll reset the scanner all together, no matter what, if its in the middle, this fingerprint scanner will just run its default code as normal checking against. Whatever it can and then when it finds a good match, itll stop itself from running so then all we need to check for is if it is running or not, because if its not running, that means it already found a good match, otherwise, itd be checking constantly. So if its not running and the switch is over here, its armed Music, now the fingerprint scanner comes with two scripts already the default script. It comes with only accounts for the scanner itself, but weve added a bunch of wires. Here, weve added the three position: switch weve added, two leds and a buzzer. We define all of these at the beginning of the script, to the pin outs that we set and then really all i changed about.

The script itself was adding certain if statements to the main loop to check for certain things. So an if statement is just if this thing is true, then run this code, otherwise skip it and the main loop is get fingerprint id, which runs this whole series of actions based on the fingerprint that you put in. I added a couple lines here and there for the leds and the buzzer so youll see right here, it says, did not find a match and then immediately after it makes a low tone on the buzzer and lights up the red led. The reason i knew to put these two lines of code right here was because there were already a serial print line that says, did not find a match. So i assume this is the point in the code when it finds a wrong match same thing, for if you get a correct match, i found the print found id with a confidence which i know is what it says when you scan the correct fingerprint, and i Added a higher pitched buzz and lit the green led, while also making sure that if the red led was already on you turn it off that way, only one of the two leds is lit at any given time we ended up going with two leds, but you Could put whatever you want at this point in the code to signal whether you got it right or wrong? If you wanted, you could put a whole display here and have it display text at this point in time.

I added this line here which says: scan loop, equals false thats me setting a boolean variable that i created basically boolean is it can be either true or false. It cant be anything else, because we want the drone to arm and stay armed. When you get the switch in the right position, i decided to stop the loop as soon as it finds a correct finger, and so youll see scan loop again up here being set to true anytime. The switch is in the reset position, which means we automatically want to reset it to start scanning for fingerprints again, this way, youre not wasting, processing power by just searching for fingerprints and running through all the code, even when its not actually looking for anything Music Applause. Its all working, i cant, believe it so now you just need to get it off the breadboard and into the box Music, Music, yes, so cool! So now, if we put it in the middle position now its unlocked, so that shows you that its unlocked and you have visual status, saying that its unlocked, if i want to arm it, look at that lets, go im pretty excited. This is one of the coolest projects. Weve done look how cool it looks we got it all in this, safe container were headed to florida, Music. The fingerprint activated remote control got your finger here, youre already holding it like this pop your finger on that i would not have thought of this, but seeing it im like that is pretty clever because, like while youre holding the radiator, you can just be like.

We got a nice little 3d printed, housing that jet black. I, like the i like the pin here you got on there yeah oh yeah, emblem how many, why not come? That is really slick how you built a port into the radio that looks like it. Was there yes and it receives power from the radio, real okay, so theres no other battery in here nope. So i told you i used this switch for arming. Yes, you gave us very specific instructions, im very particular about my army. This is for my drone. I wanted to be unique to me so weve, basically hot wired, the switch and interrupted it so that, if you flip it to the arm, switch its not going to send a signal to your controller unless the fingerprint has been activated. But in order to do that were going to need your fingerprints, you cant just get on the laptop okay, so you didnt just download my fingerprints from like a police database. No, we couldnt find that youre youre right, yeah, youre clean. We are running two separate scripts at different times. We have one script for recording your fingerprints and another script for actually running the process that you want, which is locking your controller up. If you are not the right person, okay, so theres not like someone could even pick this up and just register their fingerprint youve got to load a custom script to do absolutely so once this is set up.

This really is mine, all right so thats plugged in. I, like the red light, were gon na load, the enroll script, which is the one that actually records your data. So now its going to say pick a number between 1 and 128 and it can store up to 128 fingerprints. So i think ill. Just do really. These three, because i feel like itd, be one of these three fingers. Okay, that i would hit on the radio so well start with number one. Okay well make that my pointer its gon na ask you to scan your finger. Okay, scan it up scanned now its gon na ask you to do it one more time to verify so just the same finger again, oh its kind of like on when you did touch id on the iphone it would like get different angles. Not quite so. You need it just needs to check if they match. Okay. Do they go yes, all right, so that match so that matches so that ones done yes now, if you wanted to be like extra thorough, you could do the same finger again at a different, different angles. Yeah, okay, okay, but for now lets go to the next finger. Okay! Do that one! So! First, we did this finger next number two, so that one, okay, so red and now go ahead, and do it one more time and there you go now – you can just keep doing this for as many fingers as you want.

I could i could even do it for my finger. No, no. This is for me only we got my fingers in there were unplugging this anyone else registered, although i guess we have to change it to the script right. Yes were gon na get rid of the enroll script, were gon na run the results script, which is the name of the one that actually runs when youre flying were just going to compile and upload that one all right so now now youre gon na need to Make sure its powered by the controller, so you need to turn your controller on okay, so when this control, when i turn the controller on yes, oh, this comes on. Okay, thats, really cool and so weve got little red and green lights here. Okay, so every time you scan no none for you, no sir ill like this. If this works for me, oh look at that how cool okay so then! Now when this is green, and i flip the switch to armed thatll send my arm signal, you get the little beep and then, if i want to lock someone out again third position. Okay, so that resets it yes, your position, resets all right, so im gon na bind this radio to my flippy floppy machine, yes and lets get out and see how well this actually works. Absolutely lets do it, so i want to test this thing out, so we should be all set up now.

If i put this down into my arm position. Okay, nothing actually happened there, but then, if i just go here – oh hey there, it is thats. So satisfying too, with the beep and everything okay, but then so now the middle position still green, oh its so cool yeah, okay. But if i go all the way up, click click. Oh, we turn red again lets go Music! All right! So can i perch it? Oh, are you big enough im gon na perch up top on top of this thing? Okay, i heard it. I heard it and i flipped it twice so were red again, uh huh, all right, so im just good. I can just leave this yeah. You set it down, no one can fly. You know i kind of want to fly. Your drone go for it. I can fly it. You knock yourself out. Oh i cant i cant get in drew nothing. I got nothing my quad! No. I hope this actually works. So if im just stuck on top of a light pole yeah that would suck that would be not a while that would that would be a bad time for you. We would just leave and go back home. Oh oh right in the middle oh hold on. I didnt do it again, uh. Oh, why arent you working? Oh, no, hey there! It is its the goggles. You just now take the goggles all right. The props are spinning now, okay, so i dont know if you want to reset your fingerprint, while youre uh perched somewhere yeah that because because it was acting up a little bit well, i guess lets see.

If i only did one click, then it shouldnt reset right. So i just do one click yeah and then now i should just be able to boom re arm. No problem: hey, hey yo, thats, pretty sick. Well, so what is okay, if all goes well? How quickly can we actually disarm it and retire and rearm it with a full fingerprint? Okay in the goggles disarm, go all the way down hit the thing. Oh, it takes a minute man, all right, yeah and you got to get your finger just right on it too. So so the ultimate test is, can you fully hard disarm it yeah and then re arm it with the fingerprint? The main thing is getting the fingerprint dead in the middle think you can do it, though. I mean im concerned that if i mess up then like what are you going to lose all right? Maybe that is a lot dont mess up. You got ice in the veins baby, all right, so disarm, reset arm position, re arm. Oh, that was clean, thats, pretty quick, okay, i think you can slide in the air and disarm it and re arm it. Oh man, i believe in you, okay, so if i dont reset it, we can dead duck it so lets see we go up high there we go disarmed. Oh three arms, oh saved it. Oh thats, the sweet wild, willy randall roll. So if i like, went up and started rolling and then disarmed were just saying: oh good, okay, so now what i would actually have to do, get some elevation.

Yeah yeah get some oh youre, going way up way. Uptown lots of time lots of time. Okay, im! Gon na point it down, so i can see all right. We are fully disarmed. Oh it! Oh, we got it. Lets go! Oh my god. I was genuinely worried for you. I couldnt tell the props didnt, stop spinning. You almost failed, like your finger was like twitching. It thought i was about to witness a splatter. I just wanted to drone parts all over the place. I was worried that was going to happen too, because it really wasnt feeling like. I was like, oh no, because your finger when i was recording all right im. So happy we did this with. You drew this collaboration. It was so much fun watching you disarm it re, armor and air. I didnt think you could do it. I was really nervous. I dont know why we went to a a parking lot. Were you joking? I was like i dont want to break my drone. It was a brand new freshman. What are you doing because youre a pro thats? What chad said we i didnt know we were getting into, but he said you were the best best pilot. He knew yeah. Maybe we can do a crossover another time and do another project with you. Yeah lets see what else you guys can come up with retinal scanning goggles or something oh yeah check out row to right and link the description, some of the best pilots in the world, its so much fun to watch.

I enjoy it a lot brandon thanks for having me on here. This is really fun. You guys did something really unique for me. I had a great time if you guys want to see more drone stuff definitely come on over check out. Rotor right were always having a good time. This was great brandon thanks again and if you guys enjoyed this video make sure you drop a like on it. Hit that subscribe button comment, something you guys would like to see us do next, maybe another collaboration with rhetoric. Im brandon, im dream and well catch you next time very cool check them out in the description, theyre, very, very cool, very cool guy.

https://www.youtube.com/watch?v=Y60LyhSrLJg