RepRapPro Tricolour wiring

From RepRap
Jump to: navigation, search

Introduction | Frame assembly | Y axis assembly | X axis assembly | Z axis assembly | Heated bed assembly | Extruder drive assembly | Hot end assembly | Wiring | Power supply | Commissioning | Printing | Multi‑colour/multi‑materials | Colour Printing - Slic3r | Colour Printing - RepRapPro Slicer | Maintenance | Troubleshooting | Improvements

A notice about these instructions!

These instructions are open to editing by everyone and anyone.
For the official, and most up to date, instructions, see the RepRapPro wiki here


Goal

By the end of this stage your machine will be ready to commission.

All the wires from electric components in the machine run to the controller electronics.

What you are going to do is to route those wires round the frame from each component to the controller, leaving a generous extra length when the controller is reached and not at that time connecting the wire to the controller.

Then, when all the wires have been attached to the frame with cable ties, you will trim them and make the final connections to the controller.

You can route wires and attach them with cable ties as you go. You will then have to clip off those cable ties when a new wire runs on the same route and add a new one holding both wires. This is slightly wasteful, but easy.

If you click on the pictures below, you will be taken to a high-resolution version. This will help to make details clear.

If you need to identify wires (there are quite a few) then you can use the type of sticky tape called "invisible" tape. This has a surface that you can write on with a felt-tipped pen. Just put a loop of tape round the end of a wire and write "X-endstop" (or whatever) on the tape. You can either remove your labels when everything is connected and tested (neat) or leave them on (convenient if you dismantle the machine later).

Particularly useful is to tape together and label the five sets of four motor wires at their ends furthest from their motors. This helps prevent tangles when you are threading the wires, and you can easily identify them when you come to wire up the controller.

Important: general rules for wiring up

You will do serious damage to your RepRap electronics if the power is connected backwards. Other damaging mistakes are to short out high-current devices like motors and heaters, and to connect high-voltage devices like stepper drivers to signal inputs like temperature sensors.

So - in the sections below where it tells you to check things - please check them thoroughly. It is worth taking the time...

Also important for the steps below: when attaching wires to screw connectors, strip about 5mm of insulation off them, twist them between your fingers, and tin them with solder. The tinning is needed for good contact, and to ensure that fraying does not cause shorts.

When wires leave a device (like a motor) or arrive at a connection (like the screw connectors on the controller) leave a small slack length (about 20mm long) for strain relief - don't have the wires taut.

Finally, when making any changes to the wiring or any other electrical aspect of the machine, first disconnect both the power and the USB. Failing to do so could damage your electronics.

Tools

  • Wire strippers
  • Multimeter
  • Soldering iron
  • Small screwdriver
  • Vice

You may also need a reel of "invisible" tape.

Parts

Reprappro-mendel-wiring-parts.jpg
Item Quantity
Controller board 1
20A high-current wire 0.6m
10A high-current wire 0.4m (Tricolour Mendel only)
Printed U clips 3
M3 x 25mm screws 3
M3 nuts 3
M3 washers 3
cable ties about 60

Please note, two types of high current wire come with the RepRapPro Kit, 20A and 10A. The 20A wire is thicker, you have a longer length and comes with the main wiring. This should be used for wiring both the heated bed, the power supply and the main Melzi controller board. The thinner 10A wire is for the slave

Setting the Motor Currents

If you have purchased a machine from RepRapPro, this is already been done for you. If not, or if they need adjusting for any reason, this process is described here

Wire routes

RRPTricolourwiringblank.JPG

In what follows you will find the routes of the individual connections superimposed on this picture. It is taken from the back of the machine, and the side of the machine on the picture's right is therefore the left side of the machine when it is viewed from the front in its normal working position.

Almost all the wiring runs down the triangle threaded rod to the fore of the picture, and then along the triangle threaded rod at the bottom.

Attaching the control electronics

RepRapTricolourMelziFitting.JPG

Attach the three U clips to the frame as shown. The controller board goes on the left hand side of the machine at the front (that is, the side of the frame that is on the same side as the X motor, on the side opposite the Y motor).

Adjust the positions of the U clips so that they line up with the holes in the PCB and the PCB is vertical.

Attach the board to the clips with the screws, washers and nuts. The order goes:

  1. screw head
  2. washer
  3. PCB
  4. U clip
  5. nut

Facing the machine from the front, the components on the PCB should be away from the triangle frame and the USB connector and SD card holder should be at the top of the PCB pointing to the front.

The power supply wire

