nophead / NopSCADlib

Library of parts modelled in OpenSCAD and a framework for making projects
GNU General Public License v3.0
1.2k stars 156 forks source link

Servo motor, E40 bracket, linear rails, nema8, ++ #195

Closed niclash closed 3 years ago

nophead commented 3 years ago

image

Looks like the thread is incorrect in this nut. Also it doesn't look like an SFU1610 nut:

image

Is that the correct part number?

nophead commented 3 years ago

Looks like the socket is too small in the M8 cs_cap_screw.

image

nophead commented 3 years ago

There is something wrong with the NEMA8 stepper:

image

nophead commented 3 years ago

The servo code is missing a test so it doesn't get included in the readme, etc and the extrusion_bracket test needs expanding to include the new brackets.

niclash commented 3 years ago

I'll spend time to fix the issues that you raise, once I have am OpenSCAD "nightly" that works and have time to fiddle around with it.

nophead commented 3 years ago

Why do you need to use a nightly? NopSCADlib works with the latest release and any snapshot up to 01/05/21. I am using OpenSCAD 2021.05.01.ci7809 to get the improved drawing speed but it does have regressions in the customiser, which has been fixed in later snapshots that I can't use. Nobody seems interested in fixing the dollar variables regression.

I will have a look at fixing these PR issues myself.

niclash commented 3 years ago

I didn't notice that Debian has updated to a recent OpenSCAD release. It used to be very old. So, I change "when/if I have time, unless you beat me to it"

nophead commented 3 years ago

I fixed the screws sockets.

image

nophead commented 3 years ago

I fixed the NEMA8 by making the thread size a property and allowing black endcaps.

image

Can you confirm it looks like this, has M2 screws holes and a 5mm shaft. A lot of NEMA8s have 4mm shafts.

nophead commented 3 years ago

Please can you give a link to the lead nut you are trying to model. I can't find anything that matches your dimensions.

niclash commented 3 years ago

When I made the parts, I didn't own them yet... Now I do.

Axel; 5mm, 22mm long from "protrusion plate" Protrusion plate; 22mm in diameter, 2mm up from front plate. Front plate; 42x42mm (actually slightly less), M3 holes 31mm apart, 10mm thick Body; 48mm tall, bottom plate 11mm (indent 2mm) thick,

image

HTH

nophead commented 3 years ago

That is a NEMA17 not NEMA8.

niclash commented 3 years ago

Ok, sorry. My NEMA8 is with hollow shaft (for vacuum). Maybe that accounts for shaft diameter inconsistency.

Axel; 5mm, 10.6mm long from "protrusion plate", 7.3mm at the back Protrusion plate; 15mm in diameter, 1.6mm up from front plate. Front plate; 20x20mm (actually slightly less), M2 holes 16mm apart, 6mm thick Body; 30mm tall, bottom plate 8.1mm thick,

image

niclash commented 3 years ago

When ordered, I simply requested 16mm diameter, 2 different lengths, 10mm "lift" and matching mounting blocks, nut, nut housing and motor coupling. Never received a drawing.

SFU1610 ballscrew; http://www.ywsbearing.com/CNC-machine-part-high-precision-16mm-diameter-C7-C5-precision-ball-screw-SFU1610-with-nut-and-support-unit-BK12-BF12-pd77372377.html

Large diameter; 48mm Straight diameter; 40mm Length; 42.5mm Body diameter; 28mm

image

nophead commented 3 years ago

How many starts does the thread have?

niclash commented 3 years ago

2

nophead commented 3 years ago

image

The thread doesn't make a lot of sense because it is trapezoidal rather than ball races but you don't see it when assembled.

The length looks too short. It includes the flange.

nophead commented 3 years ago

I have the exact same NEMA8, so the model will be useful when I get around to building my pick and place machine. Seems to use a smaller JST connector than the NEMA17s, so I will have to model that as well.

niclash commented 3 years ago

Mine; https://github.com/niclash/DreamPlacer

(yeah, big because I want feeders that I never change component type in)

Mechanically it is all built, and working on electrical now.

nophead commented 3 years ago

Great name for a PnP machine.

nophead commented 3 years ago

I started looking at the servos. Why are they modelled as a cylinder that is bigger than the face plate? As far as I can tell they look like this:

image

Not like this:

image

nophead commented 3 years ago

I think you have misinterpreted this diagram

image

The dashed line is the hole pitch circle, not the body.

