LILYGO LILY Pi

Contents

LILYGO® TTGO LILY Pi ESP32 Wireless Module User Manual

Model: LILY Pi

1. Introduction

The LILYGO® TTGO LILY Pi is an ESP32-based wireless module designed as a development board, featuring a 3.5-inch capacitive touch display and a 5V relay expansion. Its physical structure is inspired by the Raspberry Pi, including a 2x20 expansion port compatible with Raspberry Pi GPIO accessories. This module integrates Wi-Fi and Bluetooth capabilities, along with various interfaces for versatile applications, making it suitable for Arduino-based projects and IoT development.

LILYGO LILY Pi ESP32 Wireless Module with 3.5-inch display and green terminal block

Figure 1: LILYGO LILY Pi ESP32 Wireless Module

2. Safety Information

  • Ensure proper power supply voltage (5-12V DC or 5V Type-C) to prevent damage.
  • Avoid exposing the module to moisture, extreme temperatures, or static electricity.
  • Handle with care to prevent physical damage to components, especially the display.
  • Do not attempt to modify the hardware beyond its intended use unless you are an experienced electronics developer.
  • Disconnect power before making any wiring changes or connecting/disconnecting peripherals.

3. Package Contents

Verify that all items are present in your package:

  • LILY Pi host X1
  • Type-C line X1
  • Green terminal block X1 (typically pre-attached or included separately)
LILYGO LILY Pi ESP32 Wireless Module with included USB-C cable and green terminal block

Figure 2: Typical Package Contents

4. Specifications

Feature Description
Master ChipESP32-WROVER
Display3.5 inch capacitive touch screen (Options: ST7796 FT6236 or ILI9481 GT911)
USB to TTL ChipCH9102F (Other options may include CP2104)
PSRAM16MB
Flash8MB
RelayHFD3 5V 2A
Relay Connector5.08mm pitch
DC-DC Input5-12V
DC Block Specifications5.5 x 2.1mm
Type-C Input5V
USB Output5V 1A (from expansion ports)
Battery Support3.7V lithium battery (not included)
Battery SwitchToggle Switch
ButtonsRST button, Custom button
RTCPCF8563
Extension Pin Header2.54mm 2x20 (Raspberry Pi GPIO compatible)
Double-layer USB InterfaceI2C/UART functions, 5V 1A output
Dimensions (WxHxD)99.7 x 31.2 x 62.5mm
WeightApprox. 200g
ConnectivityWIFI, Bluetooth
OriginMainland China
Product dimensions diagram, showing 99.7mm length, 31.2mm height, and 62.5mm width.

Figure 3: Product Dimensions

Diagram highlighting the two screen options: TN ST7796 FT6236 and IPS ILI9481 GT911.

Figure 4: Display Options

Diagram showing the two screen options (TN ST7796 FT6236 and IPS ILI9481 GT911) and the two USB-to-TTL chip options (CP2104 vs CH9102).

Figure 5: Display and USB-to-TTL Chip Options

5. Setup

5.1 Power Connection

  • DC Power Jack: Connect a 5-12V DC power adapter (5.5x2.1mm barrel jack) to the DC-DC input port.
  • USB Type-C: Alternatively, connect a 5V USB Type-C cable to the designated port. Note that when powered via USB, a battery is typically not used simultaneously.
  • Battery: If using a 3.7V lithium battery (not included), connect it to the battery interface and use the toggle switch to control power.

5.2 TF Card Insertion

Insert a TF (MicroSD) card into the self-popping card slot located on the back of the module. This slot is designed for easy insertion and removal.

Close-up image of the self-popping TF card slot on the back of the LILY Pi.

Figure 6: TF Card Slot

5.3 Peripheral Connections

  • USB Expansion Ports: The double-layer USB ports can provide 5V 1A output for connecting low-power USB peripherals. These ports also support I2C/UART functions.
  • Relay: Connect external devices to be controlled by the 5V relay via the 5.08mm terminal block.
  • 2x20 Expansion Port: Utilize this port for connecting Raspberry Pi GPIO-compatible expansion accessories. Refer to the pin diagram for specific pin assignments.
