Problems with my Ruida controller after trying my new rotary

How could the hardware change?

:smiley_cat:

There has been an unknown amount of thrashing around, so it’s worthwhile to start debugging from the basics.

For example, I wonder about the (computed) 6525 step/rev setting, because casual rummaging shows many drivers with 6400 step/rev, which would give a nice exact 6.25 ”m/step, rather than 6.130268 ”m/step. I’d like to make sure the driver really does that and what its other choices might be.

Bonus: introducing somebody to how this stuff works is never a Bad Ideaℱ.

Bear with me on this 


I dont mind checking all the settings mainly because I bought it used and since I never did the initial setup, Lord knows what the settings are. This is also a learning curve for me and I’m anxious to learn the steps to fix it.
Right now the carriage is placed in the middle of the work area and homing is disabled, and when main switch turned on just sits there without moving, good so far, Yesterday I had wrote and sent the maximum travel for “X” and Y" of 690MM and I believe 480MM and now when using the controllers arrow keys the carriage travels the full length as it should.
I opened lightburn , tried to frame a small rectangle near the middle of the bed and it brought the carriage to top left limit and the “X” motor kept trying to do as previous jumping around like crazy.
I will go out to my shop now and check the switch settings.

Most people want to use the laser, not understand how it works
 If they are interested that’s one thing
 to assume that is another.

Some people walk away when it gets too confusing


:smiley_cat:

Here is the dip switch settings for the “X” and “Y” motor drivers. both are the same
1.off
2. on
3. on
4. off
5. off
6. on
7. off
8. on
Tom

I took a pic of the driver switch table settings, however my assistant is not here today to help me attach the pic to this thread
. . If you care to send me an email at ogatrains@gmail.com I can send you the pic back by email
failing that what settings shouldI be looking for on the table ?
Tom

And, based on personal experience, stepper motor configuration isn’t in that particular wheelhouse 
 :grin:

Excellent! That was the next thing to check and set, because 380×300 sounded small for a CO₂ laser.

Now one part of the configuration matches the actual hardware!

Because the machine no longer homes when it starts up, the controller assumes it starts up at the home switches. Putting the head in the middle of the platform, which seems like a reasonable place for you and me, means the controller thinks it’s in one corner and moves relative to that position.

Chaos ensues, but for a known reason.

Now you must look those setting up on the table printed on the side of the driver case, which is certainly screwed into a position where you can’t actually read it.

Remember: your drivers may not match my drivers.

For example, assume those were my switches. The picture of my driver shows Switches 5-8 OFF ON OFF ON on the line with 6400 step/rev.

If that’s what your driver says, we’ve found another misconfiguration!

on the table showing 6400 pulse/rev it shows same as yours
5 -8 , off,on,off,on
sw4 is off for half current
the current table (top) shows peak to be 2.1,RMS to be 1.5, sw1 off, sw2 on, sw3 on
to repeat switch settings:
1-8 = off,on,on,off,off,on,off,on
Tom

Bingo!

Now you can compute the correct distance per step:

6.25 ”m = (40 mm/rev) / (6400 step/rev)

In the Vendor Settings for both the X and Y axes, on the Step Length line, change 6.13 to 6.25 and write it out.

Changing those values means the controller will now move the head the correct distance. Previously, it would move 2% too far, which you would eventually notice when you tried to cut something spanning the entire platform.

The settings for SW 1-3 set a reasonable current, although we may have reason to bump it up when we get to speeds & accelerations.

Because laser cutters don’t need much force to maintain their position when the head isn’t moving, leaving SW 4 set to Half Current reduces the power dissipation when nothing is going on.

Now that you’ve set the platform size and step length, it’s time to get homing working.

Do the home switches light up when you threaten them with a cold steel knife blade? :grin:

the “X” and “Y” homing switches can be easily depressed by hand and when depressed turns on two different led’s at the controller so that tells me they are sending the signals to the controller board
Tom
.
I will make the change you mentioned

In your last reply to the thread you wrote 6.13um, whereas the machine settings are 6.310000um, to be changed to 6.25
Is that an error in your calculations or ?
Do you still want me to write it back as 6.25 ?

The 6.31 appears your original configuration screenshots and I mistyped it as 6.13. Keep a close eye on me, because I will, for sure, make mistakes!

You should change it to 6.25, because that value comes from the actual hardware: 40 mm per motor revolution and 6400 steps per revolution. Simply put: this will make the controller’s configuration match reality!

Belay the knife!

Your laser has mechanical switches, rather than the proximity switches in mine, but watching those LEDs light up means the same thing to both of us: the switches work and the controller can see them.

