1 / 6
3.2" LCD Display - ESP32 CASE with LIPO battery — zdjęcie 1
1 / 6

3.2" LCD Display - ESP32 CASE with LIPO battery

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

3.2" LCD Display - ESP32-32E 240x320 CYD Clone - CASE with room for LIPO battery

Ocena
5 / 5
Polubienia
26
Pobrania
237
Wydruki
0
Wyświetlenia
1787
Oceny
1

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Kategoria
Electronics
Licencja
Creative Commons — Attribution

I created a handheld case for an ESP32 device using this display module:

3.2" LCD Display ESP32-32E 240x320  (CYD Clone)
See: https://www.lcdwiki.com/3.2inch_ESP32-32E_Display

But with different PIN see below - took quite a while to figure out. 

Project Background

The case is used in my project:

Bluetooth Battery Monitor for Xiaoxiang BMS
(for Chinese LiFePO₄ batteries)

Features:

  • Touchscreen UI

  • Bluetooth connection to Xiaoxiang BMS

  • Monitoring of:

    • Pack voltage

    • Current

    • State of charge (SoC)

    • Individual cell voltages

    • Temperature

    • and more

The project will soon be available on my GitHub: https://github.com/marxram

ESP32 Pin & Configuration Summary

This project uses an ESP32-32E with a 3.2" ST7789 TFT and XPT2046 resistive touchscreen.
Configuration was done via PlatformIO (TFT_eSPI), which was surprisingly tricky to get right.


FYIHere is my config:

Function

ESP32 Pin

Description

MOSI

GPIO 13

SPI data to display

MISO

GPIO 12

SPI data from display

SCLK

GPIO 14

SPI clock

CS

GPIO 15

Display chip select

DC

GPIO 2

Data / Command select

RST

not used

Reset is internally handled

Backlight

GPIO 27

Display backlight control

Display settings:

  • Resolution: 240 × 320

  • Driver: ST7789

  • Color order: BGR

  • Inversion: enabled

  • SPI frequency: 40 MHz

  • This setup eliminates ghosting issues seen with ILI9341 on this module.

Function

ESP32 Pin

Description

T_CS

GPIO 33

Touch controller chip select

T_IRQ

GPIO 36

Touch interrupt

T_MOSI

GPIO 13

Shared SPI MOSI

T_MISO

GPIO 12

Shared SPI MISO

T_CLK

GPIO 14

Shared SPI clock

  • SPI bus used: VSPI

  • Touch SPI frequency: 2.5 MHz

Tagi