Categories
Raspberry PI

5-inch TFT Screen Settings for Raspberry PI

Today we are going to solve problem of 5-inch TFT LCD from waveshare. When we plug the LCD and install raspberrian it takes only 3.5 inch space by default. If we want to set the resolution 800×480 so that the screen will be able to take whole space on LCD then follow the steps provided below.

We had drived our today’s Artical from following instructable and for the Touchscreen to work properly and response your touch input we need to install the TouchScreen Driver which is provided in following article about 5-inch TFT LCD. So let’s get started

Changing the config.txt file

To setup the whole display we need to modify HDMI settings from config.txt file. This file could be modified within raspberry pi via terminal or you could also change it from your windows text editor if you unplug memory card from raspberry pi and put that into your laptop or computer. Which ever method you prefer, just open that file

cd /boot

sudo nano config.txt


now just find the line where it says following
#Uncomment to force a specific HDMI Mode
Then place the following lines

 
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt=800 480 60 6 0 0 0

Now press control+x and then press y and press Enter to exit

You need to reboot raspberry PI so that changes could effect. Once you reboot you will see the screen is now taking full LCD space. Congratulations

Making Touch Screen Work

Still you are not able to provide touch inputs to your PI. To do that you have to install drivers for your LCD. Here is a link with full instructions we had provided short summary for doing this

Just clone the github repository via following command in terminal

 
git clone https://github.com/Elecrow-keen/Elecrow-LCD5.git

and after that move to specific cloned directory and run the executeable like this

 
cd Elecrow-LCD5
sudo ./Elecrow-LCD5

After everything is finished just restart the raspberry Pi and everything should be working this time.

Calibrate Touch Screen

If you face problem in your touch inputs, then you may be need to calibrate your touch screen. If you want to calibrate then you have to install some specific calibration package. One package you could install via raspberry pi’s terminal using following command

 sudo apt-get install -y xinput-calibrator 

This will install calibrator program which you can found in your menu and then preference menu where raspi-config screen resides. Just open this program and follow the steps.

By Abdul Rehman

My name is Abdul Rehman and I love to do Reasearch in Embedded Systems, Artificial Intelligence, Computer Vision and Engineering related fields. With 10+ years of experience in Research and Development field in Embedded systems I touched lot of technologies including Web development, and Mobile Application development. Now with the help of Social Presence, I like to share my knowledge and to document everything I learned and still learning.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.