Add the first draft for the CPC plug back

This commit is contained in:
Matt McWilliams 2024-01-08 15:49:08 -05:00
parent 3758916fb5
commit 9b954852aa
8 changed files with 26 additions and 17 deletions

View File

@ -1,5 +1,5 @@
{
"version": "1.8.89",
"version": "1.8.90",
"ext_port": 1111,
"profiles": {
"mcopy": {

2
app/package-lock.json generated
View File

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

View File

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

View File

@ -1,5 +1,5 @@
{
"version": "1.8.89",
"version": "1.8.90",
"ext_port": 1111,
"profiles": {
"mcopy": {

4
package-lock.json generated
View File

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

View File

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

View File

@ -1,5 +1,5 @@
{
"version": "1.8.89",
"version": "1.8.90",
"ext_port": 1111,
"profiles": {
"mcopy": {

View File

@ -148,7 +148,19 @@ module cpc_9pin_plug_collar () {
}
module cpc_9pin_plug_back () {
//
$fn = FN;
RimD = PlugD + 4;
difference () {
union () {
cylinder(r = R(PlugD - 2.7), h = 15, center = true);
translate([0, 0, -2.5]) cylinder(r = R(RimD), h = 10, center = true);
translate([0, 0, -15 / 2]) sphere(r = R(RimD));
}
//void
cylinder(r = R(PlugD - 5), h = 15 + 1, center = true);
translate([0, 0, -15 / 2]) sphere(r = R(PlugD - 5));
cylinder(r = R(5), h = 40, center = true);
}
}
module flange_guide_void (pos = [0, 0, 0], Z = 8) {
@ -212,27 +224,24 @@ module debug () {
//color("green") translate([0, 0, 2.1]) rotate([180, 0, 0]) cpc_9pin_socket();
cpc_9pin_plug_insert();
translate([0, 0, -5]) cpc_9pin_plug_collar();
translate([0, 0, -20.5]) cpc_9pin_plug_back();
}
translate([25, 0, 0]) cube([50, 50, 100], center = true);
}
}
PART="9pin_plug_insert";
PART = "9pin_plug_back";
if (PART == "9pin_plug") {
cpc_9pin_plug();
rotate([180, 0, 0]) cpc_9pin_plug();
} else if (PART == "9pin_plug_insert") {
cpc_9pin_plug_insert();
} else if (PART == "9pin_plug_collar") {
cpc_9pin_plug_collar();
} else if (PART == "9pin_plug_back") {
cpc_9pin_plug_back();
} else if (PART == "9pin_socket") {
cpc_9pin_socket();
} else {
debug();
}
/*
else if (PART == "9pin_plug_back") {
cpc_9pin_plug_back();
}
*/