Logan Model 200 Servo Threading

I ordered a couple of Blue Pill STM32's, and after a little research decided to get a couple of Maple Mini STM32's as well. I lost the Monarch 10EE to someone with deeper pockets, so I'll have more time to look at them this summer that I was hoping to spend restoring the 10EE. I'm very sad about that. It was dirty, but it ran like a top and had some Manhattan Project history.

My spindle encoder is handled by a pin interrupt, and so is the encoder knob. The PWM output to the microstepper is built on a Timer4 interrupt that counts the pulses. Then I use an overflow interrupt on Timer3 to extend it to 32 bits for things like the RPM calculation. The Arduino serial ports are also interrupt driven, so you just stuff the serial buffer and go do other things.

The microstepper controller I'm using is an HBS57 that I picked up from Banggood with a NEMA 23 motor. That 2.2Nm motor was too long to fit, so I got a 2Nm Leadshine from OMC Stepper Online that has plenty of torque. I also got a CL57T driver from OMC but couldn't get it tuned up to work as well as the one from Banggood (without tuning). I've set the HBS57 to 1000 steps per revolution, it's quiet, barely gets warm, and the motor barely gets warm either. The CL57T was noisy, and the default settings heated up the motor like crazy. I tuned it some, but just couldn't get it working as well as the HBS57 right out of the box. Most of the time you can't hear it. The whine gets a little more noticeable when jogging the carriage at high speed, but it isn't bad. It all runs from a 36V/150W Mean Well switcher, which is marginal, but it fits in the enclosure.

I spent the weekend tightening up the code and working on feeding to stops. I really want that feature because it will be a huge time-saver, but I just can't get my head out of my butt and get it properly synced for threading yet. It's very frustrating. Might have gotten it, but had to spend an hour chasing a compiler bug, which didn't improve my mood. Finally fixed it by adding a completely unnecessary pair of braces in the right place.
 
Maybe it was Expresso he is asking for????
On a side note, I am totally intrigued with this thread, because I know what the machine can do after you guys stop talking Techi...lol
 
Nice!

I think i have mine working. I got the encoder mount setup early this morning and I hope to get a test run in tonight!

I ended up going with an esp32 which has a screen on the board (lolin 32 d-duino-32 clone) and it seems to work great. I currently have it setup for 1/32 microstepping. What are you using? The russion ELS was optimized for 1/4 steps.

My motor has a decimal based microstepping mode (not sure how that actually works). I wonder which is more accurate? 10 based would seem to work better for metric conversions.

How do your controls work? Do you set the stops and then it just moves from the right stop to the left stop after you push a button?

Are you stops physical (limit switches) or do you just record the motor position?

Have you considered what it does if it stalls?
 
The "arrow" buttons on the touch screen control the feed direction. I keep track of the leadscrew displacement, display it in real time, and compare it to the limits on each spindle tick. It stops when it reaches a limit and waits for you to touch the direction button to send it the other way. The direction buttons also provide a jog function with smooth acceleration when the spindle is stopped. I jog to the left and right positions and set the limits, then start the spindle. Zeroing clears the limits. I really need to get to work on a proper video to demonstrate it all.
 
Super nice job packaging the Arduino, power supply, stepper driver, etc. in your main enclosure.
 
I've been testing for a couple of days now that I've got things fully functional, and what has become apparent is that this is slicker than bug snot.

Except for one thing --- it's so efficient and fast now, it just cries out for a quick-acting compound lever like a Hardinge HLV, or a crossfeed dial stop like a Monarch. Any suggestions for an adjustable stop project?
 
Back
Top