Daydreaming about an Electronic Leadscrew - Page 1
Forum section: electronics / general

author: jpanhalt
author_rank: Super Contributor
timestamp: March 28, 2023, 02:24:46 pm
content: The leadscrews on my lathes are imperial thread. I would like to cut metric threads. I know there are conversion gears for some lathes, like older Hardinge, for which one of the pair is 127 teeth and the other is 125 teeth (or similar). The little lathe I want to convert is a Prazi SD300 (attached). It's a bit unusual in not having half-nuts or threading dial, but can still be used for threading with various change gears. It's still a PITA to do. The leadscrew is 20 tpi (0.05" per turn). My first thought was to make an electronic half-nut and threading dial, which should be relatively easy. Here's the daydream part: If going to that trouble, why not design for real metric too?My rough plan is to use cog belts and a stepper motor to drive the leadscrew with a rotary encoder coupled to the spindle. I will probably have an encoder on the leadscrew as well, either for feedback or simply for doing what a threading dial does.I haven't found any cogged/timing pulley that has 127 teeth.Can anyone suggest another simple way that will give a very close approximate to metric?I haven't worked out the allowable tolerance for various metric threads, but read that 1% error per thread (i.e., 0.01mm per 1mm pitch, or 0.05mm off at each end for 10 threads) is OK for a home workshop.

author: tpowell1830
author_rank: Frequent Contributor
timestamp: March 28, 2023, 03:07:05 pm
content: There are several YTers that developed an electronic lead screw but I liked this guys approach.

author: Andy Watson
author_rank: Super Contributor
timestamp: March 28, 2023, 03:42:01 pm
content: I've been watching the Electronic Lead Screw project , perhaps one day I will get around to doing something about it. In the meantime, I have both 21 and 63 tooth gears in my set of change wheels. If you only require occasional use, could you 3D print a 127 gear?

author: jpanhalt
author_rank: Super Contributor
timestamp: March 28, 2023, 04:49:29 pm
content: Thanks for the speedy replies. I am not too worried about the coding. I did some of that several years ago to coordinate a stepper motor to a rotary encoder. I used an optical one (lost in memory) and a magnetic one (AMS5048).My main concern was mechanical for getting as close to 1.27 to 1 (or whatever). Of course, doing metric threads on imperial lathes is not new, and I found a table some generous person posted years ago (attachment1). W= gear on spindle (Werk) that drives Z1; Z1 and Z2 on a keyed shaft (white gears) and turn together; L = leadscrew (attachment2). The gear combination shown for 1mm pitch came up to 1.000606, which is less error than I suspect for the leadscrew when cutting a 20 tpi thread.Hope my math is right.I need to start playing with a spreadsheet. What are good hobbyist sources for cogged pulleys? I am not totally adverse to gears, but belt drives are quiet.

author: james_s
author_rank: Super Contributor
timestamp: March 28, 2023, 05:06:42 pm
content: Quote from: jpanhalt on March 28, 2023, 04:49:29 pmI would try McMaster-Carr, they're my go-to for mechanical bits and pieces.

author: jpanhalt
author_rank: Super Contributor
timestamp: March 28, 2023, 05:22:31 pm
content: Thank you , James. I always check McMaster-Carr. When I lived on the East side of Cleveland, I could easily drive to their will call desk and get same day without shipping. It's a great resource, but expensive.

author: jpanhalt
author_rank: Super Contributor
timestamp: March 28, 2023, 07:34:36 pm
content: As the title says,"Daydreaming."This project has been in the back of my mind since Fall as I finished up my other project (a SmartRoast thermometer). I had not searched very hard for information, but the 4000 pulses per revolution in the YT seemed a bit high. On further search, I found this site:https://www.rocketronics.de/en/els/faq/#:~:text=The%20pulse%20rate%20of%20the%20encoder%20should%20be%20400.300 euro for a system? Not bad. Anyone with Rocketronics.de experience? BTW, it suggests an encoder with only 400 pulses per revolution. That sounds closer to what I would have guessed.

author: Benta
author_rank: Super Contributor
timestamp: March 28, 2023, 08:18:10 pm
content: Far too much effort, there's a much simpler trick.I have a somewhat larger lathe with metric leadscrew, but that's just the "inverse" of your issue with the same solution.The problem is, that a 127-tooth gear wheel won't fit on the end of the spindle (or on the banjo), it's simply too large.The solution is to use a 66/52 transposer pair, whichwillfit.That gives a ratio of 1.2692, which is close enough to 1.27 for all uses I've ever had.Now, whether Prazi offers those, I don't know, but 33/52, 66/26 or 33/26 transposing will work the same.EDIT: OK, it seems Prazi don't.Apparently you have a complete set, which is 30, 35, 40, 45 .50, 55, 60, 65, 75.The missing 52- and 66-tooth gear wheels shouldn't be too hard to find.The specs for the SD300 are pretty standard:Material: Nylon/Delrin, most probably reinforced.Module: 1Width: 8 mmWidth at hub: 10 mmPressure angle: 20 degrees.No idea about hole size, but that should be really simple to measure on your machine.Cheers.

author: jpanhalt
author_rank: Super Contributor
timestamp: March 28, 2023, 08:49:41 pm
content: Thank you, Benta. We seem to share a deep love for machines.Neither the 66 nor 52 tooth gears were available from Prazi or its successor(s), but they may not be hard to find. The other problem is the absence of a threading dial/half-nuts and stopping before hitting the spindle (without a groove). When a groove is possible, I use it. Otherwise, I modified the crossfeed to mount my tool post on the extreme rear, machine off the back, and reverse the headstock. Let me add, I have a real, quite capable lathe in storage. The Prazi was a stop-gap measure. Unfortunately, "stop-gap" has turned into 20 years. ): A high priority is to bring the "real" lathe out of storage this Summer. It's a Smart and Brown British lathe from 1966 and is a joy to use, once you get used to it -- typical British.The little Prazi is in my basement, which is warm. The Smart & Brown is in the barn.My main reason for this dream is to flesh out a project that will keep me occupied next Winter. The days just fly by when I am doing a project, making parts, and writing code.Regards, John

