Introduction: How to Make a Driver for a Stepper Motor

here we will see how to make a stepper motor driver using Toshiba's TB6560AHQ controller. This is a full featured controller which only needs 2 variables as input. it does all the work.
Since i needed two of these i've made both of them.

Step 1: Making the PCB

Since it's a DIY project here is the PCB as it was being made:
- first get the circuit on the copper plated board (NOTE: IT HAS TO BE DOUBLE FACED)

the way i did it:
1. i printed the circuit on a glossy paper using a laser printer
2. adjust the 2 circuits so they match, facing each other
3. place the copper plated board between them
4. place the sandwich between a folded regular piece of paper
5. using a hot iron press on the folded paper
6. flip it and repeat
7. afterwards take "the sandwich" and get it wet using cool water
8. press on the paper until the circuit becomes visible and there aren't any air bubbles
9. remove the paper.

you should get something like this:

NOTE: the PDFs are scaled 1:1 and only need to be printed DO NOT MIRROR THEM WHEN PRINTING!!!

Step 2: Finishing the PCB

Get the plate with the printed circuit and place it into a corrosive solvent and agitate it a bit to speed up the process.
You should get something like this:
After that you can clean it with any kind of detergent:

Step 3: Completing the Circuit

After you made sure that all is well and drilled holes in all the right places it's time to complete the circuit. You'll see that one line gets interrupted then is continued on the other side and back on the original side.
I've done this by using thin copper wire. as many as needed (small lines - 2 wires, thick lines - 4 wires) since the driver can support up to 3.5A

Step 4: Soldering Time

it's now time to solder the components and apart from the 2 100uF capaitors, all the other parts are SMD.
you have here a schematic of the circuit and the part list

NOTE:

you will see that 4 resistors do not have the value written. that is because the vary according to the motor you use!

Step 5: Checking the Circuit

after you have completed the soldering make sure that nothing is soldered accidentally to the GND.
cover the finished driver with a protective layer to avoid corrosion.

this driver can perform at 20%(00), 50%(01), 75%(10) or 100%(11) depending on how you have the right switches positioned as shown in brackets.

Have fun guys!

Comments

author
delokaver (author)2016-12-20

hi bro..

nice work

can I have the sch & brd file ?

Need to change / add the diode on the motor side for protection

Thanks

author
swaxman (author)2016-01-09

Remove the fan assembly from a working computer fan. Under the removed fan is a circuit board . locate 3-4 large solder spots sometimes marked W , V ,U . Solder 1 insulated tinned copper wire to each of these large solder spots. You should have 3-4 wires. Join these wires onto your project ((( driverless ))) brushless motor , Swaxman used a VCR brushless motor , secure the fan back in place and connect + and - wires to your computer fan - it needs to work normal so keep your wires low and neat .observe the computer fan spinning , observe your project brushless motor spinning you might need to swap a few wires around to get your project motor spinning in the right direction. Does not work for steppers

author
swaxman (author)2016-01-09

Remove the fan assembly from a working computer fan. Under the removed fan is a circuit board . locate 3-4 large solder spots sometimes marked W , V ,U . Solder 1 insulated tinned copper wire to each of these large solder spots. You should have 3-4 wires. Join these wires onto your project ((( driverless ))) brushless motor , Swaxman used a VCR brushless motor , secure the fan back in place and connect + and - wires to your computer fan - it needs to work normal so keep your wires low and neat .observe the computer fan spinning , observe your project brushless motor spinning you might need to swap a few wires around to get your project motor spinning in the right direction. Does not work for steppers

author
swaxman (author)2016-01-09

Nice work very nice .

author
cleiton.malvessi (author)2015-12-09

Can I replace the ciTB6560, by a TB6600? It is one of the keys for the current and other micro Steps?

author
GreciaG1 (author)2015-09-22

hi!

i have a steper motor 25hs8630 and it needs 3A, your driver could providesfor it?

Thanks!!

author
ranam.yaseen (author)2015-04-29

hi dear

i have a steper motor,,having specification..oz4200..volt2.30.. Apm15

hz60..Dc i want to make its driver who controle its pulse in varios degree..

pleas guide me..

thanks

author
msebe (author)2014-05-21

Hi!!! i'd love to do this proyect, but can't find the PDF with the PCB and components

Please could you send them to me?

info@modulart.com.ar

Thanks!!

author
kh9005 (author)2014-04-28

Salut!Te rog,dispunerea pieselor pe adresa kh90052[at]gmail[punct]org

Merci anticipat!

author
Mobsman (author)2013-11-04

