By continuing to use this site, you agree to our use of cookies. Find out more
Forum sponsored by:
Forum sponsored by Forum House Ad Zone

Electronic Lead Screw Project

The aim of this thread is to detail the build and give help where needed

All Topics | Latest Posts

Search for:  in Thread Title in  
Brian Oldford19/04/2020 19:58:56
avatar
686 forum posts
18 photos

After a minor hiccough with the first attempt I have managed to squeeze the stepper motor into the change-wheel housing of my S7. The first attempt left me unable to close the door without modifying it.
Mk2 means the door can be left unmolested so the lathe can be returned to stock if my efforts prove to be a monumental disaster. The next job is to mount and make the drive for the rotary encoder.s7 door closed.jpgs7 stepper bracket 2.jpgs7 stepper bracket 1.jpg

 

Edited By Brian Oldford on 19/04/2020 20:01:40

Phil Grant19/04/2020 20:51:12
107 forum posts
21 photos

Nice job, I need to look at mounting mine at a right angle to the leadscrew.

Zan19/04/2020 21:15:11
356 forum posts
25 photos

Cracking. That’s a great idea. How will you shield it from all the oil dripping off the tumbler? The bottom inside of mine always has a thick layer of oil on it not excessive oiling, just doing the standard when I remember.....

Brian Oldford19/04/2020 21:57:17
avatar
686 forum posts
18 photos
Posted by Zan on 19/04/2020 21:15:11:

Cracking. That’s a great idea. How will you shield it from all the oil dripping off the tumbler? The bottom inside of mine always has a thick layer of oil on it not excessive oiling, just doing the standard when I remember.....

The tumbler will be removed as stepper reversal can done by electrical switching. If not by the SW, by an additional switch to alter the winding energisation.

Brian Oldford19/04/2020 21:58:03
avatar
686 forum posts
18 photos
Posted by Phil Grant on 19/04/2020 20:51:12:

Nice job, I need to look at mounting mine at a right angle to the leadscrew.

What machine have you got Phil?

Zan19/04/2020 22:00:06
356 forum posts
25 photos

Lol been in the workshop too long! Ignore my idiot posts! Who needs tumblers with a step or drive?

Phil Grant19/04/2020 23:10:45
107 forum posts
21 photos
Posted by Brian Oldford on 19/04/2020 21:58:03:
Posted by Phil Grant on 19/04/2020 20:51:12:

Nice job, I need to look at mounting mine at a right angle to the leadscrew.

What machine have you got Phil?

Small Chinese job from Warco Super mini lathe

Andy Carruthers20/04/2020 08:46:30
avatar
317 forum posts
23 photos

Hi Phil, I have a WM180 and WM240, sadly not available to work on right now - I am very interested to see how you implement the ELS Mod as I expect I can blag your work, please!

Phil Grant20/04/2020 10:12:15
107 forum posts
21 photos

Andy,

I think the layout on the W180 and 240 are quite different than my Mini lathe but you're welcome to use what I have, pictures are in my albums, I'm now looking at converting to a right angle drive arrangement to reduce the width of it all.2018-11-09 16.57.24.jpg

Roy Vaughn02/05/2020 11:33:23
70 forum posts
4 photos

I have just got my implementation up and running on the lathe, all is operating as it should. During the build I found that screened cable was needed to stabilise the display even without obvious sources of interference nearby. As the control panel is not yet permanently mounted I can move it around to test its residual susceptibility to interference. I've found that when the cable is passed close to either the lathe's motor or the stepper, there is still occasional interference. It gave me a fright the first time it happened with the lathe turning and the feed engaged, when the system switched itself unbidden from a slow metric feed to coarse tpi. Obviously I will arrange the final installation to minimise the chance of interference but the fact that it could still occur with potentially unfortunate results convinced me that something needed to be done. I've therefore made a small modification to the code to disable keypad input when the spindle is turning. Has anyone else made any safety mods to the software?

Brian Oldford02/05/2020 14:09:30
avatar
686 forum posts
18 photos
Posted by Roy Vaughn on 02/05/2020 11:33:23:

I have just got my implementation up and running on the lathe, all is operating as it should. During the build I found that screened cable was needed to stabilise the display even without obvious sources of interference nearby. As the control panel is not yet permanently mounted I can move it around to test its residual susceptibility to interference. I've found that when the cable is passed close to either the lathe's motor or the stepper, there is still occasional interference. It gave me a fright the first time it happened with the lathe turning and the feed engaged, when the system switched itself unbidden from a slow metric feed to coarse tpi. Obviously I will arrange the final installation to minimise the chance of interference but the fact that it could still occur with potentially unfortunate results convinced me that something needed to be done. I've therefore made a small modification to the code to disable keypad input when the spindle is turning. Has anyone else made any safety mods to the software?

