Step 4: TESTING..1..2..3

Picture of TESTING..1..2..3
C:\Projects\Milling\Mill_Drive\PCB Pics\KCAM_SS.jpg
C:\Projects\Milling\Mill_Drive\PCB Pics\IMGP1228a.JPG
C:\Projects\Milling\Mill_Drive\PCB Pics\IMGP1226a.JPG
Don't be nervus. It's just a little electricity. First off it would be good to load up the KCAM (or what ever you plan on using) in your computor. Then when you feel comfortable that all the parts are in the right place plug the parallel port connector into the driver board(as shown below) and put a low wattage build in the socket for the motor. In this case I'm using middle, the Y axis driver.

For power I like to use one if these universal power adapters with selectable voltage output. They're cheap and they don't put out a lot of current so if something goes wrong it's less likely to damage your circuit. Set the voltage low and see if you have some vlotage on the power pins(16) of the CD4516 and the CD4028. If you don't have a volt meter just take an LED and tie a 10K(BRN,BLK,ORN) resistor to the positive(the long leg) and wire to ground tied to the negative(the short leg). Now you can use this as a probe to see where you have voltage. It will be very dim but we don't want to draw too much current away from the circuit.

Now go into the computer program and find the Setup Table. Set the steps per inch to 1000. Then open the CNC control and set the single step for .001 inch and activate the single step mode. Now each time you click the yellow arrows (up and down for the Y axis) the computor will output one pulse to the stepper motor driver circuit.

Put your LED probe on pin 10 of the CD4516. This is the up down input. When you click the up arrow the input will be low(LED off) and when you click the down arrow the input will be high(LED on). Pin 15 is the step input you will see a very short blink each time you click a n up or down arrow on this pin. Pin 6 is the Q1 output. It will change state(high/low) each time you click an arrow. And Pin 11 is the Q2 output. It will change state every other time you click an arrow.

On the output side of things we should see some activity on the CD4028 chip. Putting your probe on any of the output pins 1,4,6,or 7. These outputs drive the FETs. You should see the output go high every 4th time you click the up or down arrow.

If this all makes sense so far it's time to get the motor running. The common wire or wires of the motor which are the center tap of the windings should be connected to the light bulb. The other four wires should go to the four FETs on the circuit. If you are really lucky you will get the combination just right in the first couple of trys. Other wise just keep switching the wires arround until the motor steps in the same direction each time you click the arrows.

Watch the video in the next step. It may give you a better idea what to do.

1-40 of 72Next »
slh12 years ago
Hi mister! Is it possible to connect your driver to the 4-lead 2-phase bipolar stepper motor? since I could only find this type of motor in my area. Thanks
brcoenen2 years ago
Hello, can someone tell me if C7 is the the 220uF Cap? If i understand it rite, from what i read, all the rest are .1uF.
crispycat3 years ago
thought id come back to this project as its been sitting on the shelf for a year or so after failing last time...
so everything appears to be in the correct place
the lights come on when i add power
everything is fine then after the computer gets past bios the lights switch off!
if i take the paralel out they all come back on again!!
any idea what i have done wrong?
ok changed the settings in bios for parallel mode from ssp? to ecp and the lights have come back on
and yay i now have one axis working woowoo!!
dwn774 years ago
Gentlemen! I'm really sad because the day I finished my plate, and not getting hit, even out of primary tests.
Again I need help from the masters here.

I confess I'm lost! Do not know, what may be happening.

All 16 pins are having signal. The other pins 1-4-6-7 CD4028be, do not change status by clicking on the arrows.
Sometimes clicking on the arrows to hear the engine noise of contact very short.
List of board components:

K2391 (FET)
Lamp (i think is 18 volts or +)

Help me please, Thanks!
dwn774 years ago
Gentlemen, I again beg everyone's help.

I am not able to make my device work.

First, and does not know the wiring of the engine, and not have the data sheet it.
I'm using the motor from Sanyo Denki -
Type 103G775-1511
17.5 V DC
1 / 8 Deg / step

I'm using a controlled source of OMRON, Min.17.6V Max.24.0V-1.1A.

And second that I'm not understanding the correct order of connection of the motor wires and the order of the output FETs.

If you can help me with this I'll be very grateful!

Thank you for all!
dwn774 years ago
Hello! Gentlemen! I have a doubt, as the printer cable!
What kind of cable should I use?

I am referring to the kind of internal connection!

Thank you all!
sydios5 years ago

i have a problem with the software, i set the steps to 1000 per inch and then
i open the manual control, and set the steps to 0,001 but when i click on the arrow buttons the "digital" display don't change and stays on 0,00000
Anyone have a idea ?

thanks ...

I have the same problem!
Do anyone know how to solve this?

ive got the same problem with KCam... 
Does anyone had the same problem and resolved it ?

I figured it out.
you have to go to "Setup" and then "Port Setup" and then configure the Pins.
for x step/ direction it is Bit 0,1 and Pin 2,3 .
for y step/ direction it is Bit 3,4 and Pin 5,6
for z step/ direction it is Bit 6,7 and Pin 6,7

Good Luck
 so pin 6 is used on two different axis for x purposes?
