<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
        <description> Can someone please help me?

I&#039;ve built a SevenSwitch to control the bed heater to eliminate the mechanical relay because ultimately I&#039;d like to use PID PWM heating for the bed. The D8 output isn&#039;t suitable because the negative pin is switched. I therefore need to find a pin on the RAMPS board I can use. How do I do this?

The pins.h file has this entry: 

#define HEATER_BED_PIN      8

I guess that means that the bed heater (D8 pair) is fed from pin 8 of the Arduino through a FET. If I choose another pin, is it just a matter of changing this entry to a free pin to free up this FET output for fans etc? 

Next question - how do I identify a free pin? It seems to be in pins.h but I&#039;m not comfortable reading the programming logic to find an unused pin. I read somewhere that 44 is usually free - how can I verify this?

If I&#039;m only going to be using one servo, is there any reason not to use the output for the 4th servo - Pin 4 - for the bed heater?

Thanks.

Richard</description>
        <link>https://reprap.org/forum/read.php?146,525323,525323#msg-525323</link>
        <lastBuildDate>Thu, 18 Jun 2026 04:46:05 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,701759#msg-701759</guid>
            <title>Re: Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,701759#msg-701759</link>
            <description><![CDATA[ Hi Traumflug.<br />
<br />
The MOSFET does not get hot but it take about 2 - 3 minutes to get upto 50 deg C from ambient room temp.]]></description>
            <dc:creator>prashantdshinde</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Fri, 19 Aug 2016 01:15:35 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,701615#msg-701615</guid>
            <title>Re: Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,701615#msg-701615</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>prashantdshinde</strong><br />
Just want to confirm whether I should comment the PID temparature control in Marlin.</div></blockquote>
<br />
Does the MOSFET get hot? Like hot enough to unsolder its self? Like above 150 °C? In the <b>very unlikely</b> case it does, you have to go with bang-bang.<br />
<br />
To find out, put your finger on the MOSFET and turn the heater on. If it doesn't hurt within the first minute, all is fine.<br />
<br />
Also, PWM != PID. One can do PWM with bang-bang, which is just as harmful/harmless as PWM with PID. It's the PWM which causes many switches, which in turn heats up undersized MOSFETs. PID is just a strategy for deciding wether and how much to turn on the heater on or not.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>prashantdshinde</strong><br />
Are the above countermeasures only for TeaCup or also for Marlin?</div></blockquote>
<br />
A SevenSwitch doesn't care (or recognize) which firmware creates the signal.]]></description>
            <dc:creator>Traumflug</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Thu, 18 Aug 2016 05:44:41 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,701606#msg-701606</guid>
            <title>Re: Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,701606#msg-701606</link>
            <description><![CDATA[ Hi Traumflug,<br />
<br />
I have successfully built and run sevenswitch 1.2.<br />
<br />
Just want to confirm whether I should comment the PID temparature control in Marlin.<br />
<br />
As you mentioned Bang-bang temparature control in Sevenswitch wiki.<br />
<br />
<span style="color:#FF9900">Countermeasures:<br />
Lower PWM frequency. For example, comment out FAST_PWM in Teacup's config.h.<br />
Use a bang bang temperature control. For Teacup, also use BANG_BANG_ON = 255.</span><br />
<br />
Are the above countermeasures only for TeaCup or also for Marlin?<br />
<br />
Regards,<br />
Prashant]]></description>
            <dc:creator>prashantdshinde</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Thu, 18 Aug 2016 05:19:10 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,701336#msg-701336</guid>
            <title>Re: Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,701336#msg-701336</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>o_lampe</strong><br />
