CPC connector work

This commit is contained in:
Matt McWilliams 2023-12-15 19:40:18 -05:00
parent 33412b0588
commit 173ce499bc
12 changed files with 95882 additions and 33989 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.82", "version": "1.8.83",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

2
app/package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.82", "version": "1.8.83",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.82", "version": "1.8.83",
"description": "GUI for the mcopy small gauge film optical printer platform", "description": "GUI for the mcopy small gauge film optical printer platform",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.82", "version": "1.8.83",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.82", "version": "1.8.83",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mcopy", "name": "mcopy",
"version": "1.8.82", "version": "1.8.83",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"arduino": "file:app/lib/arduino", "arduino": "file:app/lib/arduino",

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.82", "version": "1.8.83",
"description": "Small gauge film optical printer platform", "description": "Small gauge film optical printer platform",
"main": "build.js", "main": "build.js",
"directories": { "directories": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.82", "version": "1.8.83",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -4,8 +4,6 @@
include <./common/common.scad>; include <./common/common.scad>;
PART="9pin_plugx";
FN = 120; FN = 120;
PlugD = 16.15 - 0.6; PlugD = 16.15 - 0.6;
@ -114,27 +112,38 @@ module cpc_9pin_plug () {
module cpc_9pin_plug_insert () { module cpc_9pin_plug_insert () {
$fn = FN; $fn = FN;
BaseH = 3; BaseH = 3;
PinH = PlugH + 10;
translate([0, 0, -5.75]) difference () { translate([0, 0, -5.75]) difference () {
union () { union () {
cylinder(r = R(PlugD - 1.2), h = 6, center = true); cylinder(r = R(PlugD - 1.4), h = 6, center = true);
translate([0, 0, -1]) cylinder(r = R(PlugD + 2.5), h = 2, center = true); translate([0, 0, -1]) cylinder(r = R(PlugD + 2.5), h = 2, center = true);
color("green") translate([0, 0, -7]) cylinder(r = R(PlugD + 1.2), h = 10, center = true); color("green") translate([0, 0, -7]) cylinder(r = R(PlugD + 1.2), h = 10, center = true);
} }
cylinder(r = R(PlugD - 2.2), h = 30, center = true); cylinder(r = R(PlugD - 2.6), h = 30, center = true);
translate([0, 0, -6]) plug_pin_voids(PinH);
} }
} }
module cpc_9pin_plug_collar () { module cpc_9pin_plug_collar () {
$fn = FN; $fn = FN;
H = 10; H = 10;
OuterD = 23;
CenterD = 17;
InnerD = 21;
LipD = 19;
difference () { difference () {
union () { union () {
cylinder(r = R(23), h = H, center = true); cylinder(r = R(OuterD), h = H, center = true);
} }
cylinder(r = R(17), h = H + 1, center = true); cylinder(r = R(CenterD), h = H + 1, center = true);
cylinder(r = R(21), h = H - 4, center = true); cylinder(r = R(InnerD), h = H - 4, center = true);
translate([0, 0, H / 2]) cylinder(r = R(19), h = H, center = true); translate([0, 0, H / 2]) cylinder(r = R(LipD), h = H, center = true);
//bevel
translate([0, 0, 3.49]) cylinder(r1 = R(InnerD), r2 = R(LipD), h = 1, center = true);
difference () {
translate([0, 0, 3.49]) cylinder(r = R(InnerD), h = 4, center = true);
translate([0, 0, 4]) cube([OuterD + 1, 3.9, 15], center = true);
}
} }
} }
@ -200,7 +209,7 @@ module debug () {
//cpc_9pin_plug(); //cpc_9pin_plug();
difference () { difference () {
union () { union () {
color("green") translate([0, 0, 2.1]) rotate([180, 0, 0]) cpc_9pin_socket(); //color("green") translate([0, 0, 2.1]) rotate([180, 0, 0]) cpc_9pin_socket();
cpc_9pin_plug_insert(); cpc_9pin_plug_insert();
translate([0, 0, -5]) cpc_9pin_plug_collar(); translate([0, 0, -5]) cpc_9pin_plug_collar();
} }
@ -208,6 +217,8 @@ module debug () {
} }
} }
PART="9pin_plug_collar";
if (PART == "9pin_plug") { if (PART == "9pin_plug") {
cpc_9pin_plug(); cpc_9pin_plug();
} else if (PART == "9pin_plug_insert") { } else if (PART == "9pin_plug_insert") {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff