<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[SoliForum - 3D Printing Community — Gcode controlled fan with Panelolou 2.]]></title>
		<link>https://www.soliforum.com/topic/5611/gcode-controlled-fan-with-panelolou-2/</link>
		<atom:link href="https://www.soliforum.com/feed/rss/topic/5611/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Gcode controlled fan with Panelolou 2..]]></description>
		<lastBuildDate>Wed, 19 Feb 2014 05:50:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Gcode controlled fan with Panelolou 2.]]></title>
			<link>https://www.soliforum.com/post/50162/#p50162</link>
			<description><![CDATA[<p>Been searching around, and tinkering with the firmware, and sending Gcode commands&nbsp; to try and enable the extruder fan I just installed off my Panelolou Sanguino adapter board Transistor 1.&nbsp; </p><p>Reading on Both Ian&#039;s blog, and the Think3dPrint3d website it says I need to go to pin.h and enable fan control by changing the pin definition for the fan from -1 to 4.&nbsp; </p><p>My problem is the code I am told to change is:</p><div class="quotebox"><blockquote><p>#define FAN_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -1</p></blockquote></div><p>to</p><div class="quotebox"><blockquote><p>#define FAN_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4</p></blockquote></div><p>But there are multiple instances of this throughout the pin.h file, and I have tried changing the Motherboard == 62 etc.... But no love.&nbsp; </p><p>Tested my fan to make sure it worked directly off a 12 volt supply, worked.&nbsp; I also tested my wiring to ensure there were no shorts.&nbsp; Also good.&nbsp; </p><p>Any ideas? What am I missing?</p><p>Thanks.</p><div class="quotebox"><blockquote><p><strong>UPDATE - 02/18/2014</strong><br />Ok, for anyone else who wants to rip there hair out if they too want to add a gcode controlled fan to their Panelolou 2 + Solidoodle setup, but can&#039;t seem to get it work. Make the following changes. You want to use transistor 2 on your Sanguino adapter board. </p><p> Transistor 1 will not work until i2c is supported by firmware. Which I think it is already, but I haven&#039;t confirmed it. If it is I believe it&#039;s simply a matter of soldering a few jumpers together on the Sanguino adapter board that comes with the Panelolou 2.&nbsp; </p><p>Anyhow code changes as follow to the Pins.h file in the Marlin Soliforum Community firmware.&nbsp; What I changed the code too is anything that is red below.</p><div class="quotebox"><blockquote><p>/****************************************************************************************<br />* Sanguinololu pin assignment<br />*<br />****************************************************************************************/<br />#if MOTHERBOARD == 64<br />#define STB<br />#endif<br />#if MOTHERBOARD == 63 || MOTHERBOARD == 66<br />#define MELZI<br />#endif<br />#if MOTHERBOARD == 65<br />#define AZTEEG_X1<br />#endif<br />#if MOTHERBOARD == 62 || MOTHERBOARD == 63 || MOTHERBOARD == 64 || MOTHERBOARD == 65 || MOTHERBOARD == 66<br />#undef MOTHERBOARD<br />#define MOTHERBOARD 6<br />#define SANGUINOLOLU_V_1_2<br />#endif<br />#if MOTHERBOARD == 6<br />#define KNOWN_BOARD 1<br />#ifndef __AVR_ATmega644P__<br />#ifndef __AVR_ATmega1284P__<br />#error Oops!&nbsp; Make sure you have &#039;Sanguino&#039; selected from the &#039;Tools -&gt; Boards&#039; menu.<br />#endif<br />#endif</p><p>#define X_STEP_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;15<br />#define X_DIR_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 21<br />#define X_STOP_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;18</p><p>#define Y_STEP_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;22<br />#define Y_DIR_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 23<br />#define Y_STOP_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;19</p><p>#define Z_STEP_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3<br />#define Z_DIR_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2<br />#define Z_STOP_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;20</p><p>#define E0_STEP_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br />#define E0_DIR_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</p><p>#define LED_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -1</p><p>#define FAN_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: red">28 //Needs to be pin 28 to use Transistor 2 on panelolou 2 Sanguino adapter board.</span><br /> #if FAN_PIN == 12 || FAN_PIN ==13<br />&nbsp; #define FAN_SOFT_PWM<br />#endif</p><p>#ifdef MELZI<br /> #define LED_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 27 /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs LED_PIN as pin 28. But you better upgrade your Sanguino libraries! See #368. */<br /> #define FAN_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: red">28 // Works for Panelolu2 too, should be 28 for Transistor 2 use and non broken Sanguino library.</span><br />#endif</p><p>#ifdef STB<br /> #define FAN_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4<br />&nbsp; &nbsp; //&nbsp; Uncomment this if you have the first generation (V1.10) of STBs board<br /> #define LCD_PIN_BL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;17 // LCD backlight LED<br />#endif</p><p>#ifdef AZTEEG_X1<br /> #define FAN_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4<br />#endif</p><p>#define PS_ON_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -1<br />#define KILL_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-1</p><p>#define HEATER_0_PIN&nbsp; &nbsp; &nbsp; &nbsp;13 // (extruder)<br />#define HEATER_1_PIN&nbsp; &nbsp; &nbsp; &nbsp;-1<br />#define HEATER_2_PIN&nbsp; &nbsp; &nbsp; &nbsp;-1</p><p>#ifdef SANGUINOLOLU_V_1_2</p><p> #define HEATER_BED_PIN&nbsp; &nbsp; &nbsp;12 // (bed)<br /> #define X_ENABLE_PIN&nbsp; &nbsp; &nbsp; &nbsp;14<br /> #define Y_ENABLE_PIN&nbsp; &nbsp; &nbsp; &nbsp;14<br /> #define Z_ENABLE_PIN&nbsp; &nbsp; &nbsp; &nbsp;26<br /> #define E0_ENABLE_PIN&nbsp; &nbsp; &nbsp; 14</p><p> #ifdef LCD_I2C_PANELOLU2<br />&nbsp; &nbsp;#define FAN_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: red">28 // Uses Transistor1 (PWM) on Panelolu2&#039;s Sanguino Adapter Board to drive the fan, change to pin 28 to use transistor 2.</span><br /> #endif</p><p>#else</p><p>#define HEATER_BED_PIN&nbsp; &nbsp; &nbsp; 14&nbsp; // (bed)<br />#define X_ENABLE_PIN&nbsp; &nbsp; &nbsp; &nbsp;-1<br />#define Y_ENABLE_PIN&nbsp; &nbsp; &nbsp; &nbsp;-1<br />#define Z_ENABLE_PIN&nbsp; &nbsp; &nbsp; &nbsp;-1<br />#define E0_ENABLE_PIN&nbsp; &nbsp; &nbsp; -1</p><p>#endif</p><p>#define TEMP_0_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7&nbsp; &nbsp;// MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)<br />#define TEMP_1_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-1<br />#define TEMP_2_PIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-1<br />#define TEMP_BED_PIN&nbsp; &nbsp; &nbsp; &nbsp; 6&nbsp; &nbsp;// MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)<br />#define SDPOWER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -1<br />#define SDSS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;31</p></blockquote></div><p>There you go, hope this helps anyone with this unique problem! I&#039;ll be seeing if I can get access to both my transistors by checking into what&#039;s needed for i2c support with my setup. I&#039;ll post an update if I figure anything else out.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (pastprimitive)]]></author>
			<pubDate>Wed, 19 Feb 2014 05:50:15 +0000</pubDate>
			<guid>https://www.soliforum.com/post/50162/#p50162</guid>
		</item>
	</channel>
</rss>
