Help with 5 axis breakout board HY-JK02-M

More
18 Jun 2014 22:23 #48071 by atipix
Hi everybody,

This is my first post, I'm newbie with LinuxCNC!

I bought a 5 axis breakout board, model HY-JK02-M. I couldn't know the model of the board until I receive it. It's a chinese one, very cheap but good for a start.
With the breakout board I receive the software Mach3 running on Windows but I would like to try under LinuxCNC.
The wiring seems to be OK, I follow the instructions and no smoke...
But for the LinuxCNC part I have a lot of douts, is it compatible? how do I configure the hardware? etc...
If anyone could help me I would aprecieted.

My hardware is:
- 5 Axis Breakout Board HY-JK02-M
- Microstep Motor Drives 2M982
- Wantai Stepper Motor Nema 23 (WT57STH115-4204A), 425oz-in holding torque, 4.2A, with 2 Phase 4 Wires

If anyone has a configuration file for LinuxCNC it will be great.

Picture of the breakout board:
[img size=310x310]gd3.alicdn.com/bao/uploaded/i3/T11NrrXj0...pg_310x310.jpg_.webp[/img]

Thanx.

Please Log in or Create an account to join the conversation.

More
18 Jun 2014 22:46 #48073 by ArcEye
Hi

I have one of these in my spare parts box, they seem OK, didn't actually use it yet.

You need to make a config for your machine rather than the BOB.
You go into stepconf and tell it what is connected to each of the parallel port pins and it will output a config to suit

Alternately, if you have a mach config which works, you can go to this thread and ask JT to convert it for you
www.linuxcnc.org/index.php/english/forum...n-to-stepconf-wizard

The latter is probably your best bet at present

regards
The following user(s) said Thank You: atipix

Please Log in or Create an account to join the conversation.

More
19 Jun 2014 17:48 #48115 by atipix
Hi,

Thanks for the answer. Finaly I tried to make a config file by myself, I know it was risky, I must be a little bit dumb but "No guts no glory!" ;) ... at least still no smoke...

It works!
Here is a little video :)


The engine move (I tried just with one X to start), but still have a lot of doubs and I would like to have an optimal configuration. If somebody could solve some of my doubts it will be great.

1. The maximum velocity of the engine is 75, I think is to slow, is it? If I change the "Driver Microstepping" parameter from 2.0 to 1.0 I could get a 150 velocity but the engine has a lot of vibrations and that's not cool! Does this engine can go faster. What is it's maximal velocity? Is there others parameters that affect the velocity?

2. For the first try I configure the driver for 4.3A RMS current (is it right for 4.2 A/phase engine?) and 200 microsteps. I was thinking to use 4000 microsteps resolution, is it right for a milling? What it's recommended? Apart the "Motor steps per revolution" are there other settings that I should change in parameters or electricaly.

3. In the "Step Time" and "Step Space" parameter I use 2500 because I multiply the "Pulse Low Level Time" of the driver (2.5 us) by 1000 to get it in ns. Is it right? I'm not realy sure about these parameters in the stepper configuration, what should I use for my hardware?
Step Time: 2500
Step Space: 2500
Direction Hold: 10000
Direction Setup: 5000

4. I make the "Test Base Period Jitter" and I get 20000 (a little bit less), but comparing with other results that I saw this is very high. I use an old computer, Semptron 3100+ at 1.8Ghz, is it enought? In what does it affect? Should I use a better PC or is it enought with this one?

5. My card has connections for a B engine I didn't see B engine in LinuxCNC. We can't use B engine in LinuxCNC? For the milling machine I would like to use X1, X2 (slave),Y, Z and A for the lathe, is it possible? How can I do it?

I write down here my configurations to check and my hardware information.



LinuxCNC Stepper Mill Configuration


Basic machine information:

Machine Name: AtipixMill
Axis configuration: XYZ
Machine units: Millimeter
Driver type: Other
Step Time: 2500
Step Space: 2500
Direction Hold: 10000
Direction Setup: 5000
First Parport Base Address: 0x378
Base Period Maximum Jitter: 20000
Onscreen prompt for tool change: ON


Advandced Configuration Options:

Include Halui user interface component: ON
Include custom PyVCP GUI panel: ON
Existing custom program: SELECTED
Include connections to HAL: ON


Parallel Port Setup:

-> Outputs (PC to Mill):
PIN 01: Amplifier Enable
PIN 02: X Step
PIN 03: Y Direction
PIN 04: Unused
PIN 05: A Direction
PIN 06: A Step
PIN 07: Z Step
PIN 08: Z Direction
PIN 09: Spindle PWM
PIN 14: X Direction
PIN 16: Y Step
PIN 17: Unused

