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.
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)
Figure 2: Typical Package Contents
4. Specifications
| Feature | Description |
|---|---|
| Master Chip | ESP32-WROVER |
| Display | 3.5 inch capacitive touch screen (Options: ST7796 FT6236 or ILI9481 GT911) |
| USB to TTL Chip | CH9102F (Other options may include CP2104) |
| PSRAM | 16MB |
| Flash | 8MB |
| Relay | HFD3 5V 2A |
| Relay Connector | 5.08mm pitch |
| DC-DC Input | 5-12V |
| DC Block Specifications | 5.5 x 2.1mm |
| Type-C Input | 5V |
| USB Output | 5V 1A (from expansion ports) |
| Battery Support | 3.7V lithium battery (not included) |
| Battery Switch | Toggle Switch |
| Buttons | RST button, Custom button |
| RTC | PCF8563 |
| Extension Pin Header | 2.54mm 2x20 (Raspberry Pi GPIO compatible) |
| Double-layer USB Interface | I2C/UART functions, 5V 1A output |
| Dimensions (WxHxD) | 99.7 x 31.2 x 62.5mm |
| Weight | Approx. 200g |
| Connectivity | WIFI, Bluetooth |
| Origin | Mainland China |
Figure 3: Product Dimensions
Figure 4: Display Options
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.
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.
Figure 7: USB Expansion Ports
Figure 8: 2x20 Expansion Port
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:
Figure 10: EU Type Examination Certificate for ESP32-WROVER
Figure 11: FCC Equipment Authorization for ESP32-WROVER