OpenFlexure Microscope OpenSCAD docs

accessories/post_for_optical_table.scad

Fixtures for evaluating the xy range of motion of the OpenFlexure Microscope using a dial gauge.

Requires: Dial gauge with 25mm / 1" travel, mounting stem diameter 8mm 3.5 inch tall metal pedestal with M4 threaded hole in the top (eg Thorlabs RS3.5P4M) M3x25mm hex bolt, nut, and illumination thumbscrew from the microscope parts (One set for each axis to be measured simultaneously)

Clamping forks for 5 (or 6) pedestals (eg Thorlabs CF125C/M)

Use: To see the positioning of the parts in use, evaluate

posts_for_mounting_and_xy_travel_measurement(print=false);

(The main body to be tested is rendered in white, the metal pedestals are rendered in grey)

To build the 3D printed parts

posts_for_mounting_and_xy_travel_measurement(print=true);

The built parts include a 3.5 inch high post, it is best to use a metal post rather than the 3D printed one. The dial gauge is clamped using an M3x25 hex bolt and printed illumination thumbscrew from the Microscope parts.

The pedestals are clamped to an optical breadboard using clamping forks.

function inch()
[Source]
function inch() = 25.4;
function rise()
[Source]
function rise() = 1.5*inch();
module posts_for_mounting_and_xy_travel_measurement(print=true)
[Source]
module posts_for_mounting_and_xy_travel_measurement(print=true){
    hole_pos = base_mounting_holes(default_params());
    for (n = [0:len(hole_pos)-1]){
        hole = hole_pos[n];
        angles = [-30,30,110,-110];
        translate(hole){
            rotate_z(angles[n]){
                table_mount_pedestal(height = rise(), cut=true);
            }
        }
    }

    if (!print){
        translate_z(rise()){
            color("white"){
                xy_positioning_system(default_params());
                actuator_walls_and_z_casing(default_params(), z_axis=false);
            }
        }
    }

    if (print){
        dial_gauge_mount_and_pedestal_stl();
    }
    else {
        reflect_x(){
            dial_gauge_mount_and_pedestal(type="all");
        }
    }
}

Overall module to place parts for print or to view the positions in use

print:use print=false to show the placement in use

module table_mount_pedestal(height, cut=false)
[Source]
module table_mount_pedestal(height, cut=false){
    inch = inch();
    h = if_undefined_set_default(height, 1.5*inch);
    difference(){
        union(){
            // clamp flange
            cylinder(d=1.25*inch, h=0.19*inch, $fn=64);
            // main pedestal pillar
            cylinder(d=1.0*inch, h=h, $fn=64);
        }
        translate_z(h-9){
            m3_nut_trap_with_shaft(slot_angle=0, tilt=0, deep_shaft=3, chamfer_offset= 0.5*inch - 2);
        }
        if (cut){
            translate_z(h - 0.75*inch){
                translate_y(-(0.75*inch + 4.5)){
                    cylinder(d=1.5*inch, h=99, $fn=64);
                }
            }
        }
    }
}

A 1" diameter pedestal with clamping flange at the base and M3 nut trap at the top.

There is an optional cutout to allow for the microscope feet and stage legs which are very close to the mounting points on a microscope body

height:pedestal height in mm

cut:Boolean

module dial_gauge_mount_and_pedestal_stl()
[Source]
module dial_gauge_mount_and_pedestal_stl(){
    translate([0,10,inch()/2]){
        rotate_x(90){
            dial_gauge_mount_and_pedestal(type="gauge");
        }
    }
    translate_y(40){
        dial_gauge_mount_and_pedestal(type="pedestal");
    }
}

print positioning of the dial gauge mount and pedestal

module dial_gauge_mount_and_pedestal(type="all")
[Source]
module dial_gauge_mount_and_pedestal(type="all"){
    travel = 25;
    stem_d = 8;
    // dial gauge stem length is 20mm, but this is not a necessary parameter
    centre_to_end = 85;
    dial_d = 57;
    dial_edge_to_end = centre_to_end - dial_d / 2;
    dial_edge_to_mid = dial_edge_to_end - travel/2;

    inch = inch();
    leg_r = key_lookup("leg_r", default_params());
    sample_z = key_lookup("sample_z", default_params());
    pedestal_h = 3.5 * inch(); // a standard height post
    gauge_mount_h = rise() + sample_z - pedestal_h;
    if (type=="all"){
        rotate_z(135){
            translate_y(leg_r + dial_edge_to_mid - 15/2){
                color("grey"){
                    table_mount_pedestal(height=pedestal_h, cut=false);
                }
                translate_z(pedestal_h){
                    dial_gauge_mount(h=gauge_mount_h, stem_d=stem_d);
                }
            }
        }
    }
    if (type=="gauge"){
        dial_gauge_mount(h=gauge_mount_h, stem_d=stem_d);
    }
    if (type=="pedestal"){
        table_mount_pedestal(height=pedestal_h, cut=false);
    }
}

A mount for a dial gauge with 8mm stem diameter, with a mounting pedestal

A 3.5" high mounting pedestal to visualise use. A 3D printed pedestal is not stiff enough in use.

type:"all", "pedestal", "gauge"

module dial_gauge_mount(h=30, stem_d=10)
[Source]
module dial_gauge_mount(h=30, stem_d=10){
    block_h = h+7;
    block_x = stem_d + 3;
    block_y = 15;
    difference(){
        // move to the edge of the post
        translate_y(-(inch()-block_y)/2){
            difference(){
                translate_z(block_h / 2){
                    cube([block_x, block_y, block_h], center=true);
                }
                translate_z(h - 3){
                    rotate_x(90){
                        clearance = 0.1;
                        cylinder(d=stem_d+clearance, h=99, center=true, $fn=32);
                    }
                    translate_z(99/2){
                        cube([1,99,99], center=true);
                    }
                    translate_z(stem_d/2+3){
                        rotate_y(90){
                            cylinder(d=3.5, h=99, center=true, $fn=12);
                            w = actuator_nut_slot_size().x;
                            translate_z(4.5){
                                cylinder(d=w/sin(60), h=99, $fn=6);
                            }
                        }
                    }
                }
            }
        }
        // Short M4 countermore to mount to post
        intersection(){
            translate_z(2){
                scale([4/3, 4/3, 1]){
                    // make M4 counterbore
                    m3_cap_counterbore();
                }
            }
            cube(30, center=true);
        }
    }
    // Stiffen the base
    difference(){
        union(){
            cylinder(d=25, h=5, center=!true);
            difference(){
                cylinder(d=25, h=12, center=!true);
                cube([stem_d+1,99,99], center=true);
            }
        }
        translate_z(2){
            scale([4/3, 4/3, 1]){
                // make M4 counterbore
                m3_cap_counterbore();
            }
        }
    }
}

A mount for a dial gauge with 8mm stem diameter To fix on top of a metal pedestal using an M4 screw.

h:height to gauge centre

stem_d:dial gauge mounting stem diameter