How to connect a 12864 screen to a Fly-E3

Overview

The information here is aimed at connecting a stock ender 3 12864 display but it can also be applied to other 12864 displays (as long as they are ST7567 or ST7920 based).

Wiring

The ender 3 stock display can be connected directly to the EXP header of the Fly-E3. No modifications are required.

Wiring

The RepRapDiscount Full Graphic Smart Controller can be connected directly to the EXP header of the Fly-E3 using custom wiring.
Use the image below as a guide. Thanks @Samsan

Reprap Discount to Fly-E3
Connecting a RepRapDiscount Full Graphic Smart Controller to the Fly-E3

Board.txt modifications

The following lines should be added to the board.txt file.

lcd.encoderPinA=E.9
lcd.encoderPinB=E.10
lcd.encoderPinSw=E.11
lcd.lcdCSPin=E.7
lcd.spiChannel=4
SPI4.pins={ E.8, NoPin, B.1 }
lcd.lcdBeepPin = E.12

Config.g changes

Add the following line to the end of your config.g

M918 P1 E4 F1000000

Menu files must be uploaded to allow the display to generate the correct information. This can be done in two ways. First, obtain the recommended menu files from here

Method 1

Extract the contents of the zip file you downloaded above and place them in a folder called “menu” on the SD card of the Fly-E3.

Method 2

Activate the display using the config.g changes above.
A side menu called “Display” should appear in DWC. Navigate to it and upload the zip file.

Hardware

Add a jumper to J2

Fly-E3 Screen Jumper
Fly-E3 Screen Jumper

Troubleshooting

If the screen is showing artifacts/random characters on the screen, the following may improve/eliminate the issue

  • Lower the SPI frequency by half. This is the F value in M918.
  • Reduce the length of the cable between the screen and the board.
  • Ensure that the cable between the screen and the board is routed away from other cables, especially motor cables.
  • Add a ferrite ring to the cable between the screen and the board.
Tags: