Introduction: Setting Up an 800X480 5inch HDMI LCD for Raspberry Pi

Picture of Setting Up an 800X480 5inch HDMI LCD for Raspberry Pi

When using the 800X480 5inch HDMI LCD for the first time with the Raspberry Pi the display does not cover the entire 5 inch display. This tutorial will show you how to get rid of the black border on the display .

I will show 2 ways :One editing a file by sticking the micro SD card onto your laptop, the second how to change the file via the Pi's Terminal.

Questions,Concerns, Compliments or Comments all welcome :

@NemesisContrer8

Step 1: Accessing the Config File From Your Laptop

Picture of Accessing the Config File From Your Laptop

  1. Place your micro SD card into it's adapter and stick it in your laptop
  2. Click on the boot image that appears on your desktop
  3. Click on the file named Config.txt

Step 2: Accessing the Config File From Your Laptop (continued)

Picture of Accessing the Config File From Your Laptop (continued)
  1. Find the comment that says #Uncomment to force a specific HDMI Mode
  2. Add the following lines bellow the comment :
hdmi_group=2

hdmi_mode=1

hdmi_mode=87

hdmi_cvt=800 480 60 6 0 0 0

3. Press Control+S to save the file

4. Close the page

5. Right Click in your boot image again and select "Eject Volume"

6. Pop the card back into your Raspberry Pi

Step 3: Editing the Config File From the Pi's Terminal

Picture of Editing the Config File From the Pi's Terminal
  1. Open the Pi's Terminal (via SSH , Monitor etc)
  2. We need to access a folder named boot which is hidden so type:
cd /boot

3. If you would like to see the files inside the boot folder list them by typing :

ls

4. We need to access a file named config.txt to be able to edit this file type:

sudo nano config.txt

Step 4: Editing the Config File From the Pi's Terminal (continued)

Picture of Editing the Config File From the Pi's Terminal (continued)
When the config.txt file opens look for the comment saying #Uncomment to force a specific HDMI Mode
1. Right bellow that line should copy and paste or type the following- we will force the resolution of our screen out
hdmi_group=2
hdmi_mode =1 
hdmi_mode=87
hdmi_cvt=800 480 60 6 0 0 0

2. Save the file by pressing --> Control+X then Y and finally Enter

3. Type

cd

4. Finally check if it worked by rebooting your pi with:

sudo reboot

Comments

lcraig09 (author)2017-09-19

Hi is the second way from step 3? Or should you do the first two before doing step 3 and 4.

HeinzB6 (author)2017-09-16

Thanks a lot.

-- Heinz

idriss (author)2016-11-09

It's 800x480, not 800x400

NemesisC (author)idriss2016-11-09

Thanks for the catch!

Wush (author)NemesisC2016-11-12

my config file is protected, and the system won't let me edit it. How can I change the file's properties so that I can edit it?

NemesisC (author)Wush2016-11-13

Hey Wush !

Did you use the sudo command to access the file? Sudo just tells the pi you are the super user that has access to any file.

sudo nano config.txt?

Wush (author)NemesisC2016-11-13

thanks Nemesis, I'm very new to this, that worked. Thanks

About This Instructable

4,049views

72favorites

License:

Bio: Electrical Engineer
More by NemesisC:The Glow CloudHow to Desolder Headers Happy Birthday Tune using Circuit Playground
Add instructable to: