This is among the first initiatives I did with my Raspberry Pi. I wished to see if I might make a totally wi-fi internet cam and set it to stream over the web. Below are the steps and objects I used.
All objects apart from the Raspberry Pi have been bought from ebay.com
Raspberry Pi Model B 512MB RAM
5000mAh Solar Powered External Battery Dual USB For iPad/Mobile Phone/Tablet PC
802.11n/g/b 150Mbps Mini USB WiFi Wireless Adapter Network LAN Card w/Antenna
Raspberry Pi Case Raspi Enclosure Box with GPIO Access and Logo (optional)
Logitech QuickCam for Notebooks Deluxe Laptop Webcam (Other web cams may work)
The very first thing you wish to do is get the Raspian Wheezy Image from right here. Once you put in it and boot up, you’ll come to a configuration display screen.
Go to Expand_Rootfs to permit the working system to make use of all the SD card.
Go to SSH and Enable it. This will will let you remotely shell into the OS to make configuration modifications and get updates.
Save modifications and reboot the Raspberry Pi.
Once booted up, you’ll want to obtain updates.
sudo apt-get replace
This can take someday to finish.
sudo apt-get improve
Type Y for sure and anticipate the updates to obtain and set up.
Next we wish to setup the WiFi adapter. Shutdown the RPi with “sudo shutdown now” and plug in your WiFi adapter.
When booted up login after which sort: sudo nano /and many others/community/interfaces
We wish to give the Raspberry Pi a static IP deal with in order that we are able to entry it remotely. Below is an instance of my configuration. Yours might fluctuate. I set the Ethernet port and the WiFi to the identical IP deal with in order that I can entry it from the identical IP even whether it is related by way of Ethernet or WiFi.
iface lo inet loopback
iface eth0 inet static
deal with 192.168.zero.85
iface wlan0 inet static
deal with 192.168.zero.85
Save your modifications utilizing Ctrl-O and shutdown the gadget.
Unplug the Ethernet cable.
You ought to see your static IP on the verbose display screen “My IP deal with is xxx.xxx.xxx.xxx”
Verify that you’re related to the web by typing: sudo ping -c three google.com
From this level on, I do the remainder of the setup by means of SSH and PuTTy on a Windows machine.
Log into your RPi by way of PuTTy utilizing the Pi’s static IP deal with.
Plug in your webcam.
Next we have to set up the “movement” service. This is a package deal that accommodates every little thing that you must stream your cam over the web and think about it from any browser.
sudo apt-get set up movement
Once the set up has accomplished we have to begin the service.
sudo providers movement begin
If your internet cam has a light-weight on it, you must see it mild up.
Now lets configure the movement software program.
sudo nano /and many others/movement/movement.conf
In right here there are a couple of primary modifications that that you must carry out:
Daemon = OFF to ON
webcam_localhost = ON to OFF
webcam_port = desired port quantity or 8088
control_port = desired port quantity or 8089
To be sure that the movement service will truly begin as a daemon we have to change one other configuration setting, so enter the next:
sudo nano /and many others/default/movement
Then change the worth “start_motion_daemon=no” to “sure”
sudo service movement restart
You can now open up a browser from one other pc on the identical community and go to: http://192.168.zero.85:8088 to view your internet cam.
You can remotely management the online cam settings by going to http://192.168.zero.85:8089.
Power off the RPi, hook up the battery pack and switch it on. You ought to now solely have the WiFi adapter and internet cam plugged into the usb ports. Try viewing the cam from an online browser and stroll round your own home and even exterior.
You might want to allow port forwarding on your own home broadband router to the Raspberry PI on port 8088, that may imply you may entry the online cam from anyplace on the planet. You may join with a service like www.dyndns.org.