Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use ESP32 2.8 CYD: Examples, Pinouts, and Specs

Image of ESP32 2.8 CYD
Cirkit Designer LogoDesign with ESP32 2.8 CYD in Cirkit Designer

Introduction

The ESP32 2.8 CYD is a versatile microcontroller module that combines Wi-Fi and Bluetooth connectivity with a 2.8-inch touchscreen display. This component is ideal for Internet of Things (IoT) applications, offering robust processing power and a graphical interface for user interaction. Its compact design and rich feature set make it suitable for a wide range of embedded projects, including smart home devices, industrial automation, and portable monitoring systems.

Explore Projects Built with ESP32 2.8 CYD

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered ESP32-C3 Interactive Control Panel
Image of GTV-Transmitter Advanced: A project utilizing ESP32 2.8 CYD in a practical application
This circuit features an ESP32-C3 microcontroller connected to various input devices and an OLED display. The input devices include two KY-023 Dual Axis Joystick Modules for directional input and a Rotary Encoder for incremental input, both interfaced with the ESP32-C3's GPIO pins. The circuit also includes a power management system with a Polymer Lithium Ion Battery, a JST connector, and a toggle switch to control power to an LED indicator.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Sensor Monitoring System with OLED Display and E-Stop
Image of MVP_design: A project utilizing ESP32 2.8 CYD in a practical application
This circuit features an ESP32 microcontroller that interfaces with a variety of sensors and output devices. It is powered by a Lipo battery through a buck converter, ensuring a stable voltage supply. The ESP32 collects data from a DHT11 temperature and humidity sensor and a vibration sensor, controls a buzzer, and displays information on an OLED screen. An emergency stop (E Stop) is connected for safety purposes, allowing the system to be quickly deactivated.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Portable NFC/RFID Reader with OLED Interface
Image of omnitool: A project utilizing ESP32 2.8 CYD in a practical application
This circuit features an ESP32 microcontroller connected to a 0.96" OLED display via I2C (SCK and SDA lines), multiple pushbuttons interfaced to various GPIO pins for input, and a LiPoly battery connected through a TP4056 charging/protection module to power the system. A step-up boost power converter adjusts the battery voltage to supply the ESP32 and OLED display. The toggle switch controls the power flow from the battery to the converter, enabling an on/off functionality for the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled Robot with Environmental Sensing and Servo Actuation
Image of Gunter Schematic: A project utilizing ESP32 2.8 CYD in a practical application
This circuit features an ESP32 microcontroller that controls two DC motors via an L298N motor driver, two SG90 servo motors, and interfaces with MQ2 and MQ135 gas sensors, as well as a DHT22 temperature and humidity sensor. The ESP32 receives commands via Bluetooth to drive the motors and servos, and it monitors environmental conditions through the sensors. A battery powers the system, with a boost converter to regulate the voltage for the motor driver.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with ESP32 2.8 CYD

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of GTV-Transmitter Advanced: A project utilizing ESP32 2.8 CYD in a practical application
Battery-Powered ESP32-C3 Interactive Control Panel
This circuit features an ESP32-C3 microcontroller connected to various input devices and an OLED display. The input devices include two KY-023 Dual Axis Joystick Modules for directional input and a Rotary Encoder for incremental input, both interfaced with the ESP32-C3's GPIO pins. The circuit also includes a power management system with a Polymer Lithium Ion Battery, a JST connector, and a toggle switch to control power to an LED indicator.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of MVP_design: A project utilizing ESP32 2.8 CYD in a practical application
ESP32-Based Sensor Monitoring System with OLED Display and E-Stop
This circuit features an ESP32 microcontroller that interfaces with a variety of sensors and output devices. It is powered by a Lipo battery through a buck converter, ensuring a stable voltage supply. The ESP32 collects data from a DHT11 temperature and humidity sensor and a vibration sensor, controls a buzzer, and displays information on an OLED screen. An emergency stop (E Stop) is connected for safety purposes, allowing the system to be quickly deactivated.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of omnitool: A project utilizing ESP32 2.8 CYD in a practical application
ESP32-Based Portable NFC/RFID Reader with OLED Interface
This circuit features an ESP32 microcontroller connected to a 0.96" OLED display via I2C (SCK and SDA lines), multiple pushbuttons interfaced to various GPIO pins for input, and a LiPoly battery connected through a TP4056 charging/protection module to power the system. A step-up boost power converter adjusts the battery voltage to supply the ESP32 and OLED display. The toggle switch controls the power flow from the battery to the converter, enabling an on/off functionality for the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Gunter Schematic: A project utilizing ESP32 2.8 CYD in a practical application
ESP32-Controlled Robot with Environmental Sensing and Servo Actuation
This circuit features an ESP32 microcontroller that controls two DC motors via an L298N motor driver, two SG90 servo motors, and interfaces with MQ2 and MQ135 gas sensors, as well as a DHT22 temperature and humidity sensor. The ESP32 receives commands via Bluetooth to drive the motors and servos, and it monitors environmental conditions through the sensors. A battery powers the system, with a boost converter to regulate the voltage for the motor driver.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Smart home control panels
  • IoT-enabled devices with graphical interfaces
  • Portable data loggers and monitoring systems
  • Industrial automation with user interaction
  • Educational projects requiring touchscreen functionality

