Papercraft and Pepakura

It does seem like the camera feature set would enable it to be aware of where the machine parameters live, with maybe mechanical limiting as a redundant safety.
Switches that aren’t, or are rarely used would have an indefinite service life.

Your assumptions are correct regarding how the limit switches work on a typical “CNC machine” (like a CNC router or a CNC mill). To confirm what you said, the switches will typically be placed in a way that they are activated (“switched”) if the machine attempts to move too far.

OK, there are a lot of ins and outs with this. I’m going to try to give the basics for clarity, but I’m also going to skip some detail for brevity.

The following block of text is only about lost steps, if you know what they are already, skip to the stuff after the line…



The reason a machine like a CNC router may “attempt to move too far” is because of something called “lost steps”. Lost steps happen when the machine controller commands the machine to move somewhere it is physically unable to and are a potential problem for (virtually) any machine that uses stepper motors (like I am assuming is the case for the Glowforge).

Lost steps a big problem for CNC routers as the force required to perform a cut can vary wildly. As you can imagine, a 1/8"-deep cut is going to be considerably easier on the machine than a 2"-deep cut. Similarly, a 1/2"-deep cut made at 5 inches per minute is going to be considerably easier than a 1/2"-deep cut made at 50 IPM. And, of course, cutting through foam is going to be considerably easier than cutting through steel. This variability in difficulty may lead the (human) operator of the machine to try to exceed the capabilities of the machine. If the operator does this, one of two things are likely to happen: the bit will break or the machine will stall. If the bit breaks, the machine will have no way of knowing and will continue its job as if everything is fine. When it stalls is when you get lost steps. Unfortunately, a stepper-driven machine will also have no way of knowing it lost steps, so it will continue along as if everything is fine. Machines are dumb like that. The problem is: although the machine doesn’t know it, after losing steps, the cutting head is physically in a different place than it thinks.

Imagine someone starts a router at the “bottom-left” of the table and attempts to make a diagonal cut to the opposite corner. Now imagine the machine isn’t strong enough to make this cut and ends up stalling. If this happens, the machine will continue to try to move to the opposite corner for as long as it normally would have taken if it was successfully cutting, but since it’s stalled-out, the head isn’t moving away from the bottom-left corner. When it thinks it’s done it thinks the head is at the top-right corner. If, then, it is told to go back to the bottom-left it’ll attempt to move the head farther “down” and farther left than it should. If you don’t have limit switches to stop the machine, it’ll plow into the “physical limits” of the machine. This collision can damage the machine and cause parts to become misaligned.



OK, sorry for the long description of lost steps! I hope that, if it didn’t give you any new information, @marmak3261, it is informative to anyone else who may be curious!

Fortunately, the Glowforge won’t really have to worry about lost steps. This is because the only resistance to movement it will typically experience is the friction between the linear rails and the rotation of the belts. This lack of variability means that motors with the “perfect” amount of power can be chosen, which keeps costs down and can also lead to better performance (generally speaking, fast motors aren’t strong and strong motors aren’t fast).

Since lost steps aren’t really a concern for a laser cutter, the machine can use a concept called “soft limits”. In a nutshell, soft limits basically dictate that a machine with 20" of X travel and 12" of Y travel will never attempt to move to the coordinates X21 Y13. Of course, it will also never attempt to move to X20.001 Y12.001.

Since it can use soft limits, it really only needs limit switches when the machine is homed, which is when it establishes where 0, 0, 0 (XYZ) is. So, instead of six switches, a machine like this will only need three. And those three switches aren’t likely to see a lot of use. I suspect you’ll only need to home a machine like this once per power cycle (and even that may not be all that necessary) and any time you move the head by hand, either accidentally or on purpose.

A quick eBay search found some $4 limit switches that claimed they could be clicked 30 MILLION times. So, if you homed your machine 10 times every single day for the next 80 centuries you might have to start worrying about wearing out your switches. These $4 switches might not be the IDEAL switch… There are also 40¢ switches, $40 switches, and , I’m sure, $400 switches. There exists, somewhere, an ideal limit switch.

Actually, with clever design and programming, it would probably be possible to only have a single switch, and just make sure only one axis is capable of “clicking” it at a time. I’d say taking the time to make that clever design and program is not worth the minuscule savings of eliminating two exceptionally inexpensive switches.

1 Like

Of course it’s always possible that they use linear encoder tapes like that used in most desktop printers in which case they may not need any sort of limit check.

1 Like

Wow. Thanks for that in-depth and clear explanation. The lost steps issue is something I can understand but never would have thought ahead of time without a machine. Coupling this discussion with the Skydog thread and an orphaned Glowforge indicates that we might be adding some type of orientation/ position indicators since the cameras would be useless. This all makes me respect the tremendous amount of knowledge through study and experience so many folks are bringing to the forum. I am so grateful.

1 Like

It is my understanding that the “missed steps” issue is solved with servos instead of steppers?

Or close looping with some type of encoder.

1 Like

Thank you!

The Glowforge uses steppers instead of servos.

3 Likes

Camera registration instead of limit switches has the minor benefit of never needing to run a homing cycle. That can be nice, and save a bit of time on occasion.

I do not see much drawback in using the camera approach, so if you are able to operate in two different methods, one of them requires a little more development time (proper focal capability), and the other requires a bit more day to day user time (homing routine)… then the proper choice for the “end-user friendly option” that Glowforge wants to be is pretty clear.

2 Likes

Thank you!

Or using properly sized steppers, smart controller configuration, and some common sense so that the available torque on the steppers is never exceeded. Steppers vs servos is a religious discussion in some forums.

2 Likes

I guess the camera might be somewhat faster. Homing shouldn’t take more than… 30 seconds or so (I’d say), so even if the camera is 10 times faster, we’re only saving 27 seconds. That IS, technically, a time savings, there’s no denying that. That is, if the camera can actually do the job faster.

Here’s a homing routine video. Takes 15 seconds. (skip to the 3-second mark if your schedule is so tight that every saved second is precious)

1 Like

The total time needed for any homing cycle depends on how far away from the home you actually are. The steppers will be moved at “a safe speed” since it knows that the rail will run to physical limit and does not want to overshoot. So if you are WAY off home… takes a while. If you are already right at home, nearly instant.

If being ultra-cautious (a good decision when dealing with a low-tech at home user target), then you run a homing routine at the start of every job. If home is at the top left (fairly common), but people like to place things on the lower right (door opens at bottom, button is on the right… again this is likely), then someone doing a small cut, pulling it out, and then doing another small cut, will be dealing with the longest possible home sequence (and subsequent travel time back to the cut area at the start of the job) each cycle.

Now… with camera registration of the print head, you don’t ever need to move the print head away from the place it finished the last cut. So if someone just likes to put everything in the same basic spot every time, the print head happens to be there already.

Of course, with the tube on the gantry, it makes sense to always pull the gantry back to the top of the cutting bed at the end of any job anyway. Tuck the tube under the physically solid portion of the case instead of leaving it in the middle of the area exposed by an open lid. That is the 12" extent, and since the machine is confident of where the print head is it can travel at full speed to that parking location. So not too much time involved with that retreat. But as pointed out, we aren’t talking about “too much time” in any case. Only for someone doing a ton of “one at a time” production cuts would this matter in any meaningful way.

1 Like