English | 中文
-
Download Arduino IDE
-
Open Arduino, open preferences-> add https://adafruit.github.io/arduino-board-index/package_adafruit_index.json to the board installation manager address list
-
Open the board installation manager, wait for the index update to complete, select 'Adafruit nRF52 by Adafruit' and click install
-
After the installation is complete, select 'Nordic nRF52840(PCA10056)' in the board list
-
Copy all the folders in the lib directory to
"C:\User\<YourName>\Documents\Arduino\libraries"
-
Open the sketch => tool => port, select the port of the connected board, and click upload
-
Search for the PlatformIO plug-in in the VSCODE extension and install it.
-
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
-
Go to file - > Open folder - > Select the LilyGO-T-ECHO folder and click the (√) symbol in the lower left corner to compile (→) for upload.
-
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 Link |
---|---|
T-Echo | AliExpress/Amazon/Tindie |
-
Need to use the files in the lib directory, it includes:
-
Pins on boards are not compatible with the official SDK.If you want to use the SDK, pay special attention to the pin definition.
-
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
-
If you need to use nRF5-SDK for programming, please click the link to download nRF5-SDK
-
NFC Function is not supported in Adafruit_nRF52_Arduino, please use nRF5-SDK for programming
-
Flash will choose MX25R1635FZUIL0 or ZD25WQ16B according to the availability.Pay attention to the difference when using.
-
If you need to burn a new bootloader, see Burning a new bootloader
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.
- 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);
}