• Stars
    star
    502
  • Rank 87,851 (Top 2 %)
  • Language
    C
  • Created over 5 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

LILYGO LoRa Series examples

🌟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 Supreme users can selected ESP32S3 Dev Module
  4. Select the port of the board in the port
  5. Please uncomment the utility.h file above each sketch based on your board model, otherwise compilation will report an error
  6. Upload

Cautions

  1. When using the SX1280 PA T3S3 V1.1 (V1.2 does not have this issue), it is recommended that the software control 1280 chip output 2 to 5 dbm, so that the entire module will output 20 dbm of power; When the output of 1280 chip is higher than 2 dbm, the output power of the entire module is only 20 dbm; When the output of 1280 chip is higher than 5 dbm, the output power of the entire module is only 20 dbm, but if 5 dbm is given to the FEM, it will damage the FEM chip (the maximum allowable input for the FEM is 5 dbm) If the output of the 1280 chip is lower than 2 dbm, the output power of the entire module is within 20 dbm. The output power setting of the SX1280 cannot be greater than 2-5dbm, otherwise damage to the FEM chip may occur. Set 3dBM to have an output power of 20dmb

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_V2_0
LoRa32 V2.1 & 1.6 AliExpress/Amazon LoRa32 V2.1_1.6 LILYGO_T3_V1_6
T-Motion S76G AliExpress T-Motion LILYGO_T_MOTION_S76G
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)
T-Beam S3 Supreme/T-BeamS3 Core lilygo.cc T-Beam S3 Supreme & T-Beam S3 Core LILYGO_TBeamS3_SUPREME_V3_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_OutputRate           # 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-beams3-supreme
│   ├── 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
  2. GNSS troubleshooting from SoftRF

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

FAQ

  • LILYGO_TBeamS3_SUPREME_V3_0 The GPS backup power comes from the 18650 battery. If you remove the 18650 battery, you will not be able to get the GPS hot start. If you need to use the GPS hot start, please connect the 18650 battery

More Repositories

1

TTGO-T-Display

C
938
star
2

TTGO_TWatch_Library

C
800
star
3

T-Display-S3

C
778
star
4

LilyGo-T-Call-SIM800

409
star
5

LilyGo-EPD47

C
400
star
6

T-Wristband

DIY Programmable Bracelet
C
310
star
7

LilyGO-T-SIM7000G

LilyGO T-SIM7000G
C++
276
star
8

T-Deck

C
250
star
9

LilyGo-T5-Epaper-Series

C
178
star
10

LilyGO-T-ETH-Series

C
167
star
11

T-PicoC3

C
160
star
12

T-Display-S3-AMOLED

An upgraded version of T-Display-S3. It has a high-resolution color screen and more configurable GPIO ports. Enrich your needs.
C
147
star
13

T-Echo

C
145
star
14

T-Dongle-S3

An ESP32S3 development board that can freely use WIFI, BLE, TF, LED, TFT_LCD functions.
C
127
star
15

T-SIM7600X

C++
123
star
16

LilyGO-T-A76XX

LilyGo A7670X A7608X SIM7670G series
C++
116
star
17

LilyGo-HiGrow

https://pt.aliexpress.com/item/32815782900.html
C++
115
star
18

LilyGo-AMOLED-Series

LilyGo AMOLED Series
C
113
star
19

T-TWR

Programmable walkie-talkie.
C
102
star
20

T-QT

C
100
star
21

lilygo-micropython

Micropython for LILYGO boards
C
98
star
22

T-CAN485

C++
91
star
23

TTGO-T-Watch

Obsolete, please visit https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library
C
91
star
24

LilyGo-T-PCIE

Python
89
star
25

T-Embed

C
85
star
26

T-Watch-2021

C
82
star
27

LILYGO-T-display-RP2040

C
82
star
28

LilyGo-T-RGB

C
82
star
29

T-ZigBee

Zigbee Ultra Low Power IOT Development Board
C
75
star
30

LilyGo-T-OI-PLUS

esp32-c3 development board with 16340 battery holder
C++
72
star
31

LilyGo-T-Relay

C
70
star
32

T-keyboard

mini ble Keyboard for IOS/Android/Windows
C
64
star
33

T-Impulse

Wristband with LoRa and GPS
C
51
star
34

LilyGo-Document

48
star
35

T-Internet-COM

C
48
star
36

