lcdwiki-logo

lcdwiki E32R35T 3.5 inci MicroPython Demo

lcdwiki-E32R35T-3.5inch-MicroPython-Demo-product

spésifikasi

  • modul: 3.5 inci ESP32-32E modul tampilan
  • Resolusi: 320 × 480
  • Supir layar IC: ST7796
  • Controller utama: ESP32-WROOM-32E
  • Frékuénsi utama: 240MHz
  • Rojongan nirkabel: 2.4G WIFI + Bluetooth
  • Vérsi Thonny: 4.1.6
  • Vérsi firmware ESP32 MicroPython: 1.23.0

Pin Alokasi Parentah

Tukangeun view tina modul tampilan 3.5 inci ESP32-32E:

 

Parentah alokasi pin ESP32-32E:

Dina alat dewan Dina pin dewan Pin sambungan ESP32-32E Katerangan
TFT_CS IO15 sinyal kontrol Pilihan chip layar LCD, tingkat low
éféktif
TFT_RS IO2 paréntah layar LCD / sinyal kontrol pamilihan data. tingkat luhur:
Data, low level: command

Parentah Pamakéan Produk

Set up ESP32 MicroPython development environment:
Follow the steps provided in your ESP32 MicroPython documentation to set up the development environment.

unggah files:
Mindahkeun program anu diperyogikeun files to the ESP32 device using the appropriate tools or methods.

ExampPitunjuk Pamakéan Program:
Turutan léngkah ieu pikeun ngajalankeun exampprogram na:

  1. Step 1: Power on the device and navigate to the program menu.
  2. Lengkah 2: Pilih example program ti pilihan ménu.
  3. Step 3: Follow the on-screen instructions to interact with the program.

Software jeung hardware pedaran platform

  • Modul: 3.5-inch ESP32-32E display module with 320×480 resolution and ST7796 screen driver IC.
  • Master modul: modul ESP32-WROOM-32E, frékuénsi utama pangluhurna 240MHz, ngarojong 2.4G WIFI + Bluetooth.
  • Thonny version: 4.1.6

ESP32 MicroPython firmware version: 1.23.0.

Parentah alokasi pin

lcdwiki-E32R35T-3 (1)

Gambar 2.1 Tukangeun view tina 3.5 inci ESP32-32E modul tampilan

Controller utama modul tampilan ESP3.5 32 inci nyaéta ESP32-32E, sareng alokasi GPIO pikeun périferal onboard na dipidangkeun dina tabel di handap ieu:

ESP32-32E parentah alokasi pin
Naék kapal alat Dina pin alat dewan ESP32-32E

pin sambungan

 

pedaran

 

 

 

LCD

 

TFT_CS

 

1015

sinyal kontrol pilihan chip layar LCD,

low-level effective

 

TFT_RS

 

102

LCD screen command/data selection control signal.High level: data, low level:

paréntah

lcdwiki-E32R35T-3 11 lcdwiki-E32R35T-3 12

Instructions for the exampprogram éta

Set up ESP32 MicroPython development environment.
Pikeun parentah lengkep dina nyetel "MicroPython_development_environment_construction_for_ESP32", mangga tingal dokumén.

unggah files
Saatos lingkungan pangwangunan diatur, anu relevan files kudu diunggah ka alat ESP32 guna ngajalankeun program nguji.
Sateuacan unggah teh file, mangga familiarize diri jeung eusi diréktori tina MicroPython sample program. Open the Demo\MicroPython directory in the package, as shown in the following figure:

lcdwiki-E32R35T-3 (2)The contents of each folder are described as follows:

  • BMP: Stores BMP format images that sampprogram le kudu make. demo: Ngandung sampprogram na
  • , ifirmware Stores MicroPython firmware (needs to be burned when setting up the development environment)
  • Font: Stores the Chinese and English character modulo data that the sample program needs to use.
  • Libraries: Stores MicroPython library fileéta sampprogram le kudu make
    • A. Sambungkeun modul tampilan ESP32 ka komputer tur daya on maké kabel USB.
    • B. Open the Thonny software and configure the MicroPython interpreter for ESP32, as shown in the following figure:
      (If already configured, this step can be omitted)lcdwiki-E32R35T-3 (3)
    • C. Klik tulbarlcdwiki-E32R35T-3 (4)button to connect the ESP32 device. If the following prompt appears in the shell information bar, it indicates that the device connection is successful.lcdwiki-E32R35T-3 (5)
    • D. Click the “View ->Files" tombol pikeun muka file window (ignore this operation if it is already open). Find the “1-示例程序_Demo\MicroPython” directory in the package in the window, left-click the mouse to select the target file dina diréktori, teras klik katuhu dina beurit mandiri pikeun milih "Unggah ka /" pikeun unggah udagan file. As shown in the following figure:
      Please note that when uploading files, ESP32 cannot run any programs; otherwise, the upload will fail.llcdwiki-E32R35T-3 (6)
    • E. Upload the files from the “BMP”, “Font”, and “libraries” directories to the ESP32 device using the above method. The files dina diréktori 'demo' tiasa ditransfer atanapi henteu. Ditémbongkeun saperti dina gambar di handap ieu:lcdwiki-E32R35T-3 (7)

