Do you need a better webcam, or a second or third webcam for live-streaming? I recently discovered how easy it is to build a webcam using the Raspberry Pi Zero and a Raspberry Pi camera. I'll take you through the steps like it's your first Pi project ever — because it was mine! Not only does it work great, it only costs $25.
This is an easy way to get started in the world of Raspberry Pi. But what does it have to do with Oracle developers, you ask? Well, it turns out Oracle engineers love Raspberry Pi for all sorts of hobby, enterprise and demonstration projects. In fact, the Raspberry Pi supercomputer (which I got to help assemble in the final stages) made worldwide news.
Oracle also offers Oracle Linux images for the Arm architecture, specifically for use with Raspberry Pi 4B, Raspberry Pi 3B and Raspberry Pi 3B+. Included in the development preview is Unbreakable Enterprise Kernel Release 6, based on the up-stream 5.4 kernel.
Raspberry Pi Zero or Raspberry Pi Zero W (wireless)
Raspberry Pi Zero camera cable
Micro SD card
Raspberry Pi camera of any resolution
USB micro to regular USB cable
Connect your camera of choice (in my case, I am using the lowest quality camera available, the version 1) using the cable that fits the Raspberry Pi Zero. Use your fingernails to gently pry the corners of the cable clamps loose so they very slightly wiggle. Install the cable with the shiny metallic connections facing the surface of the board. Use your fingernails to push down on the clamps on either side to secure the cable at each end.
Choose the latest image (I used v1.70) and download it.
Put your SD card in your computer’s card reader.
Open Raspberry Pi Imager. Choose “Custom” for the operating system and select the showmewebcam image you just downloaded (mine was called sdcard-raspberrypi0-v1.70.img). Choose your SD card and click “Write”.
When the card has been formatted, remove it and put it in your Raspberry Pi Zero.
Attach the USB cable to the port in the middle of the Raspberry Pi Zero, not the one closer to the end. Connect the USB cable to your computer.
In Zoom, choose PiWebCam in your video preferences; or, in or OSB, choose a new source by clicking the + and “Video Capture Device”, and choosing PiWebCam in the next screen. Presto, it works!
The showmewebcam code is Linux-based firmware for the Raspberry Pi Zero that boots very quickly, lets your Pi Zero gain power from the computer like any other dongle, and tells your computer that what you have attached to it is a camera, not another computer. When you have connected the PiCam, the LEDs on the board and the camera both light up briefly. When the camera is ready for action, the green LED on the board blinks 3 times rapidly (that’s a tweakable setting included in the image.)
The Show-me webcam works with Linux, Windows 10 and Mac operating systems, and various video streaming services including OBS, Zoom, Teams, Jitsi, Firefox and Chrome.
To change the camera settings, use the following shell commands in Terminal:
Discover the name of your specific camera by typing:
ls -l /dev/tty.*
Copy the number after /dev/ttyusbmodem (for example, screen /dev/tty.usbmodem141103).
Type the following (adding 115200 after the number you found in the name of your Pi Zero device): screen /dev/tty.usbmodem141103 115200
“Your webcam at your service!” appears. For piwebcam login, type root. For password, type root again.
Type this: /usr/bin/camera-ctl
A small menu that lets you adjust the parameters of your camera pops up. You can make permanent or temporary changes (permanent ones require writing to the camera.txt file on the SD card). Press S to save, and command Q to quit Terminal.
That’s it! I want to give credit to David Hunt for first popularizing this build. It has since been simplified, as evidenced in this tutorial, thanks to Hunt and the other contributors of the showmewebcam Linux firmware. Enjoy your new camera!