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

The contrast setting for these displays is done in software. the M918 command supports a C parameter for this purpose. It is also necessary to set a resistor ratio parameter in software, which can be done using the M918 R parameter.
+=== Compatibility matrix ===
+
+{table
+|! Duet
+|! ST7920
+|! ST7567
+|! Notes
+|--
+| Duet 3 MB6HC
+| N
+| N
+|
+|--
+| Duet 3 Mini 5+
+| N
+| Y
+|
+|--
+| Duet 2 Maestro
+| Y
+| Y*
+| *Requires modified wiring loom
+|--
+| Duet 2 WiFi / Ethernet
+| N
+| Y*
+| *Requires modified wiring loom
+}
+
=== Duet 3 Mini 5+ support for 12864 displays ===
-Duet 3 Mini provides two 2x5 ribbon cable headers for connecting a Fysetc 128 Mini Panel version 1.2 or 2.1 ('''not 2.0''') or compatible controller. When using a version 2.1 controller, the colours of the three Neopixel LEDs built into the display can be set using the M150 command with LED type parameter X2.
+Duet 3 Mini provides two 2x5 ribbon cable headers for connecting a Fysetc 12864 Mini Panel version 1.2 or 2.1 ('''not 2.0''') or compatible controller. When using a version 2.1 controller, the colours of the three Neopixel LEDs built into the display can be set using the M150 command with LED type parameter X2.
We do not recommend connecting a 12864 display with ST7920 controller to the Duet 3 Mini because the 3.3V signals provided by the Duet 3 Mini do not meet the specifications of the ST7920 controller chip when it is powered from 5V. If you do wish to try it, you will most likely have to reduce the clock frequency (M918 F parameter) to get it working at all, and it may not work reliably. Also, note that when configured for 12864 display with ST7920 controller, RRF provides the CS signal on the pin normally uses for A0 because that more closely matched the pinout of typical 12864/ST7920 displays.
-=== Duet Maestro support for 12864 displays ===
+=== Duet 2 Maestro support for 12864 displays ===
-The Duet Maestro provides two 2x5 ribbon cable headers for a 12864 display using ST7920 controller. The connector pinout is compatible with the original RepRapDiscount design. There is also more information in this thread: https://forum.duet3d.com/topic/7609/configuring-12864-lcd-on-maestro.
+The Duet 2 Maestro provides two 2x5 ribbon cable headers for a 12864 display using ST7920 controller. The connector pinout is compatible with the original RepRapDiscount design. There is also more information in this thread: https://forum.duet3d.com/topic/7609/configuring-12864-lcd-on-maestro.
-RepRapFirmware 3.2 and later also support displays using the ST7567 controller. For these displays, the display inputs must be connected as follows:
+RepRapFirmware 3.2 and later also support displays using the ST7567 controller. For these displays, use the standard cable EXCEPT the following two wires need to be connected to the EXPANSION header pins:
{table
+|! Duet 2 Maestro output
|! Display input
-|! Duet Maestro output
+|! Function
|--
-| CS
-| qq
+| Expansion pin 4 (EXP_0)
+| EXP 1 pin 7
+| LcdA0Pin
|--
-| A0
-| qq
-|--
-| CLK
-| qq
+| Expansion pin 5 (EXP_1)
+| EXP 1 pin 8
+| LcdCSPin
}
-=== Duet WiFi/Ethernet support for 12864 displays ===
+=== Duet 2 WiFi/Ethernet support for 12864 displays ===
-Duet WiFi has no direct hardware support for 12864 displays. However, RepRapFirmware 3.2 and later support a 12864 display using ST7567 controller connected as follows:
+RepRapFirmware 3.2 and later support a 12864 display using ST7567 controller. However, you will need to make up your own wiring loom, connected as follows:
{table
+|! Duet 2 WiFi/Ethernet output
|! Display input
-|! Duet WiFi/Ethernet output
+|! Function
|--
-| CS
-| qq
+| CONN_LCD pin 2
+| EXP 1 pin 2
+| gnd
|--
-| A0
-| qq
+| CONN_LCD pin 3
+| EXP 2 pin 6
+| EncoderPinB
|--
-| CLK
-| qq
+| CONN_LCD pin 4
+| EXP 2 pin 8
+| EncoderPinA
+|--
+| CONN_LCD pin 5
+| EXP 1 pin 5
+| LcdNeopixelPin
+|--
+| CONN_LCD pin 6
+| EXP 1 pin 6
+| LcdResetPin
+|--
+| CONN_LCD pin 7
+| EXP 1 pin 7
+| LcdA0Pin
+|--
+| CONN_LCD pin 8
+| EXP 1 pin 8
+| LcdCSPin
+|--
+| CONN_LCD pin 9
+| EXP 1 pin 9
+| EncoderPinSw
+|--
+| CONN_LCD pin 10
+| EXP 1 pin 10
+| LcdBeepPin
+|--
+| CONN_SD pin 1
+| EXP 1 pin 1
+| +5V
+|--
+| CONN_SD pin 2
+| EXP 2 pin 2
+| gnd
+|--
+| CONN_SD pin 3
+| EXP 2 pin 7
+| SD CS
+|--
+| CONN_SD pin 4
+| EXP 2 pin 9
+| sck
+|--
+| CONN_SD pin 5
+| EXP 2 pin 5
+| mosi
+|--
+| CONN_SD pin 6
+| EXP 2 pin 10
+| miso
}
-We do not recommend connecting a 12864 display with ST7920 controller because the 3.3V signals provided by the Duet WiFi do not meet the specifications of the ST7920 controller chip when it is powered from 5V. If you do wish to try it, you will most likely have to reduce the clock frequency (M918 F parameter) to get it working at all, and it may not work reliably.
+We do not recommend connecting a 12864 display with ST7920 controller because the 3.3V signals provided by the Duet 2 WiFi/Ethernet do not meet the specifications of the ST7920 controller chip when it is powered from 5V. If you do wish to try it, you will most likely have to reduce the clock frequency (M918 F parameter) to get it working at all, and it may not work reliably.
+
+== Connecting BigTreeTech colour displays ==
+
+To come.

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

Revert Changes