O'Reilly logo

Getting Started with Raspberry Pi Zero by Richard Grimmett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

Installing a USB camera on Raspberry Pi Zero

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required