I will model it as a rectangle with quadrants removed from the corners. How deep is the cylinder on the back?

nophead commented 3 years ago

Please can you supply the dimensions of the M8 sliding nut. Does it look something like this?

image

niclash commented 3 years ago

Servo; Yeah, possibly. It is now a year ago, so I honestly don't remember, other than I made it before I had them in real life.

Depth behind mounting plate face; 152mm From cylinder circumference to top of electric input; 86mm

IMG_20210831_094218 IMG_20210831_094225 IMG_20210831_094230

niclash commented 3 years ago

Sliding nut; The ones I bought are different. It has spring ball and can be inserted through the slit (rather than from the end). 22mm x 13mm M5, M6 and M8 variants are all the same dimensions with different drill+tap.

IMG_20210831_095420 IMG_20210831_095432 IMG_20210831_095344 IMG_20210831_095354 IMG_20210831_095400

niclash commented 3 years ago

sorry for the somewhat poor photo quality

nophead commented 3 years ago

The servos currently look like this:

image

I have changed a lot of things:

nophead commented 3 years ago

I have pushed everything apart from the sliding nut and the extrusion brackets that need more work.

This is what the NEMA8 looks like.

image

The one on the left is a standard NEMA8 with a single 4mm shaft. The one you want with two hollow 5mm shafts I have named NEMA8BH.

nophead commented 3 years ago

The E40_inner_corner_bracket doesn't look right because the code is not parametric enough but I don't have one to measure.

If you want me to add it please provide a photo and all the dimensions and the screw size.

image

niclash commented 3 years ago

I am feeling guilty for all the work you are doing...

Width; 18.6mm Short side; 31.2 Long side; 37.8 Non-angled slide on long side; 4.7mm thick (angled one tapers to 2.7mmx21mm) "Gap"; 7mm "Protrusions for fitting extruded alu"; 8.2mm, except one (inside of side with 2) of the 3 that is 8mm. Inset screws; M6 Inset (short side) 10mm from edge (not the corner) Inset (short side) 13mm from edge (not the corner)

IMG_20210901_142727 IMG_20210901_142734 IMG_20210901_142742

nophead commented 3 years ago

@martinbudden, what is part_thickness here: https://github.com/nophead/NopSCADlib/blob/master/vitamins/extrusion_bracket.scad#L115

It seems to need to be equal to the extrusion thickness. Do you envisage the corner brackets being used without extrusions?

martinbudden commented 3 years ago

@nophead , yes this is the extrusion thickness. I set it as a parameter rather than having to pass the extrusion type as a parameter.

However I think that the extrusion corner brackets are actually repurposed furniture brackets and are also used for joining bits of wood together in furniture.

nophead commented 3 years ago

I have added a default extrusion and t-nut to the bracket object properties and those are now used to get the defaults for part_thickness, screw_type, nut_type and max_screw_depth. I did that so that the examples in the test work without having to override all those parameters and makes the assembly easier to use in a project.

I also had to do the same to the inner bracket because a lot of things were hard coded that need to be extrusion specific or derived from the base t-nut.

image

nophead commented 3 years ago

This is what it currently looks like:

image

@martinbudden had modelled the inner brackets as two t-nuts linked by an arm but actually the long side is different so that it can be fitted to the extrusion either way around. I modelled that from your dimensions, i.e. arms 8.5mm thick and the T 4.7mm thick and 18.6mm wide but it doesn't fit the extrusion.

image

Any idea what is wrong. Is it the extrusion or the bracket?

I also modelled the sliding ball t nut but I had to guess a lot of the dimensions. It is generated by setting Y2 = 0 for sliding t_nut.

image

Is it a 4mm ball offset 4mm for the end?

What is the total height and what is the stem height?

What is the hole offset from the end and is it constant for the different screw sizes?

nophead commented 3 years ago

Hmm, I thought E2020, etc, extrusions were a standard but they seem to vary quite a lot. The central hole can be 5mm or 4.2mm. The inner slot can be 11mm or 12mm. The gap can be 6 or 6.2mm. The wall can be 2mm or 1.8mm. The spar can be 1.2mm or 2mm. The Chinese ones I have match this drawing so I am minded to amend the definition to match.

image

niclash commented 3 years ago

