Turn off printer power using end script
thingiverse
This project will enable you to use an entry in the end script to remove mains power from the printer when the print is completed. I created this for my Geeetech A10 using a GT2560_v3 board running marlin 2.0 Bug_Fix but should work with many other printers that run marlin and have a free ADC output pin that you can use. The hardware I used is a BIGTREETECH Relay V1.2 Module Power Monitoring Module For SKR V1.4 PRO E3 current cost £10 on ebay in June 2020. A single push to make switch to act as the reset button, I printed a housing for it and will include the stls but its part of the fun to design your own . Two Marlin files require editing, as I said this was done on a GT2560_v3 board, you will have to locate another pin if using a different board, but here are my changes. In the pins_GT2560_V3.h file you have to Rem the command that previously used the pin. Edit the following lines to disable runout sensor 2 by adding // //#ifndef FIL_RUNOUT2_PIN //#define FIL_RUNOUT2_PIN 67 //#endif Then PS_ON pin number should be edited to pin 67 as below. It was originally pin 12. '#define PS_ON_PIN 67 Save the changes That's it for the pins file now edit Configuration.h Edit this section to the same as this to enable the PS_on functionality, ignore ' symbol I had to add those for the text to format properly, they are not used in the actual configuration.h file. '#define PSU_CONTROL //rks '#define PSU_NAME "Power Supply" //rks '#if ENABLED(PSU_CONTROL) ' #define PSU_ACTIVE_HIGH true // Set 'false' for ATX, 'true' for X-Box //#define PSU_DEFAULT_OFF // Keep power off until enabled directly with M80 //#define PSU_POWERUP_DELAY 100 // (ms) Delay for the PSU to warm up to full power '#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin ' #if ENABLED(AUTO_POWER_CONTROL) ' #define AUTO_POWER_FANS // Turn on PSU if fans need power ' #define AUTO_POWER_E_FANS ' #define AUTO_POWER_CONTROLLERFAN ' #define AUTO_POWER_CHAMBER_FAN //#define AUTO_POWER_E_TEMP 50 // (°C) Turn on PSU over this temperature //#define AUTO_POWER_CHAMBER_TEMP 30 // (°C) Turn on PSU over this temperature ' #define POWER_TIMEOUT 15 //rks from 30 to 15 '#endif '#endif The wiring is fairly easy but must be done carefully. The 5 volt supply for the board was hardest to get, but there is a row of empty holes on the board marked NT, 5v,Gnd, Txd,Rxd. you can solder two pins in the 5v and Gnd to get the 5v from there. The signal to switch the relay off is in my case ACD13 I made a lead to plug in there and extend the connection to the board. When plugged in the reset button is operated to close the relay, it will be held on until the M80 command in the end script is sent, there is a delay to allow things to settle before power is removed . I have included the box and lid, the lid is just designed to be held by tape because its a tight fit in the box.
With this file you will be able to print Turn off printer power using end script with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Turn off printer power using end script.