Duet - RepRap

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

10/11/2018 Duet - RepRap

Duet

Note for 2nd Generation Duets (Duet Wifi, Duet Ethernet) check www.duet3d.com (https://www.duet3d.com)
Duet
Release status: working
The first generation Duets that this page details were developed by Andy and Tony from Think3dPrint3d (http://www.think3d
print3d.com/) in conjunction with RepRapPro (http://www.reprappro.com) and with much advice from Chris Palmer
(Nophead)

The Duet is a 3D Printer controller board that is compatible with the Arduino Due. This 3D Printer controller combines the 32
bits Arduino Due microcontroller with 4 (v0.6) or 5 (v0.8.5) stepper motor drivers, Ethernet, Hi-Speed SD card slot and more.

Contents
Description Duet - Arduino Due Co
1 Overview Electronics
2 Wiring License CERN OHL
3 Hardware Author T3P3
3.1 General Contributors
3.2 Specifications [4] Based-on Arduino Due
3.3 Dimensions
3.4 Drive numbers Categories Electronics, Electronics
3.5 Ethernet surface-mount electron
4 Open hardware license CAD Models https://github.com/T3P
5 Software External http://blog.think3dprint
6 Older versions Link Arduino-Due-compatib
6.1 Duet v0.6 controller.html
6.1.1 Wiring
6.1.2 Issues and gotchas of v0.6 boards
7 Where to get it
8 Gallery
9 Resources
9.1 Support
9.2 Hardware
9.3 Firmware
10 References
11 Further reading

Overview
The Duet runs the 32 bit, ARM core Atmel SAM3X8E (http://www.atmel.com/devices/SAM3X8E.aspx) microprocessor, as found on the Arduino Due (https://www.ar
duino.cc/en/Main/ArduinoBoardDue). This is a step change from preceding controllers using 8 bit microprocessors and leaves loads of overhead to do cool things (like
running a web-server or running delta bots much faster). The Duet comes with Ethernet built in allowing it to run as a network printer controller, along with USB and
an SD card (fully SD 2.0 compliant). The Duet 0.8.5 version update supports an additional extruder, so it can be used with both dual and single extruder printers (5 axes
control). In addition it takes the Duex4 (http://www.think3dprint3d.com/Duex4-Duet-Expansion-Board) expansion board which adds a further 4 stepper channels - for a
total of 9 axes controls (3 axis + 5 extruders for example). A more in-depth description of the original design can be found in this blog post (http://blog.think3dprint3d.
com/2013/12/Duet-Arduino-Due-compatible-3DPrinter-controller.html). The v0.8.5 update is described here (http://blog.think3dprint3d.com/2015/08/new-duet-electro
nics-version-085.html). Another expansion "shield" for two drives was distributed by RepRapPro (only for Duet 0.6).

In addition to 3D printer, this board can be used to control a laser cutter [1] [2] [3]

The PanelDue (https://miscsolutions.wordpress.com/paneldue/) is a compatible colour graphics touch screen control panel. The Duet can also be controlled over Wi-Fi
as described here (http://blog.think3dprint3d.com/2014/04/using-duet-with-wifi-router.html).

See also Duet design.

Wiring

https://reprap.org/wiki/Duet 1/6
10/11/2018 Duet - RepRap

See dedicated pages Duet Wiring and Duet pinout.

Hardware
General

All connectors are now Molex KK type, with lock and polarization.

Board is built with four layers, including a complete ground plane, which allow good thermal dissipation and reduce noise and ground loops.

Biggest thermal dissipation came from the bottom of the board, which shall be taken into account while establishing the cooling flow.

Processor voltage is 3.3V and inputs are not protected, so using sensor with higher voltage need reliable protection. Optocoupler or diode protection may be more
reliable than voltage dividers.

Specifications [4]

Maximum acceptable voltage for stepper drivers and capacitors is 35V, the PMV40UN2 fets used on the fans are rated to 30V, so the max VIN in 30V. Boards
were tested at 24V and may be safe for a stable supply up to 30V.
Stepper driver A4982 are designed for a maximum current of 2A, with a really usable current depending from the board cooling. Board was tested with 0.8A
without cooling and 1.5A on all drivers with good cooling. Drivers have a thermal safety.
Stepper driver current is adjusted by program, using a specific G-code.
Microstepping is locked to 1/16. Board throughput is always sufficient to handle it, including on 0.9° steppers.
On board 5v is supplied by a buck converter with ultimate current of 2A, however the 3.3V is taken from this 5V supply, so the available 5V current (for fans or
small wifi router) shall take into account the 3.3V consumption of the board and other 3.3V accessories (sensors and control panel).
Micro-SD card type SDHC, to be formatted in FAT32, cluster size 32 kB.
Ethernet sustained transfer speed came from 100 kB/sec to 900 kB/sec depending SD card quality and file size. You may experience faster speed with larger files.
[5]
Direct connection of mechanical switches to endstop inputs is reliable with shielded or twisted cables.

Dimensions

Size 123 x 100mm, hole spacing 115 x 92mm Ethernet plug, micro-SD slot and mini USB plug are on one small side. For 0.8.5 version, the reset and erase buttons are
also on same side (they were on board face on 0.6 version). There is no plug for power supply, but a terminal block on the side opposed to plugs. 5V could be from
internal converter or external supply, with pins aside the power supply terminal block.

The export from KiCAD shows the board (V 0.8.5) and hole dimensions:

https://reprap.org/wiki/Duet 2/6
10/11/2018 Duet - RepRap

Drive numbers

Drive number for G-Code commands (M569 & others) 0:X; 1:Y; 2:Z; 3:E0; 4:E1; 5:E2; 6:E3; 7:E4; 8:E5

Ethernet

The Ethernet connection is handled natively by the SAM3X8E processor, allowing much higher speed than boards handling Ethernet connection through serial link to
the processor. In practice, the throughput is only limited by the SD card performance. Printing with web interface being done from the SD card, this improve usability
for large files.

Open hardware license


The Duet hardware design is licensed under the CERN OHW License 1.2 (http://www.ohwr.org/documents/294): the design is free to be distributed and modified
within the terms of this license. All the design files are available on Github (https://github.com/T3P3/Duet). The Duet was completely designed using the Open Source
software package KiCAD (http://www.kicad-pcb.org/display/KICAD/KiCad+EDA+Software+Suite) so hacking and building on this design is accessible to all.
Pins/output references correspond to the references used for Arduino Due, see schematic (http://www.robgray.com/temp/Due-pinout-WEB.png).

Software
The Duet runs RepRap Firmware, initiated by Adrian Bowyer, which was initially designed for it. The software can receive G-Code from the USB serial port, the SD
card and the Ethernet interface.

Its philosophy is everything is done with G-code, including all configuration and it use an extended set of G-codes.

Configuration file is read on SD card at start-up. Interactive configuration with immediate feedback is possible.

A pre-compiled version of the firmware is supplied with each new release. Average user never have to compile the program and does not need any development tool.

SD image shall be copied on SD-card and macros may be adapted for a given configuration.

When Duet board is connected via Ethernet, any Ethernet or WiFi device having access to your network can operate the printer with a web interface.

Recent firmware can be updated with simple file uploading over the network.

The software is evolving constantly. The dc42 and ChrisHamm forks includes Delta and CoreXY printer support.

https://reprap.org/wiki/Duet 3/6
10/11/2018 Duet - RepRap
See RepRap Firmware FAQ

Older versions
Duet v0.6

The Duet version 0.6 was the first issue of Duet board (in december 2013) and is still available. It
combines the Arduino Due microcontroller with 4 stepper motor controllers to control a single extruder
printer. Together with the Duex4 (http://www.think3dprint3d.com/Duex4-Duet-Expansion-Board)
expansion board it allows for a total of 5 extruders or up to 8 axis drives. The dimensions are the same
as version 0.8.5, however connector position is slightly different.

Wiring

See dedicated pages Duet Wiring and Duet pinout.

Minor changes have been made to the Duex4 resulting in version 0.2a, as detailed in this blog post: http://blog.think3dprint3d.com/2015/04/duex4-v02a-minor-
updates.html link Duex4 v02a minor updates]

Issues and gotchas of v0.6 boards

https://reprap.org/wiki/Duet 4/6
10/11/2018 Duet - RepRap
The following are not intended to put you off using a Duet, indeed some other electronics boards have much worse issues.

USB connector soldering


The Mini USB A/B connector has 4 metal lugs that need to be soldered to secure the connector to the board. Manufacturers of Duet boards sometimes don't get
this right, probably because through-hole components are typically wave-soldered from the underside, but the USB connector lugs really need to be soldered
from the top. Therefore, when you receive a Duet, check that the USB connector lugs are securely soldered from the top. Duet 0.8.5 boards and Duet WiFi boards
from Think3DPrint3D should not have this problem.

On-board 5V switching regulator


This produces excessive EMI to meet CE regulations in a complete printer without shielding. If the EMI produced by the switching regulator is unacceptable,
leave it disabled (by leaving JP9 open) and provide 5V power via the external 5V connector instead. In practice, the EMI is unlikely to cause problems, e.g. it can
only be heard on an FM radio if the radio is tuned to a very weak station and placed very close to an unshielded Duet. The Duet 0.8.5 has a modified switching
regulator circuit designed to produce less EMI, and the Duet WiFi should produce even less.

SD card
The board and firmware are a little fussy in respect of the SD card specifications. A Class 4 or Class 10 card with a capacity of 4Gb to 16Gb is recommended.
The file upload speed obtained via the web interface depends a lot on the card, and isn't necessarily any better with Class 10 cards than with Class 4 cards.

Extruder heater and thermistor connector


On boards that use header strips for the I/O connections, this is a 6-pin header strip that uses 4 pins (two paralleled pairs) to provide power to the hot end heater,
and 2 pins to connect the thermistor. If you plug the 4-pin heater connector into the wrong end of the 6-pin strip, you will feed 12V into the thermistor input, and
destroy the microcontroller. More recent boards use 4- and 2-pin Molex connectors instead to reduce the risk of mis-connection. The Duet 0.8.5 and Duet WiFi
separate the thermistor connectors from the hot end heater connectors completely.

ATX PS_ON output


If the PS_ON output is used to turn off an ATX power supply, and this results in all power being removed from the Duet, then as the Duet powers down it
produces a glitch on PS_ON. This may result in the ATX PSU turning on again. One fix is to power the Duet's 5V rail from the +5VSB output of the ATX PSU
so that the board does not power down. Another is to add a 3.3K or 4.7K pulldown resistor between the gate and source terminals of TR7. This resistor is already
included on the Duet 0.8.5 and Duet WiFi.

Effect of shorting the +3.3V rail to ground


If you short the 3.3V rail to ground (for example, by connecting 2-pin endstop switches to the wrong pins on the 3-pin connectors), or by wiring an intelligent Z
probe with the +3.3V and ground wires reversed), then the Duet will typically be unharmed; but all heater outputs will turn on while the short persists. The Duet
WiFi has additional circuitry to turn the heaters off when there is a short between +3.3V and ground.

Where to get it
Think3DPrint3D (UK) (http://www.think3dprint3d.com/Electronics/Duet) Duet 0.8.5, Duex4 & PanelDue with screen 4.3", cable looms.
Filastruder (USA) (http://www.filastruder.com/collections/electronics/products/duet-controller-v0-8-5) Duet 0.8.5, Duex4 & PanelDue with screen 4.3"
builda3dprinter.eu (The Netherlands) (http://builda3dprinter.eu/product/duet-v0-8-5-32-bit/) Duet 0.8.5 and PanelDue with screen 4.3"
emaker.io (UK) (https://emaker.io/product/duet-pcb/) Duet 0.6 and 2 drives shield (only for Duet 0.6) (https://emaker.io/product/duet-shield-pcb/)
Replikeo Duet (China) (http://www.replikeo.com/electronics/18-duet-board.html) Duet 0.6 clone
Escher 3D (UK) (http://escher3d.com/pages/order/orderindex.php) PanelDue without screen
RepRap Ltd (https://reprapltd.com/) Duet shield (2 drives)for Duet 0.6
kurzschluss (http://www.kurzschluss-blog.de/p/duet-extension-board-build-manual.html) Small extension board for Pololu drivers

Gallery

Here is a picture of a 4 colour print from the Duet and Duex4 ... and a picture of the set-up.
expansion board combo...

Resources
Support

https://reprap.org/wiki/Duet 5/6
10/11/2018 Duet - RepRap
General support: RepRap forum: Duet http://forums.reprap.org/list.php?416 or the Ormerod forum http://forums.reprap.org/list.php?340 (most of the thousands
of Duet boards in the field are in Ormerods)

Hardware
Duet 0.8.5 schematic:https://github.com/T3P3/Duet/blob/master/Duet0.8.5/Duet0.8.5_Schematic.pdf
Duet 0.6 schematic: https://github.com/reprappro/Duet/blob/master/Duet/Duet_06_Schematic.pdf
Duet / Duex4 expansion header pin mapping and usage Duet pinout
Wiring and commissioning a Duet on a delta: https://miscsolutions.wordpress.com/2015/01/04/upgrading-the-mini-kossel-to-duet-electronics-part-1-hardware/
PanelDue to Duet wiring: https://miscsolutions.wordpress.com/paneldue/

Firmware

RepRapFirmware
RepRap Firmware FAQ
RepRap Firmware G-Codes
RepRapFirmware Configuration & commissioning

References
1. Laser cutter on RepRap forum (http://forums.reprap.org/read.php?133,521301)
2. Laser cutter on RepRap forum (http://forums.reprap.org/read.php?340,516150)
3. Laser cutter blog post (https://reprappro.com/2015/06/16/reprap-duet-electronics-running-a-laser-cutter-guest-blog/)
4. Designer/manufacturer don't supply specifications, so data came from component datasheets and user experience and is for information only.
5. RepRap forum thread about Ethernet speed transfer (http://forums.reprap.org/read.php?416,664836)

Further reading
Official Think3DPrint3D documentation (https://docs.google.com/document/d/1DAr1vqM0WEwobSHbTGT9Oy9M4HotH0ahYKY_W5eO0Ok/pub)
RepRap forum: Duet (http://forums.reprap.org/list.php?416)
Comparison of Electronics
list of electronics
Impressions:Duet vs Smoothie (http://forum.seemecnc.com/viewtopic.php?f=111&t=9205) A thorough comparison between these boards - on SeemeCNC forum

In addition to site licence GFDL1.2 (http://www.gnu.org/licenses/old-licenses/fdl-1.2.html), this page is also released under license CC BY-SA 4.0 (http://creativecommons.org/licenses/by
-sa/4.0/)

Retrieved from "https://reprap.org/mediawiki/index.php?title=Duet&oldid=180838"

This page was last edited on 24 October 2017, at 14:22.


Content is available under GNU Free Documentation License unless otherwise noted.

https://reprap.org/wiki/Duet 6/6

You might also like