Image showing the double-layer USB expansion ports, capable of 5V 1A output.

Figure 7: USB Expansion Ports

Image showing the 2x20 expansion port, compatible with Raspberry Pi GPIO accessories.

Figure 8: 2x20 Expansion Port

Detailed pin diagram for ESP32 LILY Pi, illustrating UART, I2C, Relay, TF Card, Battery, USB Type-C, DC input, and various GPIO assignments.

Figure 9: Product Pin Diagram

6. Operating Instructions

6.1 Initial Power On

Once power is connected, the module should boot up. The 3.5-inch display will activate, and any pre-loaded firmware will begin execution. If using a battery, ensure the toggle switch is in the 'On' position.

6.2 Firmware Development

The LILY Pi is a development board, meaning you will typically upload your own code (firmware) to control its functions. It is compatible with the Arduino IDE and ESP-IDF development frameworks. For detailed programming guides and example code, refer to the official LILYGO GitHub repository:

https://github.com/Xinyuan-LilyGO/LilyPi

6.3 Using the Display and Touch Interface

The 3.5-inch display is a capacitive touch screen. Your firmware will define how the display renders information and how touch inputs are processed. Libraries for display and touch control are typically available through the development environment.

6.4 Button Functionality

  • RST Button: This button is used to reset the ESP32 module, restarting the currently loaded program.
  • Custom Button: The module includes a custom button whose function is determined by your uploaded firmware.

6.5 Relay Control

The integrated 5V 2A relay can be controlled via specific GPIO pins as defined in the pin diagram (Figure 9) and your firmware. Ensure that any connected loads do not exceed the relay's maximum current rating.

7. Maintenance

  • Keep the module clean and free from dust. Use a soft, dry cloth for cleaning.
  • Avoid dropping or subjecting the module to strong impacts.
  • Store the module in a dry environment, away from direct sunlight and extreme temperatures.
  • Regularly check for firmware updates on the official GitHub page to ensure optimal performance and access to new features.

8. Troubleshooting

  • Module not powering on: Verify that the power supply is correctly connected and providing the correct voltage (5-12V DC or 5V Type-C). If using a battery, ensure it is charged and the battery switch is on.
  • Display not showing anything: Check power connections. If custom firmware is loaded, ensure the display initialization code is correct.
  • Unable to upload firmware: Ensure the correct board and port are selected in your IDE. Check USB cable connection and driver installation for the USB-to-TTL chip (CH9102F or CP2104).
  • Wi-Fi/Bluetooth connectivity issues: Verify antenna connections (if external) and check your firmware's network configuration.
  • Peripherals not working: Double-check wiring, power supply to the peripheral, and the GPIO assignments in your code against the pin diagram. Ensure USB peripherals do not draw more than 1A from the expansion ports.

9. User Tips

  • USB Host Functionality: The USB expansion ports can act as a host, providing 5V 1A output. This allows for connecting low-power USB devices directly to the LILY Pi, expanding its capabilities.
  • Display Backlight Control: While not explicitly detailed, many ESP32 display drivers offer backlight control through software. Consult the display library documentation or the LILYGO GitHub for examples on how to adjust backlight intensity.
  • Community Resources: The ESP32 and LILYGO communities are active. Utilize forums and online resources for project ideas, code examples, and troubleshooting assistance.

10. Warranty & Support

For technical support, documentation, and community resources, please visit the official LILYGO GitHub repository:

https://github.com/Xinyuan-LilyGO/LilyPi

If you have specific questions regarding your product or require assistance, please contact LILYGO customer service directly. They are available to provide solutions for product-related inquiries.

Certifications:

EU Type Examination Certificate for the ESP32-WROVER module, Certificate No. B2006186, issued 2020-07-01.

Figure 10: EU Type Examination Certificate for ESP32-WROVER

FCC Equipment Authorization for the ESP32-WROVER module, FCC ID: 2AC7Z-ESP32WROVER.

Figure 11: FCC Equipment Authorization for ESP32-WROVER

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.

Rate this product if you’ve used it

Was this page helpful?