I just read the SevenSwitch Wiki and don´t see, why you can´t use the D8 terminal?</div></blockquote>
<br />
It's at the bottom of that page.]]></description>
            <dc:creator>Traumflug</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Wed, 17 Aug 2016 04:29:01 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,700748#msg-700748</guid>
            <title>Re: Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,700748#msg-700748</link>
            <description><![CDATA[ Hi RGN01,<br />
<br />
I also built a sevenswitch, connected through Pin 4 but cannot achieve the results.<br />
<br />
I don't feel the FET on sevenswitch heated. Niether the temp on LCD rises.<br />
<br />
Can you post a picture of your sevenswitch.<br />
<br />
Also can you post your config.h file.<br />
<br />
Thanks.]]></description>
            <dc:creator>prashantdshinde</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Wed, 17 Aug 2016 01:45:30 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,525695#msg-525695</guid>
            <title>Re: Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,525695#msg-525695</link>
            <description><![CDATA[ Success. The bed heater is now on pin4 and I'm currently doing a PID calibration.<br />
<br />
I had to change pins.h in two places (line 51 and 215) - my pins.h file is attached. Note that I have removed all that was not obviously RAMPS and Arduino Mega256.<br />
<br />
I then enabled PID bed heating, ran a PID Autotune [<a href="http://reprap.org/wiki/PID_Tuning" target="_blank"  rel="nofollow">reprap.org</a>] - the bed now stays within 1°C of the desired temperature.<br />
<br />
Pin 8 and D8 are now free for use by an extra fan. My next step is adding a second extruder and hotend and when I do that I'll add another fan.<br />
<br />
Richard]]></description>
            <dc:creator>RGN01</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Wed, 24 Jun 2015 16:36:01 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,525615#msg-525615</guid>
            <title>Re: Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,525615#msg-525615</link>
            <description><![CDATA[ Thanks for your response Olaf. My plan was to use the D8 FET combination for another purpose - a fan - so I wanted to free it if possible.<br />
<br />
I have added a 5V regulator to the mix - it feeds the appropriate ground and +5V pins on Aux1 - this was mainly to stop problems with the LCD unit I have attached. It was 'dimming' and the messages were corrupted. Adding a 5V external supply has almost completely removed that problem.<br />
<br />
I'm about to delve into pins.h to try to change the configuration to pin 4 - wish me luck!<br />
<br />
Richard]]></description>
            <dc:creator>RGN01</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Wed, 24 Jun 2015 14:05:20 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,525419#msg-525419</guid>
            <title>Re: Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,525419#msg-525419</link>
            <description><![CDATA[ I just read the SevenSwitch Wiki and don´t see, why you can´t use the D8 terminal?<br />
Just wire GND to GND and signal to +12V. <br />
Only when the MOSFet on the ramps switches the "-" terminal of D8 to ground, you see 12V at the signal input of the SevenSwitch.<br />
<br />
But you can use a servo connector as well. Just make sure, the MOSFet of the SevenSwitch can switch ON at voltages lower than 5V. (Arduinos 5V regulator is weak)<br />
-Olaf]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Wed, 24 Jun 2015 03:56:43 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,525323,525323#msg-525323</guid>
            <title>Marlin, RAMPS 1.4 and SevenSwitch - pin changes</title>
            <link>https://reprap.org/forum/read.php?146,525323,525323#msg-525323</link>
            <description><![CDATA[ Can someone please help me?<br />
<br />
I've built a SevenSwitch to control the bed heater to eliminate the mechanical relay because ultimately I'd like to use PID PWM heating for the bed. The D8 output isn't suitable because the negative pin is switched. I therefore need to find a pin on the RAMPS board I can use. How do I do this?<br />
<br />
The pins.h file has this entry: <br />
<pre class="bbcode">
#define HEATER_BED_PIN      8</pre>
<br />
I guess that means that the bed heater (D8 pair) is fed from pin 8 of the Arduino through a FET. If I choose another pin, is it just a matter of changing this entry to a free pin to free up this FET output for fans etc? <br />
<br />
Next question - how do I identify a free pin? It seems to be in pins.h but I'm not comfortable reading the programming logic to find an unused pin. I read somewhere that 44 is usually free - how can I verify this?<br />
<br />
If I'm only going to be using one servo, is there any reason not to use the output for the 4th servo - Pin 4 - for the bed heater?<br />
<br />
Thanks.<br />
<br />
Richard]]></description>
            <dc:creator>RGN01</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Tue, 23 Jun 2015 17:56:28 -0400</pubDate>
        </item>
    </channel>
</rss>
