Raspberry Pi Tutorial 11 - Camera Setup

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right if we're going to want to catch our cookie thief we're going to have to use our Raspberry Pi and take a picture of our cookie thief we're going to take a picture then we can submit it to the police right well if we're going to want to take a picture we're going to need a camera and we're going to have to get a camera setup on a Raspberry Pi so what I have here is a Raspberry Pi model 1 B+ this video will work for any type of Raspberry Pi as long as it has this camera port here on the PI and you can see this is the camera port with the tab and the traces along here I have a Wi-Fi dongle connected to my PI because I like to work on my PI headless Lea if you have a monitor mouse and keyboard you'll be able to follow along with all the videos in this tutorial mm-hmm you're also going to need the camera and what I have here is the infrared official Raspberry Pi camera and if you take a close look at the camera what you'll see on the back of the ribbon cable here is one side has a piece of blue plastic and the other has some traces on it well let's zoom in on our PI and what you'll see is that on the PI you have on the camera port you have traces on one side and nothing really on the other so as you can imagine the traces on the cable line up with the traces on the PI we have this tab here that you can lift up and you can pull it by the edges here and lift it up and if you do that it will open up you can take your take your camera and line up the traces with the traces on your board just slide that straight in doesn't go all the way down when it's in press down on the tab and it should go flush with the board and then you have your camera installed so there we go we pull on the cable and we can see that it's not going anywhere excellent so now I'm going to connect power to my PI and log into it through SSH after finishes booting up all right we can find our pi on our network by typing in into our terminal which I have set up here on the screen by typing in ping if you're on a if you're on a Mac ping and I call my PI play pi so ping play PI dot local and we see that it's on one 92168 178 so I'm going to connect to my PI all of this has been covered in earlier videos that you can find on YouTube that I've created I'm going to log in and what we're going to need to do is I type in sudo rasp I - config and if we do that we want to go to enable camera and this will enable the PI to work with the Raspberry Pi brand camera so if we go there you're going to want to enable it and then you're going to want to finish and then you will have to reboot your Raspberry Pi and wait for it to start up again and then we can test whether or not our Raspberry Pi is working so on your PI if you have connected through your HDMI cable just open up terminal and let's create a directory and this directory is going to be called let's create let's navigate to our desktop and on the desktop let's create a directory called cookie because this is our project to catch our cookie thief we navigate to that we can then type in a command that is rasp I still and we can specify some options and the option that we're going to specify here is our output so - oh and type in a name let's give our image something creative like image dot JPEG if we type that in what you'll see on your pie is that this red light will come on and that red light there is your LED dummy light that indicates that something is happening and if we take a look at what's inside of a raspberry pie sure enough we have our image here that we can view rass by still has a few different features if you type in help you you can check out like what all the different parameters are for this command but that's beyond the scope of what I want to do here another command you can use is rasp I vid so rasp I did and again you specify an output and this is for your movie if you want to take a video so we're going to create a video called movie and specify it as a dot h.264 and this is what the Raspberry Pi saves movies as now we can specify how long we want to film and in this case let's go for five thousand or five thousand milliseconds which is equal to five seconds and if we do that we see the dummy link comes on on our PI again we can wave our hand in front of it and it is done taking a movie now just to confirm if we set up our VNC server here so that we can actually see what's on the PI and we let that load up we can navigate to our cookie directory and if we load up our image we can see yes indeed it took a picture of my ceiling because camera is pointed straight up with my life that I have shining right now so proof of concept yes we can take a picture with the PI after setting up the camera camera in the next video I'll show you how to do picture taking but in a Python script see you then
Info
Channel: Alexander Baran-Harper
Views: 209,014
Rating: undefined out of 5
Keywords: Raspberry Pi (Computer), Software (Industry), Camera (Invention), Pictures, GNU/Linux (Operating System), Tutorial (Media Genre)
Id: xA9rzq5_GFM
Channel Id: undefined
Length: 5min 53sec (353 seconds)
Published: Sun Jun 07 2015
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.