Difficulty setting up to run smoothly
Steve Pavey | 23/07/2021 21:05:45 |
369 forum posts 41 photos | I've spent the last few months putting a laser cnc together and have just got to the stage of testing the stepper motors. |
Martin Kyte | 23/07/2021 21:34:24 |
![]() 3445 forum posts 62 photos | Have a look at SW4. Should be set to OFF for standstill current reduction. It's section 7 in the data sheet just after Dynamic Current Setting. regards Martin |
Keith Petley | 23/07/2021 22:35:24 |
18 forum posts | Check that the X motor coils are wired correctly. Sounds like one pair may be wired so that they oppose each other rather than work together. Try just one winding out of each pair and see if it improves things - then add the second winding of each pair. Keith |
Steve Pavey | 23/07/2021 22:52:09 |
369 forum posts 41 photos | Martin - I’m pretty sure that I have got sw4 set correctly but I will check to make sure. |
Ronald Morrison | 24/07/2021 12:08:06 |
98 forum posts 4 photos | The power of the stepper motors is a product of voltage and amperage while the heating is just amperage. If possible increase the voltage and the amperage requirement will go down. |
Andrew Tinsley | 24/07/2021 13:15:51 |
1817 forum posts 2 photos | Ronald, if you increase the voltage the current will increase and thus make things even worse! Andrew. |
John Haine | 24/07/2021 13:57:10 |
5563 forum posts 322 photos | No, the driver regulates the current irrespective of voltage. Are the currents you quote the ones given on the motors? If so they are the maximum not the recommended operating level. As as been suggested check the sense of the windings in series or parallel. I use the same drivers on my CNC mill at currents of around 1 amp for X and y and 2 amps for z iirc. |
Steve Pavey | 24/07/2021 18:11:27 |
369 forum posts 41 photos | I’ve had another play about this afternoon. First I removed the Z stepper (the one that was overheating) - I’ll sort it out later. Re the overheating Z motor, there is no provision for adjusting voltage. The dip switch settings adjust the current and the microstepping, except for sw4 as mentioned. Clearly it’s overheating because the holding current is too high, but changing the current setting either results in a motor that doesn’t spin, or doesn’t affect the overheating. Maybe two new drivers are needed. |
Steve Pavey | 24/07/2021 18:17:53 |
369 forum posts 41 photos | Posted by John Haine on 24/07/2021 13:57:10:
No, the driver regulates the current irrespective of voltage. Are the currents you quote the ones given on the motors? If so they are the maximum not the recommended operating level. As as been suggested check the sense of the windings in series or parallel. I use the same drivers on my CNC mill at currents of around 1 amp for X and y and 2 amps for z iirc. John - I’ve just digested your post. I set the current as suggested on the datasheet. Maybe I need to have another go at trying lower current settings. I have also been wondering about the polarity of each of the four windings, and whether the datasheet shows the correct colour codes. I’m not sure how I can test for this. |
John Haine | 24/07/2021 20:33:53 |
5563 forum posts 322 photos | Have you checked the axes for friction? |
Steve Pavey | 24/07/2021 20:57:10 |
369 forum posts 41 photos | Only the Y axis is connected up at the moment (and that’s the one that’s working fine). Being a laser cnc there is very little load on the motors though, even with all the pulleys and toothed belts fitted. Edited By Steve Pavey on 24/07/2021 20:58:25 |
John Haine | 25/07/2021 09:35:40 |
5563 forum posts 322 photos | Actually I'm using the 2M542 drivers which are very similar. I have 6 of them, 4 on the mill (XYZA) and 2 on lathe, and found they behave exactly as expected. The odd behaviour of the motor that can't make up its mind may hold a clue. One cause of that may be that the pulse and direction signals going to its driver have the wrong timing. If the active edge of pulse changes state at the same time as the direction the driver may get confused about which direction it should go in. The controller should have the ability to change this as a configuration option, or the driver. Look in the manual for the position of the jumpers J1 and J3. Does the controller work in "pulse/direction" or "CW/CCW" modes? |
Ronald Morrison | 25/07/2021 14:18:31 |
98 forum posts 4 photos | Posted by Andrew Tinsley on 24/07/2021 13:15:51:
Ronald, if you increase the voltage the current will increase and thus make things even worse! Andrew. The driver I use allows me to change the amount of current which it regulates. By increasing the voltage I was able to reduce the current and still get the same power to the motor. That reduced the heating of the motor and the heating of the driver chip which was cutting out due to overheating. |
Steve Pavey | 25/07/2021 14:59:13 |
369 forum posts 41 photos | John - thanks, I will have a look at the jumpers. I recall seeing a setting on the Ruida setup menu to change from Pul/dir to cw/ccw mode, and also to change from leading to trailing edge. I assume that these controller settings have to match the jumper settings? I’m still a bit puzzled by the talk of changing the voltage - I can’t see how this is done without changing the power supply (mines a 24v Meanwell model). |
John Haine | 25/07/2021 16:56:08 |
5563 forum posts 322 photos | No need to change voltage! 24v should be fine. |
Steve Pavey | 25/07/2021 22:15:14 |
369 forum posts 41 photos | A small bit of progress - in a fit of frustration at my own inability (!) I decided to remove the wiring to the steppers and drivers completely and start from scratch. The result is now three steppers that run smoothly and don’t seem to get hot. I have no idea what I rectified by rewiring which is slightly annoying, but I’m pretty sure it was a daft mistake on my part. But I still have problems with the X axis motor not knowing which way to turn, and it hasn’t been solved by substituting a different stepper motor. I have checked the jumpers in the driver - actually no jumpers are fitted to the pins, so it is set to Pul/Dir and active on leading edge. I configured the Ruida controller with these same settings. I did wonder if the datasheet for the motor has incorrect colours described for the 8 wires, although when I substituted a four wire stepper it exhibited the same behaviour. Another possibility might be some sort of electrical interference, although the cable to the this stepper is the only one that is shielded. |
Martin Connelly | 26/07/2021 08:16:53 |
![]() 2549 forum posts 235 photos | There is a possibility that the voltages being supplied to the enable, pulse and direction connections on the driver board are not going high enough. Some time back TTL chips used 0 and 5 volt signals. When newer technology was introduced (CMOS I think) the voltages were changed to 0 and 3.6 volts. Some computer parallel port were only supplying the 3.6v levels and caused problems with equipment that was expecting 5v. There is a possibility of something similar happening here and the voltage being supplied is not quite enough to switch the state of the direction circuit 100% of the time. There is also the possibility that the voltage levels are not being pulled down to 0v completely as well. What would be ideal is using an oscilloscope to look at the voltage levels and add a pull up or pull down resistor if this was the case. Another option is to add a chip between the transmitter and receiver to clean up the signals. A digital voltmeter on the direction line should be sufficient to see what is happening to the voltages since the direction voltage is not usually pulsing unlike the step signals. Some details here may be slightly out since I am writing this from memory but it is what I think needs looking at. Martin C |
John Haine | 26/07/2021 09:10:16 |
5563 forum posts 322 photos | I can't find the documentation for the controller Steve is using online but there is a connection diagram showing the interface to the stepper drivers with a +5V line, which implies that it's using standard 5V levels. Actually the original CMOS levels were 0 and 5V (or Vcc at any rate, usually 5V), it was TTL that had a 5V supply but the logic levels were a bit lower because of using bipolar transistors. Later CMOS reduced the supply to 3.6V to reduce power consumption and that led to the problem with the PC parallel port. However the controller Steve is using is a dedicated design not using a PC. Still worth checking the logic levels in the documentation though. |
John Haine | 26/07/2021 09:26:41 |
5563 forum posts 322 photos | Try changing the pulse signal to trailing edge active on the controller. It may be that if the edges on pulse and direction are coincident it can't make up its mind. |
John Haine | 26/07/2021 10:08:46 |
5563 forum posts 322 photos | Driver data sheet says that direction signal needs to be stable at least 5 microseconds before active pulse edge. |
Please login to post a reply.
Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!
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
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.