Adding MPI4008 Display to Raspberry Pi Running Mainsail

Okay, I’ve got KilpperScreen working on the Miuzei display/Raspberry Pi 4 combination.

The process is fairly simple, but it has to be followed exactly:

  1. Install Mainsail (I haven’t tried Fluidd or standard Octoprint for this) on a micro-SD/TF Card and boot the Raspberry Pi with the Display attached.
  2. SSH login into the Raspberry Pi and install LCD-show using the commands listed in “How to rotate the display direction” in 5inch HDMI Display-B. I’ve listed the commands below. DO NOT EDIT CONFIG.TXT!!!
  3. The final command of the LCD-show sequence (“sudo MPI4008-show”) will reboot the Raspberry Pi and may cause the display to come up correctly. If it doesn’t (which means I believe the display isn’t working correctly), unplug the Raspberry Pi and replug it - the Raspberry Pi boot sequence should be displayed now. If there aren’t four Raspberri Pi icons across the top of the display, go back to 1. and start over.
  4. SSH login to the Raspberry Pi and install KIAUH using the instructions below.
  5. Run KIAUH using the “./kiauh/kiauh.sh” command and install “KlipperScreen”. This action will take about five minutes to run.
  6. Klipper should appear on the display.
  7. I found it helpful to power down the Raspberry Pi at this point (using the “shutdown” command) and power back up as the final update didn’t always work from this screen.
  8. If everything has been done correctly, then the Raspberry Pi should reboot (with the progress shown on the display) and Mainsail comes up.
  9. From the Mainsail (“.local”) webpage, add your “printer.cfg” file
  10. From the Mainsail (“.local”) webpage, do a update everything.

That’s it!

The LCD-show commands from point 2. to use are:

sudo rm -rf LCD-show
git clone GitHub - goodtft/LCD-show: 2.4" 2.8"3.2" 3.5" 5.0" 7.0" TFT LCD driver for the Raspberry PI 3B+/A/A+/B/B+/PI2/ PI3/ZERO/ZERO W
chmod -R 755 LCD-show
cd LCD-show/
sudo ./MPI4008-show

Note for the last command (“sudo ./MPI4008-show”), it’s given as “sudo ./XXX-show 90” in the webpage instructions. I have inserted the display type and, as I like the natural orientation of the display away from the power cord, I haven’t specified an angle.

Sorry for the pedantic instructions but I found a number of ways to not quite get there - I had a number of cases where I could get the display working, but KlipperScreen wouldn’t work or I would have everything working and try to streamline it by doing the “update everything” earlier in the process and the screen would stop working.

Now, having spent about ten hours on this as well as working with them (I have two) for about six hours, I have to say that I wouldn’t recommend this display. It’s not particularly bright, even at its highest setting, and the resistive touch panel isn’t very responsive - you get a plastic stylus with the displays and they are necessary to use the alpha-numeric keypads for changing your WiFi connection or device name.

I’m going to copy this into the Hardware known to work with KlipperScreen thread.

1 Like