7 Inch DIY Touch Screen

From Wiki
Jump to: navigation, search

Supporting the Seven-inch Screen

Use a nut (M3) and a copper post (M3 * 8 + 6) to support the seven-inch touch screen.

7-inch.jpg

Rendering

7-inch1.jpg

This 7-inch touch screen is compatible with any version of the Raspberry Pi.

With a Raspberry Pi 4

Connect the Raspberry Pi 4 to HDMI with a micro HDMI cable.

7-inch2.jpg

Wire the USB cable up to Raspberry Pi 4.

7-inch3.jpg

Give it a power supply, Plug and play.

7-inch4.jpg

Adjust the Resolution of Raspberry Pi 4

Step 1: Unfold the menu bar of Raspberry Pi.

7-inch5.jpg

Step 2: Select screen configuration.

7-inch6.jpg

Step 3: Select Configure.

7-inch7.jpg

Step 4: Select Screens.

7-inch8.jpg

Step 5: Choose the resolution you want.

7-inch9.jpg

With a Raspberry Pi 3

Plug a dual-head HDMI cable in Raspberry Pi 3.

7-inch10.jpg

Connect the Raspberry Pi 3 with a USB cable.

7-inch11.jpg

Attach a power supply to it, turn it on.

7-inch12.jpg

Adjust the Resolution of Raspberry Pi 3

Step 1: Open config.txt

There are two methods to do so. 
Method A:First prepare a computer on Windows, Mac or Linux, and a TF card on which the Raspbian system has been burnt. Plug the TF card into the computer with a card reader.Now, open /boot and find the config.txt file. If your computer runs on Windows, DO NOT open the file by Word (also better not notepad) in case of format issues. You are advised to use other edit tools like Notepad++ . 
Method B:Log in to Raspberry Pi remotely. Run the command to edit config.txt

sudo nano /boot/config.txt

Step 2: Modify the /boot/config.txt file

In either way, now the file config.txt is opened. 
1.Define a custom CVT mode (since Raspberry Pi uses the standard rate when 1024x600 is not included,you need to set the aspect ratio as 16:9, i.e. 1024x576) add the following lines below #hdmi_force_hotplug=1.

hdmi_cvt=1024 576 60 3 0 0 0

hdmi_cvt=<width> <height> <framerate> <aspect> <margins> <interlace>
7-inch13.jpg

2.Find the following lines (If there is a "#" mark at the beginning of any of the three lines, which means they are comments, delete the mark. The asterisk "*" represents the value.

hdmi_group=*
hdmi_mode=*
hdmi_drive=*

3.Modify the value,like this: 

hdmi_group=2
hdmi_mode=87
....
hdmi_drive=2

hdmi_group=2 means DMT (Display Monitor Timings; the standard typically used by monitors)
hdmi_mode=87 indicates the resolution bit. 
hdmi_drive=2 selects the Normal HDMI mode. 
For more details about configuring config.txt, refer to Raspberry Pi official website: https://www.raspberrypi.org/documentation/configuration/config-txt.md.
After the modification is done, save and exit. 

Step 3: Connect Raspberry Pi
If you change the commands on your PC, after mounting the TF card safely, plug it into the Raspberry Pi. Then connect the power of the Raspberry Pi and the display. 
If you log in the Raspberry Pi remotely with ssh, type in the command sudo reboot