Mikromike Posted November 7, 2004 Report Share Posted November 7, 2004 Hello All, I finally connected my new board to the computer after testing it with a 555 chip and the motor stepped like it was suppose to but now that it is connected the computer it will not step. I noticed that the input ports are either high or low but shouldn Quote Link to comment Share on other sites More sharing options...
GreekPIC Posted November 7, 2004 Report Share Posted November 7, 2004 The cycling might be too fast to measure with a multimeter. I use TurboCNC, it has a port monitor with which you can set and check pin states. Sending one step at a time would make it easier for you to check.Also make sure the voltage levels of your parallel port are high enough. Quote Link to comment Share on other sites More sharing options...
MP Posted November 8, 2004 Report Share Posted November 8, 2004 Mikromike, I have never used the software package you are using, so I cannot comment on that. However, I did want to mention that by testing functionality with the 555, you have verified your CNC hardware is ok and that the problem is isolated to the computer. Are you sure the software is sending pulses to the correct port pins? I always recommend making a small board with LEDs on it to connect to the computer port for testing the pulses before connecting to any hardware. It sure makes life a lot easier. ALSO NOTE: The normal speed that is used to turn a stepper is too fast to view the individual pulses on LED or with a volt meter (as greekpic has stated). You always have to slow the pulses down to a very slow speed to be able to watch them. If your software has this capability (and most do) then you will be able to see the pulses at the port.MP Quote Link to comment Share on other sites More sharing options...
alberto Posted November 8, 2004 Author Report Share Posted November 8, 2004 GreekPic, how do you connect the motors to the pcb? I use Turbocnc too but nothing moves!... witch settage have you used?Yours 4.7K resistor networks are 7+1 pin or 4x2? i never understand the true! Quote Link to comment Share on other sites More sharing options...
alberto Posted November 8, 2004 Author Report Share Posted November 8, 2004 GreekPic, something wrong with your board or with the Schematic?See the diodes directions. Quote Link to comment Share on other sites More sharing options...
GreekPIC Posted November 8, 2004 Report Share Posted November 8, 2004 I'm not sure what you mean exactly. Both in the board and the schematic there are four diodes per axis facing from pins 1,3,6,8 towards the motors which are connected to the green terminals, to answer your previous question. Pins 2 and 5 on the connectors are common, so if you have a 5 wire motor you leave one unused. I'm pretty sure I got it right since it works.The 4k& networks are 1+7, pin 1 goes to the square on the layout picture (I overlaid the layout on the PCB and printed it, it really helps).My TurboCNC settings are:[AXIS1]Designator=XStepIncrement=0.001000000000IsLinear=TrueIsStep/Dir=TruePortAddress=$378StepPin=2IsActiveLow=FalsePulsewidth=15DirPin=3LowIsPositive=FalseAcceleration=1500.000000000000StartSpeed=400.000000000000MaxSpeed=2500.000000000000Fast_Jog=500.000000000000Slow_Jog=50.000000000000HomePosition=0.000000000000HomeInPositiveDir=falseInvertJogKeys=NO[AXIS2]Designator=YStepIncrement=0.001000000000IsLinear=TrueIsStep/Dir=TruePortAddress=$378StepPin=4IsActiveLow=FalsePulsewidth=25DirPin=5LowIsPositive=FalseAcceleration=2500.000000000000StartSpeed=500.000000000000MaxSpeed=5500.000000000000Fast_Jog=500.000000000000Slow_Jog=50.000000000000HomePosition=0.000000000000HomeInPositiveDir=falseInvertJogKeys=NO[AXIS3]Designator=ZStepIncrement=0.001000000000IsLinear=TrueIsStep/Dir=TruePortAddress=$378StepPin=6IsActiveLow=FalsePulsewidth=25DirPin=7LowIsPositive=FalseAcceleration=2500.000000000000StartSpeed=500.000000000000MaxSpeed=5500.000000000000Fast_Jog=500.000000000000Slow_Jog=50.000000000000HomePosition=0.000000000000HomeInPositiveDir=falseInvertJogKeys=NOThis is a part of my Turbocnc.ini file. I haven't tried to find the best setting for speed and acceleration yet. Also as you can see I've tried a pulsewidth of 15 and 25 ms, both work fine and I think it can go lower (for better performance).Hope that helps,Nikolas Quote Link to comment Share on other sites More sharing options...
Mikromike Posted November 9, 2004 Report Share Posted November 9, 2004 Thanks MP, All is working now. I found in KCam where you can change pin setting so I configured the port pins and now, like magic it works. ;D Quote Link to comment Share on other sites More sharing options...
Mikromike Posted November 17, 2004 Report Share Posted November 17, 2004 Here are some pics. ;D Quote Link to comment Share on other sites More sharing options...
Mikromike Posted November 17, 2004 Report Share Posted November 17, 2004 OK I'll try it again. Quote Link to comment Share on other sites More sharing options...
Mikromike Posted November 17, 2004 Report Share Posted November 17, 2004 Another ;D Quote Link to comment Share on other sites More sharing options...
MP Posted November 17, 2004 Report Share Posted November 17, 2004 Excellent job! Looks nice.MP Quote Link to comment Share on other sites More sharing options...
RobiD Posted December 3, 2004 Report Share Posted December 3, 2004 Hi, First time posting here, but I have a quick question.I have made the pcb and I am just about to populate it. Someone suggested to me that I should use opto-isolators to protect the motherboard from power spikes.Is this necessary?Has anyone else had this happen?Has anyone redesigned the board to have opto-couplers?Thanks for your help.David Quote Link to comment Share on other sites More sharing options...
RobiD Posted December 16, 2004 Report Share Posted December 16, 2004 I hope people still read this forum, haven't had an answer to the above question yet.Anyway, here's another one regarding limit switches.Attached is an altered version of a diagram that was posted earlier, what I need to know is, with three limit switches for x,y and z are they wired in series as shown. (excuse the poor artwork) Quote Link to comment Share on other sites More sharing options...
GreekPIC Posted December 16, 2004 Report Share Posted December 16, 2004 Yes, you got it. Quote Link to comment Share on other sites More sharing options...
RobiD Posted December 17, 2004 Report Share Posted December 17, 2004 Thank you.I was worried this forum wasn't monitored anymore.David :) Quote Link to comment Share on other sites More sharing options...
MP Posted December 18, 2004 Report Share Posted December 18, 2004 David,The forum was loading pages real slow for a week or so and people were not posting. In answer to your question about opto-isolators, some recommend to never connect your PC to the outside world without isolation. However, I never use isolation on my personal devices and I take a high chance by doing so. When producing something that others will use or build, I always add isolation in case something gets mis-wired. All of my CNC equipment is used on older type computers which use cheap parallel port cards. The worst that can happen in such a case is to ruin the card and replace it with another. I might add that I have never burned up a card or had to replace one. If you are making something to connect to your $1500 home computer, then you might ask yourself: Do I really want to replace the motherboard? Usually in newer PCs, the parallel port circuit is embedded on the motherboard.MP Quote Link to comment Share on other sites More sharing options...
RobiD Posted December 19, 2004 Report Share Posted December 19, 2004 MP,Thank you for your detailed response.I will be using old equipment so I won't consider it a priority to isolate.Thanks again, this is a great project, and I am enjoying building the cnc machine and the electronics.David Quote Link to comment Share on other sites More sharing options...
kanzor Posted December 29, 2004 Report Share Posted December 29, 2004 Hi to all of you, i know that i'm late but please, be patience....How works the Home switch?? The driver goes around until some sensor tell that it is the home position or else?? Do i have to set up the home position each time?? if yes HOW?? i can't handly move the axies...The driver works with home switch open, closed or they are irrelevant??Thank you for any answer.KingKanzor Quote Link to comment Share on other sites More sharing options...
RobiD Posted January 1, 2005 Report Share Posted January 1, 2005 Ok, I've built the board, the cnc and I'm using Kcam.I have configured the pins on the LPT port.When I jog the different axis, I get movement at the correct motor, but, the motor won't turn in either direction.While I am jogging the axis, I can move the motor either way with a little pressure (less than when it's just enabled).I am using 5 wire steppers out of printers and I used the resistance method to work out which wire was which. Then I used a 12vdc power supply to step the motor by touching the negative wires one by one until I worked out the sequence for a full turn.I have attached the wires to the board in this order with 1 being in position 1 (looking at the back of the connectors with the wires pointing at you, and the power in position 2, then wire 2 in 3 etc.Do I have these position wrong?The home and limit switches all show up in Kcam's Port I/O data screen as working.I am using the 12vdc rail from an AT power supply.I think I've covered all the details.Hopefully someone can offer a solution.ThanksDavid Quote Link to comment Share on other sites More sharing options...
RobiD Posted January 2, 2005 Report Share Posted January 2, 2005 In addition to the above:I have changed around the order of the wires and am now getting rotation. It's ok on the z and y axis, but the x axis is a little choppy.There is also not a lot of torque (not enough to move the axis, but the steppers rotate in-situ without the axis attached (hope you understand what I mean).I am running the board on 12vdc (or it's probably more like 11.8vdc).Would the motors be stronger if I ran the driver board on 24vdc, and will that cause any damage?Sorry about the repeated posts.David Quote Link to comment Share on other sites More sharing options...
GreekPIC Posted January 2, 2005 Report Share Posted January 2, 2005 RobiD: more voltage -> more torque, just don't exceed the motors specifications. You might also try different pulsewidth settings, the motor might be stalling.kanzor: In TurboCNC when you home the axis moves untill it trips the home switch, then resets to 0 or any other preset value (e.g. you wouldn't want Z to home on the table, you would set it to go + (up) and resset to whatever your Z travel is.It is not neccessary to home every time (the position is stored when you exit the program) but it is recomented for better accuracy. Quote Link to comment Share on other sites More sharing options...
MP Posted January 3, 2005 Report Share Posted January 3, 2005 David, I cannot comment on the voltage for your motors without a data sheet. However, if the wiring is not correct, the motors will not move. You should check the wiring a few times to make sure you are connected to the correct winding. If you are sending 12 VDC to a 5 volt stepper, this is not a good idea. Are you sure these are 12 volt steppers? Another cause for not getting motor movement is to have the speed of the motor set too high. Try setting the delay between steps to a higher number. I am not familiar with KCAM, but there should be a setting for speed or delay. If the motor is getting the pulses too fast, it will jog when you give it a step manually, but it will not run.It would be nice if you could post a diagram of your setup for the 5 wire steppers for others in the forum.MP Quote Link to comment Share on other sites More sharing options...
RobiD Posted January 5, 2005 Report Share Posted January 5, 2005 Thank you MP for your response, in fact thank you everyone who has has an input.As for a wiring diagram for 5 wire steppers, it was more trial and error after identifying the center tap using a multimeter, connecting this to position two of the individual axis connectors, then connecting the remaining 4 wires into positions 1,3,4,and 6.Then test and if no good, swap 3 and 6 etc until you get the motor moving in a consistant direction.In response to your questions about the stepper voltage, they are rated at 12vdc and 24vdc with a higher torque rating at 24vdc.I am assuming I just attach the 24vdc to the + and - terminals of the driver board (surely I don't have that wrong).One more question, when I finally get a motor to turn continually in one direction under the control of KCam, the motor seems to make one complete revolution then pause for a fraction of a second then go for the next revolution and so on.Shouldn't the rotation be consistant and smooth? If not, what have I done wrong?Thanks for your help.David Andersen Quote Link to comment Share on other sites More sharing options...
RobiD Posted January 5, 2005 Report Share Posted January 5, 2005 Sorry, another question.I may try to build a power supply myself. What sort of amperage do I require to run the driver and motors, or is related to the ratings of the stepper motors only which is 216mA at 24vdc per motor. (data sheet here if needed http://www.mitsumi.co.jp/Catalog/compo/motor/m55sp/1/text01e.pdf )Thanks again.David Quote Link to comment Share on other sites More sharing options...
MP Posted January 8, 2005 Report Share Posted January 8, 2005 The inconsistency of your motor rotation might be due to not enough current. Setting the speed too high can also cause this.For a power supply, I usually use an old computer power supply. They are cheap, run cool, and have plenty of current at 12 volts.MP Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.