-> Input (Mill to PC):
PIN 01: Both Limit + Home X
PIN 02: Both Limit + Home Y
PIN 03: Both Limit + Home Z
PIN 04: Both Limit + Home A
PIN 05: Unused


X Axis Configuration:

Motor steps per revolution: 200.0
Driver Microstepping: 2.0
Pulley teeth (Motor:Leadscrew): 1.0
Leadscrew Pitch: 25.133
Maximum Velocity: 75.0
Maximum Acceleration: 1000
Home location: 0.0
Table travel: 2000.0
Home Switch location: 0.0
Home Search velocity: 0.0
Home Latch direction: Same



Microstep Driver 2M982 configuration

For 4.3A RMS current:
SW1: 1
SW2: 0
SW3: 1

For 200 microsteps:
SW5: 0
SW6: 0
SW7: 0
SW8: 0



Hardware


Motors:

1. Wantai Motor WT57STH115-4204A - Nema 23 Stepper Motors with 425oz-in holding torque, 4.2A, with 2 Phase 4 Wires

Documentation:
dl.dropboxusercontent.com/u/49075006/Wan...WT57STH115-4204A.jpg

Technical Specifications:

Part No.: WT57STH115-4204A
Frame Size: NEMA23
Step Angle: 1.8 degree
Voltage: 3.78V
Current: 4.2 A/phase
Resistance: 0.9 Ohm/phase
Inductance: 3.8 mH/phase
Holding torque: 300Kg-cm (425oz-in)
Rotor inertia: 800 g-cm2
Detent torque: 0.12 kg-cm
Number of wire leads: 4
Weight: 4.18lb (1.9 kg)
Length: 78mm
Shaft diameter: 8mm
Shaft type: Round shaft, single shaft


2. Microstep Driver 2M982

Documentation:
dl.dropboxusercontent.com/u/49075006/Mic...20Driver%202M982.pdf

Technical Specifications:

Supply voltage: 24~80V DC
Suitable for 2-phase stepper motors
High performance, Cost-effective
Output current: Max 7.8A
Speed self-adjustment technology
Pure-sinusoidal current control technology
Pulse input frequency: Max 200 KHz
Optically isolated input and TTL compatible
Automatic idle-current reduction
15 selectable resolutions, MAX 12,800 steps/rev
PLS ,DIR (CW/CCW) ,ENA mode
Undervoltage, Shortvoltage, overvoltage, overcurrent protections


Electrical Specifications:
_____________________________________________________________________________________________
| |
Parameters | 2M982 |
|____________________________________________________________________|
| | | | |
| Min | Typical | Max | Unit |
________________________|______________|_______________________|________________|______________|
| | | | |
Output current(A) | 1.3 | - | 7.8 | A |
________________________|______________|_______________________|________________|______________|
| | | | |
Supply voltage(V) | +24 | +48 | +80 | VDC |
________________________|______________|_______________________|________________|______________|
| | | | |
Pulse input frequency | - | - | 200 | KHZ |
________________________|______________|_______________________|________________|______________|
| | | | |
Pulse Low Level Time | 2.5 | - | - | us |
________________________|______________|_______________________|________________|______________|


Current setting:

RMS current Peak current SW1 SW2 SW3
1.3A 1.8A 0 0 0
1.8A 2.5A 1 0 0
2.5A 3.5A 0 1 0
3.1A 4.3A 1 1 0
3.7A 5.2A 0 0 1
4.3A 6.0A 1 0 1
5.0A 7.0A 0 1 1
5.6A 7.8A 1 1 1


Microstepping setting:

Step/rev.(for 1.8°/motor) SW5 SW6 SW7 SW8
200 0 0 0 0
400 1 0 0 0
500 0 1 0 0
800 1 1 0 0
1000 0 0 1 0
1200 1 0 1 0
1600 0 1 1 0
2000 1 1 1 0
2500 0 0 0 1
3200 1 0 0 1
4000 0 1 0 1
5000 1 1 0 1
6400 0 0 1 1
8000 1 0 1 1
10000 0 1 1 1
12800 1 1 1 1


3. 5 Axis Breakout Board HY-JK02-M

Documentation:
dl.dropboxusercontent.com/u/49075006/5%2...oard%20HY-JK02-M.pdf

Parallel control definition:

PIN 09: Spindle motor
PIN 01: Enabled
PIN 02: X Step
PIN 14: X Dir
PIN 16: Y Step
PIN 03: Y Dir
PIN 07: Z Step
PIN 08: Z Dir
PIN 06: A Step
PIN 05: A Dir
PIN 04: B Step
PIN 07: B Dir


Hand control definition:

