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  
Tony Pratt 114/10/2020 09:22:19
2319 forum posts
13 photos

Finally working with no blips!! I fitted the split ferrite collars as suggested but unfortunately no better, I then updated the code from git hub [well my son did] & it's now sorted with no random data changes from the control panel, I think Clough42 lowered the clock speed?

Tony

Roy Vaughn14/10/2020 10:08:24
70 forum posts
4 photos

Tony, glad to hear that. Yes, James says he has lowered the clock speed on the SPI bus which presumably should help noise immunity but still the fact that noise could change the settings dramatically while the spindle was rotating remained. I was seeing the control panel settings being returned as all-1s, which causes the system to go into reverse and enter screw cutting (i.e. usually high pitch) mode. His mods, which prevent changes while the spindle is rotating and check that only one control panel button is pressed at a time, constitute the real protection.

Roy

Tony Pratt 114/10/2020 10:20:48
2319 forum posts
13 photos

Roy, even with the new code installed I can change modes with the spindle running so I am confused.

Tony

Roy Vaughn14/10/2020 10:44:24
70 forum posts
4 photos

Oh, I must have misunderstood what he said in his description of the changes. I must have a look at his code. Roy

Roy Vaughn18/10/2020 12:54:24
70 forum posts
4 photos

James has just released another video describing his software modifications. He does now disable all buttons except feed rate settings while the spindle is turning, with a configuration option to disable the latter also. Time to replace my version.

Roy

Tony Pratt 118/10/2020 13:20:39
2319 forum posts
13 photos

I'm going to leave well alone atm, if I get a problem later on I will get the change done to the latest update but the control panel is currently behaving itself.thumbs up

Tony

Tony Pratt 103/11/2020 15:38:14
2319 forum posts
13 photos

Grr, installed the TI board etc in it's final location but now playing up with random data changes! I tried to install latest software but I think my micro USB cable is kaput so waiting for a new one so i can flash the board. I'm also going for a CAT5 unscreened cable as per Clough42 installation but my question is how is best to connect the 3 data earths to the board earths, are there any relevant YouTube vids or websites? I've now got a spare keypad on top of the electronics enclosure [cable about 2" long] & all is steady again so it must be the screened cable I'm using?? Can't believe how frustrating this is.

Tony

Alan Wood 403/11/2020 15:59:12
257 forum posts
14 photos

There is a later video on YT by Clough that explains how he wired the CAT5 and also explaining the software changes.

I confess I ignored James' recommendations and grounded everything to everything via the enclosure connector panel.

Alan

Tony Pratt 103/11/2020 16:26:41
2319 forum posts
13 photos

Alan,

Thanks for that!

Tony

Roy Vaughn03/11/2020 19:20:02
70 forum posts
4 photos

Hi Tony, I tried Cat5 cable as suggested on this forum but it performed worse than the screened cable I had previously tested. My control panel is housed in a die cast box so I was able to connect it to earth as well via the screen and it helped. However, I couldn't get the noise down to zero (a glitch every few hours) which is why I was forced to implement the changes to the original software release I have mentioned previously. James has now implemented these changes and more. I regard them as essential for safety. Roy

Tony Pratt 103/11/2020 19:25:44
2319 forum posts
13 photos

Thanks Roy, I'm going to update the software asap.

Tony

Dennis R22/11/2020 22:45:07
76 forum posts
16 photos

Problem with ELS

Having set up my hardware on the lathe using a stepper/servo motor and driver CL57Y , the motor encoder resolution being 1000 and the motor to leadscrew drive being 1:2 ratio. Decided to test the set up whilst all the electrical side was still on the bench, with a light cut on scrap went through most of the thread TPIs and feed rates and all seemed well.
Finally finished fitting all cabling and installing in cabinet, upgraded to software version 1.301.

