Dual Gender Pin Headers for OpenSCAD

A handy parametric OpenSCAD library for creating male pin headers or female pin headers for your mockups. Note: Due to the use of "triangles" rather than "faces", this file requires OpenSCAD 2014.03 or newer.

3D printer parts and enhancements

Creative Commons Attribution Share Alike

Commercial use is allowed, you must attribute the creator, you may remix this work and the remixed work should be made available under this license.

Learn more or download attribution tags


This is an OpenSCAD library that allows you to create male or female pin headers of varying specifications. To use:

include <..pin_headers.scad>;
then go nuts with it

pin_header(); calls the module, your options are:

  • "height" - This sets the total length of the pin. Only really useful for male pin headers. Default is 12mm.

  • "upper" - This sets the length of the pin above the stopper for male pin headers, or sets the height of the plastic shroud for female pin headers. Default is 7mm.

  • "lower" - This sets the length of pin below the plastic shroud. This is only useful for female pin headers. Default 3mm.

  • "rows" - This sets the number of rows, i.e. how long the header is. Default is 3.

  • "cols" - This sets the number of columns, i.e. how wide the header is. Default is 2.

  • "male" - This sets whether you produce male or female pin headers. Using a value of 1, or omitting the variable at all, gives you a male header. Using any other value gives you a female header. Default is 1.



Issues are used to track todos, bugs or requests. To get started, you could create an issue.


Mini 563744 10100112692934589 336294072 nBeavertank published this design ago