English | 中文
- 将
lib
目录中所有文件夹复制到~/Arduino/libraries
目录内,Windons用户放在"我的文档/Arduino/libraries"
- 打开对应的示例
T-Beam
用户可以选择TTGO T-Beam
,lora32(T3)
用户可以选择ESP32 Dev Module
,T-Motion
用户选择Nucleo_l073RZ
,T3-S3-V1.0
和T-BeamS3-Core
用户选择ESP32S3 Dev Module
- 在端口中选择板子的端口
- 除了GPS 目录外的其他示例,请在
utilities.h
中上方根据你的板子型号取消注释,否则编译将报错误 - 上传
- SX1280的输出功率设置不能大于3dbm,否则可能导致FEM芯片损坏。设置3dbm就已经有20dmb的输出功率
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) |
├─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-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
分辨LoRa的型号只需要查看板子上的贴纸, 433MHz则是SX1278, 868MHz则是SX1276, 如果标签写的是SX1262则是SX1262
- GPS没有数据输出,参考GPS恢复出厂
- See utilities.h
接入TTN(The Things Network)使用请参考 LilyGo_LoRa_Series_Quick_Start
- LoRa设置输出功率后需要设置最低电流。设置sx1262如下 :
// 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);
}