Loading

Control your 12v/24v power supply with G-Code!

by MindRealm, published

Control your 12v/24v power supply with G-Code! by MindRealm Jan 3, 2015

Contents

A part of these Groups

View All

Use This Project

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Makes

Thing Statistics

8259Views 349Downloads Found in 3D Printers

Summary

How about a quick-ish and cheap way to switch your RepRap power supply using G-Code instead of a manual switch (or needing to unplug it)??

Done. I have created an Instructable for you!

http://www.instructables.com/id/Converting-12v24v-power-supply-to-remote-G-code-sw/

Instructions

Add a relay module to your power supply and switch it with G-Code!

http://www.instructables.com/id/Converting-12v24v-power-supply-to-remote-G-code-sw/

More from 3D Printers

view more

All Apps

Upgrade this Thing with Thingiverse Apps


No results.

Can you explain if and how this setup can work on a GT2560 board?

Not specifically. But - you can use any addressable "pin" and assign it the same function. If you can set it high or low in the firmware, then you should be able to use it instead of the 'PS-ON' pin. The Adruino 2560 uses pin D12 for the RAMPS 1.4 PS-ON pin, which is set in Marlin.

Hope this helps -David

DISCLAIMER>> I am NOT instructing you to connect to or probe any pins, connections or solder joints on your board - do so AT YOUR OWN RISK... :)

Hi, and thanks for this awesome project! I plan on implementing it to my PSU soon, and look on eBay for the relay. I see some of them are "High level trigger", and some of them are "High/Low level trigger". Which type is correct for this project, or does it not matter? Thanks!

It doesn't matter. The 'high-level' trigger means that the module needs +voltage to activate and 'low-level' trigger means that the module needs a ground signal to activate. You can send either by configuring the pin high or low in your software. :)

Thanks for the clarification. :)

I've been contributing to Marlin a lot lately, and while it does have M80 and M81 to control external power, it doesn't have support for a software power switch that you could trigger with (for example) one of the unused endstop connectors. I think I may have to add that in. Thanks to you (and @bezanis) for the inspiration!

Thanks, now I don't need to unplug my power supply every time it isn't in use. Works with the power button in repetier-host too.

I really like this idea of using the G-Code to turn the machine on and off. It makes perfect sense and I haven't heard anyone doing it like this before. Well done. For people who are afraid of splicing into power even before going inside check out the powerswitch. You can just put it inline with the plug for your printer if you want to be lazy or don't want to open the power supply. http://www.adafruit.com/products/268

The Adafruit part is neat and has many more applications than just switching a power supply. Thanks for the link!

Nice hack.. If I can point out the obvious to anyone thinking about trying this. The instructions leave you with a very neat solution, but you can use the relay module before the power supply with no modification. Obviously you would need to safely enclose the relay module.

My purpose in putting inside the chassis is that it retains the fuse protection and encloses the relay in case things go south. Thanks for the comment and the suggestion!

Yes it is really neat.

Top