Jump to content
Electronics-Lab.com Community

3-Axis Stepper Controller


alberto

Recommended Posts


  • Replies 321
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

MP i see yours schematic but i have a question:
when i connect the circuit, a wire is the signal from lpt port but when i put +12volt and gng from power supply, i must connect also the gng lpt port to the power supply ground or it is a separete circuit with only +12 and gng of power supply and just lpt signal pin without lpt gng?
wich modify if i have 28.2 volt? as power supply?
I'm sorry but i'm not very good in electronics....

Link to comment
Share on other sites

Hello alberto,
You will want to connect the ground of all circuits to the same "common" connection. The drawing I have posted is for a relay which uses 12 VDC for the coil. If you have a relay that will use a different value of power, then you will want to change accordingly. Please note the current and voltage capability of the transistor you are using.
I can't think of anything in a digital circuit which would need a 28 volt power supply. Why don't you use a smaller voltage? Do you have a device which needs this voltage level? Is this the voltage required for your stepper? If so, perhaps you could tap a lower voltage from a resistive divider. For example, if you are using a current limiting resistor for your stepper motor, you could use two resistors which make up this same value and tap 12 volts from the point where the two resistors connect. Such as this:
28V---/\/\/\/-+--/\/\/\/----MOTOR
^
12V
Or better, make a divider that will give you a little more than 12 and run it through a regulator such as 7812 and some protection diodes to keep it clean from the motor.


MP

Link to comment
Share on other sites

Mp thank you! I have made with fidocad a simple relay board trought your schematic. I think it wil be usefull to the comunity.
I hope that there aren't mistake!

RELAY BOARD
COMPONENT LIST:

R.1-4 4.7K
R.2-3 47K
R.5-6 560
D.1-2 1N4001/..02/..03 (see if the watt rating is ok with your circuit)
D.3-4 5mm LED
U1-2 2N3906
Relay1-2

Link to comment
Share on other sites

Looks much better! The only thing I am not sure about is the LED. The LED drop down resistor is going to interfere with the coil resistance of the relay, depending upon the value. You will have this resistance and the coil resistance working in parallel. If you look at the parallel formula for resistors, you will see how you are changing the on/off characteristics of the relay by doing this. I do not know if this is a problem. It depends upon the coil resistance for the relay you are using. You might want to connect this status LED somewhere else where it will not effect the relay. This way, if you use different relays you will not take a chance on having a future problem.
You should figure the resistor value from the forward voltage of the LED. 560 seems a little low for this amount of voltage. It will be nice and bright. What is the Maximum current rating of your LEDs?

MP

Link to comment
Share on other sites

I think that article will be fine if you choose the right relays and the right LEDs. Unfortunately, the article did not list part numbers, so you do not know what they had in mind. It all depends upon the relay coil resistance and the current MAX rating of the LEDs.

MP

Link to comment
Share on other sites

Dear MP i have built the relay board and it work well, but i have a problem:
mine 3-Axis stepper controller board work at 26.2Volt (20-1.4*1.41) and my electric trasformer(20V 3A) have just one secondary.How can i take 12V to power the relay board and a little cooler fan (12V 2.3W)?
I must buy a little transformer (12v-500mA ex.) to power them or there is a solution from 26v to 12 volt?
???

Link to comment
Share on other sites

Alberto, you can add a 12 volt regulator to the circuit if you find one that is rated above your output voltage.

Another way to step down the voltage is with non polarized capacitors on the secondary output of the transformer. You connect capacitors in series across the secondary of the transformer to make a voltage divider. If you connect two 100 uf capacitors across a 20 VAC secondary, you will have 10 VAC at the point where the two capacitors are connected in series. You can use different values of capacitors to change the proportion of the divider. In series, the voltage across each capacitor is inversely proportional to it's value. The smaller capacitor has the larger proportion of the applied voltage. Experiment with some values on your workbench. You should find a solution. Don't forget, you are still working with AC, so the voltage will need to be rectified to DC.

MP

Link to comment
Share on other sites

  • 1 month later...

Ok, I built the circuit and it worked fine. I had only one UCN so I tested only one axis with TurboCNC, other than that it's ready.

Just one question: when the motor is not moving one coil is still energized. This is probably normal and supposed to provide holding torque but the motor is warming up. Is this normal?

Link to comment
Share on other sites

Ok, thanks, I downloaded the motors datasheet and it's good for 24V so no problem. I'm using 12V right now but I have a 18V PS I might use.

Now I have to make the relay circuit to turn the spindle on.

PS. Looking back at the thread I saw I have made a mistake in the coolant discussion. The 220 grade oil is used on the slides and is not water soluble. We use Castrol Superedge 33 (~8% in water) as coolant.

Link to comment
Share on other sites

I used the schematic from the projects section. I didn't change anything between the two runs. The voltages are ok.

Only thing I can think of is that the IC burned. But I only used the circuit for 10 minutes and the IC didn''t get hot (I didn't have a sink so I checked frequently).

I've ordered the rest of the IC's (I tested only one axis), I'll swap this one and see what happens.

Link to comment
Share on other sites

Ok, working now. I don't know what was wrong because I changed more than one thing (not good, I know). I increased the pulswidth in Turbocnc, changed the mode to 2-phase (jumpers) etc.

I still have to play with the feedrate settings to see what's the top speed I can get out of it. I also found out that I have to redesign the bearing housings because the gears bind at high speeds. The placement is critical so maybe I'll have to make the housings adjustable.

Link to comment
Share on other sites

I have noticed that some programs are very dependent upon the processor speed of the computer you are using. In this case, it is trial and error until you find the perfect speed.

Are the bearings manufactured by you or is it something you had to purchase? I was curious about the binding. I have an XY table that I just used threaded rods attached to the stepper shafts and nuts clamped to a mount on the table. There is no bearing on the end. It sits freely in the air and there is never a problem with binding. The weight is supported by slides such as drawer slides. Problem there is finding some which are made well enough to give you whatever precision you are after. You have to find a set that does not have too much play.

MP

Link to comment
Share on other sites

I use roller bearings in DIY housings (see pic). The problem is that the distance between the motor gear and the lead screw gear has to be set precisely. I decided to ditch this setup, however, for the following reasons:
1. The binding problem
2. I don't need reduction, the motors seem to have enough torque so no reason to loose speed
3. More backlash problems
4. K.I.S.S.
So I decided to go with direct drive.

I received the rest of the UCN's and connected all motors. I also connected home and limit switches and they are working great. Now I have to make the relay board. A question here:
If I make the PNP version won't the motor start if the PC shuts down? I think I'll make the first version.

post-3475-14279141838328_thumb.jpg

Link to comment
Share on other sites

  • 2 weeks later...

If I am looking at the same schematic as you, then C2 is a 10 microfarad and C3 is a 0.01. These are by-pass caps to keep the DC voltage smooth. I recommend that you use the better caps (and the correct values). The only problem you will have if you do not is a little noise in your circuit, which might interfere with the precision of the steps.

MP

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
  • Create New...