Skip to main content

3D Printer Webcam Setup Guide

Compatibility

All USB webcams are compatible with our software. At least 480p is required for SpaghettiVision failure detection to work reliably.

If you're using a Raspberry Pi, you may connect a Raspberry Pi Camera Module instead of a USB webcam.

Info

You need at least 2GB of RAM on your Raspberry Pi to run a webcam reliably. If you're using a Raspberry Pi 3B or 3B+, webcams are not recommended as it will cause issues sending gcode.

How to Connect a Webcam to your Pi or Hub

It's pretty easy! Just turn off your Pi or Wireless Hub, plug in your camera, and then turn the Pi / Hub back on.

Optimize your Setup for SpaghettiVision Failure Detection

Camera Focus

Most USB webcams will have auto-focus enabled by default, so you don't need to do anything special. If your webcam requires manual focusing (e.g. Raspberry Pi Cam) then make sure you have the focus set correctly.

Camera Angle

  • Your print bed should be straight, centered, and close to the bottom of the frame.

  • The best angle for your webcam is a side-on view of your printer:

    1. On the left side of your printer, pointing right
    2. On the right side of your printer, pointing left
  • You can also have the webcam directly in front of your printer, but it might get in the way of parts that get auto-ejected (if you're using auto-ejection)

  • Avoid top-down views, crooked, upside down, or otherwise strange angles.

  • If you put two printers in view of the same webcam, spaghetti on one printer may unintentionally trigger a pause on another printer, so watch out!

Environment

Make sure there are no loose wires visible, or complex patterns in frame of your webcam, otherwise they might be detected as spaghetti!

Keep the area around your printer clean (no loose strings of filament, discarded skirts, etc.)

Lighting

Your printer should be well lit for SpaghettiVision to work reliably.

You may want to invest in LED strips to go across the top beam of your printer's frame for even and consistent lighting, but even pointing a desk lamp at your printer should be sufficient.

Night Vision

SpaghettiVision can work with infrared camera, but the results won't be as good as with a well-lit setup. If you're printing overnight, an overnight lighting setup is ideal. To improve performance with night vision, increase the sensitivity of SpaghettiVision.