I propose this self-extinguishing printer module universal.
It can be installed on any printer, provided you have a command output declared in the firmware (PS_ON)
A printer that remains in standby consume about 30w, install an auto_off can prove advantageous
I give the procedure for RAISE3D 3D printers
By default on Raise3D motherboards the output control (PS_ON) is declared on the pin 45
By default the commands are:
M80 - Power on: pin 45: 0
M81 - Power off: pin 45: 1
This order order did not allow me to make a functional module
I reversed the levels according to the commands.
It is not possible to invert the Gcode commands, M81 does much more than pass the pin 45 to 1
(the M81 control cuts all heating up)
In this way, it is not possible to operate the stop (PS_ON), when the stop occurs the pin 45 returns to 0, the machine restarts.
So to solve this problem it is necessary to invert the levels of the gcode commands
Like this :
M80 - Power on: pin 45: 1
M81 - Turning off: pin 45: 0
For this you have to go to the source code (MARLIN):
MARLIN is the name of the firmware of many 3D printer including RAISE3D
Raise3D provides the source code MARLIN Adapted for Raise N1 N2, N2 +
In the configuration.h tab visible here
We must replace the line:
define POWER_SUPPLY 1
define POWER_SUPPLY 2
It is important to take the U8glib library which is with the source code provided by RAISE3D
I advise you to take the version of arduino 1.0.5 r2 to compile Marlin
It is not necessary to connect to the motherboard to inject the firmware.
On arduino used the button "check" to compile, if the compilation ends without error, it is possible to find the file in .hex. How to do it here youtube.com/watch?v=PEhqzvO3egk"
It will be necessary to rename the .hex in .firm To deposit the file on the USB key or SD card. On your Raise Select the firmware file edit and press "OK" to update.
Another solution: We can manufacture a signal inverter
The plan here
Then it will be necessary to add in your slicer
M109 R50 T0; wait until extruder 0 is at 50 ° C to go to the next line
M81; power off pin to 0
I used some recovery component, like the USB connector and LEDs that are easily found, I recycled the IEC 320 connectors recovered on old ATX power supply
Switch : https://www.ebay.fr/itm/10pcs-AC-6A-250V-10A-125V-6-Pin-DPDT-ON-ON-2-Position-Snap-in-Boat-Rocker-Switch/272819638847?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649
Socket-Connectors : https://www.ebay.fr/itm/10Pcs-3-Terminals-IEC-320-C13-Female-Plug-Power-Inlet-Socket-Connectors-250V-10A/281773177164?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649
Module-relay-1-channel-with-Optocoupler : http://www.ebay.fr/itm/5V-Module-relais-1-canal-avec-Optocoupleur-H-L-Niveau-Triger-pour-Arduino-GF/292394725182?hash=item4414156f3e:g:GXYAAOSw9KhaTY~b
COUNTERSUNK-FLAT-HEAD : https://www.ebay.fr/itm/SULEVE-M3ASH5-10PCS-M3-HEX-COUNTERSUNK-FLAT-HEAD-SCREWS-ALLOY-STEEL-TITANIUM/182962068887?hash=item2a99639d97:m:mrP7R9UFRyWHSjsuRxxLvFQ
Neon lapms : https://www.ebay.co.uk/itm/Qty5-INS-3-Square-Dot-Miniature-Neon-Bulb-5-pcs-Glow-Lamp-Indicator-/120842256984