LilyGo-T-SIM7080G

C++
47
star
37

LilyGo-T-Display-S2

C
47
star
38

T-HMI

C
46
star
39

LilyGo-Cam-ESP32S3

C
46
star
40

T-FPGA

The circuit board is an integrated ESP32S3 and FPGA (GW1NSR-LV4CQN48PC6/I5) control chip. With the power management AXP2101 can be used to switch the voltage of different BANK areas.
GLSL
43
star
41

T-Display-S3-Long

C
42
star
42

LilyGO-T-DisplayGD32

LilyGo GD32
C
37
star
43

T-Display-S3-Pro

C
35
star
44

LilyGO-T-Wristband-and-T-Glass

C
35
star
45

LilyGo-esp32s2-base

C
33
star
46

esp32-camera-plus-bigiot

Use TTGO-Camera-Plus to upload captured images to the BIGIOT platform every 10 seconds
C
30
star
47

LilyGo-T-Wristband-NRF52

C
28
star
48

TTGO_Camera_Mini

TTGO_Camera_Mini
C
26
star
49

Wrist-E-Paper

C
25
star
50

CH9102_Driver

24
star
51

T7-S3

ESP32-S3 Development Board
23
star
52

LilyGo-HeartRate-Kit

C
22
star
53

T-Halow

C
22
star
54

T-01C3

C++
21
star
55

T-Keyboard-S3

A Smart Screen Keyboard Based on ESP32s3
C
21
star
56

T-A7608X

21
star
57

LilyGo-TTV

C
20
star
58

T-Dongle-ESP32S2

C
20
star
59

T-Touch_Bar

C
20
star
60

LilyGo-Display-IDF

This project is an esp-idf sample repository for the LilyGo display family.
C
19
star
61

T-Panel

This is an RGB screen with a pixel resolution of 480x480, featuring dual chips on board, ESP32S3 and ESP32H2 chips, supporting 7-24V voltage input, RS485 communication, and more.
C
18
star
62

LilyGo-W5500-Lite

C++
17
star
63

T-RSC3

C++
16
star
64

ESP32_S2

15
star
65

RFID-UHF-reader

MagicRF M100/QM100
C++
14
star
66

T-Encoder-Pro

T-Encoder-Pro is a smart control knob equipped with a AMOLED screen, developed based on the ESP32S3R8 chip, which is controlled by a dial.
C
14
star
67

LilyGo-HAL

13
star
68

TTGO-Camer-Mic

TTGO Camera Microphone version
C
13
star
69

T-Encoder

C++
13
star
70

T-U2T

12
star
71

twatch-series-modules

C
12
star
72

T-Motor

C
12
star
73

LilyGo-eink-v2.3-micropython

Python
11
star
74

LilyGO-Mini-Epaper

C
11
star
75

LilyGO-T-HiGrow-LoRaWLAN

C++
11
star
76

T-solar

C
10
star
77

T-HC32

10
star
78

T-Track

C
10
star
79

LilyGO-T-Motion

LilyGO-T-Motion
10
star
80

T8-C3

AGS Script
9
star
81

T-HiGrow-Dashboard

Rich Text Format
8
star
82

T-Encoder-shield

Customize Macro Keys and APA102 RGB Full Color LED light.
C
8
star
83

TTCar_3D_Model

C++
8
star
84

T-Micro32-Series

AGS Script
7
star
85

T-0.99TFT

C++
7
star
86

T-Camera

OV2640 V16
HTML
7
star
87

T-Display-keyboard

C
7
star
88

T-Touchbar-AMOLED

C
7
star
89

T96-OLED-SSD1306

6
star
90

T5-ePaper-NewPanel

C
6
star
91

EPD47-HC08

6
star
92

SX1302_HAL_GATEWAY

6
star
93

T-NixieTube

C
5
star
94

LilyGo-K210-Script

Python
5
star
95

T-Vending

C++
5
star
96

LilyPi

C
5
star
97

LILYGO-T8

5
star
98

LilyGo-T-PicoPro

C
5
star
99

LilyGo-T5-Grayscale

C
5
star
100

T-QT-C6

TQT-C6 is a mini development board based on the ESP32C6 chip, which is only the size of two thumbnails. It features a 128x128px TFT full-color touch screen, a separate charging indicator light, and an independent battery. It can communicate with the power path management chip to modify the power bus status and limit values.
C
5
star