Difference between revisions of "5inch DSI LCD"

From Waveshare Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 34: Line 34:
  
 
=='''FAQ'''==
 
=='''FAQ'''==
 +
{{FAQ|What is the power consumption of 5inch DSI LCD?
 +
|With a 5V power supply, the operating current for the maximum brightness is about 250mA and the operating current for the minimum brightness is about 150mA.
 +
||}}
 +
 +
 +
<!--
 
{{FAQ|Cameras cannot work when using the 2021-10-30-raspios-bullseye-armhf image.
 
{{FAQ|Cameras cannot work when using the 2021-10-30-raspios-bullseye-armhf image.
 
|Please configure as below and try to use the camera again.
 
|Please configure as below and try to use the camera again.
Line 43: Line 49:
  
 
{{FAQ|What is the working current of the display?
 
{{FAQ|What is the working current of the display?
|With 5V power, the working current of Pi 4 only is about 450mA~500mA. <br />
+
|
 +
With 5V power, the working current of Pi 4 only is about 450mA~500mA. <br />
 
With 5V power, the working current of Pi 4 + 5inch DSI LCD is about 700mA ~ 750mA (brightest). <br />
 
With 5V power, the working current of Pi 4 + 5inch DSI LCD is about 700mA ~ 750mA (brightest). <br />
 
With 5V power, the working current of Pi 4 + 5inch DSI LCD is about 550mA ~ 600mA (darkest). <br />
 
With 5V power, the working current of Pi 4 + 5inch DSI LCD is about 550mA ~ 600mA (darkest). <br />
Line 49: Line 56:
 
{{FAQ|My question is if there is any way to completely turn off the screen/backlight?
 
{{FAQ|My question is if there is any way to completely turn off the screen/backlight?
 
|It needs to make a modification of the hardware of the LCD.
 
|It needs to make a modification of the hardware of the LCD.
1.Replace the resistor shown in the red box with a 75k resistor. <br />
+
1. Replace the resistor shown in the red box with a 75k resistor. <br />
 
[[File:5inch-DSI-LCD-faq.png]]<br />
 
[[File:5inch-DSI-LCD-faq.png]]<br />
 
With 5V power, the working current of Pi 4 + 5inch DSI LCD is about 550mA ~ 600mA (darkest). <br />
 
With 5V power, the working current of Pi 4 + 5inch DSI LCD is about 550mA ~ 600mA (darkest). <br />
2.And then use the commands provided on our wiki<br />
+
2. And then use the commands provided on our wiki<br />
 
Use the command <br />
 
Use the command <br />
 
echo 0 > /sys/class/backlight/rpi_backlight/brightness <br />
 
echo 0 > /sys/class/backlight/rpi_backlight/brightness <br />
 
to directly turn off the backlight.<br />
 
to directly turn off the backlight.<br />
 
}}
 
}}
{{FAQ|Can a 5inch DSI LCD control the backlight with an external PWM signal?
+
-->
 +
{{FAQ|Can a 5-inch DSI LCD control the backlight with an external PWM signal?
 
|The default state is to support software adjustment, it is recommended to view [[#Backlight Control]], you can also weld PWM to control the backlight as follows:<br/>
 
|The default state is to support software adjustment, it is recommended to view [[#Backlight Control]], you can also weld PWM to control the backlight as follows:<br/>
 
As shown in the figure below, first remove the original soldered resistor, and then connect the pad (left pad) of the resistor to the P1 pin of the Raspberry Pi, and you can use GPIO to control the backlight.<br/>
 
As shown in the figure below, first remove the original soldered resistor, and then connect the pad (left pad) of the resistor to the P1 pin of the Raspberry Pi, and you can use GPIO to control the backlight.<br/>
Line 67: Line 75:
 
*gpio -g pwm 18 X (X is between 0 and 1024, 0 is the darkest, and 1024 is the brightest)
 
*gpio -g pwm 18 X (X is between 0 and 1024, 0 is the darkest, and 1024 is the brightest)
 
*PS: In order to ensure a good customer experience, the default factory minimum brightness is the visible state. If you need to completely turn off the backlight to achieve a black screen effect, please manually change the 100K resistor as shown below to a 68K resistor:
 
*PS: In order to ensure a good customer experience, the default factory minimum brightness is the visible state. If you need to completely turn off the backlight to achieve a black screen effect, please manually change the 100K resistor as shown below to a 68K resistor:
[[File:5inch-DSI-faq02.png]]<br/>
+
[[File:4.3DSI-brightness-2.png]]<br/>
 +
}}
  
 
== '''Anti-Piracy''' ==
 
== '''Anti-Piracy''' ==

Latest revision as of 09:53, 22 March 2023

5inch DSI LCD
5inch-DSI-LCD-1.jpg

5inch capacitive Touch Screen LCD for Raspberry Pi
DSI Interface
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Introduction

5inch Capacitive Touch Display for Raspberry Pi, 800 × 480, TFT Wide Angle, MIPI DSI Interface.

Features

  • 5inch TFT screen, hardware resolution is 800 x 480.
  • Capacitive touch panel, support 5-point touch.
  • Tempered glass capacitive touch panel, hardness up to 6H.
  • Supports Pi 4B/3B+/3A+/3B/2B/B+/A+. Another DSI-Cable-15cm is required for CM3/3+/4.
  • DSI interface, refresh rate up to 60Hz.
  • When used with Raspberry Pi, it supports Raspberry Pi OS / Ubuntu / Kali and Retropie without a driver.
  • Supports backlight brightness control with the software.

User guide

Hardware connection

  • Using the FFC cable, connect the 5inch DSI LCD to the DSI port of the Raspberry Pi.
  • For easy use, you can fix the Raspberry Pi on the backside of the 5inch DSI LCD by screws.
4.3inch-DSI-LCD-2.jpg

Software setting

Supports Raspberry Pi OS / Ubuntu / Kali and Retropie systems for Raspberry Pi.
1) Download image from the Raspberry Pi website.

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

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

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

5) After the programming is completed, open the config.txt file in the root directory of the TF card, add the following code at the end of config.txt, save and eject the TF card safely.

dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-7inch

6) Power on the Raspberry Pi and wait for a few seconds until the LCD displays normally. And the touch function can also work after the system starts.

Backlight Control

The backlight brightness can be controlled by entering the following commands in the terminal:

echo X > /sys/class/backlight/10-0045/brightness

Where X indicates any number from 0 to 255. 0 means the backlight is the darkest, and 255 means the backlight is the brightest. For example:

echo 100 > /sys/class/backlight/10-0045/brightness
echo 0 > /sys/class/backlight/10-0045/brightness
echo 255 > /sys/class/backlight/10-0045/brightness

In addition, Waveshare provides a corresponding application (which is only available for the Raspberry Pi OS system), which users can download and install by the following way:

wget https://www.waveshare.com/w/upload/f/f4/Brightness.zip
unzip Brightness.zip
cd Brightness
sudo chmod +x install.sh
./install.sh

Once the installation is complete, the demo can be opened in the Start Menu -> Accessories -> Brightness, as follows: 43H-800480-IPS07.GIF

Sleep

Run the following commands on the Raspberry Pi terminal, and the screen will enter sleep mode:

xset dpms force off

Disable touch

At the end of the config.txt file, add the following commands corresponding to disabling touch (the config file is located in the root directory of the TF card, and can also be accessed through the command: sudo nano /boot/config.txt):

disable_touchscreen=1

Note: After adding the command, it needs to be restarted to take effect.

FAQ

 Answer:
With a 5V power supply, the operating current for the maximum brightness is about 250mA and the operating current for the minimum brightness is about 150mA.

{{{5}}}



 Answer:
The default state is to support software adjustment, it is recommended to view #Backlight Control, you can also weld PWM to control the backlight as follows:

As shown in the figure below, first remove the original soldered resistor, and then connect the pad (left pad) of the resistor to the P1 pin of the Raspberry Pi, and you can use GPIO to control the backlight.
5inch-DSI-faq.png

  • gpio -g pwm 18 0
  • gpio -g mode 18 pwm (the occupied pins are PWM pins)
  • gpio pwmc 1000
  • Control brightness:
  • gpio -g pwm 18 X (X is between 0 and 1024, 0 is the darkest, and 1024 is the brightest)
  • PS: In order to ensure a good customer experience, the default factory minimum brightness is the visible state. If you need to completely turn off the backlight to achieve a black screen effect, please manually change the 100K resistor as shown below to a 68K resistor:

4.3DSI-brightness-2.png

{{{3}}}
{{{4}}}

{{{5}}}


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 open a ticket.