5inch HDMI LCD (B)

From Waveshare Wiki
Jump to: navigation, search
5inch HDMI LCD (B)
Supports various systems
5inch-HDMI-LCD-B-intro.jpg

5 inch Resistive Touch Screen LCD, HDMI interface, supports various systems
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Primary Attribute
Category: OLEDs / LCDs, LCD, Raspberry Pi LCD
{{{userDefinedInfo}}}: 5inch HDMI LCD (B)
Brand: Waveshare
Website
International: 5inch HDMI LCD (B)
Chinese: 5inch HDMI LCD (B)
Onboard Interfaces
USB HDMI
Related Products

Introduction

5 inch Resistive Touch Screen LCD, with a resolution of 800×480, which supports Raspberry Pi and can also be used as a computer monitor.

More

Features

  • 800x480 hardware resolution.
  • Resistive touch control.
  • Using with Raspberry Pi, it supports Raspbian / Ubuntu / Kali / Retropie and WIN10 IoT, no need to install any drivers.
  • Using as a computer monitor, it supports Windows 10 / 8.1 / 8 / 7, single touch, no need to install any drivers.
  • Support backlight control, more power saving.

Video

Working with PC

This LCD can support Windows 7/8 / 8.1 / 10 system.

1) Turn on the backlight switch on the back of the LCD.

2) Connect the Touch interface of the LCD to the USB interface of the PC. Wait for a while, the windows will automatically recognize the touch function.

3) Connect the HDMI interface of the LCD to the HDMI interface of the PC.

Normally you can see an interface similar to the following figure. (Some PCs may need to be restarted to display)

5inch-HDMI-LCD-B-Rev2.1-00.jpg

Note: When the computer is connected to several different displays at the same time, only this LCD can be used to control the cursor on the main display, so we recommended to set this LCD as the main display.


Calibration touch on Win 10 PC

Take the windows10 system as an example:

  • 1. Enter the Windows settings of the system, type in the search bar and click "Calibrate the screen for pen or touch input" (as shown in the picture below)

Win10 touch011.png

  • 2. Click "Setup" in the pop-up "Tablet PC Settings" interface:

Win10 touch02.png


  • 3. The following text prompt will appear on the screen. Please tap the touch screen with your finger, and the computer will recognize it as a touch screen.

【Note】If the touch screen is blank, press the "Enter" key, and the text prompt will switch to the touch screen. (The screen which displays the text prompt will be used as a touch screen!)

Win10 touch03.png

Working with Raspberry Pi

This LCD can support Raspbian / Ubuntu / Kali / Retropie and WIN10 IoT systems. When the LCD works on systems such as Raspberry Pi, the resolution must be set manually, otherwise, it will cause abnormal display. There is no such problem when the LCD works on the PC version of Windows.

Please download the latest version of the image on the Raspberry Pi official website.

1) Download the compressed file to the PC, and unzip it to get the .img file.

2) Connect the TF card to the PC, use SDFormatter.exe software to format the TF card.

3) Open the Win32DiskImager.exe software, select the system image downloaded in step 1, and click‘Write’ to write the system image.

4) After the image has finished writing, open the config.txt file in the root directory of the TF card, add the following code at the end of config.txt, then save and quit the TF card safely.

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

You must make sure that there are no spaces on either side of the equal sign.

5) Insert the TF card into the Raspberry Pi.

6) Turn on the backlight switch on the back of the LCD.

7) Connect the Touch interface of the LCD to the USB interface of the Raspberry Pi.

8) Connect the HDMI interface of the LCD to the HDMI interface of the Raspberry Pi, power on the Raspberry Pi, and wait for a few seconds until the LCD displays normally.

Note: Resolution of Ubuntu Mate OS or Windows 10 IoT Core OS can also be set properly by editing config.txt.

Calibration in Raspbian

If a latest Raspbian OS is in used, you should connect your Pi to the internet and install xserver-xorg-input-evdev.

sudo apt-get install xserver-xorg-input-evdev
  • Just be sure that evdev.conf has a higher number than 40-libinput.conf. For example, rename 10-evdev.conf to 45-evdev.conf. this forces evdev to load after libinput.
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
sudo reboot

This LCD can be calibrated using a program called xinput_calibrator and you should get and install the program manually with

sudo apt-get install -y xinput-calibrator

Enter the following commands for touch screen calibration:

sudo DISPLAY=:0.0 xinput_calibrator

or select Menu -> Preferences -> Calibrate Touchscreen.

After running these commands, there will be a prompt for four-point calibration shown in the LCD screen. Click the points one by one to finish the touch calibration. Then, the new calibration data will be displayed in the terminal, such as the following data. Please save these data for future use.

Doing dynamic recalibration:
Setting new calibration data: 3919, 208, 236, 3913

Enter the following command to edit 40-libinput.conf:

sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf

Save the touch parameters (may differ depending on LCD) to the end of 40-libinput.conf, as shown in the picture:

5inch HDMI LCD FAQ1.jpg

Press the keys Ctrl+X, and select the option Y to save the modification.

The modification will be valid after rebooting the system. Enter the following command for system reboot:

sudo reboot

Resources

User Manual

Software

LCD Panel Dimension

3D drawing

Backlight Control

Note: We don't recommend you to do any hardware modification, which may damage LCD if you are not good at it. So be careful when you following this manual

FAQ

Question:
What should I do if I connect to the PC with LCD and it cannot display normally?
Answer:
  • Make sure that the HDMI interface of the PC can output normally.
  • The PC only connects to this LCD as a monitor without others.
  • You should connect the touch cable first and then the HDMI cable.
  • Some PC need to be restarted to make the 7inch HDMI LCD display normally.

Note: The PC must use windows system.


Question:
Do I need an external power supply when I use 5inch HDMI LCD (B) connect to Raspberry Pi?
Answer:
When the Raspberry Pi is powered by a 5V 2A power adapter and connects to 5inch HDMI LCD (H), it doesn’t require an external power supply by default. However, if the user uses the Raspberry Pi to drive other high-power devices at the same time, the USB interface on the Raspberry Pi may be insufficiently powered, at this time an external power supply is required.


Question:
What can I do if the thin red lines appear on the edge of the screen?
Answer:
  • Edit the config.txt and add this line at the end of the config.txt file:
hdmi_drive=1


Question:
How to use the touch function when connected to a Linux PC which is non-designated?
Answer:
You can try to compile the universal touch driver "hid-multitouch" into the kernel, which generally can make the touch function work.


Question:
What is the consumption of 5inch HDMI LCD (B)?
Answer:

With 5V power input, the working current is about 385mA when the backlight is on, 195mA when the backlight is off.


Question:
Can the brightness of 5inch HDMI LCD (B) be adjusted by modifying the resistance?
Answer:
The screen brightness can be changed by modifying the resistance of the resistor in the figure below, the default resistance is 2.7 ohms.

5inch HDMI LCDB FAQ2.png



Anti-Piracy

Since the first-generation Raspberry Pi released, Waveshare has been working on designing, developing, and producing various fantastic touch LCDs for the Pi. Unfortunately, there are quite a few pirated/knock-off products in the market. They're usually some poor copies of our early hardware revisions, and comes with none support service.

To avoid becoming a victim of pirated products, please pay attention to the following features when purchasing:

RPi-LCD-Anti-Piracy.jpg

(Click to enlarge)

Beware of knock-offs

Please note that we've found some poor copies of this item in the market. They are usually made of inferior materials and shipped without any testing.

You might be wondering if the one you're watching or you've purchased in other non-official stores is original, feel free to contact us.

Support

If you require technical support, please go to the Support page and post a tickets.