Hello Guest it is March 28, 2024, 01:36:30 PM

Author Topic: 3 Axis Stepper and Spindle Control Circuit Diagrams  (Read 37527 times)

0 Members and 1 Guest are viewing this topic.

3 Axis Stepper and Spindle Control Circuit Diagrams
« on: February 09, 2009, 04:30:22 AM »
Good Day All.
 
This is my 1st post so I do hope this is the right place.
 
I am looking at building myself a little cnc rig to drill holes in prototype pcbs.
 
I am going to need 3 axis and spindle control.
 
The rig it's self I am going to be building out of old broken printers and scanners.
 
The stepper motors I have collected so far are a mix of unipolar to bipolar, I don't know witch would be best suited for my rig.
 
I would like to be able to control the rig via my computers printer port, I am looking at using the Mach3 software.
 
I would be looking at building my own driver board, but as I have not worked with stepper motors before I am in the deep end.
 
If possible I would like to build a driver board that would support both unipolar and bipolar stepper motors, If having support for both is not possible then I will build a board for used with the best suited stepper motor for the job.
 
Could anyone please point me the way to find some Circuit Diagrams that will be able to do what I am after.
 
Can anyone please tell me if I can leave the printer port inputs and outputs free floating or if they have to be pulled to ground or vcc?
 
I have been looking at some of the designs over at www.pminmo.com but I would like to know if anyone has a better suited design.
 
Thanks for your time.
 
Best Regards.
« Last Edit: February 09, 2009, 04:32:06 AM by Mad Professor »
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #1 on: February 11, 2009, 03:19:05 PM »
I am going to use the McGuire Stepper Motor Driver, but I am going to be adding quite a numer of LED's so I can see the inputs, outputs, switchs all working.
 
Here is what I have come up with so far: Stepper Motor Driver Board (1).
 
Both the printer port outputs on my PC and my Laptop go high once windows is loaded, but as soon as the Mach3 Software is loaded they are pulled low, Witch is good, I know the Mach3 software can be setup to rest at Low or High, so that is all fine.
 
Can someone have a look at the way I am driving the LED's and tell me if I am doing it right?
I in my design I am using BC547 and BC577, I don't know if there is better suited transistors for driving the leds.
 
With regards to the switches for the limit and home switches, It is safe for the switches to pull to ground or is it best to put a resistor inline, and if so what rating.
 
Thanks for your time.
 
Best Regards.

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #2 on: February 13, 2009, 08:57:41 AM »
Hi,

There are many 3 axis stepper driver boards available from China (on ebay) at such low prices that it is hardly worth building your own. Some of these boards incorporate the charge pump safety circuit and spindle control relay as well as providing opto isolation of all inputs and outputs they also have provision for adding a forth axis at a later time.

Yes it is OK for limit switches to pull to ground but make sure it is the controller ground and that ground loops are not created in the process.

If you have the time to take a look at my website you can see the machine which I constructed and there are some details of the problems I encountered in the process.
http://www.cooperman.talktalk.net

I hope this helps. Good luck with your build - please post pictures of your progress.

Tweakie.
PEACE
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #3 on: February 14, 2009, 12:42:00 PM »
Tweakie.CNC: Thanks for your reply.
 
I know I could pick up one of them cheep ebay driver boards for not a grate deal of money, but I wanted to build my own so that I can understand better how the stepper motors are controlled, ect.
 
I do like the idea of having opto for isolation of the pc's interface, I will have to look into that.
 
After reading a number of posts, and watching some of the videos, I now have a number of design changes I want to do to my current stepper driver design.
 
I have had a quick scan over your web site, and thats some pice of kit you are making there.
« Last Edit: February 14, 2009, 12:46:40 PM by Mad Professor »

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #4 on: February 15, 2009, 04:25:46 AM »
I fully understand wanting to make it yourself.

Another suggestion - have you looked at chips such as the Alegro A3977 ?. The advantage of an integrated solution is 'micro stepping' as this produces a much smoother movement of a bipolar stepper motor than say 'half step' will do.

All the best,

Tweakie.
PEACE
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #5 on: February 15, 2009, 05:52:15 AM »
Thanks again for your reply.
 
So far I have only been looking at two driver designs.
Tachus42 3 Axis Driver Board.
Tom McGuire Driver Board.

I wanted to start as simple as possible, so that I can understand how it all works then move onto more conplex designs.

