<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
        <description> Hello 

I am new on this forum, and I would appreciate some help with  this mod I would like to put in my Printer.

I have read everything I have been able to find on internet but I can not get it work.

My problem is the following:

I want to use relay to switch on/off my PSU as in this topic explains :http://reprap.org/wiki/Power_Supply#Controlling_the_PSU

I bought the following relay:http://es.aliexpress.com/item/C18-Newest-2014-Level-Triger-Optocoupler-Relay-1-Channel-H-LModule-for-Arduino-5V-Free-Shipping/32224788335.html?recommendVersion=1

My ramps is a 1.4Version.

I have tested the M80/M81 gcodesand they work, because I can measure with the multimeter, a variation voltage. measuring betweeen VCC and PS_ON on those three pins.

If M80 I get -5V
If M81 I get 0V

I do not know what else to check or maybe can someone tell me if this relay is not right one?

Thank you for your support.</description>
        <link>https://reprap.org/forum/read.php?219,480820,480820#msg-480820</link>
        <lastBuildDate>Sat, 18 Apr 2026 09:48:07 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,482912#msg-482912</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,482912#msg-482912</link>
            <description><![CDATA[ Hello<br />
<br />
As a 5V psu, I used a old phone charger, which supplys 5v 500mA. I did not removed the d1 diode.<br />
<br />
As soon as I can I will update the Reprap wiki with some graphics...currently I am trying to create a pcb Fritzing RAMPS, that It does not exist yet.<br />
<br />
I will pst when I finish it.]]></description>
            <dc:creator>Amachete</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Thu, 12 Mar 2015 17:40:54 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,482541#msg-482541</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,482541#msg-482541</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Amachete</strong><br />
