Qu3uk / LilyGo-LoRa-Series

LilyGo LoRa Series examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌟LilyGo LoRa Series🌟

English | δΈ­ζ–‡

USE Arduino IDE

  1. Install the current upstream Arduino IDE at the 1.8 level or later. The current version is at the Arduino website. (NOTE: MacOS may require that you install separate drivers to interact with your board. You will get error messages that occur when the IDE attempts to upload code. You should consider running the Arduino IDE in a Virtual Machine on Linux. Installing other drivers on your Mac is out of scope for this document.)
  2. Start Arduino and open Preferences window. In additional board manager add url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json If you have multiple URLs (e.g., for other boards), just add previously mentioned URL, separated by a comma.
  3. Copy all folders in the lib directory to your Arduino Libraries Directory,
  • in MacOS, it is ~/Documents/Arduino/libraries
  • in Linux, it is ~/Arduino/libraries
  • in Windows, it is Documents/Arduino/libraries
  1. Open the corresponding example
  2. In the Arduino Application, navigate to the Board Manager menu ("Tools => Board => Board Manager"), search for esp32, and make sure that you install the latest version. After you do this, you can select the board you have from the list of boards in the "ESP32 Arduino" menu ("Tools=> Board => ESP32 Arduino"). It's very important to note that the list of boards is NOT in alphabetical order. Look for the board you are working with carefully in the list.
  3. T-Beam users can choose TTGO T-Beam, lora32(T3) users can choose ESP32 Dev Module , T-Motion users choose Nucleo_l073RZ,T3-S3-V1.0and T-BeamS3 Core users can selected ESP32S3 Dev Module
  4. Select the port of the board in the port
  5. For other examples except the GPS directory, please uncomment in the upper part of utilities.h according to your board model, otherwise the compilation will report an error
  6. Upload

Product πŸ“·

Product Product Link Schematic Corresponding example macro definition
T-Beam SX1278/76 AliExpress TBeamV0.7 / TBeamV1.0 / TBeamV1.1 LILYGO_TBeam_V0_7 / LILYGO_TBeam_V1_X
T-Beam SX1262 AliExpress TBeamV0.7 / TBeamV1.0 / TBeamV1.1 LILYGO_TBeam_V0_7 / LILYGO_TBeam_V1_X
LoRa32 V1.0 SX1276 AliExpress ❌ LILYGO_T3_V1_0
LoRa32 V1.0 SX1278 AliExpress ❌ LILYGO_T3_V1_0
LoRa32 V1.3 SX1276 AliExpress LoRa32 V1.3 LILYGO_T3_V1_3
LoRa32 V2.0 AliExpress LoRa32 V2.0 LILYGO_T3_V1_3
LoRa32 V2.1 & 1.6 AliExpress/Amazon LoRa32 V2.1_1.6 LILYGO_T3_V1_6
T-Motion S76G AliExpress T-Motion LILYGO_T3_V1_6
LoRa32 V1.8 2.4G lilygo.cc LoRa32 V1.8 2.4G LILYGO_T3_V1_8
LoRa T3 S3 V1.0 lilygo.cc LoRa T3 S3 V1.0 LILYGO_T3_S3_V1_0
LoRa T3 S3 V1.1 lilygo.cc LoRa T3 S3 V1.1 LILYGO_T3_S3_V1_0 (Same as 1.0)

Example description