Read through all of this section before starting work on it.

If you are building the Mono Mendel, do this:

In what follows take great care that there are NO filaments of wire that are sticking out from twisted bundles. These can cause shorts.

Detach the XLR plug from the frame vertex at the back.

Bare the high-current wire ends, and split each end in two equal halves. Twist those halves separately.

Solder the two from the wire with the black stripe (the Ground - GND wire) to Pin 1 and the plug shell tab.

Reprappro-mendel-xlr-soldering.jpg

Solder the two from the plain wire (the +12 volt wire) to Pins 2 and 3.

The pin numbers are embossed on the plug. The picture shows the GND connections made, and the +12 volt connections about to be made. The unsoldered fork in the picture going to Pins 2 and 3 is shown a little long; the bared wires need to be about 2/3 the length shown.

Trim the excess wire from the tab with side cutters.

If you are building the Tricolour Mendel, do this:

In what follows take great care that there are NO filaments of wire that are sticking out from twisted bundles. These can cause shorts.

Detach the XLR plug from the frame vertex at the back.

Reprappro-multi-materials-two-power-wires.jpg

The 20A wire going to the master controller board is 600mm long, and you will also need the 10A wire for the slave controller that is 400mm long. Solder one pair into the tab (black stripe) and Pin 2, and the other pair to Pin 1 (black stripe) and Pin 3. You may need to remove a few strands from the wires to reduce their diameter so they fit in the holes in the plug. Then short Pin 1 and the tab with a small piece of thick wire. Do the same with Pins 2 and 3.

Trim the excess wire from the tab with side cutters.

Fit the XLR plug back in the machine and run the short wire along the bottom threaded rod toward the front right where the slave controller will be installed. We will be testing the power before these wires are finished so make sure the free ends are separated and wrap a little tape round the ends to insulate them temporarily.

Both models do this:

RRPTricolourwiringpower.jpg

Fit the XLR plug back in the machine. The picture above shows the route of the power wire coloured pink. Leave a small loop at the XLR plug free for strain relief. Attach it with tape or cable clips to the bottom rung of the triangle, but leave the controller board end free for the moment.

The heated bed wires

RRPTricolourbedwiring.JPG

Bare the ends of the two thin wires from the bed (the thermistor wires) and use your meter to check the resistance between them. It should be about 10K ohms (though this will depend on room temperature).

Push the meter probes in the ends of the thick wires (the bed heater PCB). The resistance should be about 1.5 ohms.

Run the power wire and the thermistor signal wire from the heated bed along the route shown.

Check that the bed of the machine can run freely from one Y extreme to the other without the wires pulling taught and without their catching on anything (particularly the M5 screw that drives the Z axis and the endstop).

Again, don't attach the wires to the controller for the moment.

The X motor wires

RRPTricolourXmotorwires.JPG

Run the X motor wires along the route shown.

Leave a generous loop in free air. Remember that the Z axis has to be able to move up and down its full length. It's helpful to move the Z axis to the very top of the frame to ensure you have enough wire.

Don't attach the wires to the controller.

The Y motor wires

RRPTricolourYmotorwires.JPG

Run the Y motor wires along the route shown. They attach to the bottom threaded rod of the frame at the back. (The little bit of cerise by the Y endstop switch is the wire for that. That will be done in a minute.)

Again, don't attach the wires to the controller.

The Z motor wires

Reprappro-huxley-z-motor-wiring.png

The two Z motors are wired in series as shown in the diagram above. It doesn't matter which motor in the diagram is the left one and which the right - the result will be the same.

RRPTricolourZmotorwires.JPG

Run the Z motor wires along the routes shown. Make the joins where indicated.

Reprappro-mendel-wire-join.jpg

