Connecting 12864 or other display (2024)

Some Duets support 12864 mono graphics LCD displays with a rotary encoder.

There are two types of controller chip commonly used in these controllers: ST7920 and ST7567. Some Duets support one or both of these types - see below for details. Both types use a menu system stored on the SD card, see 12864 display menu system.

Certain board versions have different methods of controlling the backlight on these boards.

Compatibility matrix

DuetST7920ST7567Notes
Duet 3 MB6HC/6XDNN
Duet 3 Mini 5+NY
Duet 2 MaestroYYST7567 Requires modified wiring loom
Duet 2 WiFi / EthernetNYST7567 Requires modified wiring loom

Compatible displays

Connecting 12864 displays

  • Using the supplied ribbon cables, connect the 12864_EXP1 header on the Duet to the EXP1 header on the display. Connect the 12864_EXP2 header one the Duet to the EXP2 header on the display. Usually, both headers and the ribbon cable are keyed so they can only go on one way around.
  • Some displays are supplied with the ribbon cable or the EXP1 and EXP2 headers wired 180° rotated.
    • You won't damage the display if it is connected the wrong way around
    • A quick check is to rotate the encoder on the display. If it resets the Duet, it is wired 180° rotated, as the encoder will be connected to the reset pin on the EXP2 connector.
    • If you need to rotate the cable, instead of cutting the tab off the ribbon cable, you can usually pull the header shroud off the pins on the display. Then put it back on rotated 180°. Do this to both shrouds, on EXP1 and EXP2, then reconnect the ribbon cables.
  • The backlight on ST7920-based displays should turn on when powered. The backlight and LEDs on ST7567-based displays will stay off until an M150 command is sent, unless it is the Fysetc Mini12864 Panel V1.2 with fixed backlight.

Configuring 12864 displays

With the display connected, menu files need to be added to the SD card, or the display will have nothing to show. See 12864 display menu system.

(Instructions from https://teamgloomy.github.io/tft.html, thanks!)

Overview

Recent version of the standard bigtreetech TFT firmware has built in support for RepRapFirmware. The pre-built images have this enabled by default.

As of September 2023, BTT firmware still MOSTLY works with RRF. Heating, movement, monitoring prints etc works, however accessing the Duet filesystem does not. There may be other quirks that break RRF support as the firmware develops. Duet3D is not responsible for the BigTreeTech firmware; please contact BTT to get these fixed. See this thread on the forum for more information.

Connection to the board

Use the pins +5V, GND, IO_0_OUT and IO_0_IN on the IO_0 header (Duet 3), or +5V, GND, TX and RX on the PanelDue header (Duet 2). These should be connected to +5V, GND, TX and RX on the TFT, making sure that TX and RX are swapped.

BTT displayDuet 3 IO_0 headerDuet 2 PanelDue header
+5V+5V+5V
GNDGNDGND
TXIO_0_INURXD0
RXIO_0_OUTUTXD0

Loading the firmware

There is now an RRF config.ini (on the SD card root). It needs to be renamed from config_rrf.ini to config.ini (replacing the original one for Marlin) for flashing of the firmware.

Config.g Changes

Add the following line to your config.g to enable the screen

M575 P1 S1 B57600
Connecting 12864 or other display (2024)
Top Articles
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 6164

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.