Reader small image

You're reading from  Getting Started with Raspberry Pi Zero

Product typeBook
Published inMar 2016
Reading LevelIntermediate
Publisher
ISBN-139781786469465
Edition1st Edition
Languages
Right arrow
Author (1)
Richard Grimmett
Richard Grimmett
author image
Richard Grimmett

Dr. Richard Grimmett has been fascinated by computers and electronics from his very first programming project, which used Fortran on punch cards. He has bachelor's and master's degrees in electrical engineering and a PhD in leadership studies. He also has 26 years of experience in the radar and telecommunications industries, and even has one of the original brick phones. He now teaches computer science and electrical engineering at Brigham Young University, Idaho, where his office is filled with his many robotics projects.
Read more about Richard Grimmett

Right arrow

Installing a USB camera on Raspberry Pi Zero


Having vision capability is essential to your rock, paper, or scissors robot. Fortunately, adding hardware and software for vision is both easy and inexpensive.

Connecting a USB camera is very easy. Just plug it into the USB slot. To make sure your device is connected, type lsusb. You should be able to see this:

The following screen shows a creative webcam located at Bus 001 Device 004: ID 041e:4095. To make sure that the system sees this as a video device, type ls /dev/v* and you should see something similar to the following screenshot:

The /dev/video0 is the webcam device. Now that your device is connected, let's actually see if you can capture the images and video.

Note

While many USB web cameras will work, in order to ensure this, you may want to purchase a webcam from a major webcam manufacturer like Logitech.

There are several tools that can allow you to access the webcam, but a simple program with video controls is called guvcview. To install...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Getting Started with Raspberry Pi Zero
Published in: Mar 2016Publisher: ISBN-13: 9781786469465

Author (1)

author image
Richard Grimmett

Dr. Richard Grimmett has been fascinated by computers and electronics from his very first programming project, which used Fortran on punch cards. He has bachelor's and master's degrees in electrical engineering and a PhD in leadership studies. He also has 26 years of experience in the radar and telecommunications industries, and even has one of the original brick phones. He now teaches computer science and electrical engineering at Brigham Young University, Idaho, where his office is filled with his many robotics projects.
Read more about Richard Grimmett