AcornElectron

Changeset

80:6a90399652a5
2017-03-31 Paul Boddie raw files shortlog changelog graph Added options to configure the back socket arrangement, any holes in the back piece for securing the pieces, and for adjustment of the hole radius. default tip
cartridge.scad (file)
     1.1 --- a/cartridge.scad	Thu Feb 16 23:26:02 2017 +0100
     1.2 +++ b/cartridge.scad	Fri Mar 31 13:30:20 2017 +0200
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 -Copyright (C) 2014, 2015, 2016 Paul Boddie
     1.6 +Copyright (C) 2014, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
     1.7  
     1.8  This program is free software; you can redistribute it and/or modify it under
     1.9  the terms of the GNU General Public License as published by the Free Software
    1.10 @@ -33,11 +33,33 @@
    1.11  	BACK_PLUG = 0;
    1.12  	BACK_SOCKET = 1;
    1.13  
    1.14 -	/* Set this to the desired lug type. */
    1.15 +	/*
    1.16 +	Set this to the desired lug type.
    1.17 +	The back plug is a normal plug that connects with the front socket.
    1.18 +	The back socket is the same kind of tube as the front socket, permitting
    1.19 +	the insertion of screws or nuts through the case to hold both pieces
    1.20 +	together.
    1.21 +	*/
    1.22  
    1.23  	BACK_LUG = BACK_PLUG;
    1.24  
    1.25  	/*
    1.26 +	With the back socket chosen, a through-hole can be requested so that
    1.27 +	a nut and bolt arrangement can be used.
    1.28 +	Otherwise, a hole will only exist to screw things through the front of
    1.29 +	the cartridge into the front and back sockets.
    1.30 +	*/
    1.31 +
    1.32 +	BACK_SOCKET_HOLE = 0;
    1.33 +
    1.34 +	/*
    1.35 +	Set the plug and (partial) through-hole radius.
    1.36 +	Adjust this for the screws or bolts to be used when using a back socket.
    1.37 +	*/
    1.38 +
    1.39 +	BACK_PLUG_RADIUS = 5.5 / 2;
    1.40 +
    1.41 +	/*
    1.42  	Configure the generated shapes.
    1.43  	For the absolute simplest shape (for basic 3D printers)...
    1.44  
    1.45 @@ -445,7 +467,7 @@
    1.46  	pcb_back_lug_depth = pcb_back_support_depth +
    1.47  		pcb_lug_mating_depth;
    1.48  	pcb_back_lug_inner_radius = 1.0;
    1.49 -	pcb_back_lug_outer_radius = 5.5 / 2;
    1.50 +	pcb_back_lug_outer_radius = BACK_PLUG_RADIUS;
    1.51  
    1.52  	/*
    1.53  	The cross detail on the back lug is intended to resist the front lug,
    1.54 @@ -1292,7 +1314,7 @@
    1.55  
    1.56  					/* Back socket holes. */
    1.57  
    1.58 -					if (BACK_LUG == BACK_SOCKET) {
    1.59 +					if ((BACK_LUG == BACK_SOCKET) && (BACK_SOCKET_HOLE == 1)) {
    1.60  
    1.61  						if (MODEL == ROM_CARTRIDGE) {
    1.62  							pcb_back_socket_hole(-1);