help, put the scheme in the sprint layout, help, put the scheme in the sprint,if it is possible to two options with pcb, and with simple Elements. Sory my english

author
egonzalez-2 (author)2013-10-15

great desing

author
holychachi (author)2013-05-28

I'm trying to come up with a way to control twelve steppers... Any ideas besides multiple driver boards?

author
jduffy54 (author)holychachi2013-08-04

Been a while since you asked, but yes, depending. If they all need to step together, just wire them in parallel. If they need to work separately, then I'd get three of these: https://www.sparkfun.com/products/10507 though they're not cheap, you dont have a whole lot of options with THAT many steppers. You might want to use this if you dont need a lot of power, or less than 1/2 microstepping: https://www.instructables.com/id/5-stepper-driver/

author
GJ.Hoogeveen (author)2012-12-05

Can I use these drivers on this breakout board for a CNC hot wire foam cutter?
http://dx.com/p/5-axis-cnc-breakout-board-for-stepper-motor-driver-with-db25-cable-149865

author
ayasashii (author)2012-11-03

Thank you for this nice and short instructables, I have two questions:

1- is it possible to replace the resistors by potentiometers so that we can control them as we like.

2- is it possible to provide us by the Components Layout since it will be easier for us to solder components without relying on the schemata?

Please email at: nihon.sahli [at] gmail [dot] com (delete all spaces)

Thanks in advance

author
Zeratus (author)2012-08-02

Salut! Poti trimite te rog schema pe adresa vlad.88_sounds@yahoo.com?
Ms anticipat!

author
keller946 (author)2012-06-11

Salut,

Poti atasa si schema in Eagle sau in orice alt CAD?

Merci!

author
adibadro (author)keller9462012-06-11

lasa-mi mail-ul si-ti trimit, fara probleme

author
e.nastase (author)adibadro2012-06-16

trimite-mi si mie, te rog :-) e.nastase[at]yahoo[dot]com

author
keller946 (author)adibadro2012-06-11

alex[at]twofiles[punct]org

author
vliss (author)2012-06-07

And how to calculate that missing resistors values?
Also could you explain connections (where the step/dir/vcc/gnd are?)
Just for dummies ;)

author
adibadro (author)vliss2012-06-08

depending on what torque you want and what current your power source can "spit out" you either use 1 Ohm or 100 Ohm resistors. For greatest torque use 1Ohm and a power source that can sustain 2-2.5 amps.

the connectors are, from left to right:

gnd, dir, step, enable, A+, A-, B+, B-, +12-24V,Gnd

(there is a 2nd gnd because I used opto-electronics to shield the microcontroller )

author
vliss (author)adibadro2012-06-08

Thank you very much!

I've heard that when motor became a generator this could just blow this tipe of ICs, haven't you?
An also, anti-resonanse not supported. So slow speed are preffered.

author
adibadro (author)vliss2012-06-09

i managed to get this motor, using a clk generator for step signal, to run at 18kHz so...it works with high speeds. thing is to slowly increase the freq.

author
ไโหด (author)2011-06-16

thxxxxxxxxxxx

author
oletimer (author)2010-07-03

In your instructions you say not to print a mirror image but when you place the two images together they do not correspond. I believe you have to reprint one of the PDF's, please reply as this has boggled my mind.

author
adibadro (author)oletimer2010-07-03

i've uploaded the PDFs again. this time i'm sure they're right. sorry about that. BTW the paired resistors have to be as low as possible so you can get the max torque

author
pfred2 (author)adibadro2011-02-10

Where did you buy the current sense resistors this circuit needs? I've built motor drivers using this IC myself and never found a very good place to get them. BTW I think going much lower than two tenths of an ohm the device would probably self destruct.

author
oletimer (author)pfred22011-02-10

I buy most of my components from SAYAL on Mathieson blvd, Mississauga tel:-905-238-8640

author
oletimer (author)adibadro2010-07-03

Thanks for the update, now they match each other. BTW are these drivers both unipolar and bipolar?.

author
adibadro (author)oletimer2010-07-05

it works with unipolar motors too and it stays cool even with bipolar parallel connected motors.

author
pfred2 (author)adibadro2011-02-10

Unipolar motors connected half coil? I do not have an idle circuit on my drivers so they heat up pretty good at rest. That and I had some issues with the reset input so I just wired that so it never happens.

Some videos of my motor drivers:
http://www.youtube.com/watch?v=GU2GaSMPxNI

and:
http://www.youtube.com/watch?v=cgbeyNNBZ68

I made three and just wired them up point to point like this: http://img717.imageshack.us/img717/8530/pict0787a.jpg


author
walid1974 (author)2010-12-18

it's goooooog