β”œβ”€ArduinoLoRa       # Only support SX1276/SX1278 radio module
β”‚  β”œβ”€LoRaReceiver
β”‚  └─LoRaSender
β”œβ”€GPS                           # T-Beam GPS demo examples
β”‚  β”œβ”€TinyGPS_Example
β”‚  β”œβ”€TinyGPS_FullExample
β”‚  β”œβ”€TinyGPS_KitchenSink
β”‚  β”œβ”€UBlox_BasicNMEARead        # Only support Ublox GNSS Module 
β”‚  β”œβ”€UBlox_Recovery             # Only support Ublox GNSS Module 
β”‚  └─UBlox_NMEAParsing          # Only support Ublox GNSS Module 
β”œβ”€OLED                          # OLED demo examples
β”‚  β”œβ”€SH1106FontUsage
β”‚  β”œβ”€SH1106GraphicsTest
β”‚  β”œβ”€SH1106IconMenu
β”‚  β”œβ”€SH1106PrintUTF8
β”‚  β”œβ”€SSD1306SimpleDemo
β”‚  └─SSD1306UiDemo
β”œβ”€RadioLibExamples              # RadioLib examples,Support SX1276/78/62/80
β”‚  β”œβ”€SX1262
β”‚  β”‚  β”œβ”€SX1262_Receive_Interrupt
β”‚  β”‚  └─SX1262_Transmit_Interrupt
β”‚  β”œβ”€SX1268
β”‚  β”‚  β”œβ”€SX1268_Receive_Interrupt
β”‚  β”‚  └─SX1268_Transmit_Interrupt
β”‚  β”œβ”€SX1276
β”‚  β”‚  β”œβ”€SX1276_Receive_Interrupt
β”‚  β”‚  └─SX1276_Transmit_Interrupt
β”‚  β”œβ”€SX1278
β”‚  β”‚  β”œβ”€SX1278_Receive
β”‚  β”‚  β”œβ”€SX1278_Receive_Interrupt
β”‚  β”‚  β”œβ”€SX1278_Transmit
β”‚  β”‚  └─SX1278_Transmit_Interrupt
β”‚  β”œβ”€SX1280
β”‚  β”‚  β”œβ”€Ranging
β”‚  β”‚  β”‚  β”œβ”€Ranging_Master
β”‚  β”‚  β”‚  └─Ranging_Slave
β”‚  β”‚  β”œβ”€SX128x_Receive_Interrupt
β”‚  β”‚  └─SX128x_Transmit_Interrupt
β”‚  └─TBeamAllFunction   # T-Beam all function example,Only tbeamv1.x is supported temporarily
β”œβ”€β”€ Sensor            # Sensor examples , just support t-beam-s3-core
β”‚   β”œβ”€β”€ BME280_AdvancedsettingsExample
β”‚   β”œβ”€β”€ BME280_TestExample
β”‚   β”œβ”€β”€ BME280_UnifiedExample
β”‚   β”œβ”€β”€ PCF8563_AlarmByUnits
β”‚   β”œβ”€β”€ PCF8563_SimpleTime
β”‚   β”œβ”€β”€ PCF8563_TimeLib
β”‚   β”œβ”€β”€ PCF8563_TimeSynchronization
β”‚   β”œβ”€β”€ QMC6310_CalibrateExample
β”‚   β”œβ”€β”€ QMC6310_CompassExample
β”‚   β”œβ”€β”€ QMC6310_GetDataExample
β”‚   β”œβ”€β”€ QMC6310_GetPolarExample
β”‚   β”œβ”€β”€ QMI8658_BlockExample
β”‚   β”œβ”€β”€ QMI8658_GetDataExample
β”‚   β”œβ”€β”€ QMI8658_InterruptBlockExample
β”‚   β”œβ”€β”€ QMI8658_InterruptExample
β”‚   β”œβ”€β”€ QMI8658_LockingMechanismExample
β”‚   β”œβ”€β”€ QMI8658_MadgwickAHRS
β”‚   β”œβ”€β”€ QMI8658_PedometerExample
β”‚   β”œβ”€β”€ QMI8658_ReadFromFifoExample
β”‚   └── QMI8658_WakeOnMotion
β”œβ”€SleepTest
└─LoRaWAN                           # OTAA method Join TTN example
    └─OTTA

Radio resolution

How to distinguish the model of Radio just need to look at the sticker on the board, 433MHz is SX1278, 868MHz is SX1276, If the label says SX1262 then it is SX1262

Precautions

  1. If there is no data output from GPS, see Restoring factory defaults

PinOut

Application

TTN

To quickly start using TTN (The Things Network), please refer to LilyGo_LoRa_Series_Quick_Start

Datasheet :

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);
    }

About

LilyGo LoRa Series examples


Languages

Language:C 81.3%Language:C++ 16.2%Language:HTML 1.7%Language:Python 0.5%Language:JavaScript 0.1%Language:CSS 0.1%Language:Shell 0.1%Language:Processing 0.0%Language:CMake 0.0%Language:Makefile 0.0%