<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — E3D firmware update for Printrboard]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/7917/" />
	<updated>2020-12-16T20:59:52Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/7917/e3d-firmware-update-for-printrboard/</id>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/154272/#p154272" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>heartless wrote:</cite><blockquote><p>I dont know who the seller is that is recommending that table for an E3d - you should be using table 5</p><p>unless you bought a cheap clone unit? then who knows...</p></blockquote></div><p>+1<br />A Genuine E3D will require a table 5 thermistor setting.</p>]]></content>
			<author>
				<name><![CDATA[AZERATE v2]]></name>
				<uri>https://www.soliforum.com/user/25407/</uri>
			</author>
			<updated>2020-12-16T20:59:52Z</updated>
			<id>https://www.soliforum.com/post/154272/#p154272</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/154260/#p154260" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>drury83 wrote:</cite><blockquote><p>*edit* i sorted the error issue. now i need to sort the thermistor values out for my E3D&#039;s<br />the seller recommends <strong>table 11</strong>, but when i use that i get startup temps @ 958.8</p></blockquote></div><p>I dont know who the seller is that is recommending that table for an E3d - you should be using table 5</p><p>unless you bought a cheap clone unit? then who knows...</p>]]></content>
			<author>
				<name><![CDATA[heartless]]></name>
				<uri>https://www.soliforum.com/user/10399/</uri>
			</author>
			<updated>2020-12-10T02:49:47Z</updated>
			<id>https://www.soliforum.com/post/154260/#p154260</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/154259/#p154259" />
			<content type="html"><![CDATA[<p>*edit* i sorted the error issue. now i need to sort the thermistor values out for my E3D&#039;s<br />the seller recommends table 11, but when i use that i get startup temps @ 958.8</p><br /><br /><p><strong>IGNORE THIS</strong><br />i know this is an old post but when i try to compile i get this error<br />Using Port&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : usb<br />Using Programmer&nbsp; &nbsp; &nbsp; &nbsp; : stk500v2<br />avrdude: usbdev_open(): did not find any USB device &quot;usb&quot; (0x03eb:0x2104)</p>]]></content>
			<author>
				<name><![CDATA[drury83]]></name>
				<uri>https://www.soliforum.com/user/25378/</uri>
			</author>
			<updated>2020-12-09T15:36:51Z</updated>
			<id>https://www.soliforum.com/post/154259/#p154259</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/149125/#p149125" />
			<content type="html"><![CDATA[<p>#ifndef CONFIGURATION_H<br />#define CONFIGURATION_H</p><p>// This configuration file contains the basic settings.<br />// Advanced settings can be found in Configuration_adv.h<br />// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration</p><p>//===========================================================================<br />//============================= DELTA Printer ===============================<br />//===========================================================================<br />// For a Delta printer replace the configuration files with the files in the<br />// example_configurations/delta directory.<br />//</p><p>//===========================================================================<br />//============================= SCARA Printer ===============================<br />//===========================================================================<br />// For a Delta printer replace the configuration files with the files in the<br />// example_configurations/SCARA directory.<br />//</p><p>// User-specified version info of this build to display in [Pronterface, etc] terminal window during<br />// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this<br />// build by the user have been successfully uploaded into firmware.<br />#define STRING_VERSION_CONFIG_H __DATE__ &quot;01/19/2016_11:15AM&quot; __TIME__ // build date and time<br />#define STRING_CONFIG_H_AUTHOR &quot;wardjr&quot; // Who made the changes.</p><p>// SERIAL_PORT selects which serial port should be used for communication with the host.<br />// This allows the connection of wireless adapters (for instance) to non-default port pins.<br />// Serial port 0 is still used by the Arduino bootloader regardless of this setting.<br />#define SERIAL_PORT 0</p><p>// This determines the communication speed of the printer<br />#define BAUDRATE 115200</p><p>// This enables the serial port associated to the Bluetooth interface<br />//#define BTENABLED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Enable BT interface on AT90USB devices</p><br /><p>//// The following define selects which electronics board you have. Please choose the one that matches your setup<br />// 10 = Gen7 custom (Alfons3 Version) &quot;<a href="https://github.com/Alfons3/Generation_7_Electronics">https://github.com/Alfons3/Generation_7_Electronics</a>&quot;<br />// 11 = Gen7 v1.1, v1.2 = 11<br />// 12 = Gen7 v1.3<br />// 13 = Gen7 v1.4<br />// 2&nbsp; = Cheaptronic v1.0<br />// 20 = Sethi 3D_1<br />// 3&nbsp; = MEGA/RAMPS up to 1.2 = 3<br />// 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)<br />// 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)<br />// 35 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)<br />// 36 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)<br />// 4&nbsp; = Duemilanove w/ ATMega328P pin assignment<br />// 5&nbsp; = Gen6<br />// 51 = Gen6 deluxe<br />// 6&nbsp; = Sanguinololu &lt; 1.2<br />// 62 = Sanguinololu 1.2 and above<br />// 63 = Melzi<br />// 64 = STB V1.1<br />// 65 = Azteeg X1<br />// 66 = Melzi with ATmega1284 (MaKr3d version)<br />// 67 = Azteeg X3<br />// 68 = Azteeg X3 Pro<br />// 7&nbsp; = Ultimaker<br />// 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)<br />// 72 = Ultimainboard 2.x (Uses TEMP_SENSOR 20)<br />// 77 = 3Drag Controller<br />// 8&nbsp; = Teensylu<br />// 80 = Rumba<br />// 81 = Printrboard (AT90USB1286)<br />// 82 = Brainwave (AT90USB646)<br />// 83 = SAV Mk-I (AT90USB1286)<br />// 84 = Teensy++2.0 (AT90USB1286) // CLI compile: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84&nbsp; make<br />// 9&nbsp; = Gen3+<br />// 70 = Megatronics<br />// 701= Megatronics v2.0<br />// 702= Minitronics v1.0<br />// 90 = Alpha OMCA board<br />// 91 = Final OMCA board<br />// 301= Rambo<br />// 21 = Elefu Ra Board (v3)<br />// 88 = 5DPrint D8 Driver Board<br />// 999 = Leapfrog</p><p>#ifndef MOTHERBOARD<br />#define MOTHERBOARD 81<br />#endif</p><p>// Define this to set a custom name for your generic Mendel,<br />#define CUSTOM_MENDEL_NAME &quot;SD_WB_Printrboard_1E3D_NoAutoLevel&quot;</p><p>// Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)<br />// You can use an online service to generate a random UUID. (eg <a href="http://www.uuidgenerator.net/version4)">http://www.uuidgenerator.net/version4)</a><br />// #define MACHINE_UUID &quot;00000000-0000-0000-0000-000000000000&quot;</p><p>// This defines the number of extruders<br />#define EXTRUDERS 1</p><p>//// The following define selects which power supply you have. Please choose the one that matches your setup<br />// 1 = ATX<br />// 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)</p><p>#define POWER_SUPPLY 1</p><p>// Define this to have the electronics keep the power supply off on startup. If you don&#039;t know what this is leave it.<br />// #define PS_DEFAULT_OFF</p><p>//===========================================================================<br />//=============================Thermal Settings&nbsp; ============================<br />//===========================================================================<br />//<br />//--NORMAL IS 4.7kohm PULLUP!-- 1kohm pullup can be used on hotend sensor, using correct resistor and table<br />//<br />//// Temperature sensor settings:<br />// -2 is thermocouple with MAX6675 (only for sensor 0)<br />// -1 is thermocouple with AD595<br />// 0 is not used<br />// 1 is 100k thermistor - best choice for EPCOS 100k (4.7k pullup)<br />// 2 is 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)<br />// 3 is Mendel-parts thermistor (4.7k pullup)<br />// 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!<br />// 5 is 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan &amp; J-Head) (4.7k pullup)<br />// 6 is 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)<br />// 7 is 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)<br />// 71 is 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)<br />// 8 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)<br />// 9 is 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)<br />// 10 is 100k RS thermistor 198-961 (4.7k pullup)<br />// 11 is 100k beta 3950 1% thermistor (4.7k pullup)<br />// 12 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed)<br />// 13 is 100k Hisens 3950&nbsp; 1% up to 300°C for hotend &quot;Simple ONE &quot; &amp; &quot;Hotend &quot;All In ONE&quot; <br />// 20 is the PT100 circuit found in the Ultimainboard V2.x<br />// 60 is 100k Maker&#039;s Tool Works Kapton Bed Thermistor beta=3950<br />//<br />//&nbsp; &nbsp; 1k ohm pullup tables - This is not normal, you would have to have changed out your 4.7k for 1k<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (but gives greater accuracy and more stable PID)<br />// 51 is 100k thermistor - EPCOS (1k pullup)<br />// 52 is 200k thermistor - ATC Semitec 204GT-2 (1k pullup)<br />// 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan &amp; J-Head) (1k pullup)<br />//<br />// 1047 is Pt1000 with 4k7 pullup<br />// 1010 is Pt1000 with 1k pullup (non standard)<br />// 147 is Pt100 with 4k7 pullup<br />// 110 is Pt100 with 1k pullup (non standard)</p><p>#define TEMP_SENSOR_0 5<br />#define TEMP_SENSOR_1 5<br />#define TEMP_SENSOR_2 0<br />#define TEMP_SENSOR_BED 1</p><p>// This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.<br />//#define TEMP_SENSOR_1_AS_REDUNDANT<br />#define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10</p><p>// Actual temperature must be close to target for this long before M109 returns success<br />#define TEMP_RESIDENCY_TIME 10&nbsp; // (seconds)<br />#define TEMP_HYSTERESIS 3&nbsp; &nbsp; &nbsp; &nbsp;// (degC) range of +/- temperatures considered &quot;close&quot; to the target one<br />#define TEMP_WINDOW&nbsp; &nbsp; &nbsp;1&nbsp; &nbsp; &nbsp; &nbsp;// (degC) Window around target to start the residency timer x degC early.</p><p>// The minimal temperature defines the temperature below which the heater will not be enabled It is used<br />// to check that the wiring to the thermistor is not broken.<br />// Otherwise this would lead to the heater being powered on all the time.<br />#define HEATER_0_MINTEMP 5<br />#define HEATER_1_MINTEMP 5<br />#define HEATER_2_MINTEMP 5<br />#define BED_MINTEMP 5</p><p>// When temperature exceeds max temp, your heater will be switched off.<br />// This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!<br />// You should use MINTEMP for thermistor short/failure protection.<br />#define HEATER_0_MAXTEMP 290<br />#define HEATER_1_MAXTEM2 275<br />#define HEATER_2_MAXTEMP 275<br />#define BED_MAXTEMP 130</p><p>// If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the<br />// average current. The value should be an integer and the heat bed will be turned on for 1 interval of<br />// HEATER_BED_DUTY_CYCLE_DIVIDER intervals.<br />//#define HEATER_BED_DUTY_CYCLE_DIVIDER 4</p><p>// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS<br />//#define EXTRUDER_WATTS (12.0*12.0/6.7) //&nbsp; P=I^2/R<br />//#define BED_WATTS (12.0*12.0/1.1)&nbsp; &nbsp; &nbsp; // P=I^2/R</p><p>// PID settings:<br />// Comment the following line to disable PID and enable bang-bang.<br />#define PIDTEMP<br />#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current<br />#define PID_MAX 255 // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current<br />#ifdef PIDTEMP<br />&nbsp; //#define PID_DEBUG // Sends debug data to the serial port.<br />&nbsp; //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX<br />&nbsp; #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.<br />&nbsp; #define PID_INTEGRAL_DRIVE_MAX 255&nbsp; //limit for the integral term<br />&nbsp; #define K1 0.95 //smoothing factor within the PID<br />&nbsp; #define PID_dT ((OVERSAMPLENR * 10.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine</p><p>// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it</p><p>&nbsp; &nbsp; #define&nbsp; DEFAULT_Kp 15.44<br />&nbsp; &nbsp; #define&nbsp; DEFAULT_Ki 0.51<br />&nbsp; &nbsp; #define&nbsp; DEFAULT_Kd 116.62</p><p>#endif // PIDTEMP</p><p>// Bed Temperature Control<br />// Select PID or bang-bang with PIDTEMPBED. If bang-bang, BED_LIMIT_SWITCHING will enable hysteresis<br />//<br />// Uncomment this to enable PID on the bed. It uses the same frequency PWM as the extruder.<br />// If your PID_dT above is the default, and correct for your hardware/configuration, that means 7.689Hz,<br />// which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating.<br />// This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater.<br />// If your configuration is significantly different than this and you don&#039;t understand the issues involved, you probably<br />// shouldn&#039;t use bed PID until someone else verifies your hardware works.<br />// If this is enabled, find your own PID constants below.<br />//#define PIDTEMPBED<br />//<br />//#define BED_LIMIT_SWITCHING</p><p>// This sets the max power delivered to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.<br />// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)<br />// setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,<br />// so you shouldn&#039;t use it unless you are OK with PWM on your bed.&nbsp; (see the comment on enabling PIDTEMPBED)<br />#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current</p><p>#ifdef PIDTEMPBED<br />//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)<br />//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)<br />&nbsp; &nbsp; #define&nbsp; DEFAULT_bedKp 10.00<br />&nbsp; &nbsp; #define&nbsp; DEFAULT_bedKi .023<br />&nbsp; &nbsp; #define&nbsp; DEFAULT_bedKd 305.4</p><p>//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)<br />//from pidautotune<br />//&nbsp; &nbsp; #define&nbsp; DEFAULT_bedKp 97.1<br />//&nbsp; &nbsp; #define&nbsp; DEFAULT_bedKi 1.41<br />//&nbsp; &nbsp; #define&nbsp; DEFAULT_bedKd 1675.16</p><p>// FIND YOUR OWN: &quot;M303 E-1 C8 S90&quot; to run autotune on the bed at 90 degreesC for 8 cycles.<br />#endif // PIDTEMPBED</p><br /><br /><p>//this prevents dangerous Extruder moves, i.e. if the temperature is under the limit<br />//can be software-disabled for whatever purposes by<br />#define PREVENT_DANGEROUS_EXTRUDE<br />//if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately.<br />#define PREVENT_LENGTHY_EXTRUDE</p><p>#define EXTRUDE_MINTEMP 170<br />#define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.</p><p>/*================== Thermal Runaway Protection ==============================<br />This is a feature to protect your printer from burn up in flames if it has<br />a thermistor coming off place (this happened to a friend of mine recently and<br />motivated me writing this feature).</p><p>The issue: If a thermistor come off, it will read a lower temperature than actual.<br />The system will turn the heater on forever, burning up the filament and anything<br />else around.</p><p>After the temperature reaches the target for the first time, this feature will <br />start measuring for how long the current temperature stays below the target <br />minus _HYSTERESIS (set_temperature - THERMAL_RUNAWAY_PROTECTION_HYSTERESIS).</p><p>If it stays longer than _PERIOD, it means the thermistor temperature<br />cannot catch up with the target, so something *may be* wrong. Then, to be on the<br />safe side, the system will he halt.</p><p>Bear in mind the count down will just start AFTER the first time the <br />thermistor temperature is over the target, so you will have no problem if<br />your extruder heater takes 2 minutes to hit the target on heating.</p><p>*/<br />// If you want to enable this feature for all your extruder heaters,<br />// uncomment the 2 defines below:</p><p>// Parameters for all extruder heaters<br />//#define THERMAL_RUNAWAY_PROTECTION_PERIOD 60 //in seconds<br />//#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS 5 // in degree Celsius</p><p>// If you want to enable this feature for your bed heater,<br />// uncomment the 2 defines below:</p><p>// Parameters for the bed heater<br />//#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD 60 //in seconds<br />//#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS 5 // in degree Celsius<br />//===========================================================================</p><br /><p>//===========================================================================<br />//=============================Mechanical Settings===========================<br />//===========================================================================</p><p>// Uncomment the following line to enable CoreXY kinematics<br />// #define COREXY</p><p>// coarse Endstop Settings<br />#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors</p><p>#ifndef ENDSTOPPULLUPS<br />&nbsp; // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined<br />&nbsp; // #define ENDSTOPPULLUP_XMAX<br />&nbsp; // #define ENDSTOPPULLUP_YMAX<br />&nbsp; // #define ENDSTOPPULLUP_ZMAX<br />&nbsp; // #define ENDSTOPPULLUP_XMIN<br />&nbsp; // #define ENDSTOPPULLUP_YMIN<br />&nbsp; // #define ENDSTOPPULLUP_ZMIN<br />#endif</p><p>#ifdef ENDSTOPPULLUPS<br />&nbsp; #define ENDSTOPPULLUP_XMAX<br />&nbsp; #define ENDSTOPPULLUP_YMAX<br />&nbsp; #define ENDSTOPPULLUP_ZMAX<br />&nbsp; #define ENDSTOPPULLUP_XMIN<br />&nbsp; #define ENDSTOPPULLUP_YMIN<br />&nbsp; #define ENDSTOPPULLUP_ZMIN<br />#endif</p><p>// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.<br />const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.<br />const bool Y_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.<br />const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.<br />const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.<br />const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.<br />const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.<br />//#define DISABLE_MAX_ENDSTOPS<br />//#define DISABLE_MIN_ENDSTOPS</p><p>// Disable max endstops for compatibility with endstop checking routine<br />#if defined(COREXY) &amp;&amp; !defined(DISABLE_MAX_ENDSTOPS)<br />&nbsp; #define DISABLE_MAX_ENDSTOPS<br />#endif</p><p>// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1<br />#define X_ENABLE_ON 0<br />#define Y_ENABLE_ON 0<br />#define Z_ENABLE_ON 0<br />#define E_ENABLE_ON 0 // For all extruders</p><p>// Disables axis when it&#039;s not being used.<br />#define DISABLE_X false<br />#define DISABLE_Y false<br />#define DISABLE_Z false<br />#define DISABLE_E false // For all extruders<br />#define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled</p><p>#define INVERT_X_DIR false&nbsp; &nbsp; // for Mendel set to false, for Orca set to true<br />#define INVERT_Y_DIR false&nbsp; &nbsp; // for Mendel set to true, for Orca set to false<br />#define INVERT_Z_DIR false&nbsp; &nbsp; &nbsp;// for Mendel set to false, for Orca set to true<br />#define INVERT_E0_DIR true&nbsp; &nbsp;// for direct drive extruder v9 set to true, for geared extruder set to false<br />#define INVERT_E1_DIR false&nbsp; &nbsp; // for direct drive extruder v9 set to true, for geared extruder set to false<br />#define INVERT_E2_DIR false&nbsp; &nbsp;// for direct drive extruder v9 set to true, for geared extruder set to false</p><p>// ENDSTOP SETTINGS:<br />// Sets direction of endstops when homing; 1=MAX, -1=MIN<br />#define X_HOME_DIR 1<br />#define Y_HOME_DIR 1<br />#define Z_HOME_DIR -1</p><p>#define min_software_endstops false // If true, axis won&#039;t move to coordinates less than HOME_POS. Set true for Autolevel<br />#define max_software_endstops false&nbsp; // If true, axis won&#039;t move to coordinates greater than the defined lengths below.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Set true for Autolevel&nbsp; <br />// Travel limits after homing<br />#define X_MAX_POS 336<br />#define X_MIN_POS 0<br />#define Y_MAX_POS 305<br />#define Y_MIN_POS 0<br />#define Z_MAX_POS 305<br />#define Z_MIN_POS 0</p><p>#define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)<br />#define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)<br />#define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)<br />//============================= Bed Auto Leveling ===========================</p><p>// #define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)<br />//#define Z_PROBE_REPEATABILITY_TEST&nbsp; // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.</p><p>//#ifdef ENABLE_AUTO_BED_LEVELING</p><p>// There are 2 different ways to pick the X and Y locations to probe:</p><p>//&nbsp; - &quot;grid&quot; mode<br />//&nbsp; &nbsp; Probe every point in a rectangular grid<br />//&nbsp; &nbsp; You must specify the rectangle, and the density of sample points<br />//&nbsp; &nbsp; This mode is preferred because there are more measurements.<br />//&nbsp; &nbsp; It used to be called ACCURATE_BED_LEVELING but &quot;grid&quot; is more descriptive</p><p>//&nbsp; - &quot;3-point&quot; mode<br />//&nbsp; &nbsp; Probe 3 arbitrary points on the bed (that aren&#039;t colinear)<br />//&nbsp; &nbsp; You must specify the X &amp; Y coordinates of all 3 points</p><p>&nbsp; //#define AUTO_BED_LEVELING_GRID<br />&nbsp; // with AUTO_BED_LEVELING_GRID, the bed is sampled in a<br />&nbsp; // AUTO_BED_LEVELING_GRID_POINTSxAUTO_BED_LEVELING_GRID_POINTS grid<br />&nbsp; // and least squares solution is calculated<br />&nbsp; // Note: this feature occupies 10&#039;206 byte<br />&nbsp; //#ifdef AUTO_BED_LEVELING_GRID</p><p>&nbsp; &nbsp; // set the rectangle in which to probe<br />&nbsp; &nbsp; //#define LEFT_PROBE_BED_POSITION 50<br />&nbsp; &nbsp; //#define RIGHT_PROBE_BED_POSITION 250<br />&nbsp; &nbsp; //#define BACK_PROBE_BED_POSITION 250<br />&nbsp; &nbsp; //#define FRONT_PROBE_BED_POSITION 50</p><p>&nbsp; &nbsp; &nbsp;// set the number of grid points per dimension<br />&nbsp; &nbsp; //#define AUTO_BED_LEVELING_GRID_POINTS 4</p><br /><p>&nbsp; //#else&nbsp; // not AUTO_BED_LEVELING_GRID<br />&nbsp; &nbsp; // with no grid, just probe 3 arbitrary points.&nbsp; A simple cross-product<br />&nbsp; &nbsp; // is used to esimate the plane of the print bed</p><p>&nbsp; &nbsp; //&nbsp; #define ABL_PROBE_PT_1_X 50<br />&nbsp; &nbsp; //&nbsp; #define ABL_PROBE_PT_1_Y 50<br />&nbsp; &nbsp; //&nbsp; #define ABL_PROBE_PT_2_X 50<br />&nbsp; &nbsp; //&nbsp; #define ABL_PROBE_PT_2_Y 250<br />&nbsp; &nbsp; //&nbsp; #define ABL_PROBE_PT_3_X 250<br />&nbsp; &nbsp; //&nbsp; #define ABL_PROBE_PT_3_Y 250</p><p>//&nbsp; #endif // AUTO_BED_LEVELING_GRID</p><br /><p>&nbsp; // these are the offsets to the probe relative to the extruder tip (Hotend - Probe)<br />&nbsp; //#define X_PROBE_OFFSET_FROM_EXTRUDER 37<br />&nbsp; &nbsp; //#define X_PROBE_OFFSET_RANGE_MIN 30<br />&nbsp; &nbsp; //define X_PROBE_OFFSET_RANGE_MAX 50<br />//#define Y_PROBE_OFFSET_FROM_EXTRUDER 0<br />&nbsp; &nbsp; //#define Y_PROBE_OFFSET_RANGE_MIN -10<br />&nbsp; &nbsp; &nbsp; &nbsp; #define Y_PROBE_OFFSET_RANGE_MAX 10<br />//#define Z_PROBE_OFFSET_FROM_EXTRUDER 7.5<br />&nbsp; &nbsp; //#define Z_PROBE_OFFSET_RANGE_MIN 0<br />&nbsp; &nbsp; //#define Z_PROBE_OFFSET_RANGE_MAX 10</p><p>//#define Z_RAISE_BEFORE_HOMING 15&nbsp; &nbsp; &nbsp; &nbsp;// (in mm) Raise Z before homing (G28) for Probe Clearance.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Be sure you have this distance over your Z_MAX_POS in case</p><p>//#define XY_TRAVEL_SPEED 8000&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// X and Y axis travel speed between probes, in mm/min</p><p>//#define Z_RAISE_BEFORE_PROBING 15&nbsp; &nbsp; //How much the extruder will be raised before traveling to the first probing point.<br />//#define Z_RAISE_BETWEEN_PROBINGS 2&nbsp; //How much the extruder will be raised when traveling from between next probing points</p><p>&nbsp; //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell<br />&nbsp; //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you&#039;d like.</p><p>&nbsp; //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk<br />&nbsp; //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.<br />&nbsp; // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.</p><p>//&nbsp; #define PROBE_SERVO_DEACTIVATION_DELAY 300</p><br /><p>//If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,<br />//it is highly recommended you let this Z_SAFE_HOMING enabled!!!</p><p>//&nbsp; #define Z_SAFE_HOMING&nbsp; &nbsp;// This feature is meant to avoid Z homing with probe outside the bed area.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // When defined, it will:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // - Allow Z homing only after X and Y homing AND stepper drivers still enabled<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // - If stepper drivers timeout, it will need X and Y homing again before Z homing<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // - Position the probe in a defined XY point before Z Homing when homing all axis (G28)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // - Block Z homing only when the probe is outside bed area.</p><p>&nbsp; //#ifdef Z_SAFE_HOMING</p><p>//&nbsp; #define Z_SAFE_HOMING_X_POINT 150&nbsp; &nbsp; // X point for Z homing when homing all axis (G28)<br />//&nbsp; #define Z_SAFE_HOMING_Y_POINT 150&nbsp; &nbsp; // Y point for Z homing when homing all axis (G28)</p><p>//&nbsp; #endif</p><p>//#endif // ENABLE_AUTO_BED_LEVELING</p><br /><p>// The position of the homing switches<br />//#define MANUAL_HOME_POSITIONS&nbsp; // If defined, MANUAL_*_HOME_POS below will be used<br />//#define BED_CENTER_AT_0_0&nbsp; // If defined, the center of the bed is at (X=0, Y=0)</p><p>//Manual homing switch locations:<br />// For deltabots this means top and center of the Cartesian print volume.<br />#define MANUAL_X_HOME_POS 336<br />#define MANUAL_Y_HOME_POS 305<br />#define MANUAL_Z_HOME_POS 0<br />//#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.</p><p>//// MOVEMENT SETTINGS<br />#define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E<br />#define HOMING_FEEDRATE {50*60, 50*60, 5*60, 0}&nbsp; // set the homing speeds (mm/min)</p><p>// default settings</p><p>#define DEFAULT_AXIS_STEPS_PER_UNIT&nbsp; &nbsp;{61.5384615,61.5384615,800,138}&nbsp; // default steps per unit for Ultimaker<br />#define DEFAULT_MAX_FEEDRATE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {500, 500, 5, 25}&nbsp; &nbsp; // (mm/sec)<br />#define DEFAULT_MAX_ACCELERATION&nbsp; &nbsp; &nbsp; {1200,400,100,10000}&nbsp; &nbsp; // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.</p><p>#define DEFAULT_ACCELERATION&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3000&nbsp; &nbsp; // X, Y, Z and E max acceleration in mm/s^2 for printing moves<br />#define DEFAULT_RETRACT_ACCELERATION&nbsp; 3000&nbsp; &nbsp;// X, Y, Z and E max acceleration in mm/s^2 for retracts</p><p>// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).<br />// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).<br />// For the other hotends it is their distance from the extruder 0 hotend.<br />//#define EXTRUDER_OFFSET_X {0, -31.3} // (in mm) for each extruder, offset of the hotend on the X axis<br />//#define EXTRUDER_OFFSET_Y {0, 0}&nbsp; // (in mm) for each extruder, offset of the hotend on the Y axis</p><p>// The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)<br />#define DEFAULT_XYJERK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20.0&nbsp; &nbsp; // (mm/sec)<br />#define DEFAULT_ZJERK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.4&nbsp; &nbsp; &nbsp;// (mm/sec)<br />#define DEFAULT_EJERK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5.0&nbsp; &nbsp; // (mm/sec)</p><p>//===========================================================================<br />//=============================Additional Features===========================<br />//===========================================================================</p><p>// EEPROM<br />// The microcontroller can store settings in the EEPROM, e.g. max velocity...<br />// M500 - stores parameters in EEPROM<br />// M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).<br />// M502 - reverts to the default &quot;factory settings&quot;.&nbsp; You still need to store them in EEPROM afterwards if you want to.<br />//define this to enable EEPROM support<br />#define EEPROM_SETTINGS<br />//to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:<br />// please keep turned on if you can.<br />#define EEPROM_CHITCHAT</p><p>// Preheat Constants<br />#define PLA_PREHEAT_HOTEND_TEMP 180<br />#define PLA_PREHEAT_HPB_TEMP 60<br />#define PLA_PREHEAT_FAN_SPEED 255&nbsp; &nbsp;// Insert Value between 0 and 255</p><p>#define ABS_PREHEAT_HOTEND_TEMP 215<br />#define ABS_PREHEAT_HPB_TEMP 100<br />#define ABS_PREHEAT_FAN_SPEED 255&nbsp; &nbsp;// Insert Value between 0 and 255</p><p>//LCD and SD support<br />//#define ULTRA_LCD&nbsp; //general LCD support, also 16x2<br />//#define DOGLCD&nbsp; // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)<br />//#define SDSUPPORT // Enable SD Card Support in Hardware Console<br />//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you&#039;re getting volume init error)<br />//#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication<br />//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder<br />//#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking<br />//#define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.<br />//#define ULTIPANEL&nbsp; //the UltiPanel as on Thingiverse<br />//#define LCD_FEEDBACK_FREQUENCY_HZ 1000&nbsp; &nbsp; // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click<br />//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click</p><p>// The MaKr3d Makr-Panel with graphic controller and SD support<br />// <a href="http://reprap.org/wiki/MaKr3d_MaKrPanel">http://reprap.org/wiki/MaKr3d_MaKrPanel</a><br />//#define MAKRPANEL</p><p>// The RepRapDiscount Smart Controller (white PCB)<br />// <a href="http://reprap.org/wiki/RepRapDiscount_Smart_Controller">http://reprap.org/wiki/RepRapDiscount_Smart_Controller</a><br />//#define REPRAP_DISCOUNT_SMART_CONTROLLER</p><p>// The GADGETS3D G3D LCD/SD Controller (blue PCB)<br />// <a href="http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel">http://reprap.org/wiki/RAMPS_1.3/1.4_GA … with_Panel</a><br />//#define G3D_PANEL</p><p>// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB)<br />// <a href="http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller">http://reprap.org/wiki/RepRapDiscount_F … Controller</a><br />//<br />// ==&gt; REMEMBER TO INSTALL U8glib to your ARDUINO library folder: <a href="http://code.google.com/p/u8glib/wiki/u8glib">http://code.google.com/p/u8glib/wiki/u8glib</a><br />//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER</p><p>// The RepRapWorld REPRAPWORLD_KEYPAD v1.1<br />// <a href="http://reprapworld.com/?products_details&amp;products_id=202&amp;cPath=1591_1626">http://reprapworld.com/?products_detail … =1591_1626</a><br />//#define REPRAPWORLD_KEYPAD<br />//#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0 means 10mm per click</p><p>// The Elefu RA Board Control Panel<br />// <a href="http://www.elefu.com/index.php?route=product/product&amp;product_id=53">http://www.elefu.com/index.php?route=pr … duct_id=53</a><br />// REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARUDINO library folder: <a href="https://github.com/kiyoshigawa/LiquidCrystal_I2C">https://github.com/kiyoshigawa/LiquidCrystal_I2C</a><br />//#define RA_CONTROL_PANEL</p><p>//automatic expansion<br />#if defined (MAKRPANEL)<br /> #define DOGLCD<br /> #define SDSUPPORT<br /> #define ULTIPANEL<br /> #define NEWPANEL<br /> #define DEFAULT_LCD_CONTRAST 17<br />#endif</p><p>#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)<br /> #define DOGLCD<br /> #define U8GLIB_ST7920<br /> #define REPRAP_DISCOUNT_SMART_CONTROLLER<br />#endif</p><p>#if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)<br /> #define ULTIPANEL<br /> #define NEWPANEL<br />#endif</p><p>#if defined(REPRAPWORLD_KEYPAD)<br />&nbsp; #define NEWPANEL<br />&nbsp; #define ULTIPANEL<br />#endif<br />#if defined(RA_CONTROL_PANEL)<br /> #define ULTIPANEL<br /> #define NEWPANEL<br /> #define LCD_I2C_TYPE_PCA8574<br /> #define LCD_I2C_ADDRESS 0x27&nbsp; &nbsp;// I2C Address of the port expander<br />#endif</p><p>//I2C PANELS</p><p>//#define LCD_I2C_SAINSMART_YWROBOT<br />#ifdef LCD_I2C_SAINSMART_YWROBOT<br />&nbsp; // This uses the LiquidCrystal_I2C library ( <a href="https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home">https://bitbucket.org/fmalpartida/new-l … /wiki/Home</a> )<br />&nbsp; // Make sure it is placed in the Arduino libraries directory.<br />&nbsp; #define LCD_I2C_TYPE_PCF8575<br />&nbsp; #define LCD_I2C_ADDRESS 0x27&nbsp; &nbsp;// I2C Address of the port expander<br />&nbsp; #define NEWPANEL<br />&nbsp; #define ULTIPANEL<br />#endif</p><p>// PANELOLU2 LCD with status LEDs, separate encoder and click inputs<br />//#define LCD_I2C_PANELOLU2<br />#ifdef LCD_I2C_PANELOLU2<br />&nbsp; // This uses the LiquidTWI2 library v1.2.3 or later ( <a href="https://github.com/lincomatic/LiquidTWI2">https://github.com/lincomatic/LiquidTWI2</a> )<br />&nbsp; // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.<br />&nbsp; // (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file)<br />&nbsp; // Note: The PANELOLU2 encoder click input can either be directly connected to a pin<br />&nbsp; //&nbsp; &nbsp; &nbsp; &nbsp;(if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).<br />&nbsp; #define LCD_I2C_TYPE_MCP23017<br />&nbsp; #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander<br />&nbsp; #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD<br />&nbsp; #define NEWPANEL<br />&nbsp; #define ULTIPANEL</p><p>&nbsp; #ifndef ENCODER_PULSES_PER_STEP<br />&nbsp; &nbsp; #define ENCODER_PULSES_PER_STEP 4<br />&nbsp; #endif</p><p>&nbsp; #ifndef ENCODER_STEPS_PER_MENU_ITEM<br />&nbsp; &nbsp; #define ENCODER_STEPS_PER_MENU_ITEM 1<br />&nbsp; #endif</p><br /><p>&nbsp; #ifdef LCD_USE_I2C_BUZZER<br />&nbsp; &nbsp; #define LCD_FEEDBACK_FREQUENCY_HZ 1000<br />&nbsp; &nbsp; #define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100<br />&nbsp; #endif</p><p>#endif</p><p>// Panucatt VIKI LCD with status LEDs, integrated click &amp; L/R/U/P buttons, separate encoder inputs<br />//#define LCD_I2C_VIKI<br />#ifdef LCD_I2C_VIKI<br />&nbsp; // This uses the LiquidTWI2 library v1.2.3 or later ( <a href="https://github.com/lincomatic/LiquidTWI2">https://github.com/lincomatic/LiquidTWI2</a> )<br />&nbsp; // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.<br />&nbsp; // Note: The pause/stop/resume LCD button pin should be connected to the Arduino<br />&nbsp; //&nbsp; &nbsp; &nbsp; &nbsp;BTN_ENC pin (or set BTN_ENC to -1 if not used)<br />&nbsp; #define LCD_I2C_TYPE_MCP23017<br />&nbsp; #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander<br />&nbsp; #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)<br />&nbsp; #define NEWPANEL<br />&nbsp; #define ULTIPANEL<br />#endif</p><p>// Shift register panels<br />// ---------------------<br />// 2 wire Non-latching LCD SR from:<br />// <a href="https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection">https://bitbucket.org/fmalpartida/new-l … connection</a><br />//#define SR_LCD<br />#ifdef SR_LCD<br />&nbsp; &nbsp;#define SR_LCD_2W_NL&nbsp; &nbsp; // Non latching 2 wire shift register<br />&nbsp; &nbsp;//#define NEWPANEL<br />#endif</p><br /><p>#ifdef ULTIPANEL<br />//&nbsp; #define NEWPANEL&nbsp; //enable this if you have a click-encoder panel<br />&nbsp; #define SDSUPPORT<br />&nbsp; #define ULTRA_LCD<br />&nbsp; #ifdef DOGLCD // Change number of lines to match the DOG graphic display<br />&nbsp; &nbsp; #define LCD_WIDTH 20<br />&nbsp; &nbsp; #define LCD_HEIGHT 5<br />&nbsp; #else<br />&nbsp; &nbsp; #define LCD_WIDTH 20<br />&nbsp; &nbsp; #define LCD_HEIGHT 4<br />&nbsp; #endif<br />#else //no panel but just LCD<br />&nbsp; #ifdef ULTRA_LCD<br />&nbsp; #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display<br />&nbsp; &nbsp; #define LCD_WIDTH 20<br />&nbsp; &nbsp; #define LCD_HEIGHT 5<br />&nbsp; #else<br />&nbsp; &nbsp; #define LCD_WIDTH 16<br />&nbsp; &nbsp; #define LCD_HEIGHT 2<br />&nbsp; #endif<br />&nbsp; #endif<br />#endif</p><p>// default LCD contrast for dogm-like LCD displays<br />#ifdef DOGLCD<br /># ifndef DEFAULT_LCD_CONTRAST<br />#&nbsp; define DEFAULT_LCD_CONTRAST 32<br /># endif<br />#endif</p><p>// Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino<br />//#define FAST_PWM_FAN</p><p>// Temperature status LEDs that display the hotend and bet temperature.<br />// If all hotends and bed temperature and temperature setpoint are &lt; 54C then the BLUE led is on.<br />// Otherwise the RED led is on. There is 1C hysteresis.<br />//#define TEMP_STAT_LEDS</p><p>// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency<br />// which is not ass annoying as with the hardware PWM. On the other hand, if this frequency<br />// is too low, you should also increment SOFT_PWM_SCALE.<br />//#define FAN_SOFT_PWM</p><p>// Incrementing this by 1 will double the software PWM frequency,<br />// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.<br />// However, control resolution will be halved for each increment;<br />// at zero value, there are 128 effective control positions.<br />#define SOFT_PWM_SCALE 0</p><p>// M240&nbsp; Triggers a camera by emulating a Canon RC-1 Remote<br />// Data from: <a href="http://www.doc-diy.net/photo/rc-1_hacked/">http://www.doc-diy.net/photo/rc-1_hacked/</a><br />// #define PHOTOGRAPH_PIN&nbsp; &nbsp; &nbsp;23</p><p>// SF send wrong arc g-codes when using Arc Point as fillet procedure<br />//#define SF_ARC_FIX</p><p>// Support for the BariCUDA Paste Extruder.<br />//#define BARICUDA</p><p>//define BlinkM/CyzRgb Support<br />//#define BLINKM</p><p>/*********************************************************************\<br />* R/C SERVO support<br />* Sponsored by TrinityLabs, Reworked by codexmas<br />**********************************************************************/</p><p>// Number of servos<br />//<br />// If you select a configuration below, this will receive a default value and does not need to be set manually<br />// set it manually if you have more servos than extruders and wish to manually control some<br />// leaving it undefined or defining as 0 will disable the servo subsystem<br />// If unsure, leave commented / disabled<br />//<br />//#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command</p><p>// Servo Endstops<br />//<br />// This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.<br />// Use M206 command to correct for switch height offset to actual nozzle height. Store that setting with M500.<br />//<br />//#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1<br />//#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles</p><p>/**********************************************************************\<br /> * Support for a filament diameter sensor<br /> * Also allows adjustment of diameter at print time (vs&nbsp; at slicing)<br /> * Single extruder only at this point (extruder 0)<br /> * <br /> * Motherboards<br /> * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector <br /> * 81 - Printrboard - Uses Analog input 2 on the Aux 2 connector<br /> * 301 - Rambo&nbsp; - uses Analog input 3<br /> * Note may require analog pins to be defined for different motherboards<br /> **********************************************************************/<br />// Uncomment below to enable<br />//#define FILAMENT_SENSOR</p><p>#define FILAMENT_SENSOR_EXTRUDER_NUM&nbsp; &nbsp; 0&nbsp; //The number of the extruder that has the filament sensor (0,1,2)<br />#define MEASUREMENT_DELAY_CM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14&nbsp; //measurement delay in cm.&nbsp; This is the distance from filament sensor to middle of barrel</p><p>#define DEFAULT_NOMINAL_FILAMENT_DIA&nbsp; 3.0&nbsp; //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.&nbsp; Used for sensor reading validation<br />#define MEASURED_UPPER_LIMIT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3.30&nbsp; //upper limit factor used for sensor reading validation in mm<br />#define MEASURED_LOWER_LIMIT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.90&nbsp; //lower limit factor for sensor reading validation in mm<br />#define MAX_MEASUREMENT_DELAY&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20&nbsp; //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM&nbsp; and lower number saves RAM)</p><p>//defines used in the code<br />#define DEFAULT_MEASURED_FILAMENT_DIA&nbsp; DEFAULT_NOMINAL_FILAMENT_DIA&nbsp; //set measured to nominal initially </p><br /><br /><br /><br /><br /><br /><p>#include &quot;Configuration_adv.h&quot;<br />#include &quot;thermistortables.h&quot;</p><p>#endif //__CONFIGURATION_H</p><br /><p>Here is the original config.h file I tried to use.</p>]]></content>
			<author>
				<name><![CDATA[Senin]]></name>
				<uri>https://www.soliforum.com/user/21052/</uri>
			</author>
			<updated>2019-02-14T18:00:28Z</updated>
			<id>https://www.soliforum.com/post/149125/#p149125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/149117/#p149117" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Senin wrote:</cite><blockquote><div class="quotebox"><cite>knowack wrote:</cite><blockquote><p>Ok, I&#039;m not explaining myself well.</p><p>Those instructions are for a SD3/SD4.&nbsp; I have used them several times myself.&nbsp; I&#039;m sure the procedure is identical for the Workbench, since it is also a Printrboard.&nbsp; </p><p>Here is my question:<br />Where did you get that configuration.h file?</p><p>Here is why I ask:<br />-The configuration.h file for my SD4 does not contain lines like you posted.<br />-The configuration.h file on github that post #16 of that thread links to, does not contain lines like you posted. <br />-Those lines look like python, not configuration.h data.</p><p>In that configuration.h file from github, the first mention of ENABLE_AUTO_BED_LEVELING occurs at line 403.&nbsp; There are additional instances at lines 405, 489, and 496; none of them are followed by information like the posted lines.</p><p>Is it possible some other lines were accidentally inserted in a cut-and-past mishap?</p><p>Given the circumstances, the compiler error is correct.&nbsp; &quot;tmp_extruder&quot; is not declared in configuration.h.&nbsp; It is not mentioned anywhere else in that file.</p><p>You may consider backing up your work so far, making a new pull from github, and starting over.</p><p>-Kevin</p></blockquote></div><p>Here is where I got the config.h file. The SD_WB_PrintrBoard_1E3D.</p></blockquote></div><p>He got it from this thread and I m looking at it myself now.</p><p><a href="http://www.soliforum.com/topic/15542/firmware-repository/">http://www.soliforum.com/topic/15542/fi … epository/</a></p><p>Senin, can you post your configuration.h as is?</p><p>Arduino IDE as is does not support the motherboard selected in sketch. The board selected is a Teensy2.0++ and needs extra support installed into the IDE found here.</p><p><a href="https://www.pjrc.com/teensy/td_download.html">https://www.pjrc.com/teensy/td_download.html</a></p><p>Once that is done is still get compile errors but nothing like what Senin is getting.</p>]]></content>
			<author>
				<name><![CDATA[carl_m1968]]></name>
				<uri>https://www.soliforum.com/user/7731/</uri>
			</author>
			<updated>2019-02-14T14:42:23Z</updated>
			<id>https://www.soliforum.com/post/149117/#p149117</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/149116/#p149116" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>knowack wrote:</cite><blockquote><p>Ok, I&#039;m not explaining myself well.</p><p>Those instructions are for a SD3/SD4.&nbsp; I have used them several times myself.&nbsp; I&#039;m sure the procedure is identical for the Workbench, since it is also a Printrboard.&nbsp; </p><p>Here is my question:<br />Where did you get that configuration.h file?</p><p>Here is why I ask:<br />-The configuration.h file for my SD4 does not contain lines like you posted.<br />-The configuration.h file on github that post #16 of that thread links to, does not contain lines like you posted. <br />-Those lines look like python, not configuration.h data.</p><p>In that configuration.h file from github, the first mention of ENABLE_AUTO_BED_LEVELING occurs at line 403.&nbsp; There are additional instances at lines 405, 489, and 496; none of them are followed by information like the posted lines.</p><p>Is it possible some other lines were accidentally inserted in a cut-and-past mishap?</p><p>Given the circumstances, the compiler error is correct.&nbsp; &quot;tmp_extruder&quot; is not declared in configuration.h.&nbsp; It is not mentioned anywhere else in that file.</p><p>You may consider backing up your work so far, making a new pull from github, and starting over.</p><p>-Kevin</p></blockquote></div><p>Here is where I got the config.h file. The SD_WB_PrintrBoard_1E3D.</p>]]></content>
			<author>
				<name><![CDATA[Senin]]></name>
				<uri>https://www.soliforum.com/user/21052/</uri>
			</author>
			<updated>2019-02-14T14:39:18Z</updated>
			<id>https://www.soliforum.com/post/149116/#p149116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/149094/#p149094" />
			<content type="html"><![CDATA[<p>Thanks for your info Kevin. I think what I will do is just start over and see how that goes. I will keep you updated.</p>]]></content>
			<author>
				<name><![CDATA[Senin]]></name>
				<uri>https://www.soliforum.com/user/21052/</uri>
			</author>
			<updated>2019-02-13T18:13:17Z</updated>
			<id>https://www.soliforum.com/post/149094/#p149094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/149072/#p149072" />
			<content type="html"><![CDATA[<p>Ok, I&#039;m not explaining myself well.</p><p>Those instructions are for a SD3/SD4.&nbsp; I have used them several times myself.&nbsp; I&#039;m sure the procedure is identical for the Workbench, since it is also a Printrboard.&nbsp; </p><p>Here is my question:<br />Where did you get that configuration.h file?</p><p>Here is why I ask:<br />-The configuration.h file for my SD4 does not contain lines like you posted.<br />-The configuration.h file on github that post #16 of that thread links to, does not contain lines like you posted. <br />-Those lines look like python, not configuration.h data.</p><p>In that configuration.h file from github, the first mention of ENABLE_AUTO_BED_LEVELING occurs at line 403.&nbsp; There are additional instances at lines 405, 489, and 496; none of them are followed by information like the posted lines.</p><p>Is it possible some other lines were accidentally inserted in a cut-and-past mishap?</p><p>Given the circumstances, the compiler error is correct.&nbsp; &quot;tmp_extruder&quot; is not declared in configuration.h.&nbsp; It is not mentioned anywhere else in that file.</p><p>You may consider backing up your work so far, making a new pull from github, and starting over.</p><p>-Kevin</p>]]></content>
			<author>
				<name><![CDATA[knowack]]></name>
				<uri>https://www.soliforum.com/user/4251/</uri>
			</author>
			<updated>2019-02-12T23:52:35Z</updated>
			<id>https://www.soliforum.com/post/149072/#p149072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/149069/#p149069" />
			<content type="html"><![CDATA[<p>Thank you for your help. When if comes to simply building and putting this stuff together I can handle that no problem but the software aspect kills me. I was following these instructions on post 16 <br /><a href="http://www.soliforum.com/topic/13403/no-usb-recognized-on-any-computer-firmware-issue/">http://www.soliforum.com/topic/13403/no … are-issue/</a> <br />I followed all the links listed and made it to line 17 in the instructions and was getting that error when I didn&#039;t even make a change to the file I was trying to compile.</p>]]></content>
			<author>
				<name><![CDATA[Senin]]></name>
				<uri>https://www.soliforum.com/user/21052/</uri>
			</author>
			<updated>2019-02-12T21:33:27Z</updated>
			<id>https://www.soliforum.com/post/149069/#p149069</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/149066/#p149066" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Senin wrote:</cite><blockquote><p>Sorry for the delayed response I have been out of my office for several days. I have a SD Workbench. First problem I ran into was that it wouldn&#039;t print circles. I started making sure the pulleys and stuff were tight and straight but still got ovals when printing circles. After some time I abandoned the printer, recently I decided to upgrade it and see if I could bring it to life. When first restarted it I had trouble connecting to it and my laptop recognizing it. Once I just kept turning it off then back on until the software picked it up. I also ordered a V6 hot end for it and have that installed. I wanted to updated it to accept the hot end and to see if I have a bad stepper motor. So to answer your question it had whatever came with the SD workbench model, the only thing I have changed is the new hot end.</p></blockquote></div><p>Ok.&nbsp; I just finished rebuilding a Workbench, so I can be of some help there.&nbsp; I re-used the Workbench pulleys, belts, rods, and Y-carriage.&nbsp; I made a new carriage for dual Titans, an E3D Chimera, and three fans.</p><p>I took the Printrboard out, and installed a DuetWiFi.&nbsp; I don&#039;t have any firmware files for the Workbench Printrboard, just for the SD4.&nbsp; Even though the motherboards are the same, I&#039;m guessing there&#039;s differences due to the second extruder etc.&nbsp; If you have a link to Workbench firmware, I&#039;d be glad to look through the configuration.h file.</p><p>-Kevin</p>]]></content>
			<author>
				<name><![CDATA[knowack]]></name>
				<uri>https://www.soliforum.com/user/4251/</uri>
			</author>
			<updated>2019-02-12T20:46:45Z</updated>
			<id>https://www.soliforum.com/post/149066/#p149066</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/149059/#p149059" />
			<content type="html"><![CDATA[<p>Sorry for the delayed response I have been out of my office for several days. I have a SD Workbench. First problem I ran into was that it wouldn&#039;t print circles. I started making sure the pulleys and stuff were tight and straight but still got ovals when printing circles. After some time I abandoned the printer, recently I decided to upgrade it and see if I could bring it to life. When first restarted it I had trouble connecting to it and my laptop recognizing it. Once I just kept turning it off then back on until the software picked it up. I also ordered a V6 hot end for it and have that installed. I wanted to updated it to accept the hot end and to see if I have a bad stepper motor. So to answer your question it had whatever came with the SD workbench model, the only thing I have changed is the new hot end.</p>]]></content>
			<author>
				<name><![CDATA[Senin]]></name>
				<uri>https://www.soliforum.com/user/21052/</uri>
			</author>
			<updated>2019-02-12T19:10:18Z</updated>
			<id>https://www.soliforum.com/post/149059/#p149059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/148912/#p148912" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Senin wrote:</cite><blockquote><p>Im trying to compile the configuration.H file.</p></blockquote></div><p>I&#039;ve searched through my Configuration.h file, and it contains nothing like what you&#039;ve posted.</p><p>What printer, motherboard, firmware, etc. are you using?</p><p>Mine is an SD4, with the stock Printrboard, with Marlin firmware edited to enable gcode fan, E3Dv6 hot end, Calidum bed heater, and Expansion ports enabled.</p><p>-Kevin</p>]]></content>
			<author>
				<name><![CDATA[knowack]]></name>
				<uri>https://www.soliforum.com/user/4251/</uri>
			</author>
			<updated>2019-02-07T05:53:42Z</updated>
			<id>https://www.soliforum.com/post/148912/#p148912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/148907/#p148907" />
			<content type="html"><![CDATA[<p>Im trying to compile the configuration.H file.</p>]]></content>
			<author>
				<name><![CDATA[Senin]]></name>
				<uri>https://www.soliforum.com/user/21052/</uri>
			</author>
			<updated>2019-02-06T19:02:34Z</updated>
			<id>https://www.soliforum.com/post/148907/#p148907</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/148906/#p148906" />
			<content type="html"><![CDATA[<p>Which file is that?</p><p>-Kevin</p>]]></content>
			<author>
				<name><![CDATA[knowack]]></name>
				<uri>https://www.soliforum.com/user/4251/</uri>
			</author>
			<updated>2019-02-06T18:55:00Z</updated>
			<id>https://www.soliforum.com/post/148906/#p148906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: E3D firmware update for Printrboard]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/148905/#p148905" />
			<content type="html"><![CDATA[<p>Im trying to follow the steps and when I compiled it gave me this error. I didn&#039;t have to change anything in the code it was already all changed.<br /><span class="postimg"><img src="http://soliforum.com/i/?VugTwt0.png" alt="http://soliforum.com/i/?VugTwt0.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[Senin]]></name>
				<uri>https://www.soliforum.com/user/21052/</uri>
			</author>
			<updated>2019-02-06T17:29:56Z</updated>
			<id>https://www.soliforum.com/post/148905/#p148905</id>
		</entry>
</feed>
