Difference between revisions of "5inch HDMI LCD (B)"

From Waveshare Wiki
Jump to: navigation, search
m (Text replace - "|textwhite=yes" to "")
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Modules| ]][[category:Multi Color LCD| ]][[Category:Raspberry Pi LCD]][[Category:Raspberry Pi| ]]
+
{{Infobox item|colorscheme=blue
[[http://www.waveshare.net/wiki/5inch_HDMI_LCD_(B) 中文]]
 
==Resources==
 
{{Infobox item |colorscheme=green|bordercolorscheme=white
 
 
 
 
|name=[[5inch HDMI LCD (B)]]
 
|name=[[5inch HDMI LCD (B)]]
 
|brief=Supports various systems
 
|brief=Supports various systems
Line 9: Line 5:
 
|caption=5 inch Resistive Touch Screen LCD, HDMI interface, supports various systems
 
|caption=5 inch Resistive Touch Screen LCD, HDMI interface, supports various systems
 
|platform=Supports various systems
 
|platform=Supports various systems
|category=[[:Category:Multi Color LCD|Multi Color LCD]], [[:Category:Raspberry Pi LCD|Raspberry Pi LCD]]
+
|category=[[:Category:OLEDs / LCDs|OLEDs / LCDs]], [[:Category:LCD|LCD]], [[:Category:Raspberry Pi LCD|Raspberry Pi LCD]]
 
|userdefinedinfo=Part Number|userdefinedvalue=5inch HDMI LCD (B)
 
|userdefinedinfo=Part Number|userdefinedvalue=5inch HDMI LCD (B)
|manufacturer=Waveshare
+
|brand=Waveshare
 +
|{{#urlget:amazon|default}}=display
 
|website_cn=[http://www.waveshare.net/ 官方中文站点]
 
|website_cn=[http://www.waveshare.net/ 官方中文站点]
 
|website_en=[http://www.waveshare.com/ Waveshare website]
 
|website_en=[http://www.waveshare.com/ Waveshare website]
 +
|interface1 =USB
 +
|interface2 =HDMI
 +
|related=
 
}}
 
}}
{{Resource list|
+
== Introduction ==
*[http://www.waveshare.com/5inch-HDMI-LCD-B.htm Introduction]
+
5 inch Resistive Touch Screen LCD, HDMI interface, supports various systems
*[[:File:5inch-HDMI-LCD-B-UserManual.pdf|User Manual]]
+
 
*[[RPi_LCD_ApplicationNotes|Application notes]]
+
{{Amazon|{{#urlget:amazon|default}}=display
*[[DVK512_Software|Software]]
+
|More = [http://www.waveshare.com/5inch-HDMI-LCD-B.htm More]}}
*[[5INCH_HDMI_LCD_B_IMAGE|Image]]
+
== Working with PC ==
}}
+
Turn on the "backlight" switch then connect the LCD to your PC (USB Port of LCD -> USB Port of PC; HDMI Port of LCD -> HDMI Port of PC. Please first connect the USB Ports then connect the HDMI Port). A new touch drive will be recognized by Windows and you can use the LCD as a human interface device. When multiple displays are detected by your PC, the LCD can only be used to control the cursor on main display. So it is proposed to set the LCD as the main display.
==FAQ==
+
 
 +
== Working with Raspberry Pi ==
 +
For the Windows OS on PC, the resolution of the LCD is automatically identified. Hence, you do not need to make the relative settings. When working with Raspberry Pi, you should set the resolution of the LCD by yourself, or else the LCD screen will not work. For more detail information, please read the following section.
 +
 
 +
Turn on the "backlight" switch then connect the LCD to your Pi (HDMI Port of LCD -> HDMI Port of Pi; USB Port of LCD -> USB Port of Pi; 5V~2A power supply). Download the Raspbian image from [https://www.raspberrypi.org/downloads/ Raspberry Pi web site]. Write the image to a TF card and append the following lines to the config.txt file which is located in the root of your TF card:
 +
<pre>
 +
max_usb_current=1
 +
hdmi_group=2
 +
hdmi_mode=87
 +
hdmi_cvt 800 480 60 6 0 0 0
 +
hdmi_drive=1
 +
</pre>
 +
You must make sure that there are no spaces on either side of the equal sign.
 +
 
 +
Save and connect the TF card to your Pi then power up.
 +
 
 +
(Touch input working well means that the LED firmware is Rev2.1. If the LCD firmware is 1.1, see [[#About LCD revision]])
 +
 
 +
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, as shows below. Please get these data for future use.
 +
Doing dynamic recalibration:
 +
Setting new calibration data: 3919, 208, 236, 3913
 +
 
 +
Enter the following command to edit 99-calibration.conf:
 +
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
 +
 
 +
Then, the old calibration data will be displayed in the terminal:
 +
Section "InputClass"
 +
Identifier "calibration"
 +
MatchProduct "ADS7846 Touchscreen"
 +
Option "Calibration" "160 3723 3896 181"
 +
Option "SwapAxes" "1"
 +
EndSection
 +
 
 +
Modify the calibration data to the new calibration data displayed in the step 2):
 +
Section "InputClass"
 +
Identifier "calibration"
 +
MatchProduct "ADS7846 Touchscreen"
 +
Option "Calibration" "3919 208 236 3913"
 +
Option "SwapAxes" "1"
 +
EndSection
 +
 
 +
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
 +
 
 +
== About LCD revision ==
 +
An LCD with Rev 2.1 firmware does not require any drivers, that is, touch function works properly without installing any software. So we did not provide any drivers and images for Rev 2.1 LCDs. The following drivers are only available for the LCD with Rev 1.1 firmware. But if you install the driver for the Rev 2.1 one, it will lead touch function not to work.
 +
=== Rev2.1 New Features ===
 +
* Standard HID protocol, easy to be integrated into your system.
 +
* For the Raspberry Pi, supports Raspbian, Ubuntu Mate, single touch, and driver free.
 +
* When work as a computer monitor, supports Windows 10/8.1/8/7, single points touch, and driver free.
 +
 
 +
=== Rev1.1 and before ===
 +
* For the Raspberry Pi, comes with Raspbian driver (works with your Raspbian directly), and Ubuntu image
 +
* When work as a computer monitor, touch function is unavailable
 +
=== How to distinguish ===
 +
<!-- * See the backside of your LCD. The Revision number "Rev2.1" printed means that the LCD firmware is Rev 2.1.
 +
* However, "Rev1.1" printed on the backside doesn't mean that the LCD firmware must be Rev 1.1. -->Generally speaking, a LCD shipped after June 2016 is often a Rev 2.1 one.
 +
 
 +
'''Note:'''
 +
The only difference between Rev 1.1 and Rev 2.1 is the firmware, but hardware solutions, placement and routing are all the same. (PCB printings might be different due to different production batches.)
 +
 
 +
You can verify the firmware by these steps:
 +
 
 +
1. Using Raspberry Pi: Connect the LCD to your Pi (HDMI Port of LCD -> HDMI Port of Pi; USB Port of LCD -> USB Port of Pi; 5V~2A power supply). Download the image, e.g. Raspbian 2015-11-21 jessie or Raspbian 2015-05-05 wheezy, from [https://www.raspberrypi.org/downloads/ Raspberry Pi web site]. Write the image to a TF card and add the following code to the end of /boot/config.txt:
 +
<pre>
 +
max_usb_current=1
 +
hdmi_group=2
 +
hdmi_mode=87
 +
hdmi_cvt 800 480 60 6 0 0 0
 +
hdmi_drive=1
 +
</pre>
 +
You must make sure that there are no spaces on either side of the equal sign.
 +
 
 +
Save and connect the TF card to your Pi then power up. If touch works, that means the firmware revision is Rev 2.1.
 +
 
 +
2. Without Raspberry Pi: A PC (Windows 10/8.1/8/7) is required which cannot connect with other display device. Connect the LCD to your PC (USB Port of LCD -> USB Port of PC; HDMI Port of LCD -> HDMI Port of PC. Please first connect the USB Ports then connect the HDMI Port). If a new touch drive is recognized by Windows, that means the firmware revision is Rev 2.1. In this case, after the driver successfully installed, you can use the LCD as a human interface device.
 +
<!--
 +
* If the touch function doesn't work properly after these steps, the firmware revision is often Rev 1.1, which can also work by other methods, see [[7inch HDMI LCD (B) (Firmware Rev 1.1) User Manual|Rev 1.1 Manual]].
 +
 
 +
== Detailed information ==
 +
Depending on the firmware, please view the instructions of different revision:
 +
* [[7inch HDMI LCD (B) (Firmware Rev 2.1) User Manual]]
 +
* [http://www.waveshare.com/wiki/7inch_HDMI_LCD_(B)_(Firmware_Rev_1.1)_User_Manual 7inch HDMI LCD (B) (Firmware Rev 1.1) User Manual(Not support Raspberry Pi 3 Model B)]
 +
-->
 +
{{5inch HDMI LCD (B) Resources}}
 +
 
 +
== Anti-Piracy ==
 +
{{RPi LCD Anti-Piracy}}
 +
== <font color=red>Beware of knock-offs</font> ==
 +
{{Beware of knock-offs}}
 
==Support==
 
==Support==
 
{{Service00}}
 
{{Service00}}
 +
 +
[[Category:OLEDs / LCDs|OLEDs / LCDs]] [[Category:LCD|LCD]] [[Category:Raspberry Pi|Raspberry Pi]] [[Category:Raspberry Pi LCD|Raspberry Pi LCD]]

Revision as of 09:02, 28 September 2017

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}}}

Introduction

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

More

Working with PC

Turn on the "backlight" switch then connect the LCD to your PC (USB Port of LCD -> USB Port of PC; HDMI Port of LCD -> HDMI Port of PC. Please first connect the USB Ports then connect the HDMI Port). A new touch drive will be recognized by Windows and you can use the LCD as a human interface device. When multiple displays are detected by your PC, the LCD can only be used to control the cursor on main display. So it is proposed to set the LCD as the main display.

Working with Raspberry Pi

For the Windows OS on PC, the resolution of the LCD is automatically identified. Hence, you do not need to make the relative settings. When working with Raspberry Pi, you should set the resolution of the LCD by yourself, or else the LCD screen will not work. For more detail information, please read the following section.

Turn on the "backlight" switch then connect the LCD to your Pi (HDMI Port of LCD -> HDMI Port of Pi; USB Port of LCD -> USB Port of Pi; 5V~2A power supply). Download the Raspbian image from Raspberry Pi web site. Write the image to a TF card and append the following lines to the config.txt file which is located in the root of your TF card:

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.

Save and connect the TF card to your Pi then power up.

(Touch input working well means that the LED firmware is Rev2.1. If the LCD firmware is 1.1, see #About LCD revision)

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, as shows below. Please get these data for future use.

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

Enter the following command to edit 99-calibration.conf:

sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

Then, the old calibration data will be displayed in the terminal:

Section "InputClass"
Identifier	"calibration"
MatchProduct	"ADS7846 Touchscreen"
Option	"Calibration"	"160 3723 3896 181"
Option	"SwapAxes"	"1"
EndSection

Modify the calibration data to the new calibration data displayed in the step 2):

Section "InputClass"
Identifier	"calibration"
MatchProduct	"ADS7846 Touchscreen"
Option	"Calibration"	"3919 208 236 3913"
Option	"SwapAxes"	"1"
EndSection

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

About LCD revision

An LCD with Rev 2.1 firmware does not require any drivers, that is, touch function works properly without installing any software. So we did not provide any drivers and images for Rev 2.1 LCDs. The following drivers are only available for the LCD with Rev 1.1 firmware. But if you install the driver for the Rev 2.1 one, it will lead touch function not to work.

Rev2.1 New Features

  • Standard HID protocol, easy to be integrated into your system.
  • For the Raspberry Pi, supports Raspbian, Ubuntu Mate, single touch, and driver free.
  • When work as a computer monitor, supports Windows 10/8.1/8/7, single points touch, and driver free.

Rev1.1 and before

  • For the Raspberry Pi, comes with Raspbian driver (works with your Raspbian directly), and Ubuntu image
  • When work as a computer monitor, touch function is unavailable

How to distinguish

Generally speaking, a LCD shipped after June 2016 is often a Rev 2.1 one.

Note: The only difference between Rev 1.1 and Rev 2.1 is the firmware, but hardware solutions, placement and routing are all the same. (PCB printings might be different due to different production batches.)

You can verify the firmware by these steps:

1. Using Raspberry Pi: Connect the LCD to your Pi (HDMI Port of LCD -> HDMI Port of Pi; USB Port of LCD -> USB Port of Pi; 5V~2A power supply). Download the image, e.g. Raspbian 2015-11-21 jessie or Raspbian 2015-05-05 wheezy, from Raspberry Pi web site. Write the image to a TF card and add the following code to the end of /boot/config.txt:

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.

Save and connect the TF card to your Pi then power up. If touch works, that means the firmware revision is Rev 2.1.

2. Without Raspberry Pi: A PC (Windows 10/8.1/8/7) is required which cannot connect with other display device. Connect the LCD to your PC (USB Port of LCD -> USB Port of PC; HDMI Port of LCD -> HDMI Port of PC. Please first connect the USB Ports then connect the HDMI Port). If a new touch drive is recognized by Windows, that means the firmware revision is Rev 2.1. In this case, after the driver successfully installed, you can use the LCD as a human interface device.

Resources

Software

Resources

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

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

Support

If you require technical support, please go to the Support page and open a ticket.