Tubular Key (Customizable) by Stephen304 3d model
3dmdb logo
Thingiverse
Tubular Key (Customizable) by Stephen304

Tubular Key (Customizable) by Stephen304

by Thingiverse
Last crawled date: 3 years, 1 month ago
About
This is a model of a "standard" 7.8mm (technically 7.92mm) tubular key. The default settings are 7 pin and the key code order is set to Chicago Ace.
Customizing
Use the .scad file to customize. The .stl file is an example export of the key code 1234567.
Key Code
Set the key_code array to the bitting you want to duplicate. If you are looking at the key with the end pointed towards you, the code is read starting at the top moving counterclockwise.
If you have a code from a Fort Lock Gem key, you will need to reverse the order of the code.
If you are duplicating a key with a different number of cuts, you can shorten or lengthen the key_code array. Note that the first cut is cut_shift degrees counterclockwise from the top. If you want a cut at the top of the key, you may have to rearrange the code so that cut is the last one.
0 Cuts
Entering a key code of 0 causes no cut to be made in that spot. This is not only useful for key codes of 0, but also when making keys with nonstandard spacing.
For example, you may space the first cut 22.5 degrees from the 12-o-clock position, then use a "0 cut" as every other number to space the remaining cuts 45 degrees apart.
Cut Shift
You may use this model to produce keys with various cut arrangements. Simply adjust the cut_shift to the spacing in degrees between each cut. The default for a 7 pin lock is 45 degrees. This means that the model will start 45 degrees counterclockwise from 12-o-clock before making the first cut, then advance 45 degrees before each subsequent cut.
For an 8 pin lock that is evenly spaced, you would use 22.5 since the first cut is 22.5 degrees counterclockwise from the top. You would need to also put in 16 numbers instead of 8, with every second cut being 0 as mentioned above.
Offset Spacing
7 pin left offset and right offset can be achieved combining the above settings, as well as 8 pin split center.
7 Pin Left Offset
Set cut_shift = 22.5
Insert extra 0s for spacing: key_code = [0,0,3,0,4,0,5,0,4,0,3,0,4,0,5]

7 Pin Right Offset
Set cut_shift = 22.5
Insert extra 0s for spacing: key_code = [3,0,4,0,5,0,4,0,3,0,4,0,5]

8 Pin Split Center
Set cut_shift = 22.5
Insert extra 0s for spacing: key_code = [1,0,2,0,3,0,4,0,5,0,6,0,7,0,8]

Tube Diameter
You may adjust the diameter of the key to fit smaller or larger tubular locks. Use tube_ID and tube_OD to adjust the inner and outer diameter.
Oversize
10.16mm OD
8.38mm ID

Standard
9.53mm OD
7.92mm ID

Small
9.27mm OD
7.62mm ID

Printing and Testing
FDM printing with the end of the key facing up seems to give the best results. Your printer will need to have good layer resolution for the key to work.
Cut Radius
If your printer has poor tolerance, you may find that the cuts are not big enough to ensure the pins fall in the cuts. If you suspect the pins are catching on the edge, you can try increasing the cut_radius. I have had success with 2mm, but 3mm will give more clearance.
Web Thickness
If you print on an SLA printer, the "web" or wall between the key cut and the inner wall of the tube may interfere with the pins of the lock due to resin in the corner of the cut solidifying. It may help to change the web_thickness to a lower value, or to even switch it to 0 or negative to cut through the wall completely to avoid unwanted interference. (All of my FDM prints were not able to print the wall anyways, so it should be fine to omit it. Though it does feel and look nicer when the inner rim of the key is continuous.)
Results
Printing on an FDM printer with all standard settings resulted in a print that was missing the "web" in between the cut and inner surface of the tube, presumably due to the lateral resolution of the printer. Despite this, the key performed perfectly fine. The FDM prints tended to be a little tight, so it's important to scrape off any unwanted material and to gently insert and remove the key several times to loosen it up.
The jury is still out on whether I am able to successfully print on an SLA printer. The key seems more accurate in dimensions from the SLA printer (the key is looser when inserting into the lock like a metal key), but we suspect the "webbing" issue prevents it from working.

Tags