EP#35: How to set up Several Raspberry Pi Cameras as webcams in a network + DHCP server on Windows

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi today I would like to talk about Raspberry Pi cameras how can you make your Raspberry Pi basically as a webcam and if you have several raspber Pi how can you connect all these together via Ethernet and try to use your laptop as the server in a way that you can see all the um like actions through the through your uh Raspberry p cameras in your laptop so we will go through I I try to introduce um basically what type of camera I have about basically they are chip uh cameras and uh I will uh introduce them to and we will see that um for what application you can use that and how we can set up your network and um basically what type of um communication protocol you can use to transfer data uh over your over your network and um you will see it in action how it actually um behaves if the quality is good enough as as a webcam um yeah we will go through these steps and I will tell you uh about that but um the first step is that buying a camera so basically if you want to not buy an expensive camera uh I can introduce you uh this this one uh which is basically has 160° uh white or field of view which is uh quite good or enough for for the application as the security camera and um you can install it directly uh uh on your raspberry pipe board and so um there is another another type of camera that you can use and it's actually cheaper uh it's this one which is around five or six Euro the other one was about €13 uh this one still you can at 30 frame per second you can record a video at 10 H and 1080p so the quality is not excellent but it's good enough basically so this is another one so I have about these two version of cameras and I would like to test them um to do that uh because as I said I have several uh I have B several cameras for example I will show you in this videos like for example this one um this is the wide angle which I have connected directly to um basically um the uh board and you have to be very careful guys uh because the orientation as you see uh is important so you have to when you insert it in the socket you have to put it correctly otherwise it won't uh function uh so and you see that you need to as well connect it to the Ethernet from the port uh and the cable to a switch so basically an unmanaged you need also an unmanaged switch we will get to that later to in order to link all these cameras together so this is uh one of one of the cameras the other one that I would like to show you is this one I have from another angle another Raspberry Pi or this one is the cheaper one so uh this is also connected inside this box to the raspberry P Board and um yeah we will also try to connect this one this one also has with yellow cables connected to the switch and last but not least this is another um camera that I have connected to my project it is also connected internally to the board and this rasp P Board is also connected via the ethernet cable to the switch all right so we have like three cameras three Rasberry Pi and for that we need basically uh a switch such a thing like an unmanaged switch and that is able up to 1 gabt it's a one gab switch it was also not so expensive around €30 and on Amazon I think you can also get it cheaper um so we need these kind um but there is a problem here because earlier I was using my Wi-Fi actually to connect like my Wi-Fi from the internet port behind the Wi-Fi connected to this uh switch that I showed you so um the problem was that it was playing and uh it was basically damaging my Wi-Fi because the Wi-Fi has a DHCP and DHCP is automatically gives uh IP addresses to this um Raspberry Pi or any object uh any device that uh is connected so um then I had a problem with my Wi-Fi so I decided to not use the Wi-Fi as a DCP server so what I did I I found a website and a very cool uh software that you can actually turn your laptop to a DHCP server I thought at the beginning that probably I need my my windows as well to be a server windows but it doesn't necessarily need it so you can use your normal uh windows and use this um software how we can get this software um you have to go to this website I show you uh so basically this is a website that you need to go and te library. hp.com and then you have to go and um sorry and this this is the website thep server for Windows and I think the last release is 2016 um you have to download it and uh then you you need to basically uh unzip the file in somewhere and like like this and then you have uh this um EXA file so for the EXA file you need to unzip and run this software all right then we have to go so we have to open this file the HTP V uh right click and run it as administrator then we have to click next select the the ethernet and then try HTTP and DNS 255 255 255 next 1901 one um and then next overwrite write any because I had already uh did overwrite so I have to do it again start finish all right um after activation um if you go to this uh address you can see that uh there are some designated IP addresses but this is really conflict but anyway we can we can now try to connect to these IP addresses of the uh of our Raspberry Pi for that I have I use a tool called VNC um real VNC viewer so for that you need as well to um download and install on your raspberry site so um I probably write this the command that is needed in the Linux um in in Raspberry Pi um how to activate and install that on your Raspberry Pi but supp that we have installed that under rasy we need just now uh go to the properties and uh give the address uh of the VNC server which is our RS reply and uh try to connect so I click okay and then try to connect and then I have to um tip the um password and then um I have I can see that I am now uh so connected to the rasb pi so it is very practical because I don't need directly to connect a screen or a keyboard so I can connect via VNC and in order that you activate your Raspberry Pi camera so you have to go uh to this pie and then was here rest Pi configuration yes so here um you need to go [Music] to LI or no no here yeah so uh for me it's German schan so you have to go and um to the camera and activate it and activate and press okay otherwise your camera won't function and this is something that you need to do for your camera and then click okay then um to run or to activate your webcam you need to install um an ID for your of course your python you have to install first on python on on your Raspberry Pi and for that I also write everything on my web blog how to activate the or install the python uh on raspan um and then you need to uh download or install an ID for python for example I have two uh guine and Sony python ID um so uh you need to create uh a python file and I open it with this ID Sony python IDE and when you open that so this is a file that you need to uh basically write in order your camera to be broadcasted um via HTTP uh server so import iio import Peak uh PPI camera import loging import socket server from 3 import condition and from HTTP import server um so this is uh the text that you need to download and write it in your python code I will put this code as well into my web blog and you can probably just copy and paste it and when this um in fact when you click run and just exit the VNC so I I I have already um I see I have not but uh try to stop once and exit and then try one more time to run run the code and so the code is again run and I close this so it was IP address with number six so when I go to the to my browser for example um Chrome browser and would like to basically see um the picture so I need uh to write this one so I will press one more time and so this is my hand so as you see the this is the IP address and this is the stream. m mjp J jpg so um this is the view that I get from my uh camera uh from this Direction behind me I have three camera this is the other one that I have set up and you see that this is my second camera and not least uh last but not least this is another angle that you see uh this is IP address number four that you see that I am actually um so I see myself from three angle and both of the cameras are basically connected so and you see there is not so strong uh delay I would say uh when three cameras are both connected to the network and I I can see um one thing that I would like to mention is that this camera that you see is exactly from um I guess this this one this type of camera so this is a like the cheaper version the cheapest version and um this one is the wide angle camera so this one is basically this camera so um you know that's for image detection and object detection when it has a wider view so it's easier to to to cover the uh the bigger area so this uh this this one and the last one which is this direction High um this one is basically also uh the um the cheap one this one so I would say that um it really depends on the illum illumination uh it really depends on the illumination and um yeah so it depends like what what's what I have three angle and uh all of them are simultaneously working fine so in this way you can connect three um camera uh on on your um Network and uh basically enjoy that um and if you have because this real VNC has this ability to connect um you can actually connect uh directly to your um uh Raspberry Pi and uh if you are not at home as well you can buy um account from this real bnv or a premium account and wherever you are uh when you have internet connection you can easily connect uh to your your uh Wii to your uh Raspberry Pi cameras and in this way you can add as many as possible cameras that you need without any limitation of course there are some limitation at the end uh it depends on the data rates but um that's actually a good question how what is the data data rate uh maybe I can I can see amount of data rate somewhere I remember there was a place that you can could actually see the network so I think network is four% um this is the CPU okay the theet um so um 52 .8 megabit per second and uh yeah so it's it's uh basically when we have like one gig uh uh capacity I guess this is not too much for three cameras that are actually sending or receiving so one gigabit is if the if the capacity of the network is 1 gabit per second and 52 megabit per second is not really high so it is doable and um yeah so I I hope that you guys enjoyed this episode it was about how to build your camera uh with Ras paper how to to connect it to the network how to give um IP addresses we don't need an extra um router which needs to have a DHCP capability you can just do it with the software that I introduce you and in this way um connect as many as camera camera that you need as I said 52 megabit per second for threee camera if the capacity is like let's say half 500 so at least you can uh I don't know 10 multiply 3 30 cameras uh with this method uh with this HTTP uh um so it is doable and you have plenty of options all right I hope that you enjoyed And subscribe please support me if you can like give me or buy me a coffee via the PayPal I would be really grateful and will that that gives me positive energy and um uh enough uh fund to buy extra components and test them and basically but uh please like subscribe and comment if what you think what should I do next and I would definitely try to do that all right thank you so much bye-bye
Info
Channel: Dynamic Machines Podcast
Views: 47
Rating: undefined out of 5
Keywords: raspberrypi, raspberrypicamera, dhcpserver, raspberrypidhcp, raspberrypiwebcam
Id: 8X6ivcdOcDs
Channel Id: undefined
Length: 12min 55sec (775 seconds)
Published: Sun Jul 07 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.