You described the original homing problem as having the head move to the left and smash into the side.

On my laser, the X axis home switch is on the right.

Is the X axis home switch on the left side or the right side of your laser?

If your switch is on the right, then the controller’s homing direction configuration is incorrect. However, fixing the homing direction involves two changes. Let’s make sure it needs fixing before proceeding.

ok I will change it to 6.25 and will write it . The homing limit switch is on the top right.
Normally when I turn power to On the carriage which is sitting at far top left will travel to top right and then back to top left


OK, so the X axis homing seems to start in the proper direction.

The incorrect platform size and incorrect distance per step confused the controller: the hardware was moving more than the controller expected into a place where it shouldn’t go. With those configuration values now set properly, homing should be much less exciting.

The X axis homing dance should go like this:

  • The head move rightward at a stately pace
  • It will tap the X axis home switch over on the right
  • It will back off a few millimeters, then tap the switch again
  • On mine, the head remains at the home position

In the Vendor Settings, set the X axis Enable Homing switch to True and write the configuration. Don’t change the Y axis values yet; let’s not confuse things with too much motion.

Jog the head to the middle of the platform, turn the laser’s power off, turn it back on, and the head should do the X axis homing dance.

If the X axis moves after homing, then we have more misconfigurations to chase down.

bad news
I wrote to enable homing on the “X” axis, then read it back which accepted the change, no movement until I opened the laser window in lightburn and clicked on the HOME icon
The gantry moved slowly from middle of work area in “Y” and in “X” toward the top of bed, then to far left and all hell broke loose again shaking violently, had to power off the machine.

so basically the carriage never moved to the top right and never came close to the “X” limit switch
which is located near top right position
Tom

I took the “X” carriage belt off and turned on the machine, the motor turned counter clockwise which would have pulled the carriage to the left, I then finger tripped the “X” carriage limit switch stopping the motr which would have stopped the movement, then is turned clockwise which would have released the limit switch, then it moved slowly counter clockwise, I then finger triggered the limit switch and motor stopped, describing whet you had mentioned earlier to give the exact adjust for homing. Like I said earlier, seems the carriage travels in the wrong direction.
Note:
funny that since the “Y” movement is still set at false, it brought the carriage in the “Y” direction to do a top homing
Tom

I want to keep LightBurn out of the loop until we get the controller properly configured, which is why I said to turn the laser’s power off and back on again.

LightBurn issues commands to the controller that it’s not configured to handle right now, so there’s no telling what may happen.

OK, so the X axis homing direction is wrong: it’s moving away from the switch. Fixing that requires two changes.

The X Axis Direction Polarity switch controls the homing direction. Change it from False to True.

Because the X axis now moves in the other direction, change the Invert Keypad Direction switch from True to False. This will reverse the direction of the jog controls, so the arrows move the head in the direction you’d expect.

Write those to the controller, then turn the power off & on again.

The head should move to the right and, if the belt is still off, you’ll have plenty of time to blip the switch as before.

If that works and nothing else happens, you can put the belt back on, snug it in place, blip the power, and watch the X axis home the way it should.

Also verify that the console’s left & right arrows (not the LightBurn buttons) jog the head in the proper directions. If not, change the Invert Keypad Direction switch back to True. That’s easy to get backwards when the head isn’t actually moving, so don’t get discouraged. :grin:

I have changed the invert keypad direction from true to false, there is no change in the direction of the “X” motor, either way the motor still revolves counter clockwise whether true or false which still pulls the carriage away from the limit switch (to the left
It does however change the Ruida keypad direction arrows to opposite of what is shown
“invert keypad direction” set to true - gives correct direction according to arrows on Ruida keypad
“invert keypad direction” set to false - gives incorrect or different direction according to arrows on Ruida keypad.
I have only used Lightburn to read and write, Lightburn was not used otherwise
Tom

You must change the X Axis Direction Polarity switch to reverse the homing direction.

You also change the Invert Keypad Direction switch to make the arrow keys move the head as they used to.

Gotta flip 'em both!

I’m confused. You wrote:

That’s what I wanted to avoid, by simply blipping the laser’s power.

LightBurn gives you access to the controller’s fiddly configuration bits, but does a whole lot more under the covers. Best to keep things simple until we get everything else set up.

Don’t worry about getting things wrong or backwards or whatever: none of this will cause any permanent hardware damage: even the horrible graunching sounds don’t indicate anything breaking.

If the X axis goes the wrong way, now you know what to change!

1 Like