LCD-vikio E32R28T 2.8-cola ESP32-32E Ekranmodulo
Specifoj
- Produkta Nomo: 2.8-cola ESP32-32E E32R28T&E32N28T
- Modelo: CR2024-MI2875
- Display Module: 2.8-inch ESP32-32E
Produktaj Informoj
- This product is a 2.8-inch ESP32-32E E32R28T&E32N28T display module with various hardware and software resources for development.
Produktaj Uzado-Instrukcioj
- La rimeda dosierujo inkluzivas sample programs, software libraries, product specifications, structure diagrams, datasheets, schematics, user manuals, and tool software.
- Ĉi tiu sekcio provizas superview of the hardware resources available on the module.
- Explains the schematic diagram of the display module in detail.
- Provides precautions to be taken while using the display module.
Rimeda Priskribo
- La dosierujo de rimedoj estas montrita en la sekva figuro:
Dosierujo | Enhavo Priskribo |
1-Demo | La sample programkodo, la triaparta programaro biblioteko ke la sampla programo dependas de la anstataŭaĵo de la triaparta programaro biblioteko file, la dokumento pri agorda instrukcio pri programaro, kaj la sampla programinstrukcio
dokumento. |
2-Specifo | Vidiga modula produktospecifo, LCD-ekrana specifo kaj LCD-ekrana pelilo IC-komenciga kodo. |
3-Strukturo_Diagramo | Montru modulaj produktaj dimensioj kaj produkto 3D desegnaĵoj |
4-Datumpaĝo | Datenlibro pri LCD-ekrana pelilo ILI9341, datenlibro pri rezistanca tuŝekrana pelilo XPT2046, datenlibro pri ESP32-majstraj datenoj kaj gviddokumento pri aparatara dezajno, datenlibro pri USB al seria IC (CH340C), aŭdio amplifier chip FM8002E data book, 5V to 3.3V regulator data book
and battery charge management Chip TP4054 data sheet. |
5-Skema | Product hardware schematic, ESP32-WROOM-32E module IO resource allocation table, schematic, and PCB component package |
6-Uzanto_Manlibro | Produkta uzantdokumentado |
7-Ilo_programaro | WIFI kaj Bluetooth-testa aplikaĵo kaj sencimigaj iloj, USB al seria pordo-pelilo, ESP32-fulm-elŝuta ilo-programaro, signo-prena programaro, bildo-prena programaro, JPG-bildprilabora programaro
kaj iloj por sencimigo de seriaj pordoj. |
8-Rapida_Komenco | Need to burn the bin file, flash the download tool, and use the instructions. |
Instrukcioj pri Programaro
La paŝoj de disvolvado de programaro de ekranmodulo estas jenaj:
- A. Krei programaran disvolvan medion por la platformo ESP32.
- B. If necessary, import third-party software libraries as a basis for development;
- C. Open the software project to be debugged, or you can also create a new software project.
- D. power on the display module, compile and download the debugging program, and then check the software running effect.
- E. The software effect does not reach the expected, continue to modify the program code, and then compile and download, until the effect reaches the expected.
For details about the preceding steps, see the documentation in the 1 Demo directory.
Instrukcioj pri Aparataro
Finiteview of the module’s hardware resources is displayed
- Modulaj aparataj rimedoj estas montritaj en la sekvaj du figuroj:
La aparataj rimedoj estas priskribitaj jene:
LCD
- The LCD display size is 2.8 inches, the driver IC is ILI9341, and the resolution is 24 0x 32 0. The ESP32 is connected using a 4-wire SPI communication interface.
- A. Introduction to ILI9341 controller The ILI9341 controller supports a maximum resolution of 240*320 and a 172800-byte GRAM. It also supports 8-bit, 9-bit, 16-bit, and 18-bit parallel port data buses. It also supports 3-wire and 4-wire SPI serial ports. Since parallel control requires a large number of I/O ports, the most common one is SPI serial port control. The ILI9341 also supports 65K, 262K RGB color display, display color is very rich, while supporting rotating display and scroll display and video playback, and displaying in a variety of ways.
- La regilo ILI9341 uzas 16 bitojn (RGB565) por kontroli pikselan ekranon, do ĝi povas montri ĝis 65K kolorojn per pikselo. La agordo de piksela adreso estas farita en la ordo de vicoj kaj kolumnoj, kaj la pliiĝanta kaj malkreskanta direkto estas determinita de la skana reĝimo. La montra metodo de ILI9341 estas farita per fikso de la adreso kaj poste fiksante la kolorvaloron.
- B. Enkonduko al SPI-komunika protokolo
La skribreĝimtempigo de la 4-drata SPI-buso estas montrita en la sekva figuro:
- CSX estas sklava pecelektado, kaj la peceto nur estos ebligita kiam CSX estas je malalta potenco.
- D/CX estas la datuma/komanda kontrolpinglo de la blato. Kiam DCX skribas komandojn je malaltaj niveloj, datumoj estas skribitaj je altaj niveloj
- SCL is the SPI bus clock, with each rising edge transmitting 1 bit of data.
- SDA estas la datumoj transdonitaj de SPI, kiu transdonas 8 bitojn da datumoj samtempe. La datumformato estas montrita en la sekva figuro:
- Alta bito unue, transsendu unue.
- Por SPI-komunikado, datenoj havas dissendtempigon, kun kombinaĵo de realtempa horloĝfazo (CPHA) kaj horloĝpoluseco (CPOL):
- La nivelo de CPOL determinas la neaktivan ŝtatnivelon de la seria sinkrona horloĝo, kun CPOL=0, indikante malaltan nivelon. CPOL-par-transdona protokolo
- The discussion did not have much influence.
- La alteco de CPHA determinas ĉu la seria sinkrona horloĝo kolektas datenojn pri la unua aŭ dua horloĝa salta rando,
- Kiam CPHL=0, faru datumkolekton ĉe la unua transira rando;
- La kombinaĵo de ĉi tiuj du formas kvar SPI-komunikadmetodojn, kaj SPI0 estas ofte uzata en Ĉinio, kie CPHL=0 kaj CPOL=0
ESP32 WROOM 32E M odule
- This module has a built-in ESP32-DOWD-V3 chip, an Xtensa dual-core 32-bit LX6 microprocessor, and supports clock rates up to 240MHz. It has 448KB ROM, 520KB SRAM, 16KB RTC SRAM, and 4MB QSPI Flash. 2.4GHz WIFI,
- Bluetooth V4.2 and Bluetooth Low Power modules are supported. External 26 GPIOs, support SD card, UART, SPI, SDIO, I2C, LED PWM, motor PWM, I2S, IR, pulse counter, GPIO, capacitive touch sensor, ADC, DAC, TWAI and other peripherals.
MicroSD Card Slot
- Uzante SPI-komunikadreĝimon kaj ESP32-konekton, subteno por MicroSD-kartoj de diversaj kapacitoj.
RGB Three color Light
- Red, green, and blue LED lights can be used to indicate the running status of the program.
Seria Haveno
- Ekstera seria havena modulo estas uzata por seria havena komunikado.
USB al Seria Datumporto kaj Unu-klaka Elŝuta Cirkvito
- La kerna aparato estas CH340C, unu fino estas konektita al la komputila USB, unu fino estas konektita al la seria haveno ESP32, por atingi USB al TTL seria haveno.
- In addition, a one-click download circuit is also attached, so that is, when downloading the program, it can automatically enter the download mode, without the need to touch the external.
Bateria Interfaco
- Two-pin interface, one for the positive electrode, one for the negative electrode, to access the battery power supply and charging.
Baterioŝargo kaj Malŝargo-Administrada Cirkvito
- The core device is TP4054, this circuit can control the battery charging current, the battery is safely charged to saturation state, but can also safely control the battery discharge.
Ŝlosilo BOOT
- Post kiam la ekranmodulo estas ŝaltita, premado malaltigos IO0. Se la momento la modulo estas ŝaltita aŭ la ESP32 estas rekomencigita, malaltigi IO0 eniros la elŝutreĝimon. Aliaj kazoj povas esti uzataj kiel ordinaraj butonoj.
Tipo-C Interfaco
- The main power supply interface and program download interface of the display module. Connect the USB to a serial port and a one-click download circuit, can be used for power supply, download and serial communication.
5V ĝis 3.3V Voltage Reguliga Cirkvito
- The core device is the ME6217C33M5G LDO regulator.
- La voltage regulator circuit supports 2A V~6.5V wide voltage input, a 3.3V stable voltage eligo, kaj la maksimuma eliga kurento estas 800mA, kiu povas plene renkonti la voltage kaj nunaj postuloj de la montra modulo.
RESET Ŝlosilo
- Post kiam la ekranmodulo estas ŝaltita, premado tiros la ESP32-restarigitan pinglon malsupren (la defaŭlta stato estas tiri supren), por atingi la rekomencigitan funkcion.
Rezisma Tuŝekrana Kontrola Cirkvito
- La kerna aparato estas XPT2046, kiu komunikas kun la ESP32 per SPI.
- Ĉi tiu cirkvito estas la ponto inter la rezistema tuŝekrano kaj la ESP32-mastro, respondeca pri transsendo de la datumoj sur la tuŝekrano al la ESP32-mastro, por akiri la koordinatojn de la tuŝpunkto.
Vastigu la Pinglon
- Eniga IO-pordo, GND, kaj 3.3V-stifto, kiuj ne estas uzataj sur la ESP32-modulo, estas eligitaj por flankaparata uzo.
Retroluma kontrola cirkvito
- The core device is a BSS138 field-effect tube.
- One end of this circuit is connected to the backlight control pin on the ESP32 master, and the other end is connected to the negative pole of the LCD screen backlight LED lamp.
- Backlight control pin pull up, back light, otherwise off.
Interfaco de parolanto
- Kablaj terminaloj devas esti konektitaj vertikale. Uzita por aliri monoajn laŭtparolilojn kaj laŭtparolilojn.
Aŭdpotenco ampligilo cirkvito
- La kerna aparato estas la audio FM8002E ampligilo IC.
- One end of this circuit is connected to the ESP32 audio DAC value output pin and the other end is connected to the horn interface.
- The function of this circuit is to drive a small power horn or speaker to sound. For 5V power supply, the maximum drive power is 1.5W (load 8 ohms) or 2W (load 4 ohms).
SPI-periferia interfaco
- 4-drata horizontala interfaco. Elkonduku neuzatan pecetan elektpinglon kaj SPI-interfacan pinglon uzatan de la MicroSD-karto, kiuj povas esti uzataj por eksteraj SPI-aparatoj aŭ ordinaraj IO-havenoj.
Detailed explanation of the schematic diagram of the display module
Type C interface circuit
En ĉi tiu cirkvito, D1 estas la Schottky-diodo, kiu estas uzata por malhelpi la kurenton inversigi. D2 al D4 estas elektrostatikaj diodoj por kontraŭstaraj protektoj por malhelpi la ekranan modulon esti difektita pro troa vol.tage or short circuit. R1 is the pull-down resistance. USB1 is a Type-C bus. The display module connects to Type C power supply, downloads programs, and communicates through the USB 1. Where +5V and GND are positive power voltage and ground signals USB_D and USB_D+ are differential USB signals, which are transmitted to the onboard USB to serial circuit.
5V ĝis 3.3V voltage reguliga cirkvito
En ĉi tiu cirkvito, C16~C19 estas la preterpasa filtrila kondensilo, kiu estas uzata por konservi la stabilecon de la eniga vol.tage kaj la eligo voltage. The U1 is a 5V to 3.3V LDO with the model number ME6217C33M5G. Because most of the circuits on the display module need a 3.3V power supply, and the power input of the Type Cinterface is basically 5V, so a voltage reguliga konverta cirkvito estas postulata.
Rezisma tuŝekrana kontrola cirkvito
En ĉi tiu cirkvito, C25 kaj C27 estas preterpasaj filtrilaj kondensiloj, kiuj estas uzataj por konservi la enigan voltage stability. R22 is a pull-up resistor used to maintain the default pin state as high. U4 is the XPT2046 control IC, The function of this IC is to obtain the coordinate voltage value of the touch point of the resistance touch screen through X+, X –, Y+, and Y four pins, and then through ADC conversion, the ADC value is transmitted to the ESP32 master. The ESP32 master then converts the ADC value to the pixel coordinate value of the display. The PEN pin is a touch interrupt pin, and the input level is low when a touch event occurs.
USB al seria haveno kaj unu-klaka elŝuta cirkvito
En ĉi tiu cirkvito, U3 estas CH340C USB-al-seria IC, kiu ne bezonas eksteran kristalan oscilatoron por faciligi cirkvitodezajnon. C6 estas preterpasa filtrila kondensilo uzata por konservi la enigaĵon voltage stability. Q1 and Q2 are NPN-type triodes, and R6 and R7 are triode base limiting current resistors. The function of this circuit is to realize to USB-to-serial port and a click download function. The USB signal is input and output through UD+ and UD pins, and is transmitted to the ESP32 master through RXD and TXD pins after conversion. One-click download circuit principle:
- A. La RST kaj DTR-pingloj de CH340C eligas altan nivelon defaŭlte. Nuntempe, la Q1 kaj Q2-triodo ne estas ŝaltitaj, kaj la IO0-pingloj kaj rekomencigitaj pingloj de la ĉefa kontrolo de ESP32 estas altigitaj.
- B. La RST kaj DTR-pingloj de CH340C eligas malaltajn nivelojn, nuntempe, la Q1 kaj Q2-triodo ankoraŭ ne estas ŝaltitaj, kaj la IO0-pingloj kaj rekomencigitaj pingloj de la ĉefa kontrolo de ESP32 ankoraŭ estas altigitaj al altaj niveloj.
- C. The RST pin of CH340C remains unchanged, and the DTR pin outputs a high level. At this time, Q1 is still cut off, Q2 is on, the IO0 pin of the ESP32 master is still pulled up, the reset pin is pulled down, and the ESP32 enters the reset state.
- D. La RST-stifto de CH340C eligas altan nivelon, DTR-stifto eligas malaltan nivelon, ĉi-momente Q1 estas ŝaltita, Q2 estas malŝaltita, la rekomencigita pinglo de la ĉefa kontrolo de ESP32 ne tuj fariĝos alta ĉar la konektita kondensilo estas ŝargita, ESP32 ankoraŭ estas en la rekomencigita stato, kaj IO0-stifto estas tuj mallevita, ĉi-momente ĝi eniros la elŝutreĝimon.
Aŭdpotenco ampligilo cirkvito
In this circuit, R23, C7, C8, and C9 constitute the RC filter circuit, and R10 and R13 are the gain-adjusting resistors of the operational ampligilo. Kiam la rezistvaloro de R13 estas senŝanĝa, ju pli malgranda la rezistvaloro de R10, des pli granda la volumo de la ekstera laŭtparolilo. C10 kaj C11 estas eniga kunligaj kondensiloj. R11 estas la tirrezisto. JP1 estas la korno/laŭtparolila haveno. La U5 estas la audio-potenco FM8002E ampligilo IC. Post enigo de AUDIO_IN, la audio DAC-signalo estas amplified by the FM8002E gain and output to the speaker/speaker by the VO1 and VO2 pins. SHUTDOWN is the enable pin for FM8002E. The low level is enabled. By default, the high level is enabled.
ESP32 WROOM 32E main control circuit
In this circuit, C4 and C5 are bypass filter capacitors, and U2 are ESP32 WROOM 32E modules. For details about the internal circuit of this module, please refer to the official documentation.
Ŝlosila rekomencigita cirkvito
En ĉi tiu cirkvito, KEY1 estas la ŝlosilo, R4 estas la tirrezisto, kaj C3 estas la prokrasta kondensilo. Restarigi principon:
- A. After powering on, C3 charges. At this time, C3 is equivalent to a short circuit, the RESET pin is grounded, and ESP32 enters the reset state.
- B. Kiam C3 estas ŝargita, C3 estas ekvivalenta al malferma cirkvito, RESET-stifto estas tirita supren, ESP32-reset finiĝas, kaj la ESP32 eniras la normalan laborstaton.
- C. Kiam KEY1 estas premita, la RESET-pinglo estas surterigita, ESP32 eniras la rekomencigitan staton, kaj C3 estas eligita tra KEY1.
- D. Kiam KEY1 estas liberigita, C3 estas ŝargita. Ĉi-momente, C3 estas ekvivalenta al fuŝkontakto, RESET-pinglo estas surterigita, ESP32 ankoraŭ estas en la RESET-stato. Post kiam C3 estas ŝargita, la rekomencigita pinglo estas tirita supren, ESP32 estas rekomencigita kaj eniras la normalan laborstaton.
Se la RESTART estas malsukcesa, la toleremvaloro de C3 povas esti taŭge pliigita por prokrasti la rekomencigitan pinglon malaltnivelan tempon.
Interface circuit of the serial module
- En ĉi tiu cirkvito, P2 estas 4P 1.25mm tonalsidloko, R29 kaj R30 estas impedancaj ekvilibraj rezistiloj, kaj Q5 estas kampefika tubo kontrolanta la 5V-enigan elektroprovizon.
- R31 is a pulldown resistor. Connect RXD0 and TXD0 to serial pins, and supply power to the other two pins. This port is connected to the same serial port as the onboard USB-to-serial port module.
EX pand IO and peripheral interface circuits
In this circuit, P3 a nd P4 are 4P 1.25mm pitch seats. SPI_CLK, SPI_MISO, and SPI_MOSI pins are shared with the MicroSD card SPI pins. Pins SPI_CS, IO35 are not used by on board devices, so they are led out to connect SPI, and can also be used for ordinary IO. Things to watch out for:
- A. IO35 can only be input pins.
Bateria ŝarĝo kaj malŝarĝo administra cirkvito
In this circuit, C20, C21, C22, and C23 are bypass filter capacitors. U6 is the TP4054 battery charge management IC. R27 regulates the battery charging current. JP2 is a 2P 1.25mm pitch seat, connected to a battery. Q3 is a P-channel FET. R28 is the Q3 grid pull-down resistor. TP4054 charges the battery through the BAT pin; the smaller the R27 resistance, the larger the charging current, with a maximum is 500mA. Q3 and R28 together constitute the battery discharge circuit, When there is no power supply through the Type C interface, the +5V voltage is 0, then the Q3 gate is pulled down to a low level, the drain and the source are on, and the battery supplies power to the entire display module. When powered through the Type C interface, the +5V voltage estas 5V, tiam la Q3-pordego estas 5V alta, la drenilo kaj fonto estas fortranĉitaj, kaj la baterioprovizo estas interrompita.
1 8P LCD panel wire welding interface
En ĉi tiu cirkvito, C24 estas la pretervojo-filtrila kondensilo, kaj QD1 estas la 48P 0.8mm tonalta likva kristala ekrana velda interfaco. La QD1 havas rezistan tuŝekranan signalpinglon, LCD-ekranan voltage pinglo, SPI-komunika pinglo, kontrolpinglo kaj retroluma cirkvitopinglo. La ESP32 uzas ĉi tiujn pinglojn por kontroli la LCD kaj tuŝekranon.
Download the key circuit
- In this circuit, KEY2 is the key and R5 is the pull up resistor. IO0 is high by default and low when KEY2 is pressed. Press and hold KEY2, power on or reset, and the ESP32 will enter download mode. In other cases, KEY2 can be used as a normal key.
Bateria potenco detekta cirkvito
En ĉi tiu cirkvito, R2 kaj R3 estas partaj voltage rezistiloj, kaj C1 kaj C2 estas preterpasaj filtrilaj kondensiloj. La baterio voltage BAT+ signalenigo pasas tra la disigilo-rezistilo. BAT_ADC estas la voltage value at both ends of R3, which is transmitted to the ESP32 master through the input pin and then converted by ADC to finally obtain the battery voltage valoro. La voltagLa disigilo estas uzata ĉar la ESP32 ADC konvertas maksimume 3.3V, dum la bateria saturiĝo vol.tage estas 4.2V, kio estas ekster intervalo. La akirita voltage multiplikita per 2 estas la reala baterio voltage.
LCD retroluma kontrolo cirkvito
- En ĉi tiu cirkvito, R24 estas la senarariga rezisto kaj estas provizore retenita. Q4 estas la N-kanala kampefika tubo, R25 estas la Q4 krada tirrezisto, kaj R26 estas la kontraŭluma kurento limiga rezistilo. La LCD retrolumo LED lamp estas en paralela stato, la pozitiva poluso estas konektita al 3.3V, kaj la negativa poluso estas konektita al la drenilo de Q4. Kiam la kontrolpinglo LCD_BL eligas altan voltage, the drain and source poles of Q4 are switched on. At this time, the negative pole of the LCD backlight is grounded, and the backlight LED lamp estas ŝaltita kaj elsendas lumon.
- When the control pin LCD_BL outputs a low voltage, la drenilo kaj fonto de Q4 estas fortranĉitaj, kaj la negativa kontraŭlumo de la LCD-ekrano estas malakceptita, kaj la retrolumo LED lamp ne estas ŝaltita. Defaŭlte, la LCD-kontraŭlumo estas malŝaltita.
- Redukti la R26-reziston povas pliigi la maksimuman brilon de la kontraŭlumo.
- In addition, the LCD_BL pin can input a PWM signal to adjust the LCD backlight.
RGB-trikolora lumkontrola cirkvito
- En ĉi tiu cirkvito, LED2 estas RGB-trikolora lamp, kaj R14~R16 estas trikolora lamp current limiting resistor.
- LED2 contains red, green, and blue LED lights, which are common anode connections.
- IO16, IO17 and IO22 are three control pins, which light up LED lights at low level and extinguish the LED lights at high level.
Interfaco-cirkvito de la fendo de kartoj MicroSD
- En ĉi tiu cirkvito, SD_CARD1 estas la fendo de kartoj MicroSD. R17 ĝis R21 estas tirrezistoj por ĉiu stifto. C26 estas la preterpasa filtrila kondensilo. Ĉi tiu interfaca cirkvito adoptas SPI-komunikadreĝimon. Subtenas altrapidan stokadon de MicroSD-kartoj.
- Notu ke tiu interfaco partumas la SPI-buson kun la SPI-periferia interfaco.
Antaŭzorgoj por uzo de ekranmodulo
- The display module is charged with the battery, the external speaker plays the audio, and the display screen is also working; at this time, the total current may exceed 500mA. In this case, you need to pay attention to the maximum current supported by the Type C cable and the maximum current supported by the power supply interface to avoid an insufficient power supply.
- Dum uzo, ne tuŝu la LDO voltage reguligilo kaj bateria ŝargo administrado IC kun viaj manoj por eviti esti bruligita de altaj temperaturoj.
- Konektante la IO-havenon, atentu la IO-uzadon por eviti miskonekti kaj la programkoda difino ne kongruas.
- Uzu la produkton sekure kaj prudente.
Oftaj Demandoj
- D: Kiel mi povas aliri la sampprogramoj kaj programaraj bibliotekoj?
- A: La sample programs and libraries can be found in the 1-_Demo directory of the resource description.
- D: Kiuj iloj estas inkluditaj en la ilo-programaro?
- A: The tool software includes WIFI and Bluetooth test APP, debugging tools, USB to serial port driver, ESP32 Flash download tool software, character take-up software, image take-up software, JPG image processing software, and serial port debugging tools.
Dokumentoj/Rimedoj
![]() |
LCD-vikio E32R28T 2.8-cola ESP32-32E Ekranmodulo [pdf] Uzanto-manlibro E32R28T, E32N28T, E32R28T 2.8-cola ESP32-32E Ekranmodulo, E32R28T, 2.8-cola ESP32-32E Ekranmodulo, ESP32-32E Ekranmodulo, Ekranmodulo, Modulo |