Correct, there is no standard, as I think some BigCo (Bosch?) has patents/trademarks related to some shapes and people have worked around that. What seems to be "standard" are the widths nomenclature 2020, 3030, 2040 and so on as well as center hole diameter when one is there at all. I bought my ones locally in Sweden (with their own manufacture), they had several similar profiles, same dimension and hole size (I just saw that you have found different hole size, I didn't before), but varied in strengths and weight (i.e. amount of material).

So, "I want those, and matching T-nuts and inner brackets" was how I approached it.

niclash commented 3 years ago

Regarding my 4040 T-nuts; Ball in ~4.2mm from edge. M4 and M5 are 9mm from edge, M8 is ~7.2 from edge. (I don't have any M6)

IMG_20210902_144410

niclash commented 3 years ago

In case not obvious; The ball on the T-nut has spring and intended to not slide too freely in the alu slot.

nophead commented 3 years ago

I modelled the ball T-nut so the hole has its inner edge in the centre and that seems to be close enough. Please can you confirm the total height and the stem height and then it is good to go.

I added chamfers to the inner corner brackets and made the 2020 extrusions match mine and then they just fit as they do in real life as I have these parts. I now realise why they have the shape they have and I have added a backwards option to allow them to be inserted the other way, which makes a smaller junction.

image

I haven't got any 4040 extrusions and even using a popular size where the walls are 4.32mm instead of 5.5mm doesn't quite allow them to fit but I haven't got any 4040 or that size corner brackets.

image

@martinbudden where did the extrusion dimensions come from? Do they match the extrusions you have?

@niclash even the centre holes are not standard. Some 2020 are 4.2mm which can be tapped for M5 but mine are 5mm, which could be tapped for M6.

nophead commented 3 years ago

Actually I do have some 4080 on my CNC router that I bought, rather than designed. It has 4mm walls and the central spars are 2.4mm. With those dimensions the inner brackets easily fit.

image

My 4080 has a round central tubes with ribs and the corner holes are square. Also all more extrusions have a recess in the outer slots. I seem to have opened a big can or worms!

niclash commented 3 years ago

Anecdote; My father had a "exhibition booth system" back in the mid-1970s, and is the oldest alu profile of these shapes that I know of. I recall that the slots were to both hold the walls as well as mounting lights, shelves, tables and so on. I still have a small piece of that... Size were 3030

IMG_20210903_105143

nophead commented 3 years ago

I wonder why there is a notch in the sides of the central tube. Seems like a point of weakness with no real function. Perhaps to centre a drill if you want to drill through the side?

niclash commented 3 years ago

Also, I bought my material att https://www.rollco.eu, and they have an interactive system "CAD-files" to get exact drawings on most parts they make.

niclash commented 3 years ago

Can of worms; Yes!

"notch" ; yes, as drill guide.

nophead commented 3 years ago

I don't wish to be rude but unless you confirm the dimensions of the sliding ball nut and the actual 4040 extrusions you have I will just push what I have.

With the skinny 4080 extrusion, the ball doesn't touch. So I need the wall and spar thickness of the 4040 and the height and stem of the t-nut.

image

I think I used some of those when I built the mill ten years ago but not sure. I 3D printed a lot of the t-nuts I used to add cable clips and limit switches, etc.

My 4080 is odd in that it has ridges in two of the corner holes but not the other two. No idea why.

IMG_20210903_114833927_HDR

niclash commented 3 years ago

I made some crude dimensions from the DXF I got from manufacturer.

Screenshot_20210903_165218

niclash commented 3 years ago

But check https://www.rollco.se/sokresultat?q=t-nut for how many different types exists from a single vendor... Missing dimension is Ball "top" to opposite "wall"; 9.2mm

Screenshot_20210903_165711

nophead commented 3 years ago

With those dimensions the ball meets, although the centre square dimension seems to be missing:

image

But the inner bracket clashes badly, any idea what is wrong?

image

The extrusion is totally different to the E4040 in the library. It has smaller slots and holes, thinner walls but much thicker spars. I think I will need to add more extrusion types if anybody has used the existing ones.

nophead commented 3 years ago

IIRC @martinbudden added both the original extrusions and the inner brackets. But I don't think the inner brackets fit the original E2020 extrusion? They certainly don't after I remodelled the longer end to be double sided. Where yours actually like this or where they as you modelled them as two normal T nuts?

image

niclash commented 3 years ago

When I added the bits I needed, I had not chosen a vendor yet. So, not sure where I got the dimensions from. And frankly, I didn't care that much whether it was pixel-perfect along non-critical dimensions. And I suspect that trying to be totally true to reality is a (s you put it) can of worm, and never ending headache. At some point (long past in my book) it is "good enough".