Skip to content

Xinyuan-LilyGO/T-Echo

Repository files navigation

🌟LilyGo T-ECHO🌟

English | 中文

Using Arduino IDE

  1. Download Arduino IDE

  2. Open Arduino, open preferences-> add https://adafruit.github.io/arduino-board-index/package_adafruit_index.json to the board installation manager address list

  3. Open the board installation manager, wait for the index update to complete, select 'Adafruit nRF52 by Adafruit' and click install

  4. After the installation is complete, select 'Nordic nRF52840(PCA10056)' in the board list

  5. Copy all the folders in the lib directory to "C:\User\<YourName>\Documents\Arduino\libraries"

  6. Open the sketch => tool => port, select the port of the connected board, and click upload

Using PlatformIO

  1. Install VSCODE and Python

  2. Search for the PlatformIO plug-in in the VSCODE extension and install it.

  3. After the installation is complete and the reload is completed, there will be a small house icon in the lower left corner. Click to display the Platformio IDE home page

  4. Go to file - > Open folder - > Select the LilyGO-T-ECHO folder and click the (√) symbol in the lower left corner to compile (→) for upload.

  5. If you use USB to download the firmware (platformio.ini upload_protocol = nrfutil), you need to double-click reset button to enter DFU mode before downloading

Product 📷

Product Product Link
T-Echo AliExpress/Amazon/Tindie

PinOut

Antenna Actual Test Reference

Application

Precautions

  1. Need to use the files in the lib directory, it includes:

  2. Pins on boards are not compatible with the official SDK.If you want to use the SDK, pay special attention to the pin definition.

  3. Use Adafruit_nRF52_Arduino by default, so Adafruit_nRF52_Bootloader has been burned in the factory, if you use nRF5-SDK Programming the board will lose the original bootloader

  4. If you need to use nRF5-SDK for programming, please click the link to download nRF5-SDK

  5. NFC Function is not supported in Adafruit_nRF52_Arduino, please use nRF5-SDK for programming

  6. Flash will choose MX25R1635FZUIL0 or ZD25WQ16B according to the availability.Pay attention to the difference when using.

  7. If you need to burn a new bootloader, see Burning a new bootloader

Battery life

Current consumption from 3.7 Volt battery:

Mode Average current
Active backlight OFF 42 mA
Active backlight ON 55 mA
Sleep 0.25 mA

Operating time from a full charge depends on your actual battery capacity.


The below figure represents a more specific test, and you can use the example Sleep_Display to write your low-power device program.

programming algorithm

Announcements :

  1. After setting the LoRa output power, set the lowest current. Set sx1262 as follows :
    // digitalWrite(LoRa_Busy, LOW);
    // set output power to 10 dBm (accepted range is -17 - 22 dBm)
    if (radio.setOutputPower(22) == RADIOLIB_ERR_INVALID_OUTPUT_POWER) {
        Serial.println(F("Selected output power is invalid for this module!"));
        while (true);
    }


    // set over current protection limit to 80 mA (accepted range is 45 - 240 mA)
    // NOTE: set value to 0 to disable overcurrent protection
    if (radio.setCurrentLimit(80) == RADIOLIB_ERR_INVALID_CURRENT_LIMIT) {
        Serial.println(F("Selected current limit is invalid for this module!"));
        while (true);
    }