Difference between revisions of "7inch DSI LCD (C)"

From Waveshare Wiki
Jump to: navigation, search
Line 52: Line 52:
 
|||}}
 
|||}}
 
</div>
 
</div>
 
+
{{Service00}}
 
 
{{Service02}}
 
  
 
[[Category:OLEDs / LCDs|OLEDs / LCDs]] [[Category:LCD|LCD]] [[Category:Raspberry Pi|Raspberry Pi]] [[Category:Raspberry Pi LCD|Raspberry Pi LCD]]
 
[[Category:OLEDs / LCDs|OLEDs / LCDs]] [[Category:LCD|LCD]] [[Category:Raspberry Pi|Raspberry Pi]] [[Category:Raspberry Pi LCD|Raspberry Pi LCD]]

Revision as of 03:12, 31 August 2022

7inch DSI LCD (C)
7inch DSI LCD (C)

7inch capacitive Touch Screen LCD for Raspberry Pi
DSI Interface, 1024 x 600 resolution
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

Features

  • 7inch IPS display with a capacitive touch panel, and its hardware resolution is 1024 x 600.
  • Supports up to 5-point capacitive touch.
  • Toughened glass capacitive touch panel with 6H hardness.
  • DSI interface, refresh rate up to 60Hz.
  • Working with Raspberry Pi, we provide the driver for Raspberry Pi OS.
  • Brightness is adjustable by software.
  • Support Pi 4B/3B+/3A+, CM3+/4 must be used with adapter cable.

Working with Raspberry Pi

Hardware Connection

  1. Connect the 7inch DSI LCD (C) (display hereafter) to the DSI interface of Raspberry Pi boards by 15PIN FPC cable.
  2. For the convenience of use, you can fix the Raspberry Pi board to the backside of the display by standoffs and screws provided.
  3. Connect the 4PIN cable between the display and the 40PIN of Raspberry Pi according to the picture below.

7inch DSI LCD C Wiring.jpg
The final connection is shown below:
7inch-DSI-LCD-C-5.jpg

Software Setting

Method 1: Install Manually

  1. Download the image of the newest version Raspberry Pi, download the compressed file to the PC, and extract the .img file.
  2. Connect TF card to PC, use SDFormatter to format TF card.
  3. Open Win32DiskImager software, select the system image prepared in step 1 and click write to burn the system image.
  4. After the programming is completed, connect the TF card to the Raspberry Pi, start the Raspberry Pi, and log in to the terminal of the Raspberry Pi (you can connect the Raspberry Pi to an HDMI display or log in remotely with ssh).
#Step 1: Download and enter the Waveshare-DSI-LCD driver folder
git clone https://github.com/waveshare/Waveshare-DSI-LCD
cd Waveshare-DSI-LCD
 
#Step 2: Enter uname -a in the terminal to view the kernel version and cd to the corresponding file directory
#6.1.21 then run the following command
cd 6.1.21
 
#Step 3: Please check the bits of your system, enter the 32 directory for 32-bit systems, and enter the 64 directory for 64-bit systems
cd 32
#cd 64
 
#Step 4: Enter your corresponding model command to install the driver, pay attention to the selection of the I2C DIP switch
#7inch DSI LCD (C) 1024×600 driver:
sudo bash ./WS_xinchDSI_MAIN.sh 70C I2C1
 
#Step 5: Wait for a few seconds, when the driver installation is complete and no error is prompted, restart and load the DSI driver and it can be used normally
sudo reboot

Note: The above steps need to ensure that the Raspberry Pi can be connected to the Internet normally.
5. Wait for the system to restart, it will be able to display and touch normally.


Method 2: Program Pre-install Image

1. Select your corresponding Raspberry Pi version image, download and decompress it as ".img" file.
Raspberry Pi 4B/CM4 version download: Waveshare DSI LCD - Pi4 pre-install image
Raspberry Pi 3B/3B+/CM3 version download: Waveshare DSI LCD - Pi3 pre-install image
2. Connect the TF card to the PC and use SDFormatter to format the TF card.
3. Open Win32DiskImager software, choose the system image prepared in the first step, and then click "write" to write the system image.
4. After the programming is finished, open the config.txt file in the root directory of the TF card, add the following code under [all], save and eject the TF card safely.

dtoverlay=WS_xinchDSI_Screen,SCREEN_type=2,I2C_bus=1
dtoverlay=WS_xinchDSI_Touch,I2C_bus=1

5. Connect the TF card to the Raspberry Pi, and start the Raspberry Pi, wait for about 30 seconds to display and touch normally.

Rotation

Method 1

In the start menu, select: Preferences -> Screen Configuration -> Configure -> Screens -> DSI-1 -> Orientation, select the corresponding angle in it, click "√", select Yes, and reboot.
4inch-DSI-LCD-Manual-02.jpg

Method 2: Rotation Display In Lite Version

sudo nano /boot/cmdline.txt
#Add a command corresponding to the display rotation angle at the beginning of the cmdline.txt file, save it and restart it to take effect
#display rotated 90 degrees
video=DSI-1:1024x600M@60,rotate=90
#display rotated 180 degrees
video=DSI-1:1024x600M@60,rotate=180
#display rotated 270 degrees
video=DSI-1:1024x600M@60,rotate=270

Touch To Rotate

sudo nano /boot/config.txt
#Modify the instruction of the touch rotation angle at the end of the config.txt file, and it will take effect after restarting (there is a 0° touch direction instruction by default)
#90°:
dtoverlay=WS_xinchDSI_Touch,invertedx,swappedxy,I2C_bus=1
#180°:
dtoverlay=WS_xinchDSI_Touch,invertedx,invertedy,I2C_bus=1
#270°:
dtoverlay=WS_xinchDSI_Touch,invertedy,swappedxy,I2C_bus=1
#0°:
dtoverlay=WS_xinchDSI_Touch,I2C_bus=1

Backlight Control

Method 1: Graphical Interface Dimming

Using the application provided by Waveshare:

cd Waveshare-DSI-LCD
# Determine the currently used kernel version, such as the 5.15.61 kernel, and run the following command
cd 5.15.61
#Check the bits of the system, 32-bit system enters 32 directory, 64-bit system enters 64 directory
cd 32
#cd 64
cd Backlight
sudo ./install.sh

After the installation is complete, you can open the program in the Start menu - > Accessories - > Brightness, as shown below:
Top-2.png

Method 2: Lite Version Dimming Command

To adjust the system command of the lite version, after entering the root privilege, execute the following command on the Raspberry Pi terminal:

echo X > /sys/waveshare/rpi_backlight/brightness

(X value in the range of 0~255)
For example:

sudo su root
echo 100 > /sys/waveshare/rpi_backlight/brightness


Notes

1. Update the system:

sudo apt-get update
sudo apt-get full-upgrade

After updating the system, some files of the originally installed driver will be overwritten, in this case, the driver needs to be reinstalled to display normally.

2. Replace the board:

If the driver was originally installed on Raspberry Pi 4 Model B, the user replaces the motherboard, such as modifying it to Raspberry Pi 3 Model B+, which will cause the display to fail to display normally. Because Pi4 and Pi3 need to load different driver files.

In this case, the driver needs to be reinstalled on the new motherboard to display normally.

Resources

Pre-built image

External guides

Software

3D drawing

FAQ

 Answer:
Execute the following commands:

sudo raspi-config -> Advanced Options -> Glamor -> Yes(Enabled) -> Ok -> Finish -> Yes(Reboot)


Support

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