Raspberry Pi and Web camera

  1. Web camera (Logitech C170). In some cases an USB powered hub should be used because the camera uses more power than the Pi.
  2. Update your Pi: 
    • sudo apt-get update
  3. Install Motion application. It will get the web cam output and will send it to the built in web server: 
    • sudo apt-get install motion
  4. Plug in the web cam (directly or via powered USB hub). List the usb devices to verify that the camera is installed:
  5. Configure the motion application by editing the config file:
    • sudo nano /etc/motion/motion.conf
    • deamon=on
    • webcam_localhost=off
    • webcam_port=8081 (default setting)
    • you could play with the other parameters too.
    • sudo nano /etc/default/motion
    • start_motion_deamon=yes
  6. Open your web browser and type the pi_ip_address:8081 and check your result



    Comments