<?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>Contraptor firmware + arduino + easystepv4 + sparkfun motors</title>
		<link>https://www.contraptor.org/forum/t-631209/contraptor-firmware-arduino-easystepv4-sparkfun-motors</link>
		<description>Posts in the discussion thread &quot;Contraptor firmware + arduino + easystepv4 + sparkfun motors&quot; - I can&#039;t make this drivers work with the modified reprap gcode interpreter for arduino by contraptor.</description>
				<copyright></copyright>
		<lastBuildDate>Fri, 06 Nov 2026 19:46:12 +0000</lastBuildDate>
		
					<item>
				<guid>http://www.contraptor.org/forum/t-631209#post-1735416</guid>
				<title>Re: Contraptor firmware + arduino + easystepv4 + sparkfun motors</title>
				<link>https://www.contraptor.org/forum/t-631209/contraptor-firmware-arduino-easystepv4-sparkfun-motors#post-1735416</link>
				<description></description>
				<pubDate>Thu, 21 Mar 2013 17:21:19 +0000</pubDate>
				<wikidot:authorName>jwackito</wikidot:authorName>				<wikidot:authorUserId>1569229</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes I do. The motors are working as I posted, but changing the parameters in the _init.pde file.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-631209#post-1731059</guid>
				<title>Re: Contraptor firmware + arduino + easystepv4 + sparkfun motors</title>
				<link>https://www.contraptor.org/forum/t-631209/contraptor-firmware-arduino-easystepv4-sparkfun-motors#post-1731059</link>
				<description></description>
				<pubDate>Thu, 14 Mar 2013 19:40:56 +0000</pubDate>
				<wikidot:authorName>Albanetc</wikidot:authorName>				<wikidot:authorUserId>381022</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Did you try adjusting the current? Easydriver has a trimpot that will vary the current sent to the motor.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-631209#post-1728697</guid>
				<title>Re: Contraptor firmware + arduino + easystepv4 + sparkfun motors</title>
				<link>https://www.contraptor.org/forum/t-631209/contraptor-firmware-arduino-easystepv4-sparkfun-motors#post-1728697</link>
				<description></description>
				<pubDate>Mon, 11 Mar 2013 15:33:17 +0000</pubDate>
				<wikidot:authorName>jwackito</wikidot:authorName>				<wikidot:authorUserId>1569229</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Vit. I disable the endstop pins but this not solve the problem. I play with the parameters until the motors work. Also, I set the STEPPER_ALWAYS_ON macro to 1.<br /> WARNING to others with these problem: these are NOT production configuration. It's just a configuration that work with my hardware.<br /> I will be unable to calibrate and properly set these variables until my machine be fully assembled.<br /> I must do some more test in order to find the optimal values to make moves at max speed. Moreover, It will be really cool that the firmware can enable and disable the motor drivers properly. I will stay in touch if you are interested in this topic.</p> <p>Best regards.</p> <p>Joaquin</p> <div class="code"> <pre><code>#define X_STEPS_PER_INCH 300.0 #define X_STEPS_PER_MM 300.0 // ACME leadscrew //#define X_STEPS_PER_INCH 6400.0 //#define X_STEPS_PER_MM 251.968 #define Y_STEPS_PER_INCH 300.0 #define Y_STEPS_PER_MM 300.0 #define Z_STEPS_PER_INCH 300.0 #define Z_STEPS_PER_MM 300.0 //our maximum feedrates in units/minute #define FAST_XY_FEEDRATE_INCH 200 //300 #define FAST_Z_FEEDRATE_INCH 150 #define FAST_XY_FEEDRATE_MM 200 #define FAST_Z_FEEDRATE_MM 150 // Maximum acceleration in units/minute/second // E.g. for 300.0 machine would accelerate to 150units/minute in 0.5sec etc. #define MAX_ACCEL_INCH 400.0 //500.0 #define MAX_ACCEL_MM 400.0 // Maximum change in velocity per axis - if the change in velocity at the start // of the next move is greater than this for at least one axis, we will decelerate // to a stop before commencing the move, otherwise we will keep going // value is units/minute #define MAX_DELTA_V_INCH 500.0 #define MAX_DELTA_V_MM 500.0 // Set to one if endstop outputs are inverting (ie: 1 means open, 0 means closed) // RepRap opto endstops are *not* inverting. #define ENDSTOPS_INVERTING 0 // Optionally disable max endstops to save pins or wiring #define ENDSTOPS_MIN_ENABLED 0 #define ENDSTOPS_MAX_ENABLED 0 // How many temperature samples to take. each sample takes about 100 usecs. #define TEMPERATURE_SAMPLES 5 // The *_ENABLE_PIN signals are active high as default. Define this // to one if they should be active low instead (e.g. if you're using different // stepper boards). // RepRap stepper boards are *not* inverting. #define INVERT_ENABLE_PINS 1 // If you use this firmware on a cartesian platform where the // stepper direction pins are inverted, set these defines to 1 // for the axes which should be inverted. // RepRap stepper boards are *not* inverting. #define INVERT_DIR 0 // CHANGED CM - ONLY ONE FOR ALL AXES #define STEPPERS_ALWAYS_ON 1 /**************************************************************************************** * digital i/o pin assignment * * this uses the undocumented feature of Arduino - pins 14-19 correspond to analog 0-5 ****************************************************************************************/ //cartesian bot pins #define X_STEP_PIN A2 #define X_DIR_PIN A1 #define X_ENABLE_PIN A0 #define X_MIN_PIN 13 #define X_MAX_PIN 13 #define Y_STEP_PIN A6 #define Y_DIR_PIN A5 #define Y_ENABLE_PIN A4 #define Y_MIN_PIN 13 #define Y_MAX_PIN 13 #define Z_STEP_PIN A11 #define Z_DIR_PIN A10 #define Z_ENABLE_PIN A9 #define Z_MIN_PIN 13 #define Z_MAX_PIN 13 //extruder pins // NOTE - USING Timer1 FOR STEPPER TIMER SO CAN'T USER PINS 9 OR 10 FOR PWM // OUTPUT (EXTRUDER_MOTOR_SPEED_PIN, EXTRUDER_HEATER_PIN, OR EXTRUDER_FAN_PIN) #define EXTRUDER_MOTOR_SPEED_PIN 19 #define EXTRUDER_MOTOR_DIR_PIN 19 #define EXTRUDER_HEATER_PIN 19 #define EXTRUDER_FAN_PIN 19 #define EXTRUDER_THERMISTOR_PIN -1 //a -1 disables thermistor readings #define EXTRUDER_THERMOCOUPLE_PIN -1 //a -1 disables thermocouple readings</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-631209#post-1727564</guid>
				<title>Re: Contraptor firmware + arduino + easystepv4 + sparkfun motors</title>
				<link>https://www.contraptor.org/forum/t-631209/contraptor-firmware-arduino-easystepv4-sparkfun-motors#post-1727564</link>
				<description></description>
				<pubDate>Sat, 09 Mar 2013 21:28:03 +0000</pubDate>
				<wikidot:authorName>Albanetc</wikidot:authorName>				<wikidot:authorUserId>381022</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Joaquin,</p> <p>If you're not getting any movement, you may want to check the inputs on your endstop/limit switch pins, or disable them.</p> <p>Cheers<br /> Vit</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-631209#post-1724706</guid>
				<title>Contraptor firmware + arduino + easystepv4 + sparkfun motors</title>
				<link>https://www.contraptor.org/forum/t-631209/contraptor-firmware-arduino-easystepv4-sparkfun-motors#post-1724706</link>
				<description></description>
				<pubDate>Tue, 05 Mar 2013 19:42:03 +0000</pubDate>
				<wikidot:authorName>jwackito</wikidot:authorName>				<wikidot:authorUserId>1569229</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi guys (and girls, why not?):<br /> I'm trying to make my own stepper driver based in the easystepv4 from sparfun (sparkfun product 10267). I used this motors also from sparkfun (spark fun product 10846).<br /> I have 4 motors with 4 drivers (one x-axis, two y-axis and one z-axis). The motors have 400 steps per revolution and the easydriver without microstep configuration at all needs 6400 steps to complete a revolution (1/8 microstep?).</p> <p>I can make the motors move with a function like</p> <div class="code"> <pre><code>void step(boolean dir,int steps){ digitalWrite(dirPin,dir); delay(50); for(int i=0;i&lt;steps;i++){ digitalWrite(stepperPin, HIGH); delayMicroseconds(100); digitalWrite(stepperPin, LOW); delayMicroseconds(100); } }</code></pre></div> <p>Note the delayMicrosecond() function. I try with different values for the delay and the motor stop working below 50 microseconds delay and start to vibrate frenetically.<br /> However, with the contraptor firmware the motors doesn't move at all, just a bit of vibration for less than a second (even in long moves, for example sending G1 X10000).</p> <p>Any ideas or directions?</p> <p>Best regards from Argentina (sorry about the English) and thanks in advance.</p> <p>Joaquin</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>