S42B for Closed Loop Control

I saw a video for that an add-on board that adds closed loop control to NEMA stepper motors called the S423B by BigTreeTech, the company that does the SKR series mainboards. I went ahead and ordered myself a set as from time to time I’m known to have terrible feeds and speeds that result in skipped steps and ruined projects, so hopefully this will help prevent some of that. Has anyone already tried the S42B? At $16USD each they are very reasonably priced. Closed loop control looks like it would be pretty revolutionary (pun intended) if it works as intended.

It looks like you can either add it to existing stepper motors or buy it with stepper motor attached. Personally, my preferred option is to attach it to my current motors as it looks like the ones they sell are 42 oz/in instead of the 76 oz/in I got from Ryan.

It’s coming on the slow boat from China so it may be a little bit before I have an update as to if and how well they work.

https://www.youtube.com/watch?v=eM8zSG8fEkk
https://www.aliexpress.com/item/4000580253741.html?aff_platform=portals-tool&sk=_dVyzQEN&aff_trace_key=ed24e8c933d542c88152c718b74efaab-1595710842551-09772-_dVyzQEN&terminal_id=3f05ba72f99244568ab81d30881e2890&tmLog=new_Detail&aff_request_id=ed24e8c933d542c88152c718b74efaab-1595710842551-09772-_dVyzQEN

2 Likes

You might be exchanging skipped steps for broken endmills.

These are an amazing addition, that should not be needed, but could help with random issues like knots and things. If you are getting skipped steps though you really need to do some more test cuts in each type of material, endmills are not free.

Had the same thought just now watching this video - made for 3D printers but CNC router seems like a better use case considering how much more physical strain the machine is under. Though I see Ryan’s point, any quick movements due to loop closing could possibly break bits.

If you end up trying it, definitely let us know how it goes.

Hello,

I found your project and ordered the BIGTREETECH S42B V2.0 Closed Loop Driver too and wait for their delivery including the PRO board and the 4.2" Display which should be done within the next weeks.

Are there anyone which already use this kind of closed loop steppers for the MPCNC?

Which issues beside the bit break should I expect?

Many thank’s in advance

Paul

1 Like

Skipping steps is a very rare occurrence. These are just going to be a backup plan, and an easy one since you don’t really need to change anything to use them. I would say you will never notice a difference. It could possibly allow for faster rapids, but cutting is limited by rigidity not stepper power.

Hello,

I now do have the MPCNC Primo build with SKR Pro 1.2 and five S42B V2.0 closed loop stepper and RepRap Firmware with dual end stops.

Currently I do have some strange issues with the S42B with the stock Firmware:

  • six out of ten times after startup the home fails because one of the two steppers of X or / and Y moves in the other direction → to fix it I need to move the axes three times 1mm in one and then in the other direction. Then the axes getting squared with the dual end stops on home again.
  • the do not move smooth at all, even with just 10mm/s the pen starts shaking and if I go faster the whole table starts to vibrate.

So I do some tests now with some concrete on the table and the shacking is much better now but I hope that Cup1Sup GitHub - CAP1Sup/Intellistep: A rework of the terribly coded firmware from the BTT S42B v2 boards will bring the Firmware of the steppers to a better level so I will try it in a few days and hope that both get better.

Yes @vicious1 you are right there is no need for closed loop stepper, but I like to test it and if it will not work I can use the Stepper with TMC2209 anyhow :wink:

Btw. the design ob the MPCNC Primo is genius, it was a pleasure to build it, all fits together very smoothly!

Paul

2 Likes

That’s my biggest worry. Getting the controls tuned for closed loop is going to be tricky, and it isn’t anything that gets you a bullet on a product page, so I am not sure the vendor is going to put the time in that it takes to make that work well. Besides, the amount of mass we are moving is significantly more than most printers, so I wouldn’t expect the same PID values to work the same for our purposes. But, no one can work on a solution until there is hardware to work on, so I’m glad we have that now.

Closed loop control for the steppers can work really well if the controller is also looking at position feedback, as this driver is doing locally. The whole idea is to never have skipped steps because it’s critical to always know the position of the tool. But, this means that the motion control should slow down when reaching a potential stall condition, and I don’t believe that flexibility is built in to existing firmware (Marlin). If the closed loop drivers are buffering commands then it could work until or unless the buffer overflows, but this is a local driver solution to correct for upset, not degraded performance due to misprogramming.

We ran into the same issues when designing an emergency ventilator last year. The decision to run closed loop steppers changed everything in the control setup. It resulted in much better performance but at that cost of a higher level feedback which no printer or DIY CNC I’ve seen has. (We did get FDA approval for the ventilator, though)

That said, I’m a fan of closed loop control and I would definitely build a system with it if I could. I’ve had more than one instance of steppers skipping; all correctable by different CAM, but I’d love for the machine to adapt to conditions (wood hardness, etc.) by itself. A complete implementation would require significant changes to Marlin, though.

you are right, currently only a red led on the stepper driver shows that the stepper could not move to the position which is requested.

The driver V2 on the S42B or V1 on the S57 (nema 23) do also have a can bus interface. So maybe we see here in the future some improve beside that the firmware of the boards even also needs to handle this news situation.

Anyhow I belive that closed loop will be used more often in the future so we can expect a better integration because the price difference beetween normal and closed loop drivers are not relevant anymore.

Do not use S42B V2.0 Stepper!

With enabled closed loop the whole system start shaking as far as you move faster than 20mm/s

With disabled closed loop I now have the issue that one of the two X steppers change the direction in the middle of an 60cm move!

Two mails to BTT support within the last 6 weeks --> NO REPLY at all!

I now also update the firmware (ST Link adapter needed) to their latest Version:

  • the calibration takes 10 times longer and one stepper needs to do it eight times!
  • now the steppers create when active a incredible noise and it does not matter which settings (OLED or dip switch) closed loop is gone!
  • the manual at their github repo is useless and wrong either with the new Firmware
  • the intelistep fork is not functional until now, so maybe this would be an option in the future

I now ordered TMC2209 and replace the S42B drivers with them.

1 Like

Do not use S42B V2.0 Stepper!

now I replaced the S42B Stepper driver with TMC2209 and Milled my first parts (2 hours run time)

  • No shaking
  • No issue while the stepper decides to change the direction as it want sometime

Still no reply from BTT so the SW of their steppers is at least crap and absolutely unusable!

1 Like