I have been hunting over the internet for datasheets for the stepper motors that I have collect so far.

I have 3 sets of Unipolar Stepper Motors from Minebea Motor Manufacturing Corporation.
2x PM35S-048 (48 Steps / 7.5° Step / 24Volt / 2-2 Phase / 50 Ohm Per Phase). <Click Link For Datasheet.
2x PM35L-048 (48 Steps / 7.5° Step / 24Volt / 2-2 Phase / 30 Ohm Per Phase). <Click Link For Datasheet.
2x PM55L-048 (48 Steps / 7.5° Step / 24Volt / 2-2 Phase / 30 Ohm Per Phase). <Click Link For Datasheet.
 
Here is the wiring details for thease motors in Unipolar form.

 
I have also been looking into using opto for isolation for when I build my own driver board, as I think that is a very good think to have.

My CNC Drill rig is going to have a working area of 300x300mm, so it's not going to be a big unit, Will any of the above stepper motors have the needed power for this unit?
 
Thanks for your time.

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #6 on: February 15, 2009, 08:02:31 AM »
Hi again,

I think that both of the boards you are thinking of building will be good. Personally I would prefer the Tom McGuire design as you could use a ready made Break out Board incorporating opto isolators etc for your LPT connection to the computer.

Providing you are only going to use the finished project for pcb drilling then any of the 0.6 to 0.8 Amp stepper motors you have would have enough torque for positioning the spindle as long as you keep the friction on your  X,Y,Z slides low and use a high speed spindle such as a Dremel for the drilling. For pcb routing however, you would probably need more torque and have to upgrade the steppers for 1.5 to 2 Amp models but the driver boards you are looking at will handle this upgrade.

If you go for the Tom McGuire it would be handy if you could find someone local to yourself with a working machine to route the pcb for you as the GCode for the board is available for download.

All the best,

Tweakie.
PEACE
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #7 on: February 15, 2009, 08:42:04 AM »
I have just built a single axis of the Tom McGuire design on Breadboard for testing.

I have a bunch of spare Power Supplys I can use for the stepper motors.
0-15volts DC @ 10 amps.
16volt @ 8.5 amps.
18volt @ 8.0 amps.
20volt @ 7.5 amps.
22volt @ 6.5 amp.
24volt @ 6.0 amps.
30volt @ 2.0 amps.
 
I already seem to be running into problems.
 
I have gone over all the Breadboard 3 times now, and it is wired as it is in the design.
 
For the 1st test I am using my bench power supply as the voltage is adjustable as also has overload and short cutout.
 
For the 1st test I set the voltage to 12volts I know that this in under the stepper motor working voltage but I would of tought it would still work but with less power.
 
Mach3 is all loaded up and the connected to the computer, I then witch on the power supply and the stepper motor locks solid I can not spin it by hand, I don't know if this is normal.
 
So I tell Mach3 to run the G-Code I have load, I don't hear anything coming from the stepper motor.
 
I stop Mach3 code running, and adjust the power supply down to 5volts, I then run the g-code again, I can now hear the stepper motor trying to work, huminh and vribrating, but not moving.
 
I then pull out R1, C1, and the zener diode, and replace the power to the IC's with a L78S05CV 5v 2amp Reg, so now the control IC's have a reg 5volt.
 
I then try the driver again at 12volts, the stepper still locks solid again, but now when you run the g-code you can hear it huming, and it's trying to move.
 
So I try again with my 24volt power supply, I get the same again.
 
I am not sure what is going on here atm.
 
I could not get the CD4516BE and CD4028BE,  I could get HCF4516BE and TC4028BP, Could this be the problem?
« Last Edit: February 15, 2009, 08:55:14 AM by Mad Professor »

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #8 on: February 15, 2009, 09:01:29 AM »
That's normal the steppers should lock when power is applied. Nothing wrong with your IC alternatives (I think). Go into Mach config / ports and pins / motor outputs and check that you have the step and direction pins configured correctly (also is the active high/low set correctly). In the Port Setup and Axis Selection try selecting Sherline 1/2 pulse mode.

You are certainly on your way. Hope this helps.

Tweakie.
PEACE
Re: 3 Axis Stepper and Spindle Control Circuit Diagrams
« Reply #9 on: February 15, 2009, 09:07:23 AM »
Ok thanks I will do some more testing and report back.