Raspberry Pi Webcam Server

Raspberry Pi Webcam Server

Raspberry Pi Webcam Server

Work Cited

Parts needed:

  • Raspberry Pi
  • Webcam
  • Low profile usb wifi
  • Keyboard
  • Micro SD Card

Software needed:

  • Debian “Wheezy” Raspbian|| Download Here!
  • Putty || Download here!
  • Motion || Read the Wiki here!

Setting up Raspiberry Pi with Internet and SSH

  1. Download win32disk imager.
  2. Download the latest raspbian os image.
  3. Open 32disk imager and select the location of raspbian then write to the SD card.
  4. Insert the sd card into the raspberry pi and boot without the wifi adapter.
  5. Set keyboard standards to English(US)
  6. Change the password for root type: “sudo passwd:(insert your password here)”
  7. Logout type: “logout”
  8. Log into root use the password you just set.
  9. Set up the wifi interface by using this command and instructions: nano /etc/network/interfaces
    auto lo
    iface lo inet loopback
    iface eth0 inet dhcp
    allow-hotplug wlan0
    iface wlan0 inet dhcp
    wpa-ssid “Your SSID GOES Here”
    wpa-psk “Your Password Goes Here”

    This screen shot is what it should look like (the blue is covering my SSID and password for security reasons).

  10. Restart your Raspberry pi and log back into root (hint: shutdown -r now or reboot)
  11. Now test if the pi is connected to your router write: ping google.com -c5
  12. If you are connected update your apt-get program: apt-get update
  13. Install SSH : apt-get install ssh
  14. Tell SSH to start at bootup: update-rc.d ssh defaults
  15. Restart again
  16. Find your internal ip address: /sbin/ifconfig
  17. The address for your pi will be located under the red highlight in this picture.
  18. SSH from your PC into the Raspberry Pi using Putty.
  19. Unplug the keyboard (you don’t need it, the command line will be accessed remotely) and plug the Web Cam into the, now open, USB Slot.

This allows the Raspberry Pi to be accessed remotely through Secured Shell (SSH). There are many different ways to program this webserver, and some require a self powered USB Hub to power all the peripherals connected to the rasberry pi. Rememeber the rasperry pi is a low power device so devices using more than 100mA must be connected to a self powered hub. However the webcam I used (the Logitech QuickCam Deluxe for Notebooks) is a lower powered camera that works fine off the power the raspberry pi provides.

Installing Webcam Software and Server setup

  1. tell apt-get to download and install motion: apg-get intall motion
  2. Ensure that the raspberry pi recognizes the webcam: lsusb
  3. Now configure Motion. nano /etc/default/motion
  4. Change the value “start_motion_daemon=no” to “yes” then exit
  5. Start motion: sudo service motion start
  6. Navigate to you raspberry pi’s IP with port 8081(put the IP in the URL bar it should look like ###.###.###.###:8081) in a web browser and you should see your feed
  7. The raspberry pi is only boardcasting in your LAN so let configure it for the internet. Log into your routers port settings and forward port 80(port 80 is used by HTTP) to 8081 at your raspberry pi’s ip.
  8. As seen Here:
  9. You are done! Now you should be broadcasting outside your LAN!

Here is my working Webcam Server!

This is only a screenshot. I’m not going to publish my private IP address for security reasons. Please be careful who you share your private information with online.

valid XHTML 1.0 Strict

Valid CSS!

Scroll to top