However on attempting to cut a 20 tpi thread it turned out very rough and difficult to see exactly why, so cleaned up end of bar, blackened with permanent marker, changed to 8tpi, put on 0.003" cut and got a perfect first pass, but on second pass with same 0.003" cut was approx 1/16" away and on subsequent cuts filled the bar end. Even tried changing software back to version 1.1 made no difference. See photos
Could this be an encoder or a software problem?
Any help much appreciated.

photo 1.jpg

photo 2.jpg

photo 3.jpg

photo 4.jpg

Thanks Dennis

Mike Poole22/11/2020 23:09:35
avatar
3676 forum posts
82 photos

Are you engaging the half nuts at the correct indicator figure? Try leaving the half nuts engaged and reversing the lathe back to the start as you would with metric threading.

Mike

Dennis R22/11/2020 23:30:58
76 forum posts
16 photos

The half nuts were left engaged and the lathe reversed after backing off the cut.

Dennis

Tony Pratt 123/11/2020 08:36:20
2319 forum posts
13 photos
Posted by Dennis R on 22/11/2020 23:30:58:

The half nuts were left engaged and the lathe reversed after backing off the cut.

Dennis

I have zero knowledge of electronics but if you are 100% sure there is nothing wrong mechanically [nothing loose etc. etc.] I would imagine it is the code you put in? I suggest you double check all your parameters & settings & please report back, also check you have got the right lead screw pitch specified.

Tony

Roy Vaughn23/11/2020 08:59:00
70 forum posts
4 photos

Difficult to imagine how this could be caused by the electronics. As Tony says, more likely to be a mechanical issue, e.g. pulley loose on shaft.

Roy

Simon036223/11/2020 09:29:41
279 forum posts
91 photos

Dennis,

Some thoughts:

  1. backlash through the encoder - so when you go from forward to reverse there are a number of missed pulses.
  2. stepper missing steps - maybe at the point of reverse direction, maybe during the screwcutting run or when returning
  3. noise into the encoder path
  4. since you keep the halfnuts engaged, I don't think the issue can be the config settings since errors here should only result in incorrect pitches/TPIs and not a loss in sync

#1 would appear to be most consistent with the reported symptoms - missing pulses to lose the sync between the leadscrew and the mandrel.

#2 again, I can only see this related to the change of direction at each end of the run. Any inconsistency during the cutting run should be visible as a lack of parallelism between the first and second cuts.

#3 same as above...

I can run my ELS by turning the mandrel by hand so in your case, I would:

  • put a long throw dti on the bed/saddle junction to see how much the saddle moved when I moved the mandrel by a full turn
  • observe the effects of reversing direction

Both observations may shed more light on what is going on and turning the mandrel by hand will also eliminate your motor as a noise source.

Also, check that the various 0V connections are not linked - in particular, the Launchpad 0V and those for the stepper driver - including screen path connections.

Hope this helps, I have had my ELS running for a couple of weeks and it is really good once it is running.

Simon

Dennis R23/11/2020 21:59:27
76 forum posts
16 photos

Thankyou for the replies and suggestions, over the next few days will check everything that I can and report back hopefully reporting a success.

Thanks again

Dennis

Lofty24/11/2020 15:25:01
15 forum posts
2 photos

Dennis, may be you have your encoders mixed up, the motor encoder 1000 pulses per rev used for tracking missed steps and setting the alarm state via the driver and the spindle tracking encoder, the ones I have is

1024 x 4 = 4096.

#define ENCODER_RESOLUTION 4096

Lofty

Alan Wood 424/11/2020 15:58:40
257 forum posts
14 photos

Not sure if it is relevant but a good check that all is well would be to set the TPI setting on the control panel so it matches the leadscrew characteristic and then put an optical tacho on the leadscrew and see if it matches the control panel readout.

I put a request into James to have an enhancement whereby there was an ability on the control panel to get a readout of the user settings as feedback that the config was set to what was expected.

I had a similar problem to Denis but not as severe which was a mixture of the slop on the end of the leadscrew and slop on the half nut.

Alan

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