author: langwadt
author_rank: Super Contributor
timestamp: March 28, 2023, 11:33:00 pm
content: Quote from: jpanhalt on March 28, 2023, 08:49:41 pmwith an "electronic" lead screw it is easy to add an auto stop feature so the carriage stops at a preset position, once you reverse the spindle it can then pickup at the right spot to stay in sync

author: jpanhalt
author_rank: Super Contributor
timestamp: March 29, 2023, 12:17:25 am
content: Yep, in fact, I built something like that soon after I got it based on a Digimatic (Mitutoyo) digital dial caliper that had a modified SPI output. In those days, I had no idea how to read SPI, so I simply zeroed the dial and looked for when the signal went negative. Crude, but it worked. On/Off is a typical SPDT relay circuit that holds on until the coil current is interrupted. Hence, it was easy to stop.One of my goals for the ELS is of course to do the same. Another thing that can be done is to taper a portion of the last thread with a servo/stepper on the cross slide. I am not going to go that far. I just do a rough approximation manually when I don't use a groove. I mentioned earlier cutting threads from the back side when not using a groove at the end. In that case, tapering the last thread comes naturally as you cannot feed into a piece that is not turning.Edit: This bolt was done that way (attachment)

author: jpanhalt
author_rank: Super Contributor
timestamp: May 01, 2023, 07:29:04 pm
content: Moving Forward SlowlyI am looking for the leadscrew drive now and am considering a servo drive instead of stepper. EXmotion(an Emerson company) has "All-in-One" BLDC 24V motors and drive for about $200 or less.Links:Selection:https://www.ezmotion.co/User's manual:https://media.ezmotion.co/product-documents/user-guides/MMS-MMP7xx-x1_User_Guide_r1.0_5_6.pdfDoes anyone have experience with them?I am considering something in the 50W to 77W range. The spindle motor is about 184W DC @ 135V. It's a very small lathe. The leadscrew knob radius is about 22mm and is easy to turn.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: May 06, 2023, 12:01:59 pm
content: For mechanical transmission, you will need a gear with 127 teeth, because it is the smallest common denominator between Metric and Banana units. Any other ratio will cause rounding errors. In your first post you write that 1% pitch deviation is acceptable for you, but that only works as long as you keep the half nut engaged. This method can not be used with a lathe treading dial. At the moment you disengage the half nut and the threading dial starts turning, you start accumulating errors, and for cutting thread (in maybe 10 passes, and delay's in between) the error will be too big and you will not be able to cut your thread because the passes do not line up. If your transmission ratio is not exact, you always have to keep the half nut engaged and turn the whole thing in reverse to "unwind" the accumulated error for the next pass.For software, I saw the video from Clough42, and he uses some beefy TI processor and (presumably) complex calculations, but I have not looked at his firmware. A simple and very effective approach is to use a variant of the Bresenham line drawing algorithm. With this algorithm you can make any transmission that can be expressed as a division of integers (the result does not have to be an integer, but can be an rational number) without any error. The bresenham algorithm is exact! And it is also very low on computing power.For your motor. I suggest to start with a stepper motor for your first projects. You can get more performance out of servo motors, but they are also more dificult to control. It's quite likely you have to set PID parameters to get a stable response form servo motors, and a stepper motor is plenty good enough for this application. You can get the most power out of any given motor at high speed. If a motor is blocked, it can still deliver torque, but it can't deliver power. Stepper motors generally run quite well upto about 600rpm (For Nema23 sized motors). You can use the existing gears to make an (approximately 1:10 to 1:30) transmission between your motor and the lead screw. You can also use a stepper motor with built in gear or make something with a timing belt if that is easier. The exact ratio is not important, you can simply put the exact gear ratio in the Bresenham algorithm.Also note that gears always have an integer number of tooth. There are no gears with fractional teeth. This means that any transmission made with gears (or timing belts etc) can be modeled exactly with the Bresenham algorithm and without accumulating error over time.Edit: "irrational" -> "rational" (Math classes were a long long time ago. even in another century

author: jpanhalt
author_rank: Super Contributor
timestamp: May 06, 2023, 12:53:41 pm
content: Thank you for that advice. I was aware of the use 127/125/100 in larger lathes, e.g., Hardinge HLVH. I do have a good lathe* (not Hardinge) stored in my barn. A project this Summer is to fix up an area for it and the mill that is rodent proof. This Prazi/MD300 is tiny and those larger gears in module 1 won't fit without modification. So, I bought a 47/37 pair that will fit. Ratio: 1.27027..., which is pretty close.I thought about a stepper and watched the Clutch42 comparisons. In the latest YT I saw, he attached a NEMA 23 integrated servo and driver from Stepperonline and decided to keep it:https://www.youtube.com/watch?v=clgpZJFoqIQ Last night, I bought the same one for about $100 including DHL shipping. I did firmware for a stepper a few years ago and wanted a new challenge. Coding is actually a Winter 2023 project. I wanted to get a start on it now, particularly the mechanical part as it is awfully cold in the barn in the Winter.John*That lathe, a Smart & Brown Model A, which I got in the early 80's is a joy to thread with. It was built in approximately 1966 and is in great shape. Unfortunately, it is imperial and Whitworth to boot.

author: langwadt
author_rank: Super Contributor
timestamp: May 06, 2023, 04:37:47 pm
content: Quote from: Doctorandus_P on May 06, 2023, 12:01:59 pmmost small lathe leadscrews are 1-2mm pitch so for most thread sizes the ratio is closer to 1:2

author: jpanhalt
author_rank: Super Contributor
timestamp: May 06, 2023, 04:42:59 pm
content: That's correct. My Prazi is 20 tpi (1.27mm), and everything runs off the lead screw all of the time. There is no rack pinion for rapid movement, nor are there half-nuts..

author: sokoloff
author_rank: Super Contributor
timestamp: May 06, 2023, 07:07:55 pm
content: Quote from: Doctorandus_P on May 06, 2023, 12:01:59 pmThe division of two integers always (definitionally) results in a rational number.

author: Benta
author_rank: Super Contributor
timestamp: May 06, 2023, 09:40:53 pm
content: Quote from: jpanhalt on May 06, 2023, 12:53:41 pmNice one! It's better than the 66/52 approximation on my lathe.

author: jpanhalt
author_rank: Super Contributor
timestamp: May 06, 2023, 09:48:55 pm
content: It's also available on eBay in a 3D printed plastic version. I got a steel version from China (considerably cheaper than the 3D print). They are cast, so center may be a little off. Years ago, I asked how to center a gear in a 4-jaw for on-center boring. The answer I got was to use copper strips. I use 0.025".

author: langwadt
author_rank: Super Contributor
timestamp: May 06, 2023, 10:13:59 pm
content: Quote from: jpanhalt on May 06, 2023, 09:48:55 pmsorta related,https://youtu.be/1paTlW-W9Zo

author: Benta
author_rank: Super Contributor
timestamp: May 06, 2023, 10:22:33 pm
content: Quote from: langwadt on May 06, 2023, 10:13:59 pmNot really, unless you have a very big wallet.

author: Benta
author_rank: Super Contributor
timestamp: May 06, 2023, 10:27:41 pm
content: Quote from: jpanhalt on May 06, 2023, 09:48:55 pmForget 3D, it has no strength. Like I wrote, the original Prazi gears are reinforced Nylon/Delrin.Cast iron is a good choice, it meshes well with the Delrin.Concerning copper: yeah, but aluminium will work just as well and is easier to find.Can you post a link to the gear supplier?

author: langwadt
author_rank: Super Contributor
timestamp: May 06, 2023, 10:30:17 pm
content: Quote from: Benta on May 06, 2023, 10:22:33 pmsure if you do it in steel, he started with 3D printed

author: jpanhalt
author_rank: Super Contributor
timestamp: May 06, 2023, 11:08:28 pm
content: @ Benta, Here's the original listing:https://www.ebay.com/itm/174747512509There are at least 2 that offer the same pricing.Only the larger gears are hardened. The sizes I ordered are soft castings. Should be here in about a week.

author: Benta
author_rank: Super Contributor
timestamp: May 06, 2023, 11:51:27 pm
content: Wow, dirt cheap to say the least.You'll probably need to bore them out and mount them on a bushing. Personally, I'd just braze them together after that and use the set as a permanent metric/inch transposer. Easier than making keyways etc.I look forward to seeing your results.

author: jpanhalt
author_rank: Super Contributor
timestamp: May 07, 2023, 12:15:38 am
content: Exactly. I don't know have good they are. They will be bored on center. Then, I will see how quiet they are. I do have a few keyway broaches, so, my plan was to turn them to an appropriate thickness and use a keyway on a bushing to join them. Worst case, I will get a mod 1 gear cutter and clean them up (I have an indexer). I hope it doesn't come to that.

author: langwadt
author_rank: Super Contributor
timestamp: May 07, 2023, 12:25:15 am
content: Quote from: jpanhalt on May 07, 2023, 12:15:38 ameach gear cutter only covers a limited number of teeth, but I don't think lathe gears are that critical, there isn't that much force unless you crash and a bit of slack doesn't matter