<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Prusa i3: no homing after activation of second fan</title>
        <description> Hi,
i have a Prusa i3 with Megatronics 3.0 electronics. Firmware is Marlin 1.0.0.
I adapted some values for speed and acceleration in configuration.h, everything works so far.
Due to very hot stepper drivers I activated Fan2 by inserting the following after line 1140 in Marlin_main.cpp as suggested in [reprap.org] (bottom):


       for(int8_t i=0; i &amp;lt; NUM_AXIS; i++) {
        destination = current_position;
      }

//beginning of insertion
       #if FAN2_PIN &amp;gt; -1
     case 806: //M806 Fan2 On
       if (code_seen(&#039;S&#039;)){
       analogWrite(6, constrain(code_value(),0,255));} //D6 is fan2_pin as in pins.h
       else {
         analogWrite(6, 255);}
       break;
     case 807: //M807 Fan2 Off
       analogWrite(6, 0);
       break;
   #endif //FAN2_PIN
//end of insertion

      feedrate = 0.0;

#ifdef DELTA


Turning the Fan2 off and on works, but homing doesn&#039;t work anymore. I can move the axes, everything else seems to work, except homing.

Does anyone have an idea what to do?

Thanks!

Edit: Could I use the 12 V output on the board to connect the fan? It would be constantly running but I wouldn&#039;t mind. I&#039;m not sure what current it supports though.</description>
        <link>https://reprap.org/forum/read.php?151,455633,455633#msg-455633</link>
        <lastBuildDate>Tue, 19 May 2026 05:37:17 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?151,455633,457340#msg-457340</guid>
            <title>Re: Prusa i3: no homing after activation of second fan</title>
            <link>https://reprap.org/forum/read.php?151,455633,457340#msg-457340</link>
            <description><![CDATA[ I worked around this by plugging the fan into the 12 V power supply on the board.]]></description>
            <dc:creator>H_T</dc:creator>
            <category>General Mendel Topics</category>
            <pubDate>Mon, 19 Jan 2015 05:28:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?151,455633,455633#msg-455633</guid>
            <title>Prusa i3: no homing after activation of second fan</title>
            <link>https://reprap.org/forum/read.php?151,455633,455633#msg-455633</link>
            <description><![CDATA[ Hi,<br />
i have a Prusa i3 with Megatronics 3.0 electronics. Firmware is Marlin 1.0.0.<br />
I adapted some values for speed and acceleration in configuration.h, everything works so far.<br />
Due to very hot stepper drivers I activated Fan2 by inserting the following after line 1140 in Marlin_main.cpp as suggested in [<a href="http://reprap.org/wiki/Megatronics_3.0" target="_blank"  rel="nofollow">reprap.org</a>] (bottom):<br />
<br />
<pre class="bbcode">
       for(int8_t i=0; i &lt; NUM_AXIS; i++) {
        destination<i> = current_position<i>;
      }

//beginning of insertion
       #if FAN2_PIN &gt; -1
     case 806: //M806 Fan2 On
       if (code_seen('S')){
       analogWrite(6, constrain(code_value(),0,255));} //D6 is fan2_pin as in pins.h
       else {
         analogWrite(6, 255);}
       break;
     case 807: //M807 Fan2 Off
       analogWrite(6, 0);
       break;
   #endif //FAN2_PIN
//end of insertion

      feedrate = 0.0;

#ifdef DELTA
</i></i></pre>
<br />
Turning the Fan2 off and on works, but homing doesn't work anymore. I can move the axes, everything else seems to work, except homing.<br />
<br />
Does anyone have an idea what to do?<br />
<br />
Thanks!<br />
<br />
Edit: Could I use the 12 V output on the board to connect the fan? It would be constantly running but I wouldn't mind. I'm not sure what current it supports though.]]></description>
            <dc:creator>H_T</dc:creator>
            <category>General Mendel Topics</category>
            <pubDate>Thu, 15 Jan 2015 07:57:03 -0500</pubDate>
        </item>
    </channel>
</rss>
