Notifications
Clear all

my simple UPS for Prusa Mini (Build/thougths)  

  RSS
örkelprint
(@orkelprint)
Eminent Member
my simple UPS for Prusa Mini (Build/thougths)

Hi there.

I would like to share with you my simple uniterruptable power supply build. For me, this simple setup is good enough. Maybe I will add some features in the future.

Since I had two 12V Batteries laying around, I decided to give them some purpose in the form of an UPS. The printer runs on 24V which makes it fairly straight forward with 2 car batteries in series.

Basic principle:

batteries and original PSU connect to a circuit board which connects the battery to the output if PSU voltage goes too low (power fail).

How does it work:

Some diodes separate the different power sources and automatically connect the one with higher voltage to the output. Unfortunately, battery voltage is always  above 24 V (if it's healthy). This would connect the battery all the time. To mitigate this problem, a MOSFET switches the battery only if the PSU output is dead. The MOSFET is controlled passively via some carefully chosen resistors.

What are advantages:

  • Car batteries have plenty of power. It can power a 3D Printer easily and for quite some time (depending on the battery of course)
  • It is not "smart" and made by just some basic components
  • really cheap (if you have the batteries..)

What are the drawbacks?:

  • Batteries are not automatically charged. DO NOT ATTEMPT TO CHARGE THEM WHILE CONNECTED. DISCONNECT BEFORE.
    • Since this is only for emergencies, I don't consider charging the batteries every now and then a big deal.
  • It is not "smart". No battery monitoring etc.
  • the circuit introduces some additional losses (diode conduction losses) even when battery is not needed.
    • This is totally negligible with proper diodes
  • Some people turn their printer on with a smart plug at the 230V side. This is not compatible with this UPS because the battery would provide power instead.

Schematic:

Choice of components (example parts later):

  • Batteries: Lead Acid car batteries. The smaller ones used in most consumer UPS would be a good and cheap alternative as well.
  • Diodes: Use Schottky power diodes. This is important to keep losses low. Use a TO220 package (or similiar) for good heat dissipation.
  • MOSFET: has to be a p-channel power MOSFET. It should not be a dedicated logic level FET or it will result in unintended behaviour (such as battery always connected or a toasty MOSFET).
  • Resistors: doesn't matter, just use the correct values.
  • Cables: I used 1,5 mm² which is enough. Wouldn't go lower though. When soldering, do it properly.
  • Connectors: You will need the connectors for the PSU and the mini (part numbers later). For connecting battery cables it's up to you, just make sure it's fine with at least 6 A.
  • Heatsink: Diodes will get warm at full load. MOSFET might get warm too. Get some heatsinks (small ones work), there are many available for TO220 components. Or do it like I did: bolt it to some aluminium.
    • Keep in mind: if you directly connect the diodes to a heatsink, the heatsink will be at 24V, so it should touch nothing else. The diodes can share the same heatsink because their connectors share the same potential anyway. The MOSFET however needs to be on it's own heatsink or mounted isolated (non conductive heat pad and plastic screw).
  • Fuse: I put a fuse in the battery path to be safe (not included in the schematic). I recommend a  6,5 - 10A fuse. It's just in case if for some freak reason the battery shorts. You can directly attach it in the battery cable if you like (automotive inline fuse)

Example parts:

  • MOSFET: IRF4905
  • Schottky Diodes: SBT1030
  • Capacitor: Some Elko rated for 30V or higher, 100uF or more (not that important).
  • Connector for Mini and PSU:
    • KPJX-4S and KPPX-4P
    • or
    • MDP-402-4P and MDJ-401-4P-E
    • tip: search for the kycon assembly video for the plug
  • Resistors: no special resistors needed, use values from schematic
  • LED: optional for indicating when battery is active. Use whatever standard LED you like (I chose red).

Everything assembled:

 

Battery voltages vs Prusa Mini:

Since fully charged batteries will give you more than 24 V, your printer will be connected to more than the originally intended 24 V. I double checked the schematic and datasheets of all the components involved in the printers electronics. There won't be a problem if you stay below 28V. In practice, the batteries will settle around 25-26 V. Since you are not supposed to charge them in circuit anyway, there is no problem to expect.

When to build this and when not:

This build only makes sense with 2 car batteries (or similiar voltage battery setup). If you want to use only one battery and combine it with a DCDC boost converter most of the circuit becomes useless and could be replaced by a single diode. I chose this way because most cheap DCDC modules are not suited for above 3 A and I had the batteries anyway.

Want to include your RaspberryPi?

Connect a DCDC to the 24V output of the UPS. Set DCDC to 5V output. Connect the positive output via a diode (this can be a smaller shottky diode) to the 5V pin with the cathode facing 5V pin of raspberry. You can leave out the diode if you decide to power the raspberry by this supply all the time.

 

Safety:

DO NOT ATTEMPT TO CHARGE BATTERIES WHILE CONNECTED. DISCONNECT BEFORE or you will possibly short a battery and fuck shit up.

In theory this circuit is safe if you do everything correctly and don't interfere with it (like charging, see above). The diodes isolate the power sources so there is no accidental charging or backfeeding or whatever. Car batteries can produce gigantic currents so always be wary when working with them (reminder: never work around big batteries wearing a metal ring). Of course I don't take any responsibility for anything bad that might happen.

 

 

 

--------

Hope someones finds this interesting. If you have questions, don't be shy.

Opublikowany : 16/01/2021 3:02 pm
Jason in Alaska
(@jason-in-alaska)
Active Member
RE: my simple UPS for Prusa Mini (Build/thougths)

Car batteries are not ideal for this sort of situation because they are designed for a lot of voltage (? physics class was too long ago) at once and then getting charged back up. Marine deep cycle would be a better choice for a UPS type solution. If the setup is inside a house, a sealed golf cart battery might be the best choice. Anyway, these are the recommendations made repeatedly on forums for battery backups for personal medical devices being used while camping or during a blackout.

Opublikowany : 25/01/2021 1:25 am
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: my simple UPS for Prusa Mini (Build/thougths)

@jason-in-alaska

Traditional car batteries are designed predominantly for short High current discharges and then float charging whilst the engine is running, they are not good for deep discharge at modest currents, (Ideally these batteries spend most of their lives in a high state of charge.)

another sort of battery can be described as Deep discharge batteries  (Same voltage at car batteries, and maybe same capacity as car batteries, butt different internal construction...  (Sometimes called Leisure Batteries) )these are designed for  Extended periods of discharge between charges... and can stand being discharged to a lower state without damage... 

the following  clip comes from 

https://www.allbatteries.co.uk/battery-technology/lead-acid-battery.html

Lead Acid Battery Applications

Lead acid batteries can be used for a wide range of applications. However, in order to find the most cost effective solution, we recommend choosing a battery designed specifically for your intended application.

Starter Batteries

When it comes to engine-starting applications (cars, motorcycles, boats and other vehicles), opt for a starter battery. Starter batteries are available in AGM (Absorbent Glass Mat). Search for a starter battery using the Brand and Model of your vehicle here.

Standby Batteries

Next, if you require a battery to supply back-up power in the event of a power cut (UPS, Alarm Systems or Emergency Lighting), opt for a Standby battery. Standby batteries, or UPS batteries, are designed to be maintained in float charge (permanent charge) and withstand occasional discharges, notably power cuts.

Cyclic Batteries

Finally, Cyclic or Deep Cycle batteries, unlike Standby batteries, are designed to act as a main power source and be charged and discharged on a regular basis. This type of battery needs to be able to withstand intensive cyclic use, which is the case for AGM and Gel batteries. Battery life or usage time is also an important feature of cyclic batteries as they need to be able to supply power over extended periods of time (mobility scooters, golf carts and other small electric vehicles).

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Opublikowany : 25/01/2021 1:53 am
jsw
 jsw
(@jsw)
Famed Member
RE: my simple UPS for Prusa Mini (Build/thougths)

I don't have the Mini, but I do have UPSs on both of the printers I have, both of them being off-the-shelf commercial units.

I'm a born hardware hacker, and I love doing electronic gadgets, but for the cost of the current UPS units, it's not worth the time and effort to try to construct one.

And yes, I've tested them both in operation (and one was tested involuntarily a while back during a power glitch) and the printers do not miss a beat when 'shore power' goes out.

Opublikowany : 25/01/2021 2:48 am
örkelprint
(@orkelprint)
Eminent Member
Topic starter answered:
RE: my simple UPS for Prusa Mini (Build/thougths)

@jason-in-alaska

Ideal doesn't exist. Car Batteries do just fine for this solution. Especially if you have them anyway 😉

 

@jsw

Of course off-the-shelf units work, that's not the question. This is just about saving money or building stuff yourself. My selfmade UPS is purely made to Power DC appliances, in this case especially 24V for the printer. This fact alone makes it entirely different than most consumer stuff you can buy which would have an integrated inverter and lots of complicated electronics. Because my build doesn't need all of this it is super simple and probably more reliable than the craptastic consumer stuff you can buy (I have one of those. After a year or so it starts beeping continously trying to tell you the battery is crap while in reality the cheap capacitors have gone bad).

Opublikowany : 25/01/2021 10:19 am
cwbullet
(@cwbullet)
Member
RE: my simple UPS for Prusa Mini (Build/thougths)

@jsw

I have to agree, but it is a neat project to follow.  

--------------------
Chuck H
3D Printer Review Blog

Opublikowany : 25/01/2021 2:22 pm
Share: