How to wire your smoothieboard

Introduction

The main goal of this guide is to provide basic electrical knowledge to beginners and to share some useful tips and ideas of how to achieve nice wiring for your machines.

There are thousands of awesome builders around the world with top notch parts and genius concepts but when it come to wiring, a common approch is to hide everything behind some panels and place two zip ties. While it will surely work, spending a few hours organizing and optimizing your wiring is a win-win. Your machine will be safer, cleaner and you won't even need to hide everything anymore ;). It can save you time later debugging problems or upgrading parts without rewiring them all the way.

Electricity 101

This section is a basic summary of electricity. It will teach you how to safely wire your machine.

Notes

Basic electricity is not a really difficult domain. It's dangerous if you don't know what you're doing and what can be dangerous. Remember that common sense is a great asset for not dying in the process.

First thing to mention is the fact that there are different electrical laws in different countries. They can be very (too) strict to irrelevant (dangerous), different units or different colors. This guide tries to be as global as possible but don't take for granted that everything will apply in your country. If you have any doubts, please refer to your local rules.

(summary of wikipedia article)

Mains electricity is the general-purpose alternating-current (AC) electric power supply of your house. The nominal voltage is 110V (Volts) for North America, Japan and a few countries or 230V for most of the rest of the world. Most of our machines runs on single phase power. They should plug into a 3 poles electrical inlet composed of the following:

L is for live, also known as hot or phase. It carries the alternate current to your house. This is the main source of danger ! You should NEVER EVER work on it while plugged. You shouldn't be able to touch exposed parts connected to L while plugged.

N is for neutral. It completes the electrical circuit remaining at a voltage in proximity to 0V. The neutral is connected to the ground (Earth), and therefore has nearly the same electrical potential as the earth. This prevents the power circuits from increasing beyond earth voltage, such as when they are struck by lightning or become otherwise charged.

Earth wire or ground (written GND, P or PE) connects the chassis of equipment to earth ground as a protection against faults (electric shock).

DC power are provided by power supply unit (PSU). Power supplies have input for the mains (L, N and PE) and a few outputs of DC voltage of a fixed value. Our machines usually use 12V or 24V PSU. %V PSU are often found for electronics. Co2 lasers have their own specific power supply.

DC power at these voltages is not dangerous.

You'll start to feel a small bite at 24V. By the way you should always work on your electrical components without power because the tiny circuit running on 3.3V isn't going to like to be touched by mistake by a 24V wire.

As seen earlier, earth is for security. In case of default, by example from an equipment, a wire breaking or a screw coming loose, conductive parts of your machine may end connected to live ! And there's no way to detect it until you (or your kids, or your pets) touch it. As we do not like surprise BBQ, there's a simple way to prevent that : earthing everything. Here's some examples of things to earth:

  • your aluminium extrusion chassis
  • your 230V heated bed support
  • The metalsheet enclosure of your laser

Furthermore earthing those big conductive parts will helps with static electrical discharges and prevent them to damage your brand new smoothieboard !

Your house has protection. They are different accordingly to your local rules. In case of electrical default they may be too slow to react so adding a fuse on the mains of your machine is a good idea. You can buy nice inlets with integrated fuse like this one : inlet_with_fuse.jpg

For bigger power, a circuit breaker is a better option as they are a quicker to react in case of problem (the fuse needs to melt). Even quicker, the RCCB (Residual current circuit breaker) will check the currents leaving to and returning from the load and compare them. If the difference is bigger than a fixed threshold (usually 30mA), it will open.

Need help ;)

How to choose your wires

Let's start our tour in cables jungle. Here's some basic tips about how to choose them. Some simple but nonetheless important notions because cables can overheat and potentially catch fire if they are sized improperly or wear out due to improper strain relief.

Thomas Sandalerer has made a great work resuming this chapter in this video :

Not much choice here, you got to choose between solid-core and stranded wire. Both have their pros/cons:

Solid-core or single-stranded are cheaper to make, stay in shape when bent and can be used in screw terminals without using ferrules. However they will fail quickly if used on moving parts as stretching and compressing cooper too many times will break it.

Stranded wire are a bit more pricey but they are flexible and therefore more suitable for repetitive movements. However, they don't keep their shape as well as solid-core so you'll need a little more cable management to keep everything tidy. It's also a good idea to use ferrules on them when using screw terminals to keep all the tiny wires together. Make sure any wire you choose to use is actually copper, as the cheaper copper-clad-aluminum wires will break way more easily under stress and fail over time in most connectors. Another good alternative is silicone shielded wire, as used in electric RC cars. It's a good bit more expensive but is actually a perfect match for the job.