To make the join bare about 10mm of each wire. Put a short length of heatshrink on one. Form each end into a V (blue wire), hook them together, and then close the Vs (red wire). Solder the join (with the heatshrink further away than shown - you don't want to shrink it prematurely).

Move the heatshrink over the join and shrink it with the hot barrel of the soldering iron (don't use the tip - that will make a mess of solder on the outside of the heatshrink.)

Don't attach the wires to the controller.

The endstop wires

Cut the ends off the motor wires at the controller board end. Make sure you leave a generous length on each to connect to the controller. If you taped and labelled you motor wires, put new labels just on the motor sides of the cuts before you make them.

Connect your endstops using two wires each. It is a good idea to use a different colour for each axis as this will make it easier to get the endstops connected to the correct input. You should now have plenty of multi-colour wires trimmed from the stepper motors.

Reprappro-huxley-switch-wires.jpg

The diagram shows a switch with a lever. RepRapPro Mendel works equally well with levered and un-levered microswitches.

You will probably find it easiest to connect the wires to the endstops with them removed from the machine. Unscrew the three h-shaped clips.

For each endstop switch, crimp or solder a terminal onto the end of the wires, then cover with some heatshrink to insulate the terminal. Connect to the outer pins of the limit switches (the NC = Normally Closed connections; RepRap expects the switch to open when the endstop is hit.)

Put the endstops and their h clips back on the machine.

The X endstop wires

RRPTricolourXmotorwires.JPG

The X endstop wires run along the same path as the X motor wires.

Cable clip all the wires together where they loop free in the air. Get all wires in the loop the same length for neatness (Hint: don't pull the cable ties fully tight. Then you can slide the wires through them to get everything neat before tightening.)

Don't attach the wires to the controller.

The Y endstop wires

RRPTricolourYEndstop.JPG

The Y endstop wires run along part of the route of the Y motor wires.

Don't attach the wires to the controller.

The Z endstop wires

RRPTricolourZendstop.JPG

The Z endstop wires run along the route shown. Leave a good loop from the switch to the point where it first connects with the frame. You will need to adjust the height of the switch.

Don't attach the wires to the controller.

The extruder motor wires

RRPTricolourwiringextrudermotor.JPG

Run the extruder motor wires along the route shown.

Don't attach the wires to the controller.

The hot-end ribbon cable

RRPTricolourwiringhotend.JPG

The hot-end ribbon cable should already be loosely wound round the PTFE filament feed tube.

Attach it to the frame along the route shown.

Don't attach the wires to the controller.

Connections to the controller board

First make sure that all the moving parts of the machine can move freely for their full travel without fouling or snagging any of the wiring. Remember that the entire X axis has to be free to move vertically.

If you have attached all the wires with tape, now is the time to go round the machine cutting off the tape (don't cut the wires...) and attaching the wires permanently with cable ties.

RRPTriMelziWires.JPG

What you are going to do is to trim the wires to length, twist them, tin them, and attach them to the appropriate screw connector. When a wire is in its connector the insulation should abut (but not enter) the metal part of the connector. There should be no bare wire visible.

When you twist and tin the ends of the wires, put them in their connector to check the length. If any are a little long, trim them with side cutters.

When you tighten the screws in the controller board's connectors take care that

  1. Your screwdriver doesn't slip and damage the board,
  2. You don't put excessive twist stress on the board or push against it too hard - support it with your free hand.

The port marked fan is not for the extruder fan. This port is for an optional cooling fan that points directly at the print. This is useful for printing small parts and helps with detailed features when printing with PLA.

The power wires

Before you connect these, check the wires' polarity. Separate about 30mm of the end of the two power wires (don't get the bed wires by mistake).

Set your meter to read voltage. Connect the power supply into the XLR plug on the frame and plug in the mains cable, but don't turn it on.

Put the COM or Ground probe of your meter on the copper at the end of the wire with the black stripe. Put the Volts-Amps-Ohms probe on the copper in the plain wire.

Turn on the mains. Your meter should read about +12 volts. If it reads 0 or -12 volts, you have made a mistake - find it and fix it.

Turn off and disconnect the power supply.

Cut the wires to length so that they will reach the power connector on the board. The GND (black stripe) wire goes to the top of the connector and will have to be a little longer.

Bare then ends of the wires and twist them tight. Tin them. Don't use too much solder, or the result will be too fat to fit in the connector.

Screw the wires into the power connector. As mentioned the GND wire with the black stripe goes to the top, the plain wire to the bottom.

Don't do the power connector up tight - you are going to have to connect something else to the same connector in a minute.

This is the single most important electrical connection in the machine. If you get it wrong expensive bad things will happen. Take a moment to double check it.

The bed power wires

These go to the connector just above the power input connector. Again the black stripe is the low voltage one and goes to the top. The plain wire is the +12 volts wire and goes to the bottom.

Connect the wires in exactly the same way as the power wires, but do these ones up tight. Use a finger to support the back of the Melzi PCB when you are tightening screws - don't let it bend.

The X motor wires

These go to the bottom connector. From the bottom upwards the sequence is Black, Green, Blue, Red.

The Y motor wires

These go to the connector above the X motor connector. From the bottom upwards the sequence is Black, Green, Blue, Red (that is, the same as X).

The Z motor wires

These go to the connector above the Y motor connector. From the bottom upwards the sequence is Black, Green, Blue, Red (that is, the same as X).

The extruder motor wires

These go to the connector above the Z motor connector. From the bottom upwards the sequence is Black, Green, Blue, Red (that is, the same as X).

The hot-end heater resistor wires in the hot-end ribbon cable

A reminder from when you wired the hot end: the wires across the ribbon cable in order go like this:

  1. Heater cartridge Wire 1
  2. Heater cartridge Wire 1
  3. Thermistor
  4. Fan + volts
  5. Fan Ground
  6. Thermistor
  7. Heater cartridge Wire 2
  8. Heater cartridge Wire 2

The hot-end heater cartridge wires come in pairs - you will remember that you connected two to each end of the resistor to get a good current carrying capacity.

The hot-end heater cartridge wires go to the connector above the bed power wires.

Split them off from the hot-end ribbon cable, bare the ends, twist the pairs together, tin them, and fit them in the connector. The polarity doesn't matter - you can connect them either way round.

Unused connector

The connector above the hot-end heater resistor wire connector labelled "fan" is not used. Don't connect the fan to it (see below).

The X endstop

The X endstop wires connect to the connector above the unused connector. The polarity doesn't matter - you can connect them either way round.


The Y endstop

The Y endstop wires connect to the connector above the X endstop connector. The polarity doesn't matter - you can connect them either way round.

The Z endstop

The Z endstop wires connect to the connector above the Y endstop connector. The polarity doesn't matter - you can connect them either way round.

The bed temperature wires

The wires that run along with the bed power wires connect the bed's temperature-measuring thermistor. They connect to the connector above the Z endstop connector. The polarity doesn't matter - you can connect them either way round.

The hot-end temperature wires

There are two wires from the hot-end ribbon cable that connect the hot-end temperature-measuring thermistor. They connect to the connector above the bed temperature connector. The polarity doesn't matter - you can connect them either way round.

The hot-end fan wires

The hot-end fan wires in the hot-end ribbon cable do not connect to the terminals marked "fan" - those are for optional additional cooling.

The hot-end fan wires connect to the power connector in parallel with the power input so the hot-end fan is on all the time.

Make sure you get the polarity right. You should have marked the fan's + and - connections when you wired up the fan. Trace them through by counting wires across the ribbon cable.

Slacken the power wire screws and connect the fan wires in parallel with the power.

Tighten these screws firmly - this connector has to carry a large current. Remember to support the back of the circuit board when you are tightening screws to stop it bending.

Never operate your RepRap without the fan connected and running. The extruder needs the cooling at all times.

Testing

Set your meter to measure resistance. Short the probe ends. You may find (particularly if your meter is not the most expensive one on the market) that the reading is not quite 0 ohms. Note down what it is - this is your meter's idea of a dead short. Add this number to the low resistances given below.

Put one probe on the casing of the XLR power connector. Put the other on the cover of the SD card socket. The meter should read 0 ohms.

Now the most important check: plug the power supply into your RepRap and put the mains wire on the power supply, but don't connect it to a mains socket. Measure the resistance between the earth pin on the mains plug and the cover of the SD card socket. The meter should read 0 ohms, or at most a small fraction of an ohm. If it doesn't, you have made a mistake. Find it and fix it before you do anything else.

Measure the resistance between the two screws on the power connector. This may start low and then rise. (This is the capacitors in the circuit charging up with the tiny current from the meter.) It should level out at a few hundred ohms.

Measure the resistance between the two screws on the bed power connector. This should be about 1.5 ohms.

Measure the resistance between the two screws on the hot-end heater resistor connector. This should be about 3 ohms.

Make sure all the moving axes are not touching their endstop switches. Check that each resistance on the X, Y and Z endstop connectors is 0 ohms. That is to say the endstop switches should be closed. Press each switch in turn. The corresponding resistance should rise to 5K ohms or more (the resistance of the circuit components on the controller board in parallel with the switch).

Check the heated bed temperature sensor connector. The resistance should be around 5 to 10 kilohms. This is not just the resistance of the sensor. Other parts of the circuit on the controller board are in parallel with it.

If you are building the single-material/single-colour Mendel, check the hot-end temperature sensor connector. The resistance should be around 5 to 10 kilohms. This is not just the resistance of the sensor. Other parts of the circuit on the controller board are in parallel with it.

Measure the resistance between Pin 3 on the XLR connector and the +12 volts input screw on the controller board. This should be 0 ohms.

Next step

Power Supply