 We're walking we're walking you do your poopies. Oh it turned on we have light We can see We have light For those of you who are new I have a dog. She's big German Shepherd and big dogs make big poop Now you might be wondering why I'm talking about poop It's because something you have to deal with a lot when you have a dog and when you have a dog You got to take them out all the time because they need to be taken out all the time So you sometimes you got to go at one in the morning Sometimes you got to go at five in the morning times where there's not a lot of light And you want to avoid stepping and poop So what you do is you take out your phone you turn on your flash and you scan the floor for landmines if you know What I mean, but that gets quite inconvenient. You're not you don't always have your phone on you It's not always charged. There's a bunch of reasons why your phone doesn't work for that So you get a standard alone light Now you take your stand alone light you go outside you turn it on you aim it at the area You go do pick up the business put it out and you forget the light outside and you come back in the morning And it's been ruined from the weather or that's you know the batteries screwed up or something's wrong with it So I made something for myself that would fix all those issues because I'm too responsible to own a flashlight Now most of my videos I've been showing you guys somewhat of the progress of how I built things and in this video I'm not going to show you the progress at all I'm just going to explain to you how it works because we built the whole thing on Stream now I'm probably live on twitch right now, so you should go check out my twitch link in this case This looks like a pipe bomb It might be you never know FBI. Please don't open up before building it on the stream We planned out the features that we need to have the main ones were the first thing is it would have to decide if It was day or nighttime if it was daytime We never need the light to turn on because we have daylight So we use a photo resistor sensor for that all it does is check the light and then you depending on the light It changes the amount of electricity that flows through the sensor So if you put in a hundred units of electricity and you're getting back 50 then it's 50% dark Let's say that that's a weird number by putting it But it acts as a resistor and using that value you can figure out how strong the light is So we actually have a number set for that that I figured out on my own and then after I could show you Going between that number up and down what happens after checking if it's a day or night What happens is it's going to check the override switch and for that I just made a switch with a really long extension cable Ideally if I hang this up in a tree or in a spot where I can't really reach all the time I would hang this switch down and I would be able to manually turn it on or manually turn it off And it would ignore everything else. It doesn't matter if it's day or night It doesn't matter if it sees something or not It would just turn on because I told it to put this switch The last step after that is to check for motion and if you actually looked at the pipe bomb when I was holding up earlier You see this this is a PIR sensor. This is what you used to detect motion Inside the white lens of the PIR sensor There's a sensor and there's two sides to it and both of these sides look for heat radiation And when there's a difference in this too and it transfers over and it sees that some kind of Radiation differential between the two and it's moving around and all that it actually figures out But there has to be motion in the shot and it declares that and lets you know and it returns like a value of like It's a one and set a zero when a warm body like a human passes by it first intercepts on one half of the PIR sensor Which causes a positive differential change between the two when the warm body leaves the sensing area the reverse happens So what happens is like it says It's two sensors sees a warm body goes to the other sensor and then leaves the shot And it saw that something just crossed because the heat radiation just went from this one to this one and left It's kind of like those thermal cameras that they use in movies and military stuff and honestly I don't even know why they use it I guess to check how many people are in a room without having to go in the room when it comes to the actual hardware on the device It's pretty simple. We got the PIR sensor a couple LEDs tucked in there You can't really see them But these are all status LEDs like are we daylight are we nighttime are we ready to check for motion? Are we being overridden? Is the battery charge just a bunch of status lights there? That's not really important. Then we got a bunch of cables We got a relay tucked under this tape and then we got an Arduino exposed here. You can see it right here Then I got the USB cable connected now because I'm just playing with it on with you guys And then under there we got a module that we added on stream Which lets us plug in wall power into this so we can leave this out for ever if we wanted to or we can Unplug it and now we'll run off the battery which couldn't run for like a couple hours So ideally you would set this up in a spot plug it into the wall power leave it there Use it for let's say a week and then you decide I want to try this other spot You just unplug it hang it up in other spot And now you got two three days worth of battery on that and then you can always return it to its home station or whatever But it allows me to forget the light outside and not have to pay for it the next day When I go outside and there's no light and I stop and poop to show you how it actually works right now It's on as you can see that tiny little white light right here It's telling us that it's daytime. It's too bright in the room So I'm gonna go behind the camera here, and I'm going to just lower the LED a bit and At one point and now it's switched to green green notifies us that it's ready to detect for motion. So if I actually Swipe my hand in front It'll turn on it works. That's all you got to do now We went from a white light on the top to a green light Notifying us that it's ready to detect for motion and as you can see it's turning on if I swipe my hand in front of it It turns on Now we got a wait for it to turn off. So I have to step out of the motion range Let me take you through it one more time green light. We're good to go. It's not too dark It's not too bright if I go here and just Change to a brighter window on my computer turned it on by accident give it a sec Now we're in white mode. It should stay in white mode because it is definitely too bright in the room right now to detect for motion but if I take my mouse here and I go and Dark again give it a sec green swipe It's on it works magical If you find a big interest in building these things and you want to know more about the electronics But you're afraid it might be complicated the code might be complicated in that stuff. Please don't be We got a couple videos coming out this week explaining and showing you guys how to build things from absolute scratch Like I'll take you through the code which I hate doing because it's nerd shit Then I'm gonna show you how I 3d printed a case and I can actually show you right here One of the current in-progress projects This is going to be an alarm clock But we'll have buttons on top and you'll press the buttons and set your time and do a whole bunch of that stuff And then tuck the electronics all in there So look forward to that stuff again if you want to see me build these things live just hit up twitch TV Slash my name. I'm not gonna say it. You can just copy paste it from my YouTube channel. Thanks for being here. See you tomorrow