Shielded cables are surrounded by a metallic mesh providing shielding against electromagnetic interference (EMI). They can prevent a power cable, like one on a VFD (Variable-Frequency Drive), from emitting to much noise that could cause issues to other wires around it. Shielding works best to provide protection against EMI on a lower power data line like a USB or Ethernet cable. In our case, shielded cables are not required unless you are running a VFD controlled spindle CNC or high power laser tubes.

Note

Shield mesh should not be considered or used as a grounding cable. It could work on a low powered DC printer, but if there are any AC mains used in your setup it could potentially cause a deadly failure. Use a spare wire inside the cable, if available and you are using multi-conductor cable, or a run a new/separate one for grounding. The shield itself needs to be connected to ground on the controller side, not on the actuator or captor end, and should not be used as a grounding source for anything that you're connecting the wire to.

Now that you know which type to use, we need to choose a wire size: Wire's size (cross-section) determines how much current you can safely pass through. An under-sized wired will generate heat and insulation can melt leading to short circuit or catch fire. When I doubt, one rule: Bigger is safer !

There is different ways to speak of wire's sizes. The two mains are AWG (for American Wire Gauge) and mm2 (metric system). AWG's notation is followed by a number. Don't get confused, a greater number indicates a smaller wire diameter and and a small number indicates bigger wire. You can find conversion charts between the two units online but what interests us more is how many amps each size can carry:

AWG Maximum amps
24 0.577 A
22 0.92 A
20 1.5 A
18 2.3 A
16 3.7 A
14 5.9 A
12 9.3 A
10 15 A
8 24 A
6 37 A
mm2 Recommended amps Maximum amps
0.2 A A
0.3 A A
0.5 0.5 A 1.5 A
0.75 2.5 A 5.0 A
1.0 3.0 A 10.0 A
1.5 6.0 A 15.0 A
2.5 15 A 25 A
4.0 20 A 40 A
6.0 25 A 60 A
10.0 40 A 100 A

Sources: AWG: http://www.powerstream.com/Wire_Size.htm mm2: https://www.hoelzle.ch/technik/set_kabelquerschnitte_f.php

As a conclusion and using Thomas's video tiers:

Tier 1 - sensors, indicators, thermistors, small stepper (less than 1.5A like NEMA17) endstops, computer fans

can be wired in AWG20 or 0.5mm2

Tier 2 - Hotend Heaters, bigger motor (more than 1.5A like NEMA23), Mains of power supply, 230VAC heat pads

AWG12-18 or 1.5-2.5mm2

Tier 3 - low voltage heat pads (12-24VDC) or any current-hungry (high amperage) element

AWG10 and more or 2.5mm2 and more

color_coding.jpg

Color coding your wire is an easy way to identify them later by just looking at them. Color coding is generally ruled by electrical laws of countries. Here's the most important :

  • Brown, black or grey for Live
  • Light blue or white (US) for Neutral
  • Yellow-green for Earth

While our machines usually run at 12-24VDC, it's a good idea to reserve at least the neutral and earth colors. Use at least a color for + and GND of your DC power.

Example of common colors used in Switzerland :

  • L1 Brown
  • L3 Black
  • L3 Grey
  • N Light Blue
  • PE Yellow/Green
  • Lower AC XV Red/Orange
  • Lower AC 0V White/Green
  • DC+ blue/red
  • DC- white/blue
  • Analog/digital data lines White/purple/blue/red

More informations: http://www.electronicshub.org/electrical-wiring-color-codes/

Wiring supplies

In this chapter you will find useful components used in electrical cabinet to achieve nice and clean machines. The idea is to show you what exists on the market how it's called so you can source it. You will be able to find this items either online on shops like aliexpress, banggood, ebay, etc. or locally from electrician or best cabinets builders (right term?). Again take this as an insight of how we do thing in industrial electrical engineering.

Here's a few things you can use to manage your wires and cables but also pneumatic or water hoses, filament tubes, etc.

Cable trunking

» –> <img src=“/_mediaexternal/https.chibidibidiwah.wdfiles.com.local.files.how.to.wire.wiring.ducts.jpg” class=“pull-right” height=“200”> </html> » –> <img src=“/_mediaexternal/https.chibidibidiwah.wdfiles.com.local.files.how.to.wire.20160402.eustathios.3.jpg” class=“pull-right” height=“200”> </html> Also called cable ways, cable ducts. The slotted ones are very handy, wires can go in or out where you want. If you have a hot spot full of cables, you can cut somes parts to widthen the slot. Just cut to length and screw in place. They exist in many size of width and height, take some time to choose the right one. 20x20mm fits nicely on 2020 aluminium extrusion. Make sure to use if possible flat head screws or at least with no sharp edges who can damage your wires. The main downside is that you sometimes need to sacrifice space to place them, especially inside electrical cabinets or let's say the electronics area of your printer.

