50an6xy06r6n / hotswap_pcb_generator

OpenSCAD script for generating 3D-printable hotswap keyboard PCBs.
GNU General Public License v3.0
432 stars 35 forks source link

Switch key RGB light hole #4

Open AndyChiu opened 3 years ago

AndyChiu commented 3 years ago

Hi, is possible add RGB light hole? now have diodes on the way if have light hole, maybe can add LED RGB strip light easy!

50an6xy06r6n commented 3 years ago

do you mean holes for the LED wires, or just a through hole for the light to go through. Either way it will be tricky because the diode is in the way for the MX socket. I'll think about it, but since this is primarily intended for prototyping it doesn't seem like a critical feature.

AndyChiu commented 3 years ago

Hi, just a through hole for the light to go through, i hope it will be used for a long time. If can added backplane, and add config standoff can pass through the PCB, and allow lock screw with the backplane, just like the sandwich structure, it will be used for a long time.

AndyChiu commented 3 years ago

image Hi, i try modify code to add LED cutout

            // Diode cathode cutout
            translate([3*grid,2.4*grid,0])
                cylinder(h=pcb_thickness+1,r=.7,center=true);

            // Diode Channel
            translate([0,2.4*grid,pcb_thickness/2])
                cube([6*grid,1,2],center=true);
            translate([.3*grid-.5,2.4*grid,pcb_thickness/2])
                cube([4*grid,2,3],center=true);

            // Add LED cutout
            translate([0,-4*grid,pcb_thickness/2])
                cube([5,4,10],center=true);

the Diode is more easy to install

image

renatosuero commented 2 years ago

Hi, I'm new here, how is the led and the connection at the wire/diode?

AndyChiu commented 2 years ago

Hi, I'm still think about how to connect , but i think use the LED strip is be a easy way image

slabua commented 2 years ago

@AndyChiu Hi, do you have the individual stl for the mx switch with the led hole? I seem I can't find it in your fork, and not quite sure about how to generate it. Also, does it fit SK6812-3228? Thank you.

slabua commented 2 years ago

@AndyChiu I think I have figured it out. Please enable issues on your fork :)

AndyChiu commented 2 years ago

hi, i was upload same stl file, and update my .scad, have fun! :)