Technical Specifications

Key Technical Details

Parameter Value
Microcontroller ESP32 Dual-Core Processor
Display 2.8-inch TFT LCD Touchscreen
Wi-Fi Standard 802.11 b/g/n
Bluetooth Version Bluetooth 4.2 (BLE + Classic)
Operating Voltage 3.3V
Input Voltage Range 5V (via USB) or 3.3V (via pins)
Flash Memory 4MB
SRAM 520KB
GPIO Pins 30
Communication Interfaces UART, SPI, I2C, PWM, ADC, DAC
Touchscreen Type Resistive
Dimensions 85mm x 55mm x 12mm

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VIN Power input (5V via USB or external source)
2 GND Ground
3 GPIO0 General-purpose I/O pin, can be used for input/output
4 GPIO1 General-purpose I/O pin, supports UART TX
5 GPIO2 General-purpose I/O pin, supports UART RX
6 GPIO3 General-purpose I/O pin, supports PWM
7 SDA I2C Data Line
8 SCL I2C Clock Line
9 MOSI SPI Master Out Slave In
10 MISO SPI Master In Slave Out
11 SCK SPI Clock
12 A0 Analog input (ADC)
13 A1 Analog input (ADC)
14 TXD UART Transmit
15 RXD UART Receive
16 TOUCH_X+ Touchscreen X-axis positive
17 TOUCH_X- Touchscreen X-axis negative
18 TOUCH_Y+ Touchscreen Y-axis positive
19 TOUCH_Y- Touchscreen Y-axis negative

Usage Instructions

How to Use the ESP32 2.8 CYD in a Circuit

  1. Powering the Module:

    • Connect the VIN pin to a 5V power source or use a USB cable for power.
    • Ensure the GND pin is connected to the ground of your circuit.
  2. Connecting the Touchscreen:

    • The touchscreen interface uses the TOUCH_X+, TOUCH_X-, TOUCH_Y+, and TOUCH_Y- pins.
    • Use a touchscreen controller library (e.g., XPT2046) to read touch inputs.
  3. Programming the ESP32:

    • Use the Arduino IDE or ESP-IDF to program the ESP32.
    • Install the necessary libraries for Wi-Fi, Bluetooth, and touchscreen functionality.
  4. Interfacing with Peripherals:

    • Use GPIO pins for digital input/output.
    • Use the I2C or SPI pins to connect sensors, displays, or other peripherals.

Important Considerations

  • Voltage Levels: Ensure all connected peripherals operate at 3.3V logic levels to avoid damaging the ESP32.
  • Touchscreen Calibration: Calibrate the touchscreen using a library to ensure accurate touch detection.
  • Wi-Fi and Bluetooth Interference: Avoid placing the module near sources of electromagnetic interference to maintain reliable wireless communication.

Example Code for Arduino UNO

Below is an example of how to use the ESP32 2.8 CYD to display text on the touchscreen and connect to Wi-Fi.

#include <WiFi.h>
#include <TFT_eSPI.h> // Library for the TFT display

// Wi-Fi credentials
const char* ssid = "Your_SSID";
const char* password = "Your_PASSWORD";

// Initialize the TFT display
TFT_eSPI tft = TFT_eSPI();

void setup() {
  // Initialize serial communication
  Serial.begin(115200);

  // Initialize the TFT display
  tft.init();
  tft.setRotation(1); // Set display orientation
  tft.fillScreen(TFT_BLACK); // Clear the screen
  tft.setTextColor(TFT_WHITE, TFT_BLACK); // Set text color

  // Display a message
  tft.setCursor(10, 10);
  tft.setTextSize(2);
  tft.println("Connecting to Wi-Fi...");

  // Connect to Wi-Fi
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  // Display connection status
  tft.fillScreen(TFT_BLACK);
  tft.setCursor(10, 10);
  tft.println("Wi-Fi Connected!");
  tft.setCursor(10, 40);
  tft.println("IP Address:");
  tft.setCursor(10, 70);
  tft.println(WiFi.localIP());
}

void loop() {
  // Add your main code here
}

Troubleshooting and FAQs

Common Issues

  1. The ESP32 does not power on:

    • Ensure the VIN pin is connected to a 5V power source or use a USB cable.
    • Check for loose connections or damaged wires.
  2. Wi-Fi connection fails:

    • Verify the SSID and password are correct.
    • Ensure the Wi-Fi network is within range and not overloaded.
  3. Touchscreen is unresponsive:

    • Check the connections to the TOUCH_X+, TOUCH_X-, TOUCH_Y+, and TOUCH_Y- pins.
    • Ensure the touchscreen library is correctly installed and configured.
  4. Display shows no output:

    • Verify the TFT display connections.
    • Ensure the correct library (e.g., TFT_eSPI) is being used and configured.

Tips for Troubleshooting

  • Use a multimeter to check voltage levels at the VIN and GND pins.
  • Test the module with a simple "blink" program to ensure the ESP32 is functioning.
  • Refer to the library documentation for additional configuration options.

By following this documentation, you can effectively integrate the ESP32 2.8 CYD into your projects and troubleshoot common issues.