Skip to content

jlcarr/cryptex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cryptex

An OpenSCAD script for modelling a cryptex.

Images

Printed Result

Unlocked and Opened

3D Printed Result

Fully Assembled and Locked

3D Printed Result_Assembled

Fully Disassembled

3D Printed Result_Disassembled

What Is A Cryptex?

https://en.wikipedia.org/wiki/Cryptex
A cryptex is a form of locked box in the shape of a cylinder.
The lock is similar to a bicyle combination lock, with the discs encircling the body, and the secret compartment stored within the shaft.
Cryptexes were popularized by Dan Brown in his novel The DaVinci Code.

Design

This piece was designed to be modular, efficient, and easy to update the geometry by editing the parameters and scripts for individual pieces. The assembly and printing of pieces can by explored and exported via the assmbly files.

The interlocking multi-part design of this piece was a challenge because of how the tolerances need to be taken into consideration.

Files

Helpers

Parts

  • disc: This file contains the geometry describing the rotating discs for the cryptex, with the digits extruded from the faces.
  • spindle: This file contains the geometry describing the spindle upon which the discs rest, and houses the spindle. It has a tooth for each disc.
  • shaft: This file contains the geometry describing the shaft (also known as the "pin") that slides into the spindle. The interior is hollow to hold the cryptex's secret contents. It has a tooth for each disc.

Assemblies

  • assembly: This file contains the fully assembled cryptex. It should not be used for printing, as pieces can easily fuse together
  • printlayout: This file contains all the pieces required to 3D print 1 cryptex, all laid out for easy printing.

Parameters

  • n: The number of faces on the discs. Not that going over 10 could cause issues with the digits which are extruded. (default 10)
  • inner_radius: The radius of the spindle, which defines the inner radius of the discs, and that of the shaft. (default 13mm)
  • outer_radius: The radius of the outer edge of the discs. (default 20mm)
  • width: The width of each face of the discs. The height being defined by outer_radius. (default 10mm)
  • thickness: The thickness of the walls. (default 2mm)
  • clearance: The distance between faces that would ideally sit flush, which still being able to turn. This is related to the engineering tolerance. (default 0.5mm)
  • val: This values is specific to each disc: it's the number that opens that disc.

References

OpenSCAD

FreeCAD

Engineering Design

About

An OpenSCAD script for modelling a cryptex.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published