Camera Module with Raspberry Pi4

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so what you see here in the video is we have a Raspberry Pi standard camera module version 1.3 this one and then we have a Raspberry Pi 4 ok and then we have a little type-c USB cable which will be used in order to power up the Raspberry Pi 4 so basically we will be learning first how we can connect a Raspberry Pi camera module with a Raspberry Pi for properly ok so if you look at Raspberry Pi camera module then you might realize that it is very sensitive to electrostatic discharge so when you buy a Raspberry Pi 4 camera module then you have to make sure that you use it gently take a proper care for electrostatic charges right so once you take care of that part then when you take out this camera module from the standard packaging boxes what you will see is there is a little CMOS camera sensor right and the the interesting part to look for us in terms of connectivity is it's flat ribbon cable okay so this is the flat ribbon cable that we will going to use in order to connect to must be PI 4 right so this is how the CSI cable will look like right so if we look carefully then one end of the CSI cable will look into the blue color and the other end of the flat ribbon cable is into the silvered notches right so when it comes to connecting this camera module using this flat ribbon cable to Raspberry Pi then we have to look for zip 15 CSI connector and this is the one zip connector I'm just talking about right so by default let me just show you a little bit properly so by default this is a 15 connector is pushed down right so we have to take the 2 end gently and stretch it of what and you see it creates a little cavity where you can plug in this flat ribbon cable right and the way it's going to fit into this CSI connector something like this we can take this camera module and make sure the the blue label blue color part will be toward the 3.5 audio jack okay and plug in that way so that it can fit properly into CSI connector okay once it is properly fitted take the other end other hand and press the connector okay okay and it's not properly fitting so make sure they touch and in the end it will look like this so this end will be the silver colored strip and the other end toward this audio jack will be the blue flat cable right blue color flat ribbon cable okay that's how you're going to connect to the Raspberry Pi 4 and now because sometimes it is possible that you connect this flat ribbon cables other way around that means in opposite so make sure you do camera connections when your Raspberry Pi is powered off so make sure you are not connected to the power cable so that you will stay away from the damage once you make sure the connection is proper between your camera module and Raspberry Pi finally then you will go and connect your power cable means the type-c USB cable and you see in the end we powered up the Raspberry Pi for this is how we will going to connect Raspberry Pi camera module with Raspberry Pi for using CSI connector and flat ribbon cable so the first thing before we do anything with the Raspberry Pi if we make sure that we have up-to-date our operating systems so sudo apt-get update this will going to install the latest kernel on Raspberry Pi for that we are using I always like to keep my Raspberry Pi up-to-date especially the kernel then sudo apt-get upgrade so this will install the latest kernel that we have okay and it says now it is up to date and then the very very important thing when we are using Raspberry Pi camera module is we have to enable the camera interface on Raspberry Pi now to enable the camera interface we have to run a command sudo Rus my config so this command will give us the Advanced Options so there we have to scroll down and select interfacing options and there is like the camera use up and down arrow key and hit enter select the camera and it asked us would you like to would you like the camera interface to be enabled and yes we want to enable so just hit enter and then it says the camera interface is enabled and then say okay so hit enter and then use a tab button and on a laptop and then select the finish ok till the finish get selected and then hit enter and this is how we will going to select this is how we've been going to enable the camera interface on average paipai for the next step is to apply the changes we have made sudo reboot reboot as the command to restart the Raspberry Pi so that the changes that we have made will be applied ok so let me close this everything ok and then I have just as bitwise ssh client ok and it might take a couple of seconds to reconnect the Raspberry Pi I hope it will come up quickly and ok it says except for this session and you will see the black screen will pop up ok it doesn't come so just click on new terminal console it will give us the new terminal console and then new SFTP window we need it later so just open it up and go to the black screen I would like to run a clear command now to capture the image using Raspberry Pi camera module we have to use a command rush by still so basically the way you use this camera module is basically to access this camera over raspberry pi is by using a command and Russ by still is one of the command to access the camera modules on Raspberry Pi so we will write a Russ by still and then - all to output we want to capture the image so I would give it a name like let's say Oh mesh it's my name dot jpg and hit enter and this basically will capture the image using my russ by camera Raspberry Pi camera connected to Raspberry Pi and make sure that I'm running this command in my home directory so I run LS command to list the directories and files and you see Oh mesh dot jpg file is is created right so this is the image that we have captured now to see this image I want to take you to the SFTP terminal and you see here in SFTP in the lab right side there is a recipe pie so I can refresh and you see this Oh mesh not jpg file I can move it to my desktop on my laptop in the left side of SFTP terminal and you see right now all mesh not jpg and you see here the image this one image that game so I will double click and open the file and you can see this is me recording the video and this is how we will going to capture the image right so let me close this go back to the raspberry pi terminal and now this is how you capture the image now when it comes to capture the video then you have to use a command R Us bye wait for video - OH - output what we want to output is the video right so I would going to say my video dot h.264 so dot h.264 is the AVC that with advanced video coding that is you know type of the video that you will going to record out of this Raspberry Pi camera module right so that's the extension make sure it's a AVC that is what it's means like advanced video coding right codec or coding or something like that so hit enter and it takes maybe a couple of seconds and it will take five second of video I guess so just one LS kamat and you see where is my video so this is my video dot H dot 264 now to watch the video I have to do the same thing I have to go back to my SFTP terminal refresh my remote files on Raspberry Pi and here if I scroll down you see here is my video dot h.264 so I can just drag and drop it to my laptop means the next up basically and you see here is the fine right so once the transfer is completed I can minimize this and if I try to open this in the Windows Media Player it won't work ok so I rather close this to watch the video that you have recorded you have to right-click on a file and open with a power media player so you don't need to install this it comes installed by default on Windows machine and you can see the video right it's my video recording this this video right so let me run once again the quality is not good not bad I'm using a Raspberry Pi camera version 1.3 and this is expected so I hope you will find this video educational and entertaining maybe in the next video or something we're going to make little more advanced and we'll see us into the next lesson bye bye for now
Info
Channel: BINARYUPDATES
Views: 153,948
Rating: undefined out of 5
Keywords: Camera Module with Raspberry Pi4, Raspberry Pi, Camera Module, Interface Camera Raspberry Pi
Id: 0hrF8Wq8SSQ
Channel Id: undefined
Length: 10min 49sec (649 seconds)
Published: Tue Nov 19 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.