Migrate stepper block into its own module

This commit is contained in:
Matt McWilliams 2023-09-24 22:58:14 -04:00
parent c7cb4ddbc5
commit cfca56ba48
8 changed files with 16 additions and 15 deletions

View File

@ -1,5 +1,5 @@
{
"version": "1.8.30",
"version": "1.8.31",
"ext_port": 1111,
"profiles": {
"mcopy": {

2
app/package-lock.json generated
View File

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

View File

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

View File

@ -1,5 +1,5 @@
{
"version": "1.8.30",
"version": "1.8.31",
"ext_port": 1111,
"profiles": {
"mcopy": {

4
package-lock.json generated
View File

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

View File

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

View File

@ -1,5 +1,5 @@
{
"version": "1.8.30",
"version": "1.8.31",
"ext_port": 1111,
"profiles": {
"mcopy": {

View File

@ -170,9 +170,13 @@ module nub_void (pos = [0, 0, 0]) {
}
}
module stepper_mount_block_positive (pos = [0, 0, 0]) {
module stepper_mount_block_positive (pos = [0, 0, 0], H) {
translate(pos) difference() {
cube([NEMA17OuterWidth, NEMA17OuterWidth, H], center = true);
//corners
for (i = [0 : 3]) {
rotate([0, 0, (i * 90) + 45]) translate([29.7, 0, 0]) cube([5.5, 5.5, H + 1], center = true);
}
}
}
@ -186,14 +190,11 @@ module stepper_mount_block (pos = [0, 0, 0], rot = [0, 0, 0]) {
translate(pos) rotate(rot) {
difference () {
union () {
translate([0, 0, -5]) cube([NEMA17OuterWidth, NEMA17OuterWidth, H], center = true);
stepper_mount_block_positive([0, 0, -5], H);
LED_prop([0, -19, -4.5 + 7.5], [0, 0, 45], flip = false);
//LED_prop([0, -19, -4.5 + 11.5], [0, 0, 45], H = 9, flip = false);
}
//corners
for (i = [0 : 3]) {
translate([0, 0, -5]) rotate([0, 0, (i * 90) + 45]) translate([29.7, 0, 0]) cube([5.5, 5.5, H + 1], center = true);
}
translate([0, 0, -5])cylinder(r = R(InnerD), h = H + 1, center = true, $fn = 120);
bolt_void([BoltX, BoltY, -5], H);
bolt_void([-BoltX, BoltY, -5], H);