Mesh sleeves & Spiral wrap

mesh_sleeve.jpg spiral_wrap.jpg

Useful to link moving parts over short distance like extruder carriages. They are no brain to use but once in place it's not the happiest thing to have to add new wires inside.

Drag chains

cable_chain.jpg

The holy grail for CNC routers but they fit perfectly on smaller 3d printers too. Like wire trunking they're available in many size by meter(s). Don't worry if the length is too long for your need. You can just remove some elements until you get the correct length. You will found two types, one closed, the other can be open all the way (to make you happier when adding new wires).

Terminals

bridge_terminals.jpg

You probably know well terminals as elements on your control board where you connect your wires. I'd like to introduce another type of terminals used in industry to simplify wiring job. They have similar function as screw terminals strips: connect circuits together. Where screw terminals have only 2 connection points these industrial terminals can have up to 4 connections points and can be are multilevel to save space. They exist in different size for different wire size. Standard size is up to 2.5mm2 (awg13) but your can find smaller ones capped for 0.5 or 0.75mm2 (awg18 or 20), again to save space.

Connection points can either be spring clamps or screws. Screw tend to be the “old” way while clamp is easier, faster and less prone to wire break (screw over tightened). Screw connections require crimping ferrules on flex wires.

On the left: 2 level terminal with 3 clamp connection points on each. screw_terminals.jpg bridge_terminals.jpg

Each terminal or terminal's stage can be bridged with its neighbours (in red on the right). Bridges can be purchased at any special length from 2 to 10 or 20. The longer is the better since you can cut them afterward.

For example, make 2 groups of bridged terminals and use each to distribute power supply + and - easily from a single place and spare you the aweful spaghetti-thing going from a component to another to another to … You can do that for every different voltage running on your machine.

Use them as wire interface between the inside and the outside of your control box. Below: internal cabinets wiring come from the bottom cable way, upper cables go to actuators, sensors, etc.

» –> <img src=“/_mediaexternal/https.chibidibidiwah.wdfiles.com.local.files.how.to.wire.example.01” height=“615”> </html>

Crimping Connectors

Crimping connectors are a cheap and easy way to connect our electrical components. They are many types available. The most known are Dupont, Molex or the simple headers as found on arduino, etc.

20161206-smoothie_wiring.jpg

The smoothieboard comes with a complet set of Dupont connectors for the stepper motors, endstops and thermistors. They require some dexterity to crimp and we strongly advise you to buy a cheap crimping tool on one of your favourite asian web store. It will last you a life and save a lot of time (and anger).

How to

The crimping operation is quite straight forward:

  • strip about 2mm of the wire
  • place the pin on the crimping tool, tighten a little
  • place your stripped cable inside the pin, you need to “feel” the correct depth there is two claw on the pin, one who bites the copper, the other the isolation for better protection against traction.
  • When in place finish the crimping tool mouvement.
  • You can adjust the tool to crimp more or less the pin by removing the srew and turning the dial on the side (see picture above).

Ressources :

Aviation type

The so called aviation type connectors are cheap, provide a more solid connection than Crimped connectors showed above. They too are available in many configurations depending of the number of pins and pin size. Pin needs to be soldered, make sure you have a soldering iron .These connectors make great connectors for controller enclosures, see examples at the bottom of this page.

20161206-smoothie_wiring-2.jpg

Tips

  • Remove the really small screw to open the connector and try not to lose it by replacing it on the black part during your work inside
  • pin numbers are written on the inside and the outside of the black part so no front or back view questions.
  • since it mounts from the outside of the enclosure, make sure to pass your wires through the hole before soldering (seems logical but…no, wait and see)

Tools

