Cheap TFT display for Raspberry Pi
In one of our recent projects we needed a cheap and small screen for the Raspberry Pi so it could be made portable. I recently stumbled upon the ili9488 by www.mcufriend.com from AliExpress and at only 8$ I just bought one straight away. When the display arrived I realized that I should have done a quick google search on how to get it working with the Pi before buying. It was not straightforward to use!
Several guides shows how to get the display working where you use a custom kernel image or simply flash a modded version of Raspbian.
While this solution works it comes with two critical drawbacks. Firstly, the kernel used is old and does not contain the same drivers as you will find in newer versions of Raspbian, in our case it removed the WiFi Adapter drivers we were using. Secondly, you will not be able to do a system update via
sudo apt-get update in the future as this will overwrite the custom image and leave you with a useless screen and a Raspberry Pi with a questionable OS.
So to avoid these issues we set out to find a better, less invasive solution to get the ili9488 working on the Raspberry Pi.
How to get the ili9488 TFT display to work without changing kernel or flashing a custom version of Raspbian.
A lot of credit should go to Notro for creating FBTFT Driver which is the basis for getting the display working.
A note of caution. We have tested this on a Raspberry Pi B+. The trick should work on A and B models as well and might work on Raspberry Pi 2. Please leave a comment if anyone tries this out.
Start a terminal on your Raspberry Pi and run the following command:
this will open the modules file in an text editor.
Next step is to add the following snippet to the end of the file:
Exit the editor and save the modules file Open cmdline.txt in the editor by running the following command
Now you need to enable the Boot Splash Screen and set the framebuffer environment variable by adding the following snippet before “rootwait” in the cmdline file. It is important that the snippet is added to the same line as the existing commands
Save and exit the file.
Finally you have to install the framebuffer driver by running
Then create the file /usr/share/X11/xorg.conf.d/99-fbdev.conf by running:
This will open the file in an editor and allow you to add the following section to the file.
Save the changes you made to the file and exit the editor
Lastly all you need to do is reboot your PI
And your done. Now all there is left is to go out and use our new Raspberry display for something fun.
This guide shows you how you could use the framebuffer for other things than just showing the xserver https://github.com/notro/fbtft/wiki/Framebuffer-use