solarprism4 years ago
I ve checked by your procedure and the problem is that the pin 1,4,6,7 of the CD4028 blink each time i click and the motor doesnt move,only vibrating. When i select single step to 1,first it vibrated and then rotate normaly but in one direction only.Can you give me some advice?
bogdanalex4 years ago
One more question: Do you think the motors below are any good with this driver ?
If yes, what is the proper voltage & current that should I apply to the circuit .

Astrosyn - Shinkoh communication industry co. ltd
type: 23PM - C109

5.4 V/phase
1.5 A/phase
1.8 deg/step

Lenght - 80mm
diameter - 55mm
shaft diameter - 6mm
additional info for the motors :

6 wire motors and 8 ohms resistance on each coil.
bogdanalex4 years ago
I got the circuit working BUT , in K-Cam when I tell the motor to make a step, instead making it properly, it shakes rather then step . Does it need more power or something? Or what might be the problem?
bogdanalex5 years ago
Ok...problems on the testing part. I've got power on the pin 16 but when I connect the motor, the bulb doesn't light. If I messed up the wiring of the motor can behave like that ? It's better to test the circuit further, giving commands from the computer and see how it works on the IC pins ?
ziggalo5 years ago
the parallel port that is on the PCB. Is that supposed to be male or female? I'm having trouble finding a cable for this machine.
ziggalo5 years ago
one more question, haha. How many volts do you suggest I start out with?
ziggalo5 years ago
Does this work with Mach 3?
someoldguy5 years ago
What motors are you using
edgarx295 years ago
which is the configuration of parallel port Kcam please I need it as fast as possible
levonTech185 years ago
Hi? what is the step of your simple cnc driver >is this full step,haft step,Full/Half or  Microstepping.thanks
sydios5 years ago

i have some problems with the circut, when i disconnect the parallel cable the light of the channel where a motor is connectet turns on and the motor gets power and gripp, but when i connect the board to the pc the light goes off and the motor powers down.

And still having the problem that i can't use the manual control in kcam like shown here in the tutorial.

thanks for help
ziggalo5 years ago

I thought stepper motors have four wires. but from the looks of these pics, they have six? or five? what kind of stepper motors are specified for this project? the parts list did not say. thanks
sydios ziggalo5 years ago
The Control is for unipolar Motors these have normaly 5 wires.
For this driver unipolar works, you can google the schematiks, bibolar does't work.
medalhead5 years ago
Hey guys, but mainly Tom McWire!
First of all, great project, that grea tthat im re-building it :)
Im almost finished with the hardware(z-axis is missing) but rest works fine.
and today i also finished with the "software" i did it the chemical way :)
I only have a problem with getting the motors working.
The software i use is Mach 3 and im already into it.
that means im so far, i can meassure the signals coming from the parallel port to the platine(with an oscilloscope). i got the good stuff :D
signals for direction and steps are fine (at 4516). and they get good as well to the 4028.
but i dont get any signals on the output of that ic, and its not defect.
this isnt a reason of a wrong connected motor?
btw, i should say that im using a supply voltage a little above 6V. otherwise it dosnt work that far, it does now...
I would be happy for some ideas to get it work :)
 my y and z axis is not working is this pin set up right?

 forgot the picture.
 got the y axis working now! whew! now the last motor not working is the z axis motor. here is my port set up in kcam. where did i go wrong? when i jog on the z axis the motor made small back and forth movement.
I'm getting the same behavior out of my Z circuit.  When I attach the LED to the Z STEP line, it flickers off and on, even when the "SINGLE STEP" button is pressed in KCam.  When I use a generic parallel port output tool and send 255 (which would translate to 'all on' for pins 2 - 9), the LED lights up steady.  So this seems like some kind of software problem in KCam -- it's oscillating the Z pins off and on in rapid succession.  Anybody have any ideas?
GusPS5 years ago
Is there a way to test the driver without KCAM?
I guess it could be possible to emulate signals in the STEP and DIRECTION pins, but how?
Anyone know?
calphool5 years ago
I seem to be having troubles with this circuit.  I was unable to find CD4516 and substituted a HEF4516BP, which in theory is compatible.  However, when I notice when I use my LED tester is that the LED flickers off and on several times whenever I press a key in the key jogger.

Also, going over to the MC14028BCPG (also in theory compatible with the CD4028), I see that all the outputs to the FETs seem to be stuck high.

Any ideas?

ziggalo5 years ago
 Kcam looks like pretty expensive software. Is there like a demo version or something? What other software is available for free for me to test my hardware before spending the money on software?
ziggalo ziggalo5 years ago
 Right now i'm just really confused with the software
mrs2h5 years ago

some of those things on the mobo look like flash chips, is there any programming involved in this circuit?


good evening
how can i connect the driver to the pc? i dont know whether my pc is reading my driver or not. any ideas? thanks!
ziggalo5 years ago
 Is this circuitry compatible with any CNC software/post processor? or just KCam?
ziggalo5 years ago
I'm using bmp2cnc to create the .nc file. but how do I run these instructions? The program only shows a simulation. does that mean that if I hook up the ports, the machine will run with the simulation? software help please. thanks

1-40 of 72Next »