ESP32-S2 Parallel TFT with Touch(3.5'')
Contents
Introduction
The 3.5" 320x480 TFT LCD driver is ILI9488, it uses 16bits parallel line for communication with ESP32-S2, the main clock could be up to 20MHz, make the display smooth enough for videos; You can freely use some of Mabee pins(A I2c and a IOs) with the breakout connectors, to connect the ESP32-S2 display with sensors/ actuators, suitable for IoT applications.
Model: ESP32S235D
Features
- Integrated ESP32-S2 with 2.4G WiFi
- ESP32-S2-SOLO-N4R2 Module with 4MB Flash and 2MB PSRAM
- Wi-Fi Protocols: 802.11b/g/n(802.11n up to 150Mbps),A-MPDU and A-MSDU aggregation and 0.4us guard interval support
- Wi-Fi Frequency range: 2.402GHz - 2.483Ghz
- Arduino Compatible: You can play it with Arduino IDE
- LCD 3.5 inch Amorphous-TFT-LCD (Thin Film Transistor Liquid Crystal Display) for mobile-phone or handy electrical equipment
- LCD Driver: ILI9488(16bits parallel line)
- LCD Resolution: 320*480
- FT6236 Series ICs are single-chip capacitive touch panel controller IC with a built-in 16 bit enhanced Micro-controller unit (MCU)
- NS2009: A 4-wire resistive touch screen control circuit with I2C interface, which contains A 12-bit resolution A/D converter
- Power supply: 5V, Type-C USB
- Micro SD card slot on the board
- Dual USB Type-C: one for native USB and one for USB-to-UART
- Two Mabee interfaces
- Board size: 66mm * 85mm
Diagram
Dimension
Note:unit is mm.
PINOUT
Usage
Warning: Don't operate when in power supply on
Github:Project_Touch_Screen_Camera
Software setup
NOTE: It shows different results in some version, the same version is recommaned.
1.Install the Arduino IDE V1.8.10.
2.Install the ESP32-S2 boards supporting V2.0.1
- After Arduino IDE installed, there is no package to support ESP32-S2, we need to install the ESP32 package in Arduino IDE to continue.
- Select “File>Preferences>settings>Additional Boards Manager URLs” to fill the link: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
- Click “Tools>Board>Boards Manager” to search for and install the ESP32 library:
3.Install LovyanGFX library V0.4.7
- Click “Tools> Manager Libraries” to search for and install LovyanGFX library.
5.Select and setting the parameter in the Tools menu, as the picture:
Note: Different PC has different Serial COM number.
Graph on LCD
1. You can get the sourve code from github: Graph16_3.5
2. Open the file Graph16_3.5.
void setup() { pinMode(LCD_CS, OUTPUT); pinMode(LCD_BLK, OUTPUT); digitalWrite(LCD_CS, LOW); digitalWrite(LCD_BLK, HIGH); Serial.begin(115200); Serial.println(""); Serial.println(""); Serial.println("Lovyan's LovyanGFX library Test!"); tft.init(); tft.setRotation(0); tft.startWrite(); }
3. Verify it and upload.
If failed to upload the code as the picture, please upload again and try to press the Flash switch when the code is uploading.
4. After done uploading, reset the ESP32-S2 and you will get a graph on the screen.
Touch the screen
1. You can get the source code from our github:touch16_3.5
2. Open the file “\/simple_test/touch16_3.5” with Arduino IDE.
If you purchase a capacitive screen, make sure the code as below.
//#define NS2009_TOUCH //Resistive screen driver #define FT6236_TOUCH //Capacitive screen driver
If you purchase a resistive screen, make sure the code as below.
#define NS2009_TOUCH //Resistive screen driver //#define FT6236_TOUCH //Capacitive screen driver
4. Verify and upload the code, you can touch the screen.,a red circle will follow your finger on the screen.
microSD card test
1. You can get the source code from our github:SD16_3.5
2. Copy a picture named logo.bmp to the microSD card. Insert the microSD card into the board.
3. Open the file “/firmware/SD16_3.5/SD16_3.5.ino” with Arduino IDE.
If you purchase a capacitive screen, make sure the code as below.
//#define NS2009_TOUCH //Resistive screen driver #define FT6236_TOUCH //Capacitive screen driver
If you purchase a resistive screen, make sure the code as below.
#define NS2009_TOUCH //Resistive screen driver //#define FT6236_TOUCH //Capacitive screen driver
4. Verify and upload the code, you can see the pic from microSD card on the screen.
Comparison
We can see from the table, ESP32-S2 Parallel TFT with Touch(3.5) get the total elapsed: 1,051,437 microseconds, 5 times faster than others.
Note: The first two data come from youtobe
FAQ
You can list your question here or contact support@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.
- Q: Why the display fails to respond sometimes I touch.
- A: The touching interface is loose, please reconnect it.