But It is neccesary to change in configuration.h the type of PSU, from ATX to X-BOX</div></blockquote>
<br />
I did the same way than you. I also uncommented #define PS_DEFAULT_OFF so my printer's power supply doesn't switch on alone after a power shortage. (my 5V comes through the USB port from a Raspberry Pi, I removed the D1 diode on my Ramps)<br />
<br />
I'll add M80 at the beginning of my GCodes and M81 at the end.]]></description>
            <dc:creator>kr_</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Wed, 11 Mar 2015 20:19:11 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481802#msg-481802</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481802#msg-481802</link>
            <description><![CDATA[ You are welcome! :) :) :)]]></description>
            <dc:creator>enif</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Tue, 10 Mar 2015 08:51:52 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481749#msg-481749</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481749#msg-481749</link>
            <description><![CDATA[ Hello Enif.<br />
<br />
I just want to tell you that the Diode Schotty works as a charm, no problems with the LCD.<br />
<br />
Thank you very much for your help.]]></description>
            <dc:creator>Amachete</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Tue, 10 Mar 2015 05:42:34 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481434#msg-481434</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481434#msg-481434</link>
            <description><![CDATA[ I'm glad it worked!  :) :) <br />
<br />
Schottky diode should be 5Vpsu -&gt;| ramps.]]></description>
            <dc:creator>enif</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Mon, 09 Mar 2015 10:54:26 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481420#msg-481420</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481420#msg-481420</link>
            <description><![CDATA[ It worked!!!<br />
<br />
I just put the PS_ON, and V5 on the Vcc(without Diode)  and the ground wire on one pin of the servos areas(USB connected) and IT WORKED!!!<br />
<br />
I was able to send comands M80 and M81 through Pronterface.<br />
<br />
But It is neccesary to change in configuration.h the type of PSU, from ATX to X-BOX, because the logic Is not right as you can see:<br />
<br />
<pre class="bbcode">
// Power Signal Control Definitions
// By default use ATX definition
#ifndef POWER_SUPPLY
  #define POWER_SUPPLY 1
#endif
// 1 = ATX
#if (POWER_SUPPLY == 1)
  #define PS_ON_AWAKE  LOW
  #define PS_ON_ASLEEP HIGH
#endif
// 2 = X-Box 360 203W
#if (POWER_SUPPLY == 2)
  #define PS_ON_AWAKE  HIGH
  #define PS_ON_ASLEEP LOW
#endif</pre>
<br />
About the LCD with the previous setup:<br />
<br />
With USB cable the LCD screen, works but with extranges symbols....although It looks to correct itself at some point, but not completely.<br />
Without USB cable on,..It works flawlessly!!! At least in some test I have just done.<br />
<br />
I need to try the diode schooty that you suggested, <br />
<br />
Could you tell me which direction it should have? <br />
<br />
5Vpsu   -&gt;|  ramps<br />
<br />
5Vpsu   |&lt;-  ramps<br />
<br />
Thank you very much for your help.<br />
<br />
I think I will add some note on the reprap wiki about this thing.<br />
<br />
Thanks a lot]]></description>
            <dc:creator>Amachete</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Mon, 09 Mar 2015 10:33:54 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481313#msg-481313</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481313#msg-481313</link>
            <description><![CDATA[ Looking at your last picture, I think that your red 5V wire going to the RAMPS doesn't do anything, it just goes to the servo headers.  But I guess that this<br />
is better, since the Arduino also provides 5V, so if you connect the 5V from the 5V adapter to the RAMPS VCC (not the "5V" pin, but the "VCC" besides it), make sure to put a (Schottky) diode in series with the wire (stripe towards RAMPS) to avoid conflicts between the two 5V sources.  <br />
<br />
So I recommend as next you remove the red 5V wire and just put a ground wire from the 5V adapter (resp. splitter) to any of the ground ping of the RAMPS, i.e one of the "-" pins of the servo headers. <br />
<br />
(If the relay IN signal really draws 40mA --which remains to be seen-- then you could always use the mosfet output of the second extruder. But this would need some special wiring, since the mosfet switches the ground level.)]]></description>
            <dc:creator>enif</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Mon, 09 Mar 2015 05:33:23 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481282#msg-481282</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481282#msg-481282</link>
            <description><![CDATA[ Yes, there is not a black wire(ground) attached to RAMPS as they are part of other circuit apart of the main PSU(12V), I guess it is necessary....<br />
<br />
I thought of it but as this wire does not appear on any of pictures or graphics, I have looked at,...I did not put it in.<br />
<br />
<div id="div_dda52805922c11aa9d31d5c8a1330281"
     class="mod_embed_images"
     style="width:768px">

  

    
      
    

    <div id="imagediv_dda52805922c11aa9d31d5c8a1330281" class="mod_embed_images_image"
         style="width:768px; height:263px">

    

    <a href="http://reprap.org/mediawiki/images/e/e7/Wiring_scheme.png">
        <img src="/forum/thumbcache/7db/dd7/691/f1a/a2a/5a4/c92/3e5/6c9/192/62_800x400.png"
             width="768"
             height="263"
             id="image_dda52805922c11aa9d31d5c8a1330281"
             alt="Wiring_scheme.png"
             title="Wiring_scheme.png"/>
    </a>

    

    </div>

    <div class="mod_embed_images_info " id="info_dda52805922c11aa9d31d5c8a1330281"
      >
      <a id="link_dda52805922c11aa9d31d5c8a1330281" href="http://reprap.org/mediawiki/images/e/e7/Wiring_scheme.png">Wiring_scheme.png</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('dda52805922c11aa9d31d5c8a1330281', '/forum/thumbcache/7db/dd7/691/f1a/a2a/5a4/c92/3e5/6c9/192/62_800x400.png', 'http://reprap.org/mediawiki/images/e/e7/Wiring_scheme.png', 'https://reprap.org/forum/addon.php?219,module=embed_images,check_scaling=1,url=http%3A%2F%2Freprap.org%2Fmediawiki%2Fimages%2Fe%2Fe7%2FWiring_scheme.png', '', 481282, 800, 400, 'Loading image ...', false);
</script>
<br />
<br />
the main thing is I do not know where to plug it, and close the circuit!!!<br />
<br />
But in my opinion, this V5(Stand by) is not necessary) but It might be useful.....other thing would be if the 5V psu is enough to power up the ARDUINO and LCD, in order to make and independent machine. and what about an auxiliar psu which provides 9V and 5V?<br />
<br />
Reading the documentation of the relay I found out that the IN pin needs at least 40mA, I do not know If RAMPS is able to provide these amount of source through this pin.....<br />
<br />
I was able to find the atttached document....I might help....<br />
<br />
<br />
Thank you for your efforts....<br />
<br />
It is strange that nobody has tried this setup before, I am afraid It is not well documented.......<br/>]]></description>
            <dc:creator>Amachete</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Mon, 09 Mar 2015 04:16:48 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481262#msg-481262</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481262#msg-481262</link>
            <description><![CDATA[ How does the ground from your 5V adapter get to the Arduino?  Isn't there the black wire missing that brings the ground from the splitter to the Arduino in parallel with the red 5V?]]></description>
            <dc:creator>enif</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Mon, 09 Mar 2015 02:56:16 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481146#msg-481146</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481146#msg-481146</link>
            <description><![CDATA[ I hope you can see my setup. If you need more picture, let me know.<br />
<br />
I unplugged other wires and Ispread the mess of wires in order to see something, I hope it helps...<br />
<br />
thank you]]></description>
            <dc:creator>Amachete</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 08 Mar 2015 17:14:45 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481067#msg-481067</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481067#msg-481067</link>
            <description><![CDATA[ @Amachete: Can you post a photo of your setup and wiring?]]></description>
            <dc:creator>enif</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 08 Mar 2015 14:38:10 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481029#msg-481029</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481029#msg-481029</link>
            <description><![CDATA[ Hiii sir i read your post i'm building my reprap 3d printer but i'm using my powersupply from my old pc so i referred this link [<a href="https://github.com/foosel/OctoPrint/wiki/Control-your-printer's-ATX-PSU-through-a-RAMPS-board-using-OctoPrint#powering-servos-from-the-5v-from-the-atx-psu" target="_blank"  rel="nofollow">github.com</a>].<br />
But when i connect the power supply to the RAMPS 1.4 board its is working but when i connect my usb cable to the laptop the power stops <br />
Plz help me Out]]></description>
            <dc:creator>Adhithya</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 08 Mar 2015 13:05:01 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481016#msg-481016</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481016#msg-481016</link>
            <description><![CDATA[ Yes It Is.<br />
<br />
There is a jumper on.<br />
<br />
The power led brights quite well,<br />
<br />
But the other is always on, a bit dim, not full power, Even though I send M80 and M81, The light is still on.<br />
<br />
I made a test with the V5sb, and the PS_ON cable "crossing" them, and the led brighted as hell, and the main PSU switched on....<br />
<br />
I do not know If this helps,<br />
<br />
If you need any other thing to do...I think I have already tried everything.<br />
<br />
Thank you for helping me out...]]></description>
            <dc:creator>Amachete</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 08 Mar 2015 12:34:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,481008#msg-481008</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,481008#msg-481008</link>
            <description><![CDATA[ Do you have the jumper installed that connects AGND to DGND, as on the picture? (If not the ground is only for the LED.)]]></description>
            <dc:creator>enif</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 08 Mar 2015 12:06:49 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,480977#msg-480977</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,480977#msg-480977</link>
            <description><![CDATA[ Ok thanks.<br />
<br />
Your are right, that is wrong on that diagram, but I am connecting right that bit,<br />
<br />
5V Power supply, I connect to Vcc to 5V and Ground to Ground. The relay power led, switches on., If I put them wrong It should not light up, doesn´t It?<br />
<br />
The problem comes from the IN pin, I guess...<br />
<br />
Other ideas?]]></description>
            <dc:creator>Amachete</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 08 Mar 2015 11:01:16 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,480956#msg-480956</guid>
            <title>Re: RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,480956#msg-480956</link>
            <description><![CDATA[ On your ali-express link the "wiring diagram" is wrong: it says for VCC "Connect to 5V negative" and for GND "Connect to 5V positive" - it should be the other way around!]]></description>
            <dc:creator>enif</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 08 Mar 2015 10:11:50 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,480820,480820#msg-480820</guid>
            <title>RAMPS Switch ON/OFF PSU with a relay  on PS_ON</title>
            <link>https://reprap.org/forum/read.php?219,480820,480820#msg-480820</link>
            <description><![CDATA[ Hello <br />
<br />
I am new on this forum, and I would appreciate some help with  this mod I would like to put in my Printer.<br />
<br />
I have read everything I have been able to find on internet but I can not get it work.<br />
<br />
My problem is the following:<br />
<br />
I want to use relay to switch on/off my PSU as in this topic explains :<a href="http://reprap.org/wiki/Power_Supply#Controlling_the_PSU" target="_blank"  rel="nofollow">http://reprap.org/wiki/Power_Supply#Controlling_the_PSU</a><br />
<br />
I bought the following relay:<a href="http://es.aliexpress.com/item/C18-Newest-2014-Level-Triger-Optocoupler-Relay-1-Channel-H-LModule-for-Arduino-5V-Free-Shipping/32224788335.html?recommendVersion=1" target="_blank"  rel="nofollow">http://es.aliexpress.com/item/C18-Newest-2014-Level-Triger-Optocoupler-Relay-1-Channel-H-LModule-for-Arduino-5V-Free-Shipping/32224788335.html?recommendVersion=1</a><br />
<br />
My ramps is a 1.4Version.<br />
<br />
I have tested the M80/M81 gcodesand they work, because I can measure with the multimeter, a variation voltage. measuring betweeen VCC and PS_ON on those three pins.<br />
<br />
If M80 I get -5V<br />
If M81 I get 0V<br />
<br />
I do not know what else to check or maybe can someone tell me if this relay is not right one?<br />
<br />
Thank you for your support.]]></description>
            <dc:creator>Amachete</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 08 Mar 2015 05:36:01 -0400</pubDate>
        </item>
    </channel>
</rss>
