Skip to main content
WARNING! From February 2022, these pages are no longer maintained.
Please see the current Duet3D documentation at https://docs.duet3d.com/
Help

Revision to Connecting an LCD control panel

Ian A-S

* Available for PanelDue V2.0, V3.0, 5i and 7i only
-* Compatible with Duet 3 Mini 5+, Duet 2 WiFi / Ethernet / Maestro
+* Compatible with Duet 3 Mini 5+, Duet 3 MB6XD, Duet 2 WiFi / Ethernet / Maestro
+* Supported on Duet 3 MB6HC requires RRF 3.4 and later, and modified wiring loom; see below
* Supports use of PanelDue SD card slot
-* Connects to PanelDue_SD on Duet 5 Mini 5+, CONN_SD on Duet 2
+* Connects to PanelDue_SD on Duet 5 Mini 5+ and Duet 3 MB6XD, CONN_SD on Duet 2
* Cable length limited to 400mm for reliability
* For PanelDue V2.0, both the ribbon cable ***AND*** 4-wire cable need to be connected to enable use of SD card slot.
|--
|! Duet 3 MB6HC
-| N/A
-| See below for special wiring scheme
+| See below
|--
|! Duet 3 Mini 5+, Duet 3 MB6XD
| PanelDue_SD
-| Additional jumper may be required; see note below
-|--
-|! Duet 2 WiFi/Ethernet
-| CONN_SD
|
|--
-|! Duet 2 Maestro
+|! Duet 2 WiFi/Ethernet/Maestro
| CONN_SD
|
}
-In order to use the SD card slot on the PanelDue, you must use the ribbon cable option. If you do not wish to use the SD card slot, it's recommended to use the 4-wire cable option described in [https://duet3d.dozuki.com/Wiki/Edit/Connecting_an_LCD_control_panel#Section_Option_1_4_way_cable|Option 1].
+==== Notes ====
+
+* In order to use the SD card slot on the PanelDue, you must use the ribbon cable option. If you do not wish to use the SD card slot, it's recommended to use the 4-wire cable option described in [[Connecting an LCD control panel#Section_Option_1_4_way_cable|Option 1]].
+* If a ***Duet 3*** with a non-integrated PanelDue, PanelDue 5i v1.0 or PanelDue 7i v2.0, see 'Card detect signal' section below.
+* The ***Duet 3 MB6HC*** has no PanelDue_SD socket. To use the external SD card, it requires RRF 3.4 or later, and a special wiring scheme; see 'Duet 3 MB6HC using ribbon cable' section below.
+* On ***Duet 3 Mini 5+*** and ***Duet 3 MB6XD***, the PanelDue connector shares the io0.out and io0.in pins, so IO_0 cannot be used at the same time.
+
+==== Wiring ====
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.
***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.
-==== Duet 3 Mini 5+ and Duet 3 MB6XD ====
-
-[image|2815|align=center]
-
-On Duet 3 Mini 5+ and Duet 3 MB6XD, a PanelDue can be connected using a ribbon cable plugged into the socket labelled 'PanelDue_SD'. This is the only way to use the SD card socket on the PanelDue. Note:
-
-* Non-integrated versions of PanelDue and older versions of PanelDue 5i and 7i do not provide a card detect signal, so for these displays it is necessary to ground the card detect signal. On the Duet 3 Mini 5+ you can do this by bridging pins 2 and 4 of the EXP2 connector as shown here.
-* The PanelDue connector on the Duet 3 Mini 5+ shares the io0.out and io0.in pins, so IO_0 cannot be used at the same time.
-* If you have a PanelDue V3, 5i or 7i, you can connect using just the ribbon cable. If you have a PanelDue V2, you will need to connect the ribbon cable ***and*** the 4-wire cable to access the SD card.
-
==== Duet 3 MB6HC using ribbon cable ====
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''"
+[code]M950 D1 C"''cs_pin''+''cd_pin''"[/code]
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"
+[code]M950 D1 C"spi.cs0+spi.cs2"[/code]
or (for example)
-M950 D1 C"io3.out+io3.in"
+[code]M950 D1 C"io3.out+io3.in"[/code]
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"
+[code]M950 D1 C"spi.cs0"[/code]
The required wiring is as follows
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!***
+
+==== Card detect signal ====
+
+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.
+
+===== Modify the PanelDue =====
+
+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.
+
+[image|4295|align=center]
+
+[image|4294|align=center]
+
+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 =====
+
+Modify the ribbon cable by connecting the card detect wire to ground. The firmware will see the SD card as always being present.
+
+===== Duet 3 Mini 5+ =====
+
+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.
+
+[image|2815|align=center]
=== Firmware configuration ===

To undo the changes made by this version, click 'Revert Changes.' This will automatically restore the previous version of this guide.

Revert Changes