openscad/README.org

57 lines
2 KiB
Org Mode
Raw Normal View History

2022-12-06 16:06:53 +00:00
#+title: OpenSCAD Models
#+options: toc:nil
My collection of 3D-printable models designed using [[https://openscad.org/][OpenSCAD]].
* [[file:project_box.scad][Project Box]]
A parametric box for electronics projects using perforated circuit boards. The
board is held above the bottom of the box by four corner supports, and snaps
into place to hold it snugly while allowing easy removal.
2022-12-07 18:21:14 +00:00
#+caption: Generating a project box for a 5x7cm board with front and back cutouts.
#+begin_src scad :file project-box.png :eval no-export :exports both
use <correl/project_box.scad>
$fn=50;
mode = "case"; // ["case", "lid", "all"]
box = [50, // Board width
70, // Board length
20]; // Project height
rotate([0,0,180])
project_box(box,
below=10,
mode=mode) {
cutout_front(box)
translate([10, 5, 0])
square([15,10]);
cutout_back(box)
translate([10, 5, 0])
circle(5);
}
#+end_src
#+RESULTS:
[[file:project-box.png]]
* [[file:ducky-shine-6-usbc.scad][Ducky Shine 6 USB-C Connector Housing]]
A replacement housing for the USB connector in a [[https://www.duckychannel.com.tw/en/Ducky-Shine6][Ducky Shine 6 keyboard]] that
secures the connector and its wiring within the keyboard's case. The keyboard
originally ships with a USB Micro-B connector suspended in a solid connector
with the same profile. This makes it impossible to re-use the existing housing,
so this one is modeled to fit the cable along with a compact JRC-B008 USB-C
breakout board and screw into place. The model is divided into top and bottom
pieces that can be glued together once the board is in place and soldered.
#+CAPTION: The full model, with top and bottom parts connected.
[[file:ducky-shine-6-usbc.png]]
#+CAPTION: A JRC-B008 USB-C breakout board
[[file:51diC44ScpL._AC_SX466_.jpg]]
#+CAPTION: The original USB Micro-B connector and housing.
[[file:PXL_20230317_205351346.jpg]]
#+CAPTION: The new housing with a USB-C connector, printed in green PLA+.
[[file:PXL_20230318_044352351.jpg]]