[[Category:OLEDs / LCDs]] [[Category:LCD]] [[Category:Raspberry Pi LCD]]
{{Infobox item
|name=[[7inch HDMI LCD (B)]]
|img =
[[File:7inch-HDMI-LCD-B_l.jpg|alt|7inch HDMI LCD (B)|300px|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=http://www.waveshare.com/7inch-HDMI-LCD-B.htm}}]]
[[File:7inch-HDMI-LCD-Bicolor-Holder-intro.jpg|300px|alt|7inch HDMI LCD (B)(with bicolor case)|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=http://www.waveshare.com/7inch-hdmi-lcd-b-with-bicolor-case.htm}}]]
|platform=Supports various systems
|category=[[:Category:OLEDs / LCDs|OLEDs / LCDs]], [[:Category:LCD|LCD]], [[:Category:Raspberry Pi LCD|Raspberry Pi LCD]]
|userdefinedinfo=Part Number|userdefinedvalue=7inch HDMI LCD (B)
|brand=Waveshare
|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
|website_cn=[https://www.waveshare.net/shop/7inch-HDMI-LCD-B.htm 7inch HDMI LCD (B)]
|website_en=[https://www.waveshare.com/7inch-hdmi-lcd-b.htm 7inch HDMI LCD (B)]
|interface1 =USB
|interface2 =HDMI
|related=
{{Product List|Mini PC/Raspberry Pi/Displays}}
}}
== '''Introduction''' ==
7 inch Capacitive Touch Screen LCD, HDMI interface, with a resolution of 800 × 480and a capacitive touch panel, which supports Raspberry Pi and can also be used as a computer monitor.
{{Amazon|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
|More = [http://www.waveshare.com/7inch-HDMI-LCD-B.htm More]}}
== '''Features''' ==
*800 × 480 hardware resolution.
*5-point capacitive touch control.
*When used with Raspberry Pi, supports Raspberry Pi OS / Ubuntu / Kali and Retropie.
*When used as a computer monitor, supports Windows 11/10/8.1/8/7.
*Support backlight control, saving more power.
=='''Working with PC'''==
This LCD can support Windows 7/8/8.1/10/11 system.
How to use:
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.
Note:
1) 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.
2) Some PCs do not support plug-and-play with HDMI devices. Generally, they can be used normally after restarting the system.
3) Some PCs may cause LCD flickering due to insufficient power supply through the USB interface. Generally, they can be used normally after connecting to an external 5V/2A power supply through the DC interface.
==''' Working with Raspberry Pi'''==
This LCD can support Raspberry Pi OS / Ubuntu / Kali and Retropie systems. When the LCD works on systems such as Raspberry Pi OS, the resolution must be set manually, otherwise, it will cause an abnormal display.
Please download the latest version of the image on the [https://www.raspberrypi.com/software/operating-systems/ 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, and use [https://files.waveshare.com/upload/d/d7/Panasonic_SDFormatter.zip SDFormatter] software to format the TF card.
3) Open the [https://files.waveshare.com/upload/7/76/Win32DiskImager.zip Win32DiskImager] 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.
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
hdmi_drive=1
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.
=EDID Sequence Parameters=
If the system of the main control board can automatically recognize the EDID for display, there is no need to additionally set related timing parameters.
Otherwise, you can refer to the following EDID settings:
{| class="wikitable"
! Pixel Clock !! H Addressable!! H Blanking !! V Addressable!! V Blanking !! H Front Porch !! H Sync Width !! V Front Porch !! V Sync Width !! H Image Size !! V Image Size !! H Border !! V Border
|-
| 32.00 || 800 || 128 || 480 || 45 || 40 || 48 || 13 || 3 || 108 || 68 || 0 || 0
|}
=='''Resources'''==
*[https://files.waveshare.com/upload/1/19/7inch_HDMI_LCD_%28B%29_User_Manual.pdf 7inch HDMI LCD (B) User Manual]
=== Software ===
*[https://files.waveshare.com/upload/d/d7/Panasonic_SDFormatter.zip Panasonic SDFormatter]
*[https://files.waveshare.com/upload/7/76/Win32DiskImager.zip Win32DiskImager]
*[https://files.waveshare.com/upload/5/56/Putty.zip PuTTY]
===Backlight Control===
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
*[https://files.waveshare.com/upload/5/56/PWM_control_backlight_manual.pdf PWM control brightness of LCD]
=== 3D Drawings ===
* [https://files.waveshare.com/upload/f/f4/7inch_cad.zip 7inch HDMI LCD B/C Drawings]
=== LCD Panel Dimension ===
* [https://files.waveshare.com/upload/3/34/7inch-hdmi-lcd-b-panel-dimension.pdf 7inch HDMI LCD (B) panel dimension]
===Assembly tutorial===
*[https://www.waveshare.com/img/devkit/accessories/7inch-HDMI-LCD-Bicolor-Holder/7inch-HDMI-LCD-C-assemble.jpg Assembly tutorial with 7inch HDMI LCD (B) (with bicolor case)]
= '''FAQ'''=
{{FAQ|How to remove the colored squares from the GPU self-test when booting the Raspberry Pi?
|
Add the following commands at /boot/config.txt:
disable_splash=1
||}}
{{FAQ|How to replace the Raspberry Pi start-up logo?
|
Replace it with the picture in /usr/share/plymouth/themes/pix/splash.png.
||}}
{{FAQ|How to set long press touch on Raspberry Pi capacitive touch screen?
|
'''Test environment: 2022-04-04-raspios-bullseye-armhf 32-bit system'''
'''Supported models: Support Waveshare DSI LCD, DPI LCD and HDMI LCD capacitive touch screen series.'''
===Software Installation===
Enter the command:
sudo evdev-rce
After running, you can touch and long press to realize the right-click function.
====Set IP====
Add in 99-uinput.rules file.
KERNEL=="uinput", MODE="0660", GROUP="input"
save it and run it in the terminal.
Then reboot:
sudo reboot
Run after reboot (no sudo needed at this point)
evdev-rce
After running, you can touch and long press to realize the right-click function.
====Set Startup====
Enter the terminal
sudo mkdir ~/.config/autostart
sudo nano ~/.config/autostart/right_click.desktop
Add the following in right_click.desktop.
[Desktop Entry]
Version=1.0
Type=Application
Name=evdev-rce
GenericName=Enable long-press-to-right-click gesture
Exec=env LONG_CLICK_INTERVAL=1000 LONG_CLICK_FUZZ=200 /usr/local/bin/evdev-rce
Terminal=true
StartupNotify=false
#If you want to modify the sensitivity, you can modify the size of the two parameters, LONG_CLICK_INTERVAL=1000 LONG_CLICK_FUZZ=200.
||}}
{{FAQ|What is the refresh rate of this screen?
|60hZ
||}}
{{FAQ|Does this screen not automatically rest, or do I have to execute a command to rest the screen?
|
Depending on the system, if there's a sleep function, the screen might go black when it activates. The official Raspberry Pi OS typically enters sleep mode after around ten minutes of inactivity.
||}}
{{FAQ|What can I do if the thin red lines appear on the edge of the screen?
|
*Edit the config.txt and add this line at the end of the config.txt file:
hdmi_drive=1
}}
{{FAQ|How to use the touch function when connected to a Linux PC that is non-designated?
|You can try to compile the universal touch driver "hid-multitouch" into the kernel, which generally can make the touch function work.
}}
{{FAQ|What is the working current for the 7inch HDMI LCD (B) when it works normally?
|Using 5V power supply, the working current of turning on the backlight is about 490mA, and the working current of turning off the backlight is about 90mA.
}}
{{FAQ|7inch HDMI LCD (B) how to use PWM to control the backlight? |
As shown in the figure below, change serial number 2 to 68K resistor, serial number 3 to 5.1K resistor, and remove serial number 1 resistor.
Then connect the PWM pad to the P1 pin of the Raspberry Pi.
Execute the following command on the Raspberry Pi terminal:
gpio -g pwm 18 0
gpio -g mode 18 pwm (occupied pins are PWM pins)
gpio pwmc 1000
gpio -g pwm 18 X (X ranges from 0 to 1024), 0 is the brightest, 1024 is the darkest
[[File:7inch HDMI LCD (B)_PWM_.png|600px]]
|||}}
{{FAQ|How to control the backlight with PWM on 7inch HDMI LCD (B)?
|
As shown in the diagram below, solder R80 to a 68K resistor instead, R59 to a 5.1K resistor, and remove the R56 resistor.
Then connect the PWM pad to the P1 pin of the Raspberry Pi.
Execute the following command in the Raspberry Pi terminal:
gpio -g pwm 18 0
gpio -g mode 18 pwm (occupied pins are PWM pins)
gpio pwmc 1000
gpio -g pwm 18 X (X value between 0 and 1024), 0 is the brightest, and 1024 is the darkest.
[[File: 7inch HDMI LCD (B)-faq.png]]
[[File: 7inch HDMI LCD (B)-faq2.png]]
||}}
== '''Anti-Piracy''' ==
{{RPi LCD Anti-Piracy}}
==
'''Beware of knock-offs''' ==
{{Beware of knock-offs}}
=Support=
{{Servicebox1}}
[[Category:OLEDs / LCDs|OLEDs / LCDs]] [[Category:LCD|LCD]] [[Category:Raspberry Pi|Raspberry Pi]] [[Category:Raspberry Pi LCD|Raspberry Pi LCD]]