

This was the biggest problem for me as the webcam was hunting for focus all the time resulting in a near constant blurry image. Now your exposure is dialed in, it’s time to move onto the focus. Run the command below to set your exposure to a value of 600: v4l2-ctl -c exposure_absolute=600 You can open up the OctoPrint webcam stream while you’re doing this. You should play around with this number by adding or subtracting 100 at a time until you get a good quality image. A good starting value is probably around 600, but it varies with your specific set up. Once you have turned off auto exposure, it’s time to play around with the exposure value.

Results may vary on other setups.įirst of all, you’ll want to turn off auto exposure by running the following command on your OctoPrint Pi: v4l2-ctl -c exposure_auto=1 These commands were tested on a Raspberry Pi 3+ Model B with a Logitech C920 webcam. Luckily, it’s easy enough to manually configure these settings. I’ve got a fixed mount, and a consistent lighting set up in my printer’s enclosure so there’s no reason for the focus or exposure to be adjusted once it’s correct. However, in the case of mounting it up close on a 3D printer with a quickly moving subject, the auto focus and exposure really struggles. The Logitech C920 is a great webcam and can be had for as little as $100. I have a Logitech C920 – one of the highest regarded webcams available, and yet I was still getting poor results. I’ve also setup a webcam so that OctoPrint can stream the footage in real time, and also create awesome timelapses. OctoPrint is a great tool and something I strongly recommend to everyone. I have OctoPrint set up to help me manage my 3D printer, record timelapses and remotely monitor it.
