Git Product home page Git Product logo

how-to-wire-mains-power-for-the-3d-printer's Introduction

  • Do you want your printer to be unreliable because the fuse blows every now and then?
  • Do you want to electrify yourself on your printer?
  • Do you want to melt down some cables and/or connectors mid printing?
  • Or do you even want to burn down your house with your printer?

If your answer is no, then you might find my guide helpful.
I'm an electrical engineer working in industrial areas for decades now, so I will show you a safe way how to wire mains voltage to your printer in a way that you don't risk hurting someone or even start a fire.

I know this isn't a short description, but this is a very serious topic and to be honest almost all of you wouldn't be legally allowed to wire this up. So if something bad happens, you could be in legal trouble. If you follow my guide, you should at least have the proper items that nothing goes up in smoke or hurts someone. (Tho you could still mess things up, so I'm not responsible for any of your actions)

!! Working with mains voltage is a job for professionals because your life depends on it !!
If you completely don't know what you are doing, I strongly advice you to consult professional help. Mains voltage is not a joke!

I simplyfied some formulas to make it not too confusing, so please don't come to me "ohh, you forgot the power-factor" or something like that.

SAFETY FIRST!

First of all, there are the 5 golden rules for electrical safety you should obey when working with mains voltage.

  1. ALWAYS unplug your device before working on any mains voltage related part!
  2. Ensure no one can replug it or turn the voltage back on.
  3. Check if voltage is really off.
  4. Ground the installation ... not applicable in our case
  5. Confine the working area ... not applicable in our case

I'll add another rule:

  1. If you can't do it safe, don't do it at all!

Getting electrified is a serious thread, and even if it "bites" you and you feel fine right after, a cardiac arrhythmia can show up to 24h later! So there is a chance you go to sleep, get an cardiac arrest and never wake up again. Go and see a doctor!

Enough talk

enough-talk

Lets crunch some numbers

There are some key numbers for the project we need to clarify first.

Voltage
If you live in Europe you will certainly have 230V as a mains voltage. Other countries may have 120V or in some special cases in the USA even 240V. I assume you set the general voltage on the PSU accordingly to 120 or 230V and check that all other components are fitting as well (like the heatbed).

Power
Determinining the power consumption isn't that easy, because we have to do some math now.
There are 2 different type of loads here. Every PSU has electronics inside that will adapt to certain voltage levels and the rated power stays the same. So a 250W PSU will have 250W no matter if it is connected to 110V or 120V (respectively 230V or 240V).
The other type of loads are the heaters (heatbed and chamber heater if you fancy an enclosure). Those behave differently if they are connected to a higher voltage than they are rated. Basically, you can't connect a 120V heater to 230V or it will just burn off immediately.
Take a look at the following table to get to correct power draw:

PowerTable

To calculate the power of a heater if you have other mains voltage, the formula is:
Power = RatedPower * (YourVoltage)² / (RatedVoltage)²

Current
Having the power consumption of the printer, we now need to calculate the current with the following formula:
Current = TotalPower / MainsVoltage
As for example 1: 1370W/230V = 5.95A
As for example 2: 2040W/120V = 17.0A

Now that you know the current you need to check the fusebox of your apartement/house and validate that your power outlet even supports that much. (Remember that there might be other devices also be connected to the same fuse!)
Those with 120V mains voltage might already spot the problem, that the circuit-breaker only delivers a maximum of 15A in most cases as well as the power outlet is only rated to 15A max.
Hopefully you haven't already ordered the printer, because you should check if you have the possibility for 240V. The higher the current the more difficult it gets with wiring!

The last possibility if you simply have no other choice is to limit the heater power by software. Klipper and RRF offer the possibility to max-limit the heater to a certain percentage (like 75%). Just check the documentation on how this is done. It would be good if you leave about 10 to 15% margin to the trip value of the fuse.

Get the power to the printer

First of all an Advice: Don't cheap out on the mains voltage parts, they can make the difference between an lethal or non-lethal accident. Buy from local/trusted shops, dont trust Aliexpress or some marketplace dealers on Amazon components to actually have the diameter, rating, safety feature and so on they discribe.
There is absolutly no sense in saving 20-50 USD/EUR on a >1000 USD/EUR printer and risking your life due to bad parts.

The cable

If the maximum current your printer needs is below 10A you can use a C13 cable. (like for a normal PC, but check the rating and strand diameter, some come with 3,5 or 7A rating and 0.5mm²/AWG21 or 0.75mm²/AWG20, but you should go for 1.5mm²/AWG16)
If your maximum current is between 10A and 16A you have to go for a C19 cable with 1.5mm² to 2.5mm² or AWG16 to AWG14.
Warning: Don't overrun the cable/connector or otherwise you risk a burning cable/connector!
If you need more than 16A you either need to split the load or consult a professional to help you out.

Get two or three of those cables, because we are gonna cut and strip them for the wiring on the printer.
You should NOT use cables like ones for speakers that you might have used for your 24V wiring, because the isolation is not rated for higher voltages!

Here you can see the difference between the connectors.
C13-C19

The connector

Accordingly to your cable, you need a C14 or C20 connector.
There are many all-in-one solutions on the market, especially cheap ones.
I do absolutely NOT recommend buying one of these for the following reasons:
First: Most, if not all, of these cheap devices have exposed bare unisolated metal on the backside where you could touch mains voltage!
Second: Often the connector is rated correctly at 10A, but the switch can only manage 5 to 6A.
This is the most common mistake. Overrunning the current will cause a burned down switch causing a fire hazard!
Third: In 99% of the cases, the switch is only a 1pole switch and we don't want this one on an open device like our printer!
This is a more hidden flaw often overseen. The problem is the following: In many countries, there are no regulation on wether the phase is on the left or on the right side of the power outlet, as well as you have no fixed orientation for the power plug. So you never know, if your 1pole switch is really cutting the phase and not the neutral wire. This means you think you turned off you printer so can mess around with the wiring, but there could still be mains voltage on it! This brings me back to my first rule: Always unplug the printer before working on the wiring!
It is always adviceable to have a 2pole switch (DPST) to cut phase and neutral (or both phases if you have 240V).
Forth: Is not that much of a problem, but normally there is only 1 fuse inside. You can go for a single fuse, but if you can get your hands on one with 2 fuses for almost the same price, than go for it.

Those cheap all-in-one devices should only be used, if ALL mains voltage parts are consealed within an isolating casing and you have a low voltage heatbead (like an Ender)! Since our printers have an open mains powered heatbed, this is anything but a good idea!
However, there are a few high priced options which combine all needed features and even add a filter. As mentioned, don't buy cheap!

connectors-switch

Make sure the connector, the switch and if you fancy the filter (recommended) are rated for your maximum current. Some filters are only rated for 4A or even less.

The fuse

The example printer from above has a maximum current of nearly 6A.
Next fuse size would be 6.3A which might be a bit too close, so maybe take the next one higher up with 8A.
Warning: The fuse has to be always the weakest component in your printer, do not install a 8A fuse when the switch is rated for 5A.
For anything more than 10A you might consider using a 13A breaker instead (characteristic B13 if you live in Europe).
Keep in mind, that if the breaker in your fuse box doesn't have a 1.6 times higher tripping current than the fuse on your printer, there is a high chance that the breaker in the fuse box will pop first, because of missing selectivity.
Having a fuse directly on the printer is helpful (more for smaller printers), but it is not super mandatory. At a certain level it doesn't make sense and you just use the breaker in the fuse box.

Terminals of the items above

Make sure your items all have the same terminal connector, so you only have to buy a single set of cable shoes.
Best way are the 6.3mm flat connectors.
Flachstecker

Buy some isolated crimp connectors and the fitting tool. You probably already know those from your local hardware store.
Flachsteckerhülsen

Lets start the wiring

Before even placing the components, make sure you keep the mains wiring and low voltage wiring as seperated as possible. Don't run them alongside. Even try to not cross them at all!

Take a spare cable cut off the connectors and strip the mantle of it.
You should then have 3 isolated wires with different colors. Brown (phase), blue (neutral) and yellow-green (earthing). The colors may vary depending on where you live. Just search for the color code mains wiring for your country.
Please, please, PLEASE.... I can't stress this enough! Stick to the correct color code, especially for grounding!
One should always be able to identify what is protective earth, what is a life wire and what is low voltage at a short look on the wiring.

I'm not going to describe how to crimp different wires/connectors, because there are already tons of videos out there.
Please keep an eye where I put which crimp-connector on. If you don't see one (orange blocks in the middle = WAGO 221), then just strip the insulation.
Be aware that you are only allowed to put in blank wires there with no ferrules on it, otherwise they have bad contact resulting in overheating and possible fire.

This is one possible wiring diagramm with very common parts, not THE ONLY one.

wiring01

Consider also connecting the frame to earth, as well as DIN-rails, your metal back-plate, or your chamber heater.

Prestartup checklist

still with UNPLUGGED printer!

  • use a multimeter and check continuity of all connections, and that you have none like from phase to the frame from the power socket to every connection point.
  • Are all covers of connectors closed? (PSU, SSR,...)
  • Are all mains voltage connections points isolated so you can't touch them? Otherwise you need to isolate them so you can't touch them by accident!
  • Are the voltages of the PSUs set correctly to your voltage level?
  • Did you put in the correct fuses?
  • Is the power switch still off?

Power up

If you completed the checklist, connect the power cord to the printer, keep your hands off the printer and plug it in your power outlet.
Now try to keep as far away as possible, keep your eyes on the electronics and switch on the printer. Keep your finger on the switch so you can immediately switch it off again if you can see magic smoke (black, gray or white) appear.
Best case and if you did everything correct: the LED of the PSU lights up and stays lit.

Congrats! you are now clear to start with your printer setup.

Last word: ALWAYS switch off the printer and pull the plug if working on the wiring!

HAPPY AND SAFE PRINTING!

how-to-wire-mains-power-for-the-3d-printer's People

Contributors

spedi-99 avatar heisenberg19x avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.