Perhaps you would be kind enough to publish those code mods at the Github repository.

Martin Connelly02/05/2020 15:42:31
avatar
2549 forum posts
235 photos

Mach3 has a key debounce setting to help with this type of issue. You can set a minimum time that a key must be pressed before it is acted on.

Martin C

Tony Pratt 102/05/2020 16:00:01
2319 forum posts
13 photos
Posted by Roy Vaughn on 02/05/2020 11:33:23:

I have just got my implementation up and running on the lathe, all is operating as it should. During the build I found that screened cable was needed to stabilise the display even without obvious sources of interference nearby. As the control panel is not yet permanently mounted I can move it around to test its residual susceptibility to interference. I've found that when the cable is passed close to either the lathe's motor or the stepper, there is still occasional interference. It gave me a fright the first time it happened with the lathe turning and the feed engaged, when the system switched itself unbidden from a slow metric feed to coarse tpi. Obviously I will arrange the final installation to minimise the chance of interference but the fact that it could still occur with potentially unfortunate results convinced me that something needed to be done. I've therefore made a small modification to the code to disable keypad input when the spindle is turning. Has anyone else made any safety mods to the software?

Just my opinion but I like the flexibility of changing thing when the spindle is turning.

Tony

SillyOldDuffer02/05/2020 17:14:58
10668 forum posts
2415 photos
Posted by Tony Pratt 1 on 02/05/2020 16:00:01:
Posted by Roy Vaughn on 02/05/2020 11:33:23:

... During the build I found that screened cable was needed to stabilise the display even without obvious sources of interference nearby. ...I've found that when the cable is passed close to either the lathe's motor or the stepper, there is still occasional interference. ... Obviously I will arrange the final installation to minimise the chance of interference but the fact that it could still occur with potentially unfortunate results convinced me that something needed to be done. I've therefore made a small modification to the code to disable keypad input when the spindle is turning....

Just my opinion but I like the flexibility of changing thing when the spindle is turning.

Tony

+1 to Tony. But also, it goes against my grain to cure a hardware fault like interference with a software fix. It's not mad, but I'd prefer to fix the interference first. There's a hint of a related, but different, cable problem in 'I found that screened cable was needed to stabilise the display'.  Likely the signal is being distorted as well.

The LED&KEY display is based on a TM1638 chip. It communicates with a computer with a fast synchronised serial data stream, which is encoded and decoded at each end. It's data rather than plain switching. In addition to power, there are CLOCK, STROBE and DATA signals. My LED module runs at about 300kHz, a radio frequency that doesn't carry well on ordinary cable, being prone to radiate and receive interference and distort. The application  really needs a data cable.

I suggest the problem is made for an Ethernet Patch Cable and RJ45 sockets.

Ethernet cable contains 4 twisted pairs and a shield.

dsc06224.jpg

So Power (+ and -ground) on first pair, STROBE & ground on second, DATA & ground on fourth, CLOCK and ground on the fourth. Then the POSITIVE, STROBE, DATA, and CLOCK signals are each independently balanced against ground to prevent interference and cross-talk. And all four pairs are further shielded behind an Aluminium foil wrap. Carrying high frequency signals on twisted pairs allows them to go further along a cable without losing shape and amplitude.

A standard ethernet patch cable can be bought: plug pin connections described here.

However, at the sockets, the pins are not Ethernet standard. Instead the ground side of each pair should be brought together and grounded at both sockets. Then the other 4 pins are run to POSITIVE, STROBE, DATA, and CLOCK; any pair can be used provided the computer and display ends match!

External RF interference to power and control circuits is almost always due bad practice inside the victim. It's the electronic equivalent of a leaky roof. Better to fix the roof than catch drips in buckets!

Dave

 

 

 

Edited By SillyOldDuffer on 02/05/2020 17:20:04

Roy Vaughn02/05/2020 19:16:46
70 forum posts
4 photos

Thanks for the information SoD. As an ex-professional programmer (many years ago now) but latterly a user of microcontrollers for hobby purposes, I am familiar with Cat5/6 cabling but never in non-standard (non-balanced) usage you propose or using STP rather than UTP. The idea that solving a hardware problem in software is possible mad comes as a surprise, in the microcontroller world the software often (usually) has to work around and protect against "hardware" artifacts, that is, the real world. For example, contact debounce is simple in software and saves one or two components, which can be worthwhile if you are pushed for space or weight as my projects mostly are. I agree that curing interference at source is preferable and will definitely try your recommendation. However, seeing the lead screw take off in high gear is hard to forget and I will be keeping the software fix in place in case the hardware defence is ever breached.

