Raspberry Pi MotionEyeOS Network Camera

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] welcome to another video from explaining computers comm this time I'm going to add a camera to a Raspberry Pi before installing some software called motion iOS to turn it into a motion controlled surveillance system and if you think that this sounds very exciting it is so let's go and get started right in this video I'm going to be using a Raspberry Pi camera and a Raspberry Pi 3 which as you can see I've got mounted on a little bald now I'm using a Raspberry Pi 3 but I should point out you can use any version of the Raspberry Pi for what I'm doing here at least any version with a camera connector that means any Raspberry Pi levers on the very first Raspberry Pi 0 but if you want to follow precisely what I'm doing you'll need 2 Raspberry Pi with both Ethernet and Wi-Fi on it which means a grassley pi/3 or as we price we model b+ now the rest probably camera in case you're not aware of it is a module that's been made available for some time that the Raspberry Pi which is now version 2.1 this cost about $30 or 24 pounds and as you might be able to see I bought this from a PI Moroni or it came with an adjustable mount inside so let's open this thing up but before we do just to point out that cameras are very static sensitive and therefore I am actually wearing here a a static wristband which is connected through to a very large metal object off-camera so anyway let's get inside we are I think getting best at the bottom of this thing as far as I can make out we just do that and oh is it exciting hello sir instructions must be something else come on come on come on oh yes anti-static bag or there's the mount look which will the I'm sure lock it in a second and inside here we've got there the camera which is a handle very carefully because of static but they let's get the thing out and there we are there we have via the Raspberry Pi camera and as you can see it's a tiny little thing the board itself is only about 20 millimeters square and it's connected to this ribbon cable to to the connector end here which will connect on to the raspberry PI's camera connector and because it's so sensitive it'll it's a very tricky device to work with I think it's a very good idea to have a mount so I'll bring in here this is a little mounted case of all the parts from a primer rolling which I'm sure is a simple thing so we'll open all this up either magic of filmmaking and here we are we've got a couple of bits of a perspective oh it's nuts and bolts to make a little mount for the the PI camera so I'm going to put all that together and here we are you can see that cameras now held securely in place if we look around the back you see the circuit boards just bolted in for little nuts and bolts and the whole thing is held down with two little blobs of blue tag to hold on to my baseboard and each other said earlier this is a pretty decent camera this is an 8 megapixel camera it'll record it for sweeter 80 by 2 for 64 stills a little called video where to 1080p at 30 frames a second 720p at 60 frames a second or 480p at 90 frames a second so the only thing I left to do now is need to take the ribbon cable here and connect it into the connector on the PI to do that we need to lift this piece of plastic out of the way and then just to take the cable you'll notice the cable has got its a connector facing us here so facing away from the Ethernet connector they had dropped down there that locks in place by just pushing that down and then the cable is now securely connected onto the PI and so if I just nip in here and very carefully remove the little cover piece from the front of the camera the little lens cover come off your little swine there we are the camera is now fully exposed to be used and so if I now connect up the pie at in the usual cables we can test if our camera works right with everything connected up after I booted into raspbian on the grass peopIe I should say you don't have to boot into raspbian do what I'm about to do now if you want to set up motion iOS but it's a good idea I think to check things are working so if you want to get the pipe camera working in raspbian what you need to do is first of all go into preferences and look at a PI configuration and check what the PI's camera is enabled under interfaces it is enabled here if it wasn't you'd have to click enabled and then reboot the PI but it's ok for me here and we can access the camera in a simple way using a command called R as pi still Raspberry Pi still as you can see here this is the syntax it tells it to take a picture to hear the home PI directory pictures directory tests JPEG so we just press Enter we will hopefully see all yes the camera can see something you can see cameras and monitors it can see sync itself is just giving us a preview and my Nuttall have finished and if we look back to the directory where it's taken the picture test your Pug is there we open that presumably there we are there's our picture now you might have noticed cuz you're probably highly observant today that that picture would actually upside down which is not terribly good but a fortunately we can fix that in software so if we just go to a another command which is that one there which is the same command but here I'm putting in the tags to give it a vertical flip and a horizontal flip before it takes the picture so effectively I don't turn it through 180 degrees if we run that oh yes it looks much better the right way up doesn't it and things seem to be working ok and it'll take the picture and there we are if we look back at obviously override for a previous file and hopefully this will now be a bit better and the picture doesn't look brilliant probably because the objects you can see are very close to the camera it's a fixed focus camera but you can focus the lens to be a distance you want by twisting a thing on the front of it I'm not bothered to do that for this test but clearly the thing is working so anyway we prove that camera works ok with the Raspberry Pi it's now time to get the motion iOS software and install it on an SD card you right here I am on the github page for motion i OS which is their Linux distribution we're going to use in the rest of this video and as you can see motion iOS is a video surveillance system for single board computers which has been very kindly created and supplied for us to use by a guy called Kalin christen if you want to know a bit more about it you can look in the wiki and there's all sorts of information tells you about what I've just basically told you and you can make a donation if you want for using this a pretty amazing software anyway right now I'm going to just get on with the download so will go to releases and you'll see in releases it's available with lots of different singable computers banana Paizo droids etc but I want the version for the Raspberry Pi 3 which is a version down here so I'll click on that and we'll save that to my appropriate download directory and with the download complete I'm going to flick across to ECHA which were already got running so we will select the image in Eicher we want to know it is there and it's already set up to write to our SD card which I put into this machine so I'll click on flash and it'll write mr. v SD card to be used on the Raspberry Pi yes we knows we want to do it don't you get annoyed by windows and it's messages so much of the time and there we are it's complete windows is getting confused again no we do not want to reformat the discard just to written the image to we're all finished now and so we can output that to a Raspberry Pi and run up motion iOS right I've now put the microSD card containing motion iOS into our Raspberry Pi which as you can see is now hooked up just to power and Ethernet to function as a headless device which will access across the network so we'll turn it on and we'll go across to a Windows PC which we'll use to access it and the first thing we need to do is to find out its IP address and we could do that looking in the control panel for our router but I'm going to use a piece of a software called angry IP scanner which I've used on this channel before and of course I'll give you a link for this and indeed for etching which I just used in the video description so I'm going to scan between about 192 168 1 0 1 & 2 1 6 8 1 say about say 30 that's probably where it's local address it's going to be if we scan my network we also see that a yes it's sitting on a 101 6 8 1 6 and if I flick across to a web browser I've anticipated that address if I put it in there we are you're see we can now access a motion iOS across the network and in fact you can lock it with no credentials whatsoever we just press login and if I do that yes we can see the camera it's upside-down still we can fix that later but the thing is fully working I can put my hand in there yes things things are clearly operating there are some controls over here but not not many because we're logged in without any a big serious credentials so I'm going to go and log in as administrator which is admin and there's no password an admin when you first set the system up I could advise you to set the administrator password and if we do that we get the same view but we've got loads and loads of settings and indeed if we go down to advanced settings we've got even more settings I'll apply that and this is really a fantastic piece of software it is very intuitive to use for accessing a camera or indeed multiple cameras across a network here we plug the Raspberry Pi Zone camera into a Raspberry Pi you can plug in USB webcam Stearn to a Raspberry Pi and normally they do work in this software you can have multiple cameras if you really want but the only camera find is absolutely guaranteed to work as a Raspberry Pi camera but most USB cameras with a bit of messing around sometimes will work in motion iOS anyway let's have a look at some of the settings here not least I think we need to sort out that video device itself the camera has changed its resolution to say a 1280 by 720 let's rotate it 180 degrees and that's made me take its framerate up to about 25 frames a second let's apply that and there we are and I'm having in my hand in and yes that's now giving us a pretty good vision isn't it you can see my hand doing all sorts of lot very exciting things of course we are streaming from a Raspberry Pi 3 remember which only has 100 megabit Ethernet so we've got a bit of a constrained bandwidth on that connection but the great thing about this software it doesn't just allow you to access a camera across the network it allows you to trigger recording from that camera using motion so we go down here we've got motion detection which you'll see is activated by default and you can set all sorts of things inside here about how it decides motion has happened how much of a frame has changed etc let's just check I'll up a little bit actually it's a reusable amount of change in a frame to make a motion detection and then once that's set up we can also turn on motion detection for movies and still images so let's turn it off the still images capture mode motion-triggered will do that and it will also go and apply that why not always remember to apply settings or they won't work and will also turn it on for movies there we are will capture movies based on motion and will capture movement of say either no seven seconds long it could be anything that you want but for testing seven seconds is fine and I should point out you can store your files either on the pie itself or you can store them across the network on so and that's Drive or something it's got lots and lots of really good options here and as you can see you can tell it to keep movies for a certain length of time to save on storage space etc but that's now what setup so in theory just be sitting on one network and if I now go and cause some motion which hopefully has triggered things on the camera and that hopefully will record to what we say about it seven seconds we said and you'll see if you click on a camera you'll see it comes up with various options you could for screen it if you want to but you can also see it's pictures or it's um movies so if we click on that there are some pictures recorded per lead my hand triggered multiple picture recordings and we can actually view these pictures we can download these pictures it really is a very easy-to-use system have we got the video recorded hopefully we have it is it true that yes it triggered lots of it but maybe set a bit too sensitive then but there we are thus various movies recorded so that's again try that and play that back not very exciting that one obviously we called it after my hand came in but in keep let's try the first one to see what that one looks like yes that's the end of my my hand you get the principle we're recording movies onto the device and then accessing later on using the browser it really is a very very good system but I really do like motion i/os now of course at the moment we are tied to a wired Ethernet bleep but you can use this thing across a wireless network so I'm going to think a little bit about that we go to a network and wireless network we'll turn that on and I can put in here therefore matter the name of my network and my wireless key I'm not going to show you what those are I'm going to put those in now and I would point out if you want to use motion iOS on say a Raspberry Pi 0 which doesn't have these neck connector that is possible because you can put in a configuration of father details of your network I'll give you a link in the video description for doing that as well anyway I'm not going to put my details in for the wireless network I will then the closest thing down properly using shut down and we'll come back and we'll have an entirely wireless motion I set up guess what I'm now back again and I'd not only set this thing up for Wi-Fi but a few changes to the configuration of the board you can see this is lost eeeh isn't that leave because of course it's connected by Wi-Fi but it's also got its power coming from a USB power bank which I've connected in this is a thing of two thousand one hundred millionth unit probably gives a couple of hours of power and if we flick across to Ocean RS you can see this thing is live because we can get some fascinating shots of the the table and things it actually clearly works I've taken off motion capture while this is going on what another do I think he's trying to take this outside to see if we can get some better images on the cameras so I'll just go and do that and ER there we honor cameras now transmitting from the garden so it's if we go back in and turn back on the motion detection okay that hopefully will will work and the wellman do now you can probably get hungry go outside and see if I can actually trigger this thing to take some images so let's see if we can get that to work see you in a second and again I brought the camera back inside as you can see it's looking exciting things on the table but hopefully we've got some films in here and yet all we have look so we can hope here that has worked and that was the one film wasn't that's the one we want there we are look kinder well that's me walking around outside III assumed to come would have a very narrow field of view it clearly doesn't I should have worked that one out I didn't have to squat down so you can see my face never mind but clearly clearly that worked didn't it and that's another one presumably and I've also yes you can see me walking away so if you wanted to to surveil people you could use this system and if you presumably if we are download that we can get to thing onto our PC and there we are and yes it'll play back in there in Windows the quality isn't bad it was set to a 720p wasn't it this is this is not bad at all is it raspberry pie camera recorded wirelessly using err using motion iOS I'm very impressed with this I've said it before I'll say again I really like motion I OS the Raspberry Pi camera is a fantastic peripheral but opens up all kinds of maker possibilities and indeed in a future video I'll be adding a Raspberry Pi camera to the front of this my Raspberry Pi zero controlled Devastator robot but now that's it for another video who have enjoyed what you see no please post title like button if you haven't subscribed please subscribe and I hope to talk to you again very soon [Music] you
Info
Channel: ExplainingComputers
Views: 395,813
Rating: undefined out of 5
Keywords: Raspberry Pi camera], Raspberry Pi motionEye, Raspberry Pi motionEyeOS, motionEye, motionEyeOS, demo, installation, Etcher, Angry IP Scanner, Raspberry Pi 3, motion detection, camera, SBC camera, SBC motion detection camera, Raspberry Pi motion detection camera, Raspberry Pi network camera, Raspberry Pi wireless camera, Raspberry Pi
Id: 8YUM7jio6dk
Channel Id: undefined
Length: 16min 46sec (1006 seconds)
Published: Sun Jul 15 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.