Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
The 3.5inch Capacitive Touch LCD features a 320 × 480 resolution capacitive touchscreen, supporting either a 15PIN terminal interface or an 18PIN FPC slot for connection. It also provides example documentation for Raspberry Pi, ESP32, Pico, Arduino, etc.
The 3V3 pin can be used for power input or output. When used as output, ensure that the VCC pin input is 5V, and it is recommended to limit the output current to 200mA.
Please ensure that the supply voltage and logic voltage are consistent, otherwise, it may fail to function properly
Parameter Name | Parameter |
Supply Voltage | 3.3V/5V |
LCD Type | IPS |
Communication Interface | Display: SPI |
Touch: I2C | |
Controller Chip | Display: ST7796S |
Touch: FT6336U | |
Resolution | 320(H) x 480(V) |
Display Size | 48.96 (H) x 73.44 (V) mm |
Pixel Pitch | 0.051 x 0.153mm |
Dimensions | 61.00 (H) x 92.44 (V) mm |
Please note that the following examples are run on Raspberry Pi 4
LCD Pin | Raspberry Pi (BCM) |
VCC | 3.3V |
GND | GND |
MISO | 9 |
MOSI | 10 |
SCLK | 11 |
LCD_CS | 8 |
LCD_DC | 25 |
LCD_RST | 27 |
LCD_BL | 18 |
TP_SDA | 2 |
TP_SCL | 3 |
TP_INT | 4 |
TP_RST | 17 |
sudo raspi-config
sudo raspi-config
sudo reboot
more /boot/config.txt
ls /dev/spi*
sudo apt-get update sudo apt-get install python3-pip sudo apt-get install python3-pil sudo apt-get install python3-numpy sudo apt-get install python3-spidev
cd wget https://files.waveshare.com/wiki/3.5inch%20Capacitive%20Touch%20LCD/3.5inch_Capacitive_Touch_LCD_Demo_Pi.zip
sudo apt-get install unzip
unzip 3.5inch_Capacitive_Touch_LCD_Demo_Pi.zip -d ./3.5inch_Capacitive_Touch_LCD
cd 3.5inch_Capacitive_Touch_LCD/Python
python 3.5inch_Capacitive_Touch_LCD.py
git clone https://github.com/WiringPi/WiringPi cd WiringPi ./build gpio -v
cd wget https://files.waveshare.com/wiki/3.5inch%20Capacitive%20Touch%20LCD/3.5inch_Capacitive_Touch_LCD_Demo_Pi.zip
sudo apt-get install unzip
unzip 3.5inch_Capacitive_Touch_LCD_Demo_Pi.zip -d ./3.5inch_Capacitive_Touch_LCD
cd 3.5inch_Capacitive_Touch_LCD/C
sudo make clean sudo make -j
sudo ./main
LCD Pin | Raspberry Pi Pico |
VCC | 3.3V |
GND | GND |
MISO | 12 |
MOSI | 11 |
SCLK | 10 |
LCD_CS | 9 |
LCD_DC | 14 |
LCD_RST | 13 |
LCD_BL | 15 |
TP_SDA | 6 |
TP_SCL | 7 |
TP_INT | 8 |
TP_RST | 5 |
1. Install Thonny (Thonny installation package)
2. Press the "BOOTSEL" key on the Raspberry Pi Pico, and release it after powering
3. A new disk will appear on your computer, extract the (Raspberry Pi Pico firmware) and copy the firmware (suffix uf2) to that disk (the disk will automatically disappear if the copy is successful)
4. Open Thonny, click on "Python x.x.x" at the bottom right, and select "Configure interpreter"
5. Select "Interpreter" in the pop-up window -> select "MicroPython (Raspberry Pi Pico)" as the interpreter -> select "Auto-detect port" as the port
6. Click on "Stop", and the Shell window will show "MicroPython v1.20.0-50-g786013d46 on 2023-05-04; Raspberry Pi Pico with RP2040 Type "help()" for more information. " It means the connection is successful
LCD Pin | ESP32S3 |
VCC | 3.3V |
GND | GND |
MISO | 42 |
MOSI | 2 |
SCLK | 1 |
SD_CS | 38 |
LCD_CS | 39 |
LCD_DC | 41 |
LCD_RST | 40 |
LCD_BL | 6 |
TP_SDA | 15 |
TP_SCL | 7 |
TP_INT | 17 |
TP_RST | 16 |
Library Name | Description | Library Installation Requirements |
---|---|---|
GFX_Library_for_Arduino | LCD driver library | Install Offline |
File
-> New Sketch
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Hello, World!");
delay(2000);
}
File
-> Save As...
. In the pop-up menu, select the path to save the project, and enter a project name, such as Hello_World, click Save
①. Click to select the dropdown menu option Select Other Board and Port;
②. Search for the required development board model esp32s3 dev module and select;
③. Select COM Port;
④. Save the selection.
①. Compile the program; ②. Compile and download the program; ③. Download successful.
LCD Pin | Arduino |
VCC | 5V |
GND | GND |
MISO | NC |
MOSI | 11 |
SCLK | 13 |
LCD_CS | 10 |
LCD_DC | 7 |
LCD_RST | 8 |
LCD_BL | 9 |
TP_SDA | SDA |
TP_SCL | SCL |
TP_INT | 3 |
TP_RST | 4 |
Library Name | Description | Library Installation Requirements |
---|---|---|
GFX_Library_for_Arduino | LCD driver library | Install Offline |
Please note whether the GPIO level on the board matches the power supply voltage of the product!
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com