DIY Mk1 and SH-2H110M

DIY Mk1 and SH-2H110M

Postby Hammer » 12 May 2015, 14:16

Hello everyone
I'm experiencing problems with upgrading an old chinese CNC router from mach3(LPT) to DIY Mk1. This router has four drivers SH-2H110M. Y-axis has two motors. I soldered a single npn transistor to invert Y-DIR for a second motor. But the problem is, that it moves only in one direction, when DIR has +5V. When DIR is 0V it doesn't move on any of axes, except X. X has a new driver with the same model name and look. I tried to connect all this stuff via an LPT isolation board which works with mach3 but no success. Even worse - X-axis stopped working at all, but both Y and Z axes work in one direction only.
After connecting back LPT and using mach3 - everything works as usual...
Any advice?

Thank you.
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 13 May 2015, 07:25

Some more details.
This is input of the driver which i found here http://wenku.baidu.com/view/55d7e001f78a6529647d5333.html?re=view
Om8Vq5P.png
Inputs
Om8Vq5P.png (143.42 KiB) Viewed 3132 times

Driver looks like this
Si-Date-Start-Shaphon-stepper-motor-drive-SH-2H110M.jpg
Look
Si-Date-Start-Shaphon-stepper-motor-drive-SH-2H110M.jpg (70.16 KiB) Viewed 3132 times

It has common anode, but the typical scheme does not work. Works only one driver of four. But again with LPT and mach3 everything works fine.
Controller has bare outputs to the driver - no pullups and no series resistors. I made it based on silviu's schematics
silviu.png
Schematics
silviu.png (81.83 KiB) Viewed 3132 times
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Support » 13 May 2015, 07:39

Please follow the schematics to the point. All resistors should be included into design.

Please send you settings.
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 13 May 2015, 07:46

I tried different settings and none of these works well. Inverse pulses, lower acceleration rates and i turned off hardware limits.
I have another cnc router which works very well with another diy MK1 so my settings are for it.
Attachments
1.setting
(49.95 KiB) Downloaded 108 times
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Support » 13 May 2015, 08:24

Use pull up resistors on controllers outputs, follow the schematics consistently.
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 13 May 2015, 08:27

Schematics does not contain any pullups on step and dir pins... The board works fine with L297+L298 driver. All axes turn accordingly. Do outputs have open collector type?
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Moonglow » 13 May 2015, 09:54

Hammer wrote:Do outputs have open collector type?

Nope, just push-pull i also surprised what support talks about pull-up on outputs :lol:
Moonglow
 
Posts: 104
Joined: 11 Jan 2012, 04:45
Controller: Many controllers

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 13 May 2015, 13:47

Well, I don't understand then... Why it refuses to work? And simple LPT circuit works fine...
As you can see, yellow and brown wires are STEP and DIR and blue is connected to +5V which is supplied via USB. And this works.
Attachments
IMG-20150512-WA0002.jpg
LPT Board
IMG-20150512-WA0002.jpg (247.66 KiB) Viewed 3102 times
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Support » 13 May 2015, 14:18

Yeah, i was out of the zone on that one :) It was in heat of the moment, had something else in mind.

Are you sure you connected:

+5V from axis controller -> OPTO input
DIR-> direction level
STEP-> step pulse
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 13 May 2015, 14:21

Support wrote:Are you sure you connected:

+5V from axis controller -> OPTO input
DIR-> direction level
STEP-> step pulse

Quite sure. The weird thing is that one driver out of four works with my board in both directions. And exactly this driver stops working at all when I connect to that LPT board.
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Support » 14 May 2015, 06:46

Are all axis pins on your board working properly?
The one drivers that works with your board, have you tried to use it on all axes of your USB board?
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 14 May 2015, 06:54

Support wrote:Are all axis pins on your board working properly?
The one drivers that works with your board, have you tried to use it on all axes of your USB board?

1. Yes
2. Yes, all axes work with this driver.

I use an npn transistor to invert Y-DIR for the second Y-motor. So i think the question of insufficient current is answered here. It doesn't work either. Again, only in one direction, when DIR is high.
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Support » 14 May 2015, 12:06

If you connect all drivers to controllers axis output the same (CA method etc..) and you do not use PNP transistor, and you use correct "Invert pulse" configuration in settings please describe the situation for each axis separately... Can you move n-axis in both directions etc....
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 15 May 2015, 07:41

Support wrote:If you connect all drivers to controllers axis output the same (CA method etc..) and you do not use PNP transistor, and you use correct "Invert pulse" configuration in settings please describe the situation for each axis separately... Can you move n-axis in both directions etc....

So if I connect all axes to apropriate pins on the board I get the following results:
X-axis moves in both directions without problems (this one with a new driver, same model as other drivers)
Y-axis moves in one direction and with one motor only (because Mk1 doesn't have slave option)
Z-axis moves in one direction only (down)

Both Y and Z axis move only when DIR is in HIGH state. I'll try to bring an oscilloscope with me to check, what actually happens there.

I attached mach3 port settings if this can help
Attachments
IMG-20150515-WA0003.jpg
mach3 port settings
IMG-20150515-WA0003.jpg (161.26 KiB) Viewed 3045 times
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 18 May 2015, 14:42

I opened the drivers. The (visible) difference is that not-working one has 4n26 optocoupler on STEP input and working one has 6n137. DIR input has 4n26 optocoupler on both drivers. And FREE input has pc817. I'll try to replace 4n26 with 6n137 but I'm not sure that this will help, because it's only STEP input. Maybe the firmware is different there...
Oscilloscope shows that DIR input also switches back and forth along with STEP pulses if using mach3 and moving in one direction. In other direction it is steady.
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 18 May 2015, 15:36

Here are some images. On a "not working" driver 4n26 already replaced with 6n137 but not tested yet.
Attachments
1.png
Schematic
1.png (7.39 KiB) Viewed 3000 times
P50518-182244.jpg
Working driver
P50518-182244.jpg (218.12 KiB) Viewed 3000 times
P50518-212600.jpg
Not working driver
P50518-212600.jpg (227.1 KiB) Viewed 3000 times
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 28 May 2015, 09:40

Hello. Here is the signal from mach3
Yellow is STEP, blue is DIR. It's from continious movement, not just a single step. Any advice on how to implement this behaviour on diy?
Attachments
NewFile0.png
NewFile0.png (5.18 KiB) Viewed 2934 times
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Support » 28 May 2015, 10:46

You can always use invert pulse.
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers

Re: DIY Mk1 and SH-2H110M

Postby Hammer » 28 May 2015, 12:38

Support wrote:You can always use invert pulse.

That's obvious. The problem is with DIR signal, which begins before step and ends after.
Hammer
 
Posts: 19
Joined: 17 Jul 2013, 14:28
Location: Kazakhstan
Controller: DIY Mk1

Re: DIY Mk1 and SH-2H110M

Postby Support » 28 May 2015, 13:43

I suggest you buy another stepper drivers, this looks like drivers fault.
You already mentioned that there are differences between the drivers itself.
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers


Return to DIY



Who is online

Users browsing this forum: No registered users and 1 guest

cron