• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Arduino OpenSCAD mounting library (v2.0) 3D Printer File Image 1
Arduino OpenSCAD mounting library (v2.0) 3D Printer File Image 2
Arduino OpenSCAD mounting library (v2.0) 3D Printer File Image 3
Arduino OpenSCAD mounting library (v2.0) 3D Printer File Image 4
Arduino OpenSCAD mounting library (v2.0) 3D Printer File Thumbnail 1
Arduino OpenSCAD mounting library (v2.0) 3D Printer File Thumbnail 2
Arduino OpenSCAD mounting library (v2.0) 3D Printer File Thumbnail 3
Arduino OpenSCAD mounting library (v2.0) 3D Printer File Thumbnail 4

Arduino OpenSCAD mounting library (v2.0)

Kelly Egan avatarKelly Egan

November 27, 2019

printables-icon
DescriptionCommentsTags

Description

This is a library of OpenSCAD modules for mounting Arduino boards. It has modules for creating enclosures, bumpers, mounting holes, punch out holes for jacks like USB and power and board dimensions. If you are making a custom enclosure or are mounting an Arduino board to a larger project this should make it easier.
Included is an example scad file and some stls of bumpers generated with the library. The long term goal is to make this useful for a variety of boards not just Arduinos.

This is version 2.0. If your looking for the original look the v1.0 release at my Github repository:
https://github.com/kellyegan/Arduino-Mounting-OpenSCAD-Library

The library uses tbuser's pin library for the pin mounts: http://www.thingiverse.com/thing:10541

There are a number of great designs for individual Arduino board enclosures that I used for inspiration including:

  • Chu's bumper: http://www.thingiverse.com/thing:26237

Print instructions

Category: Electronics Instructions

OpenSCAD Arduino Mounting library

The library has a variety of modules for creating Arduinos and Arduino mounts. Here is a basic description of the included modules. It includes all official boards through the Due. For examples see the included example SCAD.

arduino(boardType)

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
This module creates an Arduino board with USB connector, power supply and headers.

bumper(boardType, mountingHoles)

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
mountingHoles - (OPTIONAL) True or false for external mounting holes for bumper.
Create a simple bumper style encloser for a particular board

enclosure(boardType, wall, offset, heightExtension, cornerRadius, mountType)

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
wall - Thickness of enclosure walls. Default is 3.
offset - Distance of PCB from walls.
heightExtension - Additional space at the top of the box.
cornerRadius - Corner radius for outside of box.
mountType - TAPHOLES, PINS How the standoffs attach to the board either using tap holes for screws or pins.
Creates a box enclosure with a snap-on lid for a particular board

enclosureLid(boardType, wall, offset, cornerRadius, ventHoles)

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
wall - Thickness of enclosure walls. Default is 3.
offset - Distance of PCB from walls.
cornerRadius - Corner radius for outside of box.
ventHoles - true, false for holes in the lid.
Creates a lid for the box enclosure

standoffs(boardType, height, bottomRadius, topRadius)

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
height - height of standoffs
bottomRadius - Radius of bottom of standoff cylinder.
topRadius - Radius of top of standoff cylinder.
holeRadius - Radius of tap hole in the standoff.
This creates standoffs for mounting holes. These are simple cylinders that can be tapered. For custom standoffs use the holePlacement() module.

boardShape( boardType, offset, height )

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
offset - creates the shape offset from actual board size. Negative values create an inset shape.
height - default is pcb height but can be any value needed.
This creates the shape of the PCB with no holes. The default create a basic Uno PCB.

boundingBox(boardType, offset, height, cornerRadius, include)

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
offset - creates the shape offset from actual board size. Negative values create an inset shape.
height - default is board height (including components) but can be any value needed.
cornerRadius -
include - BOARD, PCB, COMPONENTS What to include in bounding box, just the PCB, just the components or both (BOARD)
This creates a box whos dimensions are the extremes of the board.

holePlacement()

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
This is used for placing holes and is the basis of the standoff module. holePlacement takes a child element and places it at each of the mounting hole centers for a given board.

components(boardType, component, extension, offset)

boardType - UNO, LEONARDO, DUEMILANOVE, DIECIMILA, DUE, MEGA, MEGA 2560
component - ALL, HEADER_F, HEADER_M, USB, POWER
extension - Extention off the board in direction of connector. The default is the standard dimension of the connector, but can be set to an arbitrary value.
offset - Offsets the connector cube in the other two dimensions.
Creates the components( headers, power and usb jacks) for a given board. Also used for creating punchout, by using the extension and offset values.

License:

Creative Commons — Attribution — Share Alike

Related Models

Thor Mjolnir Hammer Bic Pen preview image

Thor Mjolnir Hammer Bic Pen

effektz profile image

effektz

9,080

Diverse Schilder / various labels  for hobby & makers preview image

Diverse Schilder / various labels for hobby & makers

RPK profile image

RPK

2

Customizable EU License Plate Keychain preview image

Customizable EU License Plate Keychain

John_M profile image

John_M

30

Vorpal The Hexapod Walking Robot preview image

Vorpal The Hexapod Walking Robot

vorpal profile image

vorpal

4,980

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi preview image

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi

Fails&Makes profile image

Fails&Makes

Cacciavite Portachiavi - Scewdriver keychain preview image

Cacciavite Portachiavi - Scewdriver keychain

Butti Maker Studio profile image

Butti Maker Studio

20

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED preview image

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED

scottrlindsey profile image

scottrlindsey

4,447

Small Parts Storage Drawers - Organizer preview image

Small Parts Storage Drawers - Organizer

GT 3D Makers profile image

GT 3D Makers

29

7