P 01: B Step
P 02: B Dir
P 03: A Dir
P 04: Z Step
P 05: Y Step
P 06: X Step
P 07: X Dir
P 08: Enabled
P 09: 5V/V DD
P 10: 5V/G ND
P 11: A Step
P 12: Z Dir
P 13: Y Dir
P 14: Enabled
P 15: Enabled


Limit definition (1 to 5):

X -Limit: PLT-P10
Y- Limit: PLT-P11
Z- Limit: PLT-P12
A- Limit: PLT-P13
B- Limit: PLT-P15

Please Log in or Create an account to join the conversation.

More
19 Jun 2014 18:32 #48119 by ArcEye
Hi

1) 75 is very high in a metric set up with small steppers
you have to multiply by 60 to get the units per minute of movement, that will give you 4.5 metres per minute

I would start at 25 - 30 for velocity and max 40 for acceleration and tune once you have it connected to a machine.

2) Don't use more that 4x microstepping (800), that will give smoother movement without spending the whole time generating steps to get next to nowhere (4000 is ridiculous)

3) Look up the stepper timings here for the equivilent Leadshine driver
wiki.linuxcnc.org/cgi-bin/wiki.pl?Stepper_Drive_Timing

4) It is usable, so long as you keep the max velocity and acceleration down to sensible limits and do not use big microstepping
See here for what may be giving the high figures and how to reduce
www.linuxcnc.org/index.php/english/forum...me-latency-solutions

5) You can have 9 axes, but stepconf only outputs 4, you have to add the rest by hand

Thanks for the pinouts for the BOB BTW, I have not yet got around to putting a meter on mine to determine what went where

regards
The following user(s) said Thank You: atipix

Please Log in or Create an account to join the conversation.

More
19 Jun 2014 22:27 #48129 by atipix
Hi,

First thank you very much for your help.

I still had one doubt about the 3th question: "In the "Step Time" and "Step Space" parameter I use 2500
because I multiply the "Pulse Low Level Time" of the driver (2.5 us) by 1000 to get it in ns. Is it right?
I'm not realy sure about these parameters in the stepper configuration, what should I use for my hardware?"

When I get the 2500 Step Space, I compared the result in the same web page that you told me and that's how
I get the other parameters:

Step Time: 2500
Step Space: 2500
Direction Hold: 10000
Direction Setup: 5000

That comes from the "Leadshine USA -> Digital EM503 50V 4.2A" model, that match the amperage 4.2A. But I'm
not sure for my 2500 Step Time, neither if the model I took is comparable to my driver 2M982. For example
the voltages are differents. 24V for my driver and 50V for the Leadshine.
Do you know witch driver model is comparable to mine or how can find it.

Regards,



PS: If you want the wirring that I use for your card, here there are.

______
Driver |
2M982 |
X Axis : |
|
GND ----> 0V From 24V Power supply
+V ----> 24V From 24V Power supply
|
PLS- ----> Pin XN of the X axis plugs in the 5 Axis Breakout Board HY-JK02-M |
DIR- ----> Pin XN of the X axis plugs in the 5 Axis Breakout Board HY-JK02-M |-> All togethers. Same for the other axis.
ENA- ----> Pin XN of the X axis plugs in the 5 Axis Breakout Board HY-JK02-M |
|
|
PLS+ ----> Pin XS of the X axis plugs in the 5 Axis Breakout Board HY-JK02-M |
DIR+ ----> Pin XD of the X axis plugs in the 5 Axis Breakout Board HY-JK02-M |-> Same for the other axis.
ENA+ ----> Pin XE of the X axis plugs in the 5 Axis Breakout Board HY-JK02-M |
|
A+ ----> Black cable from the Wantai Motor WT57STH115-4204A
A- ----> Green cable from the Wantai Motor WT57STH115-4204A
B+ ----> Red cable from the Wantai Motor WT57STH115-4204A
B- ----> Blue cable from the Wantai Motor WT57STH115-4204A
____|


Don't forget to the 5V mini USB of the breakout board and that the little switch in on USB.

Please Log in or Create an account to join the conversation.

More
19 Jun 2014 23:04 - 19 Jun 2014 23:06 #48130 by ArcEye
Hi

This is a pdf for your driver

It is 24 - 80v input and DIR and STEP pulse width are 2.5us, so 2500ns

Most of these drivers are just Chinese Leadshine knockoffs and their timings tend to work OK

regards


File Attachment:

File Name: 2m982.pdf
File Size:716 KB
Attachments:
Last edit: 19 Jun 2014 23:06 by ArcEye.
The following user(s) said Thank You: atipix

Please Log in or Create an account to join the conversation.

More
20 Jun 2014 13:16 #48137 by atipix
Hi,

OK thanks for all.

Regards,

Please Log in or Create an account to join the conversation.

Time to create page: 0.152 seconds
Powered by Kunena Forum