Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MHS-4.0inch Display-B: Difference between revisions

From LCD wiki
Liang (talk | contribs)
Fang (talk | contribs)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 260: Line 260:
|-
|-
| rowspan="2" |Raspbian
| rowspan="2" |Raspbian
| rowspan="2" |2022-04-04
| rowspan="2" |2024-10-22
| rowspan="2" |PI4/PI3B+/PI3/
| rowspan="2" |PI4/PI3B+/PI3/
PI2/PI1/ZERO/ZERO W
PI2/PI1/ZERO/ZERO W
Line 266: Line 266:
password: raspberry
password: raspberry
|[[File:Baiduyun.jpg|24px]]BaiduYun:
|[[File:Baiduyun.jpg|24px]]BaiduYun:
|[https://pan.baidu.com/s/1SFcd31oO6k-kvmILHVbzJw   '''MHS4001-4inch-2022-04-04-raspios-bullseye-armhf.7z'''] 提取码:zk0c
|[https://pan.baidu.com/s/1SFcd31oO6k-kvmILHVbzJw '''MHS4001-4inch-2024-10-22-raspios-bullseye-armhf.7z'''] 提取码:zk0c
|-
|-
|[[File:Mega-1.jpg|24px]]    Mega:   
|[[File:Mega-1.jpg|24px]]    Mega:   
Line 283: Line 283:
|-
|-
| rowspan="2" |Kali Linux RaspberryPi 2,3 and 4
| rowspan="2" |Kali Linux RaspberryPi 2,3 and 4
| rowspan="2" |2022.1
| rowspan="2" |2023.1
| rowspan="2" |PI4B,PI3B+,PI3,PI2
| rowspan="2" |PI4B,PI3B+,PI3,PI2
| rowspan="2" |user: kali
| rowspan="2" |user: kali
password: kali
password: kali
|[[File:Baiduyun.jpg|24px]]BaiduYun:
|[[File:Baiduyun.jpg|24px]]BaiduYun:
|[https://pan.baidu.com/s/1bp_TrexKQoIgizFqdSJhFA  '''MHS4001-4inch-kali-linux-2022.1'''] 提取码:au5t
|[https://pan.baidu.com/s/1bp_TrexKQoIgizFqdSJhFA  '''MHS4001-4inch-kali-linux-2023.1'''] 提取码:au5t
|-
|-
|[[File:Mega-1.jpg|24px]]  Mega:
|[[File:Mega-1.jpg|24px]]  Mega:

Latest revision as of 17:06, 11 November 2024

语言选择

Languages

➤中文
➤EN


Product Video

Product Pictures

Product Features

  • Physical resolution 480 x 320, with resistive touch control
  • It supports up to 125MHz SPI signal input, showing stable no screen and no flicker
  • With the refresh rate of raspberry pie around 50FPS, play video to play the game without pressure
  • Support FBCP software drive, support double screen display, can adjust the resolution of the software to zoom
  • Same size as the Raspberry Pi, perfectly compatible and can be directly inserted into any version of the Raspberry Pi (Raspberry Pi ZeroW, A, A+, B, B+, 2B, 3B, 3B+)
  • Support Raspbian/Ubuntu/Kali/Retropie system, provide driver and image
  • This product has passed CE and RoHS certification

Main Parameters

Name Description
SKU MHS4001
Screen Size 4.0inch
LCD Type TFT
Module Interface SPI (upports up to 125MHz SPI input)
Resolution 480*320 (Pixel)
Touch Screen Controller XPT2046
LCD Driver IC ST7796S
Backlight LED
power consumption 0.16A*5V
Working temperature(℃) -20~60
Active Area 83.52*55.68(mm)
Module PCB Size 95.5*61.0(mm)
Package Size 136x98x41(mm)
Rough Weight(Package containing)(g) 100(g)

Hardware Description

  • Interface Definition
Pin Number Identification Description
1, 17 3.3V Power positive (3.3V power input)
2, 4 5V Power positive (5V power input)
3, 5, 7, 8, 10, 12, 13, 15, 16 NC Not connected
6, 9, 14, 20, 25 GND Power ground
11 TP_IRQ The touch panel is interrupted, and it is detected that the touch panel is pressed low
18 LCD_RS Instruction/data register selection, low level is instruction, high level is data
19 LCD_SI / TP_SI LCD display / touch panel SPI data input
21 TP_SO Touch panel SPI data output
22 RST Reset signal, low reset
23 LCD_SCK / TP_SCK LCD display / touch panel SPI clock signal
24 LCD_CS LCD chip select signal, low level enable
26 TP_CS Touch panel chip select signal, low level enable
  • Product Size

How to use in the Raspberry/Ubuntu Mate/Kali/Retropie system

There are two ways to use it

The First Method

Directly download the image we created and burn it into the micro SD card and insert it into the RaspberryPi. (Q:How to burn?)
Image download see the image download section of the Download Resources

The second method

Step 1, install the latest official image of various systems (Q:How to install?)
(1)Download the latestRaspbian/Ubuntu Mate/Kali-linux/Retropieimage from the official
(2) Format the Micro SD card using SDFormatter
(3) Use Win32DiskImager to burn the official image to the Micro SD card
Step 2, connect with the Raspberry Pi





Align right-side to insert the LCD screen             
Plug-in MicroSD card, connect network and power   





Step 3, install the LCD driver
A. Install on the Raspbian system (the Raspberry Pi needs to connect to the Internet)
(1) Log in to the Raspberry Pi terminal(SSH remote login user name and password, see the image download of the Download Resources) (Q:The ssh can't connect?)
(2) Execute the following command to get the LCD driver and install it (after copying, click the right mouse button in the Putty window to paste):
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./MHS40-show
B. Install on the Ubuntu Mate, Kali, Retropie system
(1) Download the local driver, the download link is as follows: (Because of system differences, the driver downloaded from github cannot run normally
in the three systems Ubuntu Mate, Kali, Retropie, so only local drivers can be used)
Driver download for Ubuntu-mate-18.04 system:LCD-show.tar.gz
Driver download for Kali-linux system:LCD-show.tar.gz
Driver download for the retropie-rpi2_rpi3 system:LCD-show.tar.gz
Driver download for retropie-rpi1_zero system:LCD-show.tar.gz
(2) Log in to the Raspberry Pi terminal(SSH remote login user name and password, see the image download of the Download Resources) (Q:The ssh can't connect?)
(3) Copy the local driver to the running Raspberry Pi system and execute the following command to extract it (can be copied by SD card or FileZilla software)
tar -xvzf LCD-show.tar.gz
(4) Execute the following command to install the LCD driver
chmod -R 755 LCD-show
cd LCD-show/
sudo ./MHS40-show
Step 4, Check if the driver is successfully installed
(1) After the LCD driver is installed, the system will automatically restart. After the startup is successful, the LCD can display and touch normally,
indicating that the driver installation is successful.

Note:

A. Ubuntu system default SSH is not enabled, the specific method of opening seeRaspberryPi Ubuntu-mate open ssh instructions
B. Ubuntu-18.04 system ssh connection may fail, the specific solution is shown in RaspberryPi Ubuntu-mate-18.04 ssh connection failure solution description
C. The retropie-rpi1_zero system cannot log in via SSH (no network port and wifi module). You need to copy the driver through the serial port. For details, see RaspberryPi Zero open serial instructions
D. Retropie system game installation and setup instructions see RaspberryPi Retropie using instructions

How to rotate the display direction

This method only applies to the Raspberry Pi series of display screens, other display screens do not apply.

  • Method 1,If the driver is not installed, execute the following command (Raspberry Pi needs to connected to the Internet):
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./XXX-show 90

After execution, the driver will be installed. The system will automatically restart, and the display screen will rotate 90 degrees to display and touch normally.
' XXX-show ' can be changed to the corresponding driver, and ' 90 ' can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees)

  • Method 2,If the driver is already installed, execute the following command:
cd LCD-show/
sudo ./rotate.sh 90

After execution, the system will automatically restart, and the display screen will rotate 90 degrees to display and touch normally.
( ' 90 ' can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees)
If the rotate.sh prompt cannot be found, use Method 1 to install the latest drivers

FAQ

Download Resources

  • Document
  1. MHS-4.0inch Display-B quick start
  2. MHS-4.0inch Display-B user manual
  3. How to install the LCD driver
  4. How to calibrate the resistance touch screen
  5. How to install matchbox-keyboard
  6. How to change display direction GPIO resistive touch
  7. How to use Raspberry Pi(Download,Format,Burn,SSH,PuTTy)
  8. RaspberryPi Ubuntu-mate open ssh instructions
  9. RaspberryPi Ubuntu-mate-18.04 ssh connect
  10. RaspberryPi Zero open serial instructions
  11. RaspberryPi Retropie using instructions
  • Images download
If you have difficulty installing the driver, or if you still can't use the display properly after installing the driver,
Please Try our Configned images for tested.
Just need download and write the image into the TF card. DO NOT need any driver installation steps.
System Name System Version Supported Default user and passwd Download Link
Raspbian 2024-10-22 PI4/PI3B+/PI3/

PI2/PI1/ZERO/ZERO W

user: pi

password: raspberry

BaiduYun: MHS4001-4inch-2024-10-22-raspios-bullseye-armhf.7z 提取码:zk0c
Mega: MHS4001-4inch-2022-04-04-raspios-bullseye-armhf.7z
Ubuntu-mate 18.04.2-beta1 PI3B+,PI3,PI2 user: pi

password: raspberry

BaiduYun: MHS4001-4inch-ubuntu-mate-20.04.1-beta2.7z 提取码:chbl
Mega: MHS4001-4inch-ubuntu-mate-20.04.1-beta2.7z
Kali Linux RaspberryPi 2,3 and 4 2023.1 PI4B,PI3B+,PI3,PI2 user: kali

password: kali

BaiduYun: MHS4001-4inch-kali-linux-2023.1 提取码:au5t
Mega: MHS4001-4inch-kali-linux-2022.1
RetroPie-rpi2_rpi3  April 14, 2018. PI3B+,PI3,PI2 user: pi

password: raspberry

BaiduYun: MHS4001_4.0inch-B_480x320_retropie-4.4-rpi2_rpi3.7z 提取码:xysc
Mega: MHS4001_4.0inch-B_480x320_retropie-4.4-rpi2_rpi3.7z
RetroPie-rpi1_zero  April 14, 2018. Pi1/ZERO/ZERO W user: pi

password: raspberry

BaiduYun: MHS4001_4.0inch-B_480x320_retropie-4.4-rpi1_zero.7z 提取码:vb6y
Mega: MHS4001_4.0inch-B_480x320_retropie-4.4-rpi1_zero.7z
  1. Panasonic SDFormatter
  2. Win32DiskImager
  3. PuTTY

BACK TO TOP