Example Parentah Pamakéan Program
The sample program is located in the Demo\MicroPython\dems directory of the package, as shown in the following figure:lcdwiki-E32R35T-3 (8)

The sampprogram le bisa diunggah ka alat ESP32 pikeun muka tur ngajalankeun, atawa bisa dibuka tur ngajalankeun dina komputer lokal. Lamun perlu kakuatan dina modul tampilan ESP32 ngajalankeun otomatis, anjeun kudu ngarobah sample program name to “main.py” and upload it to the ESP32 display module.

In the Python software, open the target sampprogram, klik bar menulcdwiki-E32R35T-3 (9) tombol, tur anjeun tiasa ngajalankeun eta. Upami operasi gagal, alat ESP32 kedah dihubungkeun deui.

Bubuka unggal exampprogram nyaéta saperti kieu:

  • BMP_test.py
    Mantan ieuample program relies on the ST7796.py library to display images in BMP format
  • font_test.py
    Mantan ieuampprogram le ngandelkeun perpustakaan ST7796.py pikeun nembongkeun karakter Cina jeung Inggris tina sagala rupa ukuran. Data modeling font kudu disimpen dina font file nurutkeun format relevan. Pikeun parentah ngeunaan casting karakter, mangga tingal handap websitus:
    http://www.lcdwiki.com/Chinese_and_English_display_modulo_settings
  • graphical_test.py
    Mantan ieuample program relies on the ST7796.py library to display graphics such as points, lines, rectangles, rounded rectangles, triangles, circles, ellipses, etc. for drawing and filling, as well as setting display orientation.
  • Read_ID_GRAM.py
    Mantan ieuample program relies on the ST7796.py library to display LCD ID and RGAM color value readings.
  • RGB_LED.py
    Mantan ieuample hardware requires the use of RGB tri-color lights to display the on/off and brightness adjustment of the RGB tri-color lights.
  • Simple_test.py
    Mantan ieuample does not rely on any software libraries and displays simple screen scrolling content.
  • Touch_Calibrate.py 
    Mantan ieuample ngandelkeun perpustakaan ST7796.py jeung perpustakaan touch.exe, mintonkeun calibration tina layar toél résistif. Turutan ajakan nu dipintonkeun dina layar. Saatos calibration réngsé, parameter calibration kaluaran ngaliwatan port serial sarta disalin ka initialization tina s.ampprogram éta. Punten dicatet yén layar rampa kedah dikalibrasi dumasar kana arah tampilan. Arah tampilan dina program ieu tiasa dirobih, sapertos anu dipidangkeun dina gambar ieu:lcdwiki-E32R35T-3 (10)
  • Touch_Pen.py 
    Mantan ieuample relies on the ST7796.py library and the touch.exe library, displaying the operation of drawing dots and lines on the touch screen.

FAQs

  • Q: Kumaha kuring ngareset modul ESP32-32E?
    A: Pencét jeung tahan tombol RESET_KEY pikeun ngareset modul.
  • Q: Naon fungsi BOOT_KEY?
    A: The BOOT_KEY is used for download mode selection. Press and  hold the button to power on, then release it to enter downloadmode.

Dokumén / Sumberdaya

lcdwiki E32R35T 3.5 inci MicroPython Demo [pdf] Pituduh pamaké
E32R35T, E32N35T, E32R35T 3.5 inci MicroPython Demo, E32R35T, 3.5 inci MicroPython Demo, MicroPython Demo, Demo

Rujukan

Ninggalkeun komentar

alamat surélék anjeun moal diterbitkeun. Widang diperlukeun ditandaan *