M0UNTAIN 0F C0DE

📹 OctoPrint Camera Mount

3D model OctoPrint

I don't print a lot of things which take many hours, I only have a small printer, but when I do, or if it's a risky print, then it's annoying to have to stop what you're doing to go and check on it. This is also a solved problem: add a camera. OctoPrint has supported a webcam feed since forever.

I already had a camera lying around which I wanted to use. I couldn't find an existing mount which worked for my camera/printer combo, so I sat down for a couple of hours and designed one in OpenSCAD. It took a number of attempts to a good design with the correct angle. This is what I ended up with:

The slot in the middle is for the ribbon cable to pass through to the Pi mounted behind.

The print bed is fully visible, at least when the print head is retracted. It's an IR camera, so the colours look off, but that doesn't bother me. It means I can check on it in the dark.

An Adafruit PCB ruler made for a great target to adjust the focus.

The Model


module printerSide() {
    difference() {
        cube([150, 2.15, 47+(26*2)], center=true);
        translate([0,0.01,0]) cube([80, 10, 46.5], center=true);
    }
}

%printerSide();

difference() {
    union() {
        cube([25, 2.15, 46.5], center=true);
        translate([0,-2.15,0]) cube([25, 2.15, 70], center=true);
        
        hull() {
            translate([0,-3.30+0.1,26]) cube([25,0.001,18], center=true);
            translate([9,-25,26.22]) rotate([0,0,25]) rotate([60,0,0]) cube([25,0.001,35], center=true);
        }
    }
    translate([0,0,-22]) rotate([10,0,0]) cube([17,3,60], center=true); // cable slot
}