Testing servomotors in my printer... again.
-
@joergs5 said in Testing servomotors in my printer... again.:
to set it to 2500.
Set what to 2500?
I looked up electronic gearing and it seems to be about getting multiple motors to sync to one encoder at the same or different speeds. With one motor and encoder, is there some value in using electronic gearing? How does electronic gearing relate to setting the steps per rev via dip switches?
The thing has a 1000 line encoder so I would think that I should be able to set up 1000 steps/rev (assuming that the electronics has that high resolution)...
-
@mrehorstdmd said in Testing servomotors in my printer... again.:
Set what to 2500?
This seems to be an information from JMC's JASD drivers. There are models with 1000, 1250 and 2500 encoder lines. Please ignore. According to one forum user, JMC confirmed that the iHSV have 1000 encoder lines.
-
I've been doing a lot of digging into this and found a some useful things:
-
for the curious, here's a teardown with a bunch of photos of an iHSV57 (NEMA-23) servo.
-
I had a lot of problems getting JMC1.7.6 to work on my Windows 10 laptop. It kept throwing error messages about a log file already in use. I finally gave up and installed Robert Budde's python tool on the Lubuntu 20.04 netbook (2007 vintage!) that I use to send files to my printer. I installed the prerequisites per the instructions in the readme file without any trouble at all, and ran the program and it worked.
When you run it, there is a selection box that has you choose either iHSV57 v5x or v6x motors. The v5x selection didn't work with my iHSV42 motors, the v6x selection did.
- I found two English language videos that explain how to tune these motors using auto tune and manually tuning:
https://www.youtube.com/watch?v=_9Q-VFesnA0
https://www.youtube.com/watch?v=jvbw_PMOs-s
-
-
I wrote a gcode files that moves the extruder carriage back and forth at 100 mm/sec with 5k acceleration and used the tuning procedures shown in the videos linked above.
When I did the manual tuning (the second video) to minimize errors I didn't get any better reduction than I did with the first procedure using the autotune built into the drivers. So I went back to the first procedure using autotune and got errors down to +/- 2 steps with higher spikes at the points where the motors reverse direction (sort of expected that). The motors are set for 300 steps/mm, so +/-2 steps is <+/-7 um.
When I tried to print with the new tuning, curves looked good and didn't have the salmon skin or wood grain effect that was pretty bad with the factory settings, but I got a lot of layer shifts. I suspect the problem is that we use nonzero jerk in 3D printers because unlike a CNC mill, the tool doesn't meet any resistance other than the inertia of the mechanism. The jerk would also account for the much larger spikes in errors when the mechanism reverses direction. I suspect that 5k acceleration may be a little high, too.
This weekend I'll try tuning at lower jerk and acceleration and see if I can get it to print without shifting.
-
This is what a test print looks like using factory settings of the drivers and 3:1 drive reduction:
And this is what it looked like about 2 years ago, also factory settings, without the 3:1 drive reduction:
and this is what it looked like with 0.9 degree steppers:
-
@mrehorstdmd Hello,
I try now to wire up a JMC iHSV57 Servo to an RRF board, maybe you are so kind and help me to wire / set it right?this are the axis config line:
M569 P0 S0 R1 T4.0:5.0:6.0:11.0 ; physical drive 0 X goes backwardsThe board is sourced with 24V, the Servo with 30V.
Wired on the Servo to the board are
ENA+ > ENA
DIR+ > DIR
PUL+ > STP
ENA- > GND
DIR- > GND
PUL- > GNDGND of the servo input is also wired to the signal GND
The servo just flashes in one second interval infinite, the JMC 1.7.6 sw is working either but I have no clue which parameter needs to be set either in the servo or RRF to make it working.
Many thank's in advance for all your support!
-
@paulg4h I think your timing values look OK.
I used an expansion board for the Duet2 controller to get differential step/dir/enable signals. I believe that single ended 3.3V signals may not be enough for the input of the servomotor. I wired the expansion board Step+ to the step+ input, step- to step-, etc. and it works fine.
I think that if you're wiring it single-ended you may need a level shifter to get to 5V.Here's the manual for the motors . Page 40-42 covers the connections for step/dir/enable. It shows switched ground, high side switched, and differential input (which I used). There are couple links to youtube videos of the parameter tuning in English a couple posts up from this one.
Take a look at this to protect your power supply and anything else connected to it: https://drmrehorst.blogspot.com/2022/05/bank-account-protection-circuit-for.html
-
@mrehorstdmd manny thank's for your reply!
I will test that within the next days and come back to you!
-
@mrehorstdmd
After adding a level shifter from 3.3 to 5V the servo now works, even when there is no GND connection between the board and servo PSUJay point me to your reverse protection circuit, but I am based in Austria and need to build that at my own for only my four servos which would cost the same as four 36V 154W MeanWell PSU's which I use to drive them on my KillerBee.
-
@paulg4h You don't really need regulated supplies to power motors. If you use analog power supplies with plenty of capacitance you probably don't need to worry about power supplies blowing up due to transients.
The protection circuit protects anything that you might have sharing a power connection with the motor. If you don't share connections there's not much need for the protection circuit as far as I can tell.