The fix hardly deserves a mention on Github, it's simply a jump around the input reading statements in the Userinterface.ccp module if the spindle speed is greater than zero. Pm me if you want further info. As well as defending against interference, the fix also protects against finger trouble on those little keys. A refinement, if you really want to alter settings with the spindle in motion but still provide some protection against the worst consequences, would be to disallow change in more specific circumstances, e.g. to disallow switching between feed and thread, to inhibit the up/down buttons unless in feed mode, by making changes dependent on the rpm (I think there is some stuff on Github along these lines), etc.

Thanks all for your thoughts. Off to Ebay now to buy an Ethernet patch lead.

Roy

Michael Gilligan03/05/2020 11:22:19
avatar
23121 forum posts
1360 photos
Posted by SillyOldDuffer on 02/05/2020 17:14:58:

[…]

External RF interference to power and control circuits is almost always due bad practice inside the victim. It's the electronic equivalent of a leaky roof. Better to fix the roof than catch drips in buckets!

Dave

.

Brilliant summary, Dave yes

MichaelG.

SillyOldDuffer03/05/2020 12:06:12
10668 forum posts
2415 photos
Posted by Roy Vaughn on 02/05/2020 19:16:46:

...

The idea that solving a hardware problem in software is possible mad comes as a surprise, in the microcontroller world the software often (usually) has to work around and protect against "hardware" artifacts, that is, the real world. For example, contact debounce is simple in software ...

Roy

Hi Roy,

I apologise for 'mad', it was a very poorly chosen word! I was thinking of my dodgy efforts at overcoming hardware problems in software, especially interference, not your valid examples!

Been playing with a couple of different 433Mhz transmitter and receiver modules and Arduino this week and one of the transmitters (claimed 90m range) generates enough RF to upset the Arduino. Scope screenshot shows 3V of noise superimposed on an Arduino 5V digital output pin when the transmitter is sending!

sds00002.jpg

And the el-cheapo 5V wall wart I first used to power the receiver is noisy enough to deafen it.

Someone who shall remain nameless spent a day attempting to fix the software rather than sort out shielding, short wires, and a better power supply.

blush

Dave

Roy Vaughn03/05/2020 18:33:06
70 forum posts
4 photos

No offence taken Dave. I've ordered the bits for an STP cable to replace my existing screened-but-non-twisted pair cable and we'll see how they compare. I can't provoke any interference at all today so I expect it will be inconclusive, but extra margin would be beneficial.

Brian Oldford09/05/2020 12:24:43
avatar
686 forum posts
18 photos

A couple of photos of where I've got to with the Rotary Encoder mount and drive arrangements.

 

drive 2.jpgdrive 1.jpg

And a photo of the quadrature outputs on my osilloscope.quadrature.jpg

Edited By Brian Oldford on 09/05/2020 12:25:28

Phil Grant28/05/2020 09:12:35
107 forum posts
21 photos

Hi,

I've had my stepper mounted end on to the leadscrew but always wanted to have it at right angles but didn't want to spend the cash on a proper gearbox so I've been playing around with the idea of my own mount.

I ordered some "Mitre / Bevel" Gears from China for about £3 and did a design in F360 with the idea of 3D printing them, yes I know that the 3D printed parts may not be up to it but it's not going to cost me a lot to try it out.

Anyway i've got the first off prototypes printed and now just checking for fit. Here are some pictures just incase it sparks any ideas .... Still very much a work in progrgess though.90 deg stepper 1.jpeg

90 deg stepper 2.jpeg

90 deg stepper 3.jpeg

All Topics | Latest Posts

Please login to post a reply.

Magazine Locator

Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!

Find Model Engineer & Model Engineers' Workshop

Sign up to our Newsletter

Sign up to our newsletter and get a free digital issue.

You can unsubscribe at anytime. View our privacy policy at www.mortons.co.uk/privacy

Latest Forum Posts
Support Our Partners
cowells
Sarik
MERIDIENNE EXHIBITIONS LTD
Subscription Offer

Latest "For Sale" Ads
Latest "Wanted" Ads
Get In Touch!

Do you want to contact the Model Engineer and Model Engineers' Workshop team?

You can contact us by phone, mail or email about the magazines including becoming a contributor, submitting reader's letters or making queries about articles. You can also get in touch about this website, advertising or other general issues.

Click THIS LINK for full contact details.

For subscription issues please see THIS LINK.

Digital Back Issues

Social Media online

'Like' us on Facebook
Follow us on Facebook

Follow us on Twitter
 Twitter Logo

Pin us on Pinterest

 

Donate

donate