Basic:

  • Wire stripper
  • Precision cutter plier
  • Cable cutter
  • Ferrules crimper
  • Soldering iron & solder
  • Screwdrivers 1 to 00
  • Multimeter
  • Lighter (poor's heat gun)
  • Zip ties
  • Heat shrinks

Optional:

  • Zip tie gun
  • Heat gun
  • Crimping tools depending connectors used

Soldering

Navigate between steps with side arrows. id=Soldering |interval=60000 |imageMain=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-5.jpg |imageMainCaption= First strip the cable at desired length and twist it. Heat your soldering iron, I mainly use it at about 350°C, clean the tip and apply some solder for better heat transmission to the wire |image01=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-6.jpg |image01Caption= Next apply the tip of the soldering iron behind the wire, near the end, then apply solder from the other side and slide both along the stripped distance. |image02=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-7.jpg |image02Caption= .. and so the solder will follow. Done ! |image03=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-9.jpg |image03Caption= Connector side: apply solder the to tip, heat the pin, and apply solder. |image04=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-10.jpg |image04Caption= Then, with soldering iron in one hand, the wire in the other, heat the pin while applying the wire, both should melt. Remove the iron and the cool. Done again !

Reminders and tips:

  • Be careful with the iron: touching heated parts can seriously burn your hands (or something else, with a bit of talent)
  • Don't forget to unplug the iron when you have completed your job (Very bad room heating…)
  • Use only lead-free solder, your lungs will thank you later. Some use a small fan to vent it away.
  • Clean your solder tip frequently
  • You will quite soon feel the need of a third or fourth arm when soldering; be creative and use clamps, weight, vise, girlfriend, etc. to help you.
  • Really don't forget to unplug the damn thing.

» –> <img src=“/_mediaexternal/https.blog.adafruit.com.wp.content.uploads.2016.12.solder.card.png” style=“width:100%”> </html>

Soldering is hard ...

… until the day you discover the magic of “flux”.

Soldering flux makes everything work much better, and takes soldering from a chore to a pleasure.

If you don't like soldering, it's probably that you just forgot to buy flux.

Simply get a bottle or a pen of flux, apply liberally, then solder as you would normally, and everything will be great.

Zip tie wire routing techniques

Nothing better than example. Here's a quick example of zip tie wiring around a terminal block (who could be your smoothie board, a PSU, stepper driver or whatever) Navigate between steps with side arrows. For comprehension non-cutted zip ties are the last applied. I used medium zip ties for visibility. For a real project adjust the size depending of the amount of wires and their gauge.

id=ZiptieWiring |interval=60000 |imageMain=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-8.jpg |imageMainCaption= Start: A few single and multi-levels terminals |image01=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-13.jpg |image01Caption= Tools used (remove the crimping tool ;)) |image02=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-14.jpg |image02Caption= Step 1: wire a complete side of the element, cut wire long enough to go where they should end by the way you've planned and add extra length |image03=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-15.jpg |image03Caption= For the example I'll just route the wire to the other side of the terminals with a C shape and connect them here |image04=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-16.jpg |image04Caption= Step 2: Let's start by farthest wire by grouping them together. I choose to go by 2 terminals |image05=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-17.jpg |image05Caption= Step 3: Then I make a 90° angle with the first wires, the same with the seconds and zip them together |image06=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-19.jpg |image06Caption= Adding the third |image07=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-21.jpg |image07Caption= And so on ... |image08=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-22.jpg |image08Caption= ... until the end of the side. At this point this "side" is done. |image09=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-24.jpg |image09Caption= Step 4: Prepare the 90° turn. First I double the last zip tie but I don't tighten it fully to be able to move it. |image10=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-27.jpg |image10Caption= Then slide it a few cm further. Because it's barely loose, the wire shouldn't cross themselves. |image11=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-28.jpg |image11Caption= Step 5: Now make the turn at the desired angle and radius. Adjust length between inside and outside cables so everything looks smooth (!) and tighten the zip tie |image12=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-29.jpg |image12Caption= Step 6: Again to keep wires straight, double the last zip tie ... |image13=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-30.jpg |image13Caption= ... and slide it. Tighten it. |image14=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-31.jpg |image14Caption= and so on... At this point you may have wires leaving or entering the "pack", proceed as step 3 |image15=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-33.jpg |image15Caption= In my case I made a second 90° angle |image16=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-34.jpg |image16Caption= Step 7: Add a zip tie before the first leaving wire(s), connect it/them and re add a zip tie after. Repeat until the end... |image17=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-39.jpg |image17Caption= Everything is connected, almost no crossing (you'll have some at some point with more complexe wiring) |image18=http://chibidibidiwah.wdfiles.com/local--files/how-to-wire/20161206-smoothie_wiring-41.jpg |image18Caption= Underside view

Reminders and tips:

  • Always connect one side, route the wire to the other(s) end(s) nicely, then cut and connect.
  • Always add extra length of wire. It costs not so much and will save you time replacing the too short ones.
  • Don't be shy on zip ties.
  • You'll get better looking cabinets if you place all the zip ties facing the same way
  • This is an example, don't hesitate to combine zip ties with cable ways or sleeves depending yours needs.

Examples

http.chibidibidiwah.wdfiles.com.local.files.how.to.wire.dscf1945.jpg http.chibidibidiwah.wdfiles.com.local.files.how.to.wire.dscf1946.jpg http.chibidibidiwah.wdfiles.com.local.files.how.to.wire.dscf1948.jpg http.chibidibidiwah.wdfiles.com.local.files.how.to.wire.dscf1952.jpg http.chibidibidiwah.wdfiles.com.local.files.how.to.wire.dscf1953.jpg

To do:

green connectors (phoenix) examples (ask to googleplus community pictures and pick the best) cable ways how-to (next one I'll make) How to connect earth, locking washer Tools pictures