<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Stepper motor driver problem</title>
		<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem</link>
		<description>Posts in the discussion thread &quot;Stepper motor driver problem&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Fri, 06 Nov 2026 20:07:53 +0000</lastBuildDate>
		
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-949263</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-949263</link>
				<description></description>
				<pubDate>Sun, 12 Dec 2010 18:40:13 +0000</pubDate>
				<wikidot:authorName>arthurwolf</wikidot:authorName>				<wikidot:authorUserId>471107</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The machine will mostly be used for drawing/painting, so not much flexibility concerns.<br /> There was discutions about that, calculations ( ended up with 40x40x3mm iron square tube, less than 0,02mm deflection ), that's what the 3 big iron square tubes are for. I guess for serious milling work it would need more aluminium angle replaced with iron square tube.<br /> I hope it will be able to mill aluminium very slowly, but it's not a problem if it does not.</p> <p>XZ/YZ arcs are a very nice addition, good work !</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-949248</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-949248</link>
				<description></description>
				<pubDate>Sun, 12 Dec 2010 18:29:20 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Unfortunately, I found contraptor.org after I had already bought a cnc kit from zen toolworks. It is still a great machine, but I have plans for much bigger machine. Yours looks good, but are you concerned at all about the structure being too flexible? In my design, I had to compromise and use only one long axis that is supported by the table/ground along its entire length. The other two are fairly short to keep the structure and the tool head rigid. I guess it all depends on what you will be milling.</p> <p>So once I got the XY arc working, it wasn't too hard to get XZ and YZ arcs to work. I'm going to do a bit more testing and add some comments and I'll post the firmware here in a new thread.</p> <p>I still don't know if the firmware I have is the most up to date though. That fix that Albanetc linked to was from April, and it still hadn't been included in the version I downloaded.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-948738</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-948738</link>
				<description></description>
				<pubDate>Sun, 12 Dec 2010 00:11:23 +0000</pubDate>
				<wikidot:authorName>arthurwolf</wikidot:authorName>				<wikidot:authorUserId>471107</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hey you're making a big-cnc <a href="http://www.contraptor.org/forum/t-273404/contraptor-openstructures">too</a> ! Using contraptor ?</p> <p>About wife issues, you can considerably reduce the steppers noise/vibration ( not really an issue when drilling, but good when drawing/pick&amp;placing/lasering ) by <a href="http://www.contraptor.org/forum/t-274259/silenced-motor-mount">dampening</a> the motor mounts.</p> <p>I'm very interrested in all the firmware ameliorations you describe, I planned on writing these so it'll save work :) ( also you need a BIG RED STOP BUTTON ! ).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-948725</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-948725</link>
				<description></description>
				<pubDate>Sat, 11 Dec 2010 23:42:10 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I still have a ways to go:</p> <p>Step 0: Add vacuum system so that my wife doesn't kill me.<br /> Step 1: Make a spindle mount so I can get rid of the zip ties holding the dremel in place.<br /> Step 2: Make a better spindle mount using the previous spindle mount.<br /> Step 3: Make the housing for the electronics.<br /> Step 4: Make a cutting bed.<br /> Step 5: Make circuit boards for my actual large scale CNC mill.<br /> Step 6: Make alignment sensitive components for large scale CNC mill.<br /> Step 7: Make and begin trouble shooting large scale CNC mill.<br /> Step 8: Add extrusion/temperature control components<br /> Step 9: Add laser cutting.<br /> Step 10: Add pick and place.<br /> Step 11: Go broke.</p> <p>I'll keep you guys posted as I progress. I'm hoping to fix up the gcode sending interface and release another version. Right now I have it reporting back the limit switches and the spindle state. I also added a debug mode that lets you run your gcode line by line. Hopefully, I'll add a jogging interface, a home button.</p> <p>On the firmware side, I want to add arcs in the XZ and YZ plane (which I'm hoping will be a cut and paste operation mostly). I've already added manual controls for an external joystick. This is great or positioning the machine and stopping it when it is out of control.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-948669</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-948669</link>
				<description></description>
				<pubDate>Sat, 11 Dec 2010 21:45:18 +0000</pubDate>
				<wikidot:authorName>arthurwolf</wikidot:authorName>				<wikidot:authorUserId>471107</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Glad you finally got it working, please show us stuff you do with your machine when you do some.</p> <p>Vitaly, if you are going to update the code in the sourceforge repo to add that fix, please tell me, I have a few fixes related to the microstepping problems I&nbsp;had to submit to you so you can add them at the same time.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-948650</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-948650</link>
				<description></description>
				<pubDate>Sat, 11 Dec 2010 21:24:46 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I got the firmware from here: [<a href="http://contraptor.svn.sourceforge.net/viewvc/contraptor/trunk/firmware/">http://contraptor.svn.sourceforge.net/viewvc/contraptor/trunk/firmware/</a>]<br /> as linked from here: [<a href="http://www.contraptor.org/arduino-gcode-interpreter">http://www.contraptor.org/arduino-gcode-interpreter</a>]</p> <p>That version is 9 months old and does not have the fix you linked to. So is there a source that is more up to date?</p> <p>I manually added that fix and it did solve the problem I was having. You don't know how happy you've made me. I would have never been able to figure out the problem. Thank you!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-948094</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-948094</link>
				<description></description>
				<pubDate>Sat, 11 Dec 2010 03:34:04 +0000</pubDate>
				<wikidot:authorName>Albanetc</wikidot:authorName>				<wikidot:authorUserId>381022</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There are many branches of Arduino GCode Interpreter firmware; if you're using the Chris Meighan version (sounds like you are), be sure it's the latest version.</p> <p>OTOH, I recall a problem with arcs that <span style="text-decoration: line-through;">possibly never got checked into the source</span> UPDATE: it did, so it should work.<br /> <a href="http://www.contraptor.org/forum/t-192541/mini-cnc-case-study#post-749373">http://www.contraptor.org/forum/t-192541/mini-cnc-case-study#post-749373</a></p> <p>One possibility is that the problem occurs on Uno but not on Duemilanove. I don't recall anyone on forums using Uno yet.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-947669</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-947669</link>
				<description></description>
				<pubDate>Fri, 10 Dec 2010 17:51:33 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, I managed to make my machine run the code from begin to end by changing certain arc movements into linear movements. It still doesn't output the correct motion. Comparing its motion to that of CutViewer Mill, it is making unnecessary complete circles. It seems to only get stuck on large or small radius arcs. Here is both my original gcode and the modified version.</p> <p><a href="http://www.mediafire.com/?sdl4x9kgmxb3f5d">http://www.mediafire.com/?sdl4x9kgmxb3f5d</a></p> <p>Changing to Arduino IDE 0017 didn't change anything. Reducing the decimal places also didn't change anything.</p> <p>From seeing people's videos of the Mendel in action and other machines based on the same code, I was under the impression that most of these bugs were worked out and the code was pretty solid. If it is this easy to trip up the code, I may want to start from a more basic code that I can develop. I just hate reinventing the wheel when I don't have to. Maybe I can just develop if conditions to catch buggy arc commands on the fly:</p> <div class="code"> <pre><code>if(you're going to misbehave) do linear motion</code></pre></div> <p>Or maybe feeding in a code that has the time it should take the move to finish with the current feed rate. If the machine is still moving at the end of that time, it aborts the current command. That might have saved some of my limit switches.</p> <p>I'm going to take a break from this for a bit. Thanks again. Let me know if you ever get around to trying my gcode.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-947426</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-947426</link>
				<description></description>
				<pubDate>Fri, 10 Dec 2010 09:12:31 +0000</pubDate>
				<wikidot:authorName>arthurwolf</wikidot:authorName>				<wikidot:authorUserId>471107</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You seem to be working with the same firmware.<br /> Nobody still tested your gcode ( I can't right now ) so maybe the problem will be the same with somebody else and that gcode.</p> <p>Just to see, you should test your blocking command by changing one by one every number to a random one ( X/Y/I/J ) and see if one is the culprit. Also try with less decimals on all, just to see. If it makes it work, that's a clue of something.</p> <p>I'm using arduino 0017 ( the only one I could get to work on my 64bits ubuntu, still have not tested with most recent versions ), so maybe you could try using that one.</p> <p>The firmware is far from bug-free and the guy developping it is not available since a long time, so a bug from the firmware does not seem like an unreasonable idea.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-947422</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-947422</link>
				<description></description>
				<pubDate>Fri, 10 Dec 2010 09:02:29 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm just doing half stepping using L297s. So it shouldn't matter as far as my micro-controller knows. It is just sending step commands.</p> <p>I just grabbed a brand new Arduino Uno, disabled the min/max pins in _init, and with nothing attached to it, flashed it with the firmware and ran my gcode on it line by line. It gets stuck just the same way. This can only mean a few things:</p> <p>1. Something is wrong with the firmware and this is a big practical joke played just on me.<br /> 2. Something is wrong with my Arduino IDE (I'm using 0021)<br /> 3. I am not using the same firmware as you guys.</p> <p>If this firmware was developed when a different version of the Arduino IDE was out, maybe the newer IDE breaks something that worked before. Which version do you use to compile your code?</p> <p>Thank you for staying with me on this and for all the advice. I just wish I had one solid piece of code to work off of. As it is, I'm starting with a non functioning piece of code written by someone else and trying to debug a problem that only I am having.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-947388</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-947388</link>
				<description></description>
				<pubDate>Fri, 10 Dec 2010 08:05:16 +0000</pubDate>
				<wikidot:authorName>arthurwolf</wikidot:authorName>				<wikidot:authorUserId>471107</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Are you using some sort of fine microstepping ? 1/16&nbsp;or more ?<br /> That caused me tons of problems and I had to modifiy the firmware a lot.<br /> So maybe it's that.</p> <p>If you are just doing 1/2 stepping, then I don't see where the problem is.<br /> But putting more Serial.print everywhere should help you point where the problem is ( from what I read it's probably in steper_control ).<br /> You should go into the main interrupt loop, and monitor values like move_phase, move_finished, can_step, last_t, sequence_step_number, delta_t etc &#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-947239</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-947239</link>
				<description></description>
				<pubDate>Fri, 10 Dec 2010 03:40:58 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Awww man, I'm really pulling my hair out on this one. I'm 90% sure this is some sort of buffer over run. The reason I say that is because the behavior changes as I flash different firmware on it. I've modified the code every which way, but when I flash back the original firmware, it'll get stuck at a different point in the program, or it'll behave differently at the point that it gets stuck. Sometimes it'll run endlessly (broke two limit switches that way). Other times it'll sit there not responding. There is a ghost in the machine&#8230;</p> <p>You guys seem to have been running this firmware for a while now. The only portion of the code that I am changing is in _init.pde. I just don't understand what the problem could be. Maybe my steps per inch is so large that rSquared gives the sqrt function some trouble. I tried to modify the firmware to accept R-code where I calculate sqrt(I^2+J^2) and fed it in as RX.XXXX, but it gave very bizarre movements. (Update: this isn't the problem as I can get the arduino to print out 'r' even on runs when it gets stuck. It seems to get stuck at the end of the arc. It never finishes the move.)</p> <p>Oh, btw, I noticed that the firmware did not behave as you described it. My script waits for the arduino to send an &quot;OK&quot; before sending the next command. The arduino allowed my script to get three moves ahead of where it was. So it sent three &quot;OK&quot;'s beyond its current move. After the third &quot;OK&quot; it will wait until it is on the next move to send another &quot;OK&quot;. This doesn't seem to be a problem because I modified my script to only send the next command when I press &quot;Next&quot;. And with that setup, I still have the same issues.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-946740</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-946740</link>
				<description></description>
				<pubDate>Thu, 09 Dec 2010 18:05:12 +0000</pubDate>
				<wikidot:authorName>arthurwolf</wikidot:authorName>				<wikidot:authorUserId>471107</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The firmware code is hairy, good luck, I have read most of it to fix issue I had, ask if you need any help.</p> <p>The look ahead function is optional, if you only give it one command at a time, it will just go to a stop before the next command, so it's no cause for bugs.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-946711</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-946711</link>
				<description></description>
				<pubDate>Thu, 09 Dec 2010 17:35:48 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hmmm, that could actually pose a problem if I'm trying to diagnose what is happening. If I send individual commands via the serial monitor, the look ahead portion is not implemented. If I use my gcode script, it'll be using two lines of code to calculate it's motion.</p> <p>Either way, both should work. I'm going to try to run through the firmware line by line to see if there is a calculation error. I can't imagine this is a hardware issue. Here are my _init settings if it helps:</p> <div class="code"> <pre><code>#define X_STEPS_PER_INCH 8000.0 #define X_STEPS_PER_MM 314.961 #define Y_STEPS_PER_INCH 8000.0 #define Y_STEPS_PER_MM 314.961 #define Z_STEPS_PER_INCH 8000.0 #define Z_STEPS_PER_MM 314.961 //our maximum feedrates in units/minute #define FAST_XY_FEEDRATE_INCH 10 //300 #define FAST_Z_FEEDRATE_INCH 10 #define FAST_XY_FEEDRATE_MM 250 #define FAST_Z_FEEDRATE_MM 250 #define MAX_ACCEL_INCH 50.0 //500.0 #define MAX_ACCEL_MM 1200.0 #define MAX_DELTA_V_INCH 5.0 #define MAX_DELTA_V_MM 100.0</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-946689</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-946689</link>
				<description></description>
				<pubDate>Thu, 09 Dec 2010 17:10:23 +0000</pubDate>
				<wikidot:authorName>arthurwolf</wikidot:authorName>				<wikidot:authorUserId>471107</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It's nice that you have a reproductible gcode program to describe the problem.<br /> Can't test it now the machine is not wired up.</p> <p>About the buffer, it has a 1/2 command buffer : it has the actual command, that it is executing right when it is received, and it also stores the next command, no more, so it accepts 2 commands in a row.<br /> That allows it do do command look-ahaed : it does not slow/stop the steppers if the next command is in the same direction for a given axis.<br /> But it must not accept more than 2 because then it would have to accept a whole gcode file, and there's no room on the arduino for that.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-946638</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-946638</link>
				<description></description>
				<pubDate>Thu, 09 Dec 2010 16:10:31 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I thought it could be that too until I ran the code line by line. I waited until each move had finished and then started the next. I have found the offending line. If I run this code, my machine will start moving erratically and not take notice of the limit switches:</p> <div class="code"> <pre><code>G90 G20 G2 X3.4364 Y2.0438 I1.4981 J1.1094</code></pre></div> <p>Other arc commands function as normal.</p> <p>My problem aside, how does the firmware handle the number of commands to accept? From what I can tell, the firmware sends back an &quot;OK&quot; after receiving a command but before completing the move. So what parameter limits the number of commands the firmware buffers?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-946495</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-946495</link>
				<description></description>
				<pubDate>Thu, 09 Dec 2010 13:30:04 +0000</pubDate>
				<wikidot:authorName>arthurwolf</wikidot:authorName>				<wikidot:authorUserId>471107</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi.<br /> How are you sending the data to the arduino ?<br /> I had a similar problem when starting using the mini-cnc because my script did not wait for the OK before sending another line.<br /> So the data got lost ( I guess it overflowed the serial buffer ), and it stopped working/responding after a few G commands.<br /> Making the script wait for the OK fixed it ( or using the script here : <a href="http://www.contraptor.org/motion-control">http://www.contraptor.org/motion-control</a> ).<br /> But I'm not sure that's your problem because you still have the problem when using the arduino serial console ( maybe you are not waiting for OK there ? ).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-946316</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-946316</link>
				<description></description>
				<pubDate>Thu, 09 Dec 2010 06:53:13 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks for replying so quickly!</p> <p>I'm already using the 328, so I assumed the firmware would work right out of the box. The only modification I made was to rearrange the pins in the code.</p> <p>I even opened the serial monitor in the Arduino IDE and sent the g-code line by line. I get an &quot;OK&quot; and movement from every line until one of the last few I posted about (I forget exactly which one). I get no &quot;OK&quot; reply and the arduino becomes unresponsive. Could it be one of the calculations runs into an odd value? Can someone else try the gcode I posted? The CNC machine aside, if I just have a 328 arduino loaded with this firmware and I send it these gcode lines, it should reply with an &quot;OK&quot; or a &quot;Huh?&quot;&#8230;. I assume.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-946308</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-946308</link>
				<description></description>
				<pubDate>Thu, 09 Dec 2010 06:30:47 +0000</pubDate>
				<wikidot:authorName>Albanetc</wikidot:authorName>				<wikidot:authorUserId>381022</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Arcs should work, as far as I know. I remember having some issues on Atmega 168, which I couldn't reproduce with 328 - like having to reset the board after sending sequences of very short moves.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-946253</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-946253</link>
				<description></description>
				<pubDate>Thu, 09 Dec 2010 04:39:23 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ok, now I have a new problem. My drivers work fine because I can manually jog the machine around. I can also send simple gcode commands for linear motion, But when I send certain arc commands, the machine will lock up. I am using <a href="http://www.contraptor.org/arduino-gcode-interpreter">the recommended firmware</a> on an arduino nano. Here is how far I get into my program before it locks up:</p> <div class="code"> <pre><code>G90 G20 G0 Z0.6 M3 G0 X2.9093 Y1.1768 G1 F1.0 Z0.485 G1 F6.0 X2.8961 Y1.1484 G3 X2.9528 Y1.0595 I0.0567 J-0.0263 G1 X3.937 G3 X3.9995 Y1.122 I0.0001 J0.0625 G1 Y1.4567 G3 X3.9615 Y1.5142 I-0.0625 J0.0001 G2 X3.5822 Y1.8133 I0.3594 J0.8456 G2 X3.4364 Y2.0438 I1.4981 J1.1094 G3 X3.1957 Y2.4814 I-5.8627 J-2.9393</code></pre></div> <br /> Somewhere on the last three lines, the arduino locks up. <p>Is this normal? Am I supposed to use the arcs sparingly? Is there something wrong with the format? Is this why the 5D code was developed? Thanks for any advice you can give me.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-944355</guid>
				<title>Re: Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-944355</link>
				<description></description>
				<pubDate>Tue, 07 Dec 2010 06:21:51 +0000</pubDate>
				<wikidot:authorName>Albanetc</wikidot:authorName>				<wikidot:authorUserId>381022</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Glad you worked it out. I usually get what you describing (buzzing, stuttering, random motion) when I forget to connect stepper driver ground to Arduino ground.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-289349#post-942147</guid>
				<title>Stepper motor driver problem</title>
				<link>https://www.contraptor.org/forum/t-289349/stepper-motor-driver-problem#post-942147</link>
				<description></description>
				<pubDate>Sat, 04 Dec 2010 08:19:06 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I am having a very strange issue. I am using a similar layout as the RepRap Stepper Motor Driver 1.2 except that I am wiring it together on perfboard myself. So three driver boards in all attached to three stepper motors. When everything is connected except the X stepper motor, the machine works fine. The Y and Z axis move smoothly. If I then connect the X stepper to its driver board (when everything is off) and then turn on the machine, the X axis works but the Y and Z stop functioning. The Y and Z hiss and stutter and sometimes they even start moving uncontrollably in one direction. The Y and Z motors also get hot. They act as if they are being short circuited in terms of heat output. My circuit deviates from version 1.2 in that all three drivers share a single V-ref pot. Also, they all share a single oscillator. I tried wiring the oscillator to one of the L297's and then connecting their sync lines, but the issue stayed the same. Can anyone think of what might be causing this? I don't see how adding the load on the x-driver board can cause the other two to stop working correctly.</p> <p>To show you visually what is happening:</p> <p>Arduino<br /> {X-driver}<br /> {Y-driver}-{Y-stepper}<br /> {Z-driver}-{Z-stepper}<br /> (Y and Z function correctly)</p> <p>Arduino<br /> {X-driver}-{X-stepper}<br /> {Y-driver}-{Y-stepper}<br /> {Z-driver}-{Z-stepper}<br /> (Only X functions correctly)</p> <p>Also, if the X stepper motor is attached, but I disable the X-driver using the L297 disable pin, then Y and Z works fine. I thought it might be a problem with my power supply. So I upgraded my power supply to one that had 3 times the calculated amperage, but the issue stayed the same. I know the motors are wired correctly because they all individually work. I only run into a problem when all of them are wired at once.</p> <p>Update: I tried replacing the L297 on the X driver but the problem remains. With X disabled, Y and Z function without hissing. With X enabled, strong hissing is heard and only X moves smoothly. I think my next step will be to try to replace the L298n on the X driver.</p> <p>Do you guys normally hear a hissing? I know the chopper is supposed to make a noise but when only Y and Z are enabled, I hear no hissing and they work perfectly.</p> <p>Update 2: <strong>Solved!!!</strong></p> <p>The problem had nothing to do with the X axis. I had combined all three stepper drives onto a single 3&quot; by 4&quot; board, and in doing so, I forgot to multiply the capacitor on the +5V line. When one of the steppers would stop at half a step, it would put a heavy load on the 5V side and the other chips would become unreliable (jitter, move, act crazy). I guess when I only had two motors enabled, the cap on the board could handle the load. I put a huge capacitor on the board and everything is running smoothly now. This is funny because I had assumed this was a problem with the 24V line. I already had a 4000uF cap on there and changed my power supply to a 24A one. I hope this helps someone else that runs into the same problem.</p> <p>Update 3: <strong>Solved Secondary Problem with Acrs</strong></p> <p>[<a href="http://www.contraptor.org/forum/t-192541/mini-cnc-case-study#post-749373">http://www.contraptor.org/forum/t-192541/mini-cnc-case-study#post-749373</a>]</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>