All Duet boards support the PanelDue colour TFT touch screen control panel.
There are two cable options for connecting the PanelDue, both options are included with the PanelDue. Option 1 is the included 4-wire cable with Molex KK connector ends. Option 2 is the included 10-wire ribbon cable. For some older boards, both cables need to be plugged in to enable both TFT panel and SD card socket.
Information for connecting older versions of the PanelDue is available from dc42's blog here.
|4-wire||ribbon||4-wire and ribbon|
|Duet 3 Mainboard 6HC||PanelDue, no SD||see below|
|Duet 3 Mini 5+, Duet 3 MB6XD||PanelDue, no SD||PanelDue, SD||no reason to use both|
|Duet 2 WiFi/Ethernet v1.02 and later||PanelDue, no SD||PanelDue, SD||no reason to use both|
|Duet 2 WiFi/Ethernet v1.0, v1.01||PanelDue, no SD||SD only||PanelDue, SD|
|Duet 2 Maestro||PanelDue, no SD||PanelDue, SD||no reason to use both|
|Duet 3||IO_0||Only IO_0 supports PanelDue|
|Duet 2 WiFi/Ethernet||PANELDUE connector|
|Duet 2 Maestro||PANELDUE connector|
Use a 4-way cable terminated in Molex KK or compatible connectors. See below for connections for specific Duet boards.
The length of the 4-way cable is not critical, however the resistance per conductor should not exceed 0.1 ohm. The SD card socket on the TFT panel will not be functional. The cables supplied by Escher3D and Duet3D are about 800mm long. There have been reports of cables up to 1500mm long being successfully used. Take care to route the cable away from motor and endstop cables. Twisting the cables may help prevent cross talk interference.
A PanelDue can be connected to connector IO_0 using a 4-core cable wired like the one shown in the images below. The 4-wire cable supplied with the PanelDue has a 4-way Molex KK connecter on each end, but is supplied with a 5-way Molex KK connector for use with Duet 3. You will need to rewire one end. The 4-wire cable does not allow access to the SD card socket on the PanelDue.
NOTE: the Duet 3 pin order in the table below is not the physical order. See the diagram for the physical pin order.
|PanelDue pin||Wire colour||Duet 3 IO_0 pin|
|+5V||Red||5V_EXT (pin 5)|
|GND||Black/yellow||GND (pin 3)|
|Dout||Blue||IO_0_IN (pin 2)|
|Din||Green||IO_0_OUT (pin 4)|
For PanelDue 5i and 7i, connect the supplied 4-wire cable as shown.
Older versions of the Duet 2 WiFi/Ethernet need both the 4-wire and ribbon cable to be plugged in to use the TFT Panel and the SD card socket, when connecting PanelDue v2.0 or v3.0.
|Duet 3 MB6HC 1.10 and earlier||see below|
|Duet 3 Mini 5+, Duet 3 MB6HC 1.02 and later, Duet 3 MB6XD||PanelDue_SD|
|Duet 2 WiFi/Ethernet/Maestro||CONN_SD|
Connect a 10-way ribbon cable between socket X5 on the PanelDue and socket CONN_SD (Duet 2) or PanelDue_SD (Duet 3). The connector is a standard 10 pin 2 row 2.54mm pitch box connector that accepts IDC connectors for 1.27mm ribbon cable.
(Photo from www.flickr.com)
In tests using standard 28awg 1.27mm spaced ribbon cable, 400mm worked reliably but 800mm did not. So 400mm is the maximum recommended cable length. You can also get 26awg 1.27mm ribbon cable, and by using such cable you may be able to achieve reliable operation with cables longer than 400mm.
Caution: if you are using a thermocouple and/or PT100 daughter board, the use of long ribbon cables between the Duet and PanelDue may affect communication between the Duet and the daughter boards, because the ribbon cable connection to the SD card on PanelDue uses the same SPI bus as the daughter boards.
NOTE: SD cards attached to the Duet and/or PanelDue are only supported in standalone mode, and are not supported in SBC mode (i.e. using a Raspberry Pi). If using SBC mode, you could use a USB stick attached to the Pi instead. You will need to reflash the RPi SD card with the latest version of the DuetPi image to enable external storage access in DWC, as the image configuration has changed.
Although the Duet 3 MB6HC does not have a connector for the PanelDue ribbon cable, if access to the SD card on PanelDue is required then this is possible using a special wiring arrangement. You must use RepRapFirmware 3.4 or later, and you must enable the external SD card using this command:
M950 D1 C"cs_pin+cd_pin"
where cs_pin is the pin that the SD card CS line is connected to and cd_pin is the pin that the SD card detect pin (if available) is connected to. For these pins, if you are not using a temperature daughter board then we suggest that you use CS0 and CS2 respectively on the SPI daughter board connector to simplify the wiring; otherwise use the output pin and the input pin on one of the IO connectors. So the M950 line would look like this:
M950 D1 C"spi.cs0+spi.cs2"
or (for example)
M950 D1 C"io3.out+io3.in"
Note: if you are using an older version of either PanelDue 7i or PanelDue 5i, or a non-integrated version of PanelDue, then those do not support the CD signal. In that case you should omit the second port, for example:
M950 D1 C"spi.cs0"
The required wiring is as follows
|PanelDue ribbon cable pin||Signal name||Duet 3 MB6HC pin|
|2||GND||Temperature daughterboard pin 2|
|3||CS||Temperature daughterboard pin 3 (spi.cs0) or IOx OUT|
|4||SCLK||Temperature daughterboard pin 4|
|5||MOSI||Temperature daughterboard pin 5|
|6||MISO||Temperature daughterboard pin 6|
|7||CD||Temperature daughterboard pin 7 (spi.cs2) or IOx IN|
|8||+3V3||Temperature daughterboard pin 8|
If you have no temperature daughter boards installed, then one way to cable this is to use both the ribbon cable and the 4-way cable, and remove conductors 1, 9 and 10 of the ribbon cable as illustrated here. Caution! Using a ribbon cable with all conductors present will feed +5V into the microcontroller!
The card detect signal (CD) is used to tell the Duet whether a card is inserted or not. Non-integrated versions of PanelDue (V2, V3) and older versions of PanelDue 5i and 7i (v1.0 of the 5i and v2.0 of the 7i) do not provide a card detect signal.
Duet 2 boards do not support the card detect signal on the external SD card, so can never tell whether a card is inserted or not except by trying to read it, and can't detect a card being removed. No modifications are required connected older or newer PanelDue, or other external SD card adapters, to Duet 2 boards.
Duet 3 boards do support the card detect signal. Newer versions of the PanelDue 5i and 7i (v1.01 and later of the 5i and v2.01 and later of the 7i) provide this signal.
However, if you use a non-integrated versions of PanelDue or older versions of PanelDue 5i and 7i with Duet 3, it is necessary to ground the card detect signal, or the firmware will permanently think no card is inserted. There are a number of ways to achieve this.
This mod will enable the card detect signal. See the pictures below showing how to modify a PanelDue 5i v1.0. Connect a wire (thin enamelled copper in this instance) from the SD card socket Card Detect pin to the appropriate pin on the ribbon cable connector.
You can alternatively solder a jumper wire between GND and NC (pin 7, above Dout), though the firmware will see the SD card as always being present.
Modify the ribbon cable by connecting the card detect wire to ground. The firmware will see the SD card as always being present.
On the Duet 3 Mini 5+ you can ground the card detect signal by bridging pins 2 and 4 of the EXP2 connector as shown here. The firmware will see the SD card as always being present.
RepRapFirmware 3.x and later: Using a PanelDue with Duet 3 and Duet 2 and RRF3 will require
M575 P1 S1 B57600 being present in config.g.
RepRapFirmware 2.x and earlier: In RRF2 the command above was assumed as the default, so no additional configuration is required.
Generally it is best to run the latest version of the PanelDue firmware that is supported by the RepRapFirmware version on your Duet mainboard. See: Installing and updating PanelDue firmware
From RRF v3.2, PanelDue firmware releases are co-ordinated with the RRF release, and share the same version number. Use the PanelDue firmware version that matches your Duet mainboard's firmware version.
|RepRapFirmware version||PanelDue firmware version||Notes|
|3.2 and later||Use matching firmware number||3.2 and later uses RRF 3 Object Model, not backward compatible|
|3.11 and earlier (2.x, 1.x)||1.24||See notes below|
The PanelDue firmware v1.24 assumes a fixed relationship between bed, tools and heaters. Please note the following:
These restrictions are largely removed in later versions of the PanelDue firmware. However, they will require you to update RepRapFirmware on your Duet mainboard.
Display options, eg show multiple heaters/tools. To do.
Caution! Do not use an SD extender cable from the SD socket on the Panel Due. Some types of SD card extender cable have been found to damage the SD card socket. Damage to the SD card socket from using an extender cable is not covered by the warranty.
This information also applies to a stand alone SD or micro SD card socket
You can use the external SD card socket on the LCD panel if you have used a ribbon cable as described above. Please note, the SPI interface provided by this SD card socket is much slower than the on-board SD card socket built into the Duet. Therefore we recommend that you do not upload files to this card over the network. Use the external SD card socket only if you want to write files to the SD card on a PC and then move the SD card to your printer.
To access the second SD card socket, you will need these firmware versions:
You will need to make a custom 5-way cable using this table of connections. For the PanelDue 1.1, the X5 connector pins are numbered from the bottom end of the connector (the end close to the X5 legend).
|SD signal name||PanelDue 1.1 X5 pin #||PanelDue 2.0 X5 pin #||Duet 2 signal name||Duet 2 CONN_SD pin #|