check in
Ongoing

Power Supply Management Module for 3D Pinter-POWER_LOSS-HIGH-SMD

STDPower Supply Management Module for 3D Pinter-POWER_LOSS-HIGH-SMD

tag

988
0
0
0
Mode:Full
Creation time:2019-08-29 14:21:13Update time:2022-10-22 15:03:59

Description

Power Supply Monitoring and Management Module that improves usability of 3D Printer.

You may say it's kind a replica of Lerdge Power Monitoring Module (http://got.by/3nmu8k), however, it is different. I am not sure if Lerdge module will work with Marlin, probably, yes, but just for power loss monitoring...

The module consists of two functional parts:

  1. Power Sensing (on the top, refer to schematics). Sure, it is isolated from mains power by optocoupler. It ensures a LOW signal to the microprocessor under normal operation conditions and will immediately switch to HIGH as soon as power is lost. Then Marlin accepts the HIGH signal, switches off heaters and writes a power recovery information to a MicroSD card. The energy stored in Power Supply's capacitors is (usually) enough for microprocessor to perform that operation before power is lost completely. My printer has been running for about 2 seconds after switching off the main power provided all heaters are off. So, you may test yours to see if it would work. If the time is shorter, you may need to mod your power supply upgrading smoothing capacitors at its out.

  2. Power Management (on the bottom). A simple relay based circuit is controlled by Marlin PS_ON_PIN. Relay is connected in parallel to the main Power ON/Off switch and will short it by a LOW control signal.

Logic is the following:
*
you switch on the printer by main power switch.
*
start printing (Marlin will activate relay that shorts the switch as son as you print job is running)
*
if you'd like to activate power management feature, then turn off the main power switch (relay shorts its contacts and printer stays on and continue running)
*
when print job is finished, Marlin monitors the temperature of the nozzle and will deactivate the relay as soon as temperature reaches 50*C and lower (with a small delay of 5 sec in my settings). If the main power switch was off at the previous step, the printer will be switched off autocratically. Temperature and delay are adjustable in Marlin (see settings below).

Connection: The module is connected to Power line (220V-240V) and parallel to the Power ON/Off switch. I guess for 110v all you need to adjust is R11 and R12 that should be 2 times lower, 22k or 27k instead of 56k (refer to the schematic).

Attention: High Voltage! If you are not sure of how to work with high voltage, please, do not do it.

Overall budget: DIY module ~$3
BoM is provided in the comments to a schematic

Marlin settings:
Configuration.h

#define PSU_CONTROL
#define PSU_NAME "Power Supply"
// SKR Pro
#define PS_ON_PIN PC9 // Extension 1 connector
// SKR v1.3
#define PS_ON_PIN P1_24 // Z_MAX_PIN

#if ENABLED(PSU_CONTROL)
#define PSU_ACTIVE_HIGH false // Set 'false' for ATX (1), 'true' for X-Box (2)

#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 5 // default 30
#endif
#endif
**
Configuration_adv.h**
#define POWER_LOSS_RECOVERY

// SKR Pro
#define POWER_LOSS_PIN PF8 // Pin to detect power loss
// SKR v1.3
#define POWER_LOSS_PIN P1_26 // Y_MAX_PIN

#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
#define POWER_LOSS_PURGE_LEN 2 // 20 // (mm) Length of filament to purge on resume

Enjoy!

BoQ:

Design Drawing

schematic diagram
PCB

BOM

IDNameDesignatorFootprintQuantity
110kR1R08051
2100nFC1,C3,C4C08053
34.7kR4,R3R08052
4REDLED3LED 08051
510uF 16-50VC2CAP-D6.3XF2.51

Attachments

OrderFile nameDownload times
No data
Clone
Add to Album
0
0
Share
Report

Project Members

Comment

All Comments(1)
Sort by time|Sort by popularity
Followers0|Likes0
Related projects
Empty

Bottom Navigation