perfect:LoRa Precautions for setting output power

This commit is contained in:
Pedestrian 2022-07-25 17:19:15 +08:00
commit 25943a935f
2 changed files with 54 additions and 10 deletions

View file

@ -14,16 +14,16 @@
<h3 align = "left">Product 📷:</h3>
| Product | Product Link | Schematic |
| :-------------------------: | :----------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------: |
| [T-Beam SX1278/76 ]() | [Product link](https://pt.aliexpress.com/item/32967228739.html) | [TBeamV0.7](schematic/LilyGo_TBeam_V0.7.pdf)/ [TBeamV1.0](schematic/LilyGo_TBeam_V1.0.pdf)/ [TBeamV1.1 ](schematic/LilyGo_TBeam_V1.1.pdf) |
| [T-Beam SX1262]() | [Product link](https://pt.aliexpress.com/item/4001287221970.html) | [TBeamV0.7](schematic/LilyGo_TBeam_V0.7.pdf)/ [TBeamV1.0](schematic/LilyGo_TBeam_V1.0.pdf)/ [TBeamV1.1 ](schematic/LilyGo_TBeam_V1.1.pdf) |
| [LoRa32 V1.0 SX1276]() | [Product link](https://pt.aliexpress.com/item/32842155838.html) | ❌ |
| [LoRa32 V1.0 SX1278]() | [Product link](https://pt.aliexpress.com/item/32842155838.html) | ❌ |
| [LoRa32 V1.3 SX1276]() | [Product link](https://pt.aliexpress.com/item/4000628100802.html) | [LoRa32 V1.3](schematic/T3_V1.3.pdf) |
| [LoRa32 V2.0]() | [Product link](https://pt.aliexpress.com/item/32847443952.html) | [LoRa32 V2.0](schematic/T3_V2.0.pdf) |
| [LoRa32 V2.1_1.6 Version]() | [AliExpress](https://pt.aliexpress.com/item/32872078587.html)/[Amazon](https://www.amazon.com/dp/B09SHRWVNB?ref=myi_title_dp) | [LoRa32 V2.1_1.6](schematic/T3_V1.6.pdf) |
| [T-Motion S76G]() | [Product link](https://www.aliexpress.com/item/4000571051141.html) | [T-Motion](schematic/T-Motion.pdf) |
| Product | Product Link | Schematic |
| :-------------------------: | :---------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------: |
| [T-Beam SX1278/76 ]() | [Product link](https://pt.aliexpress.com/item/32967228739.html) | [TBeamV0.7](schematic/LilyGo_TBeam_V0.7.pdf)/ [TBeamV1.0](schematic/LilyGo_TBeam_V1.0.pdf)/ [TBeamV1.1 ](schematic/LilyGo_TBeam_V1.1.pdf) |
| [T-Beam SX1262]() | [Product link](https://pt.aliexpress.com/item/4001287221970.html) | [TBeamV0.7](schematic/LilyGo_TBeam_V0.7.pdf)/ [TBeamV1.0](schematic/LilyGo_TBeam_V1.0.pdf)/ [TBeamV1.1 ](schematic/LilyGo_TBeam_V1.1.pdf) |
| [LoRa32 V1.0 SX1276]() | [Product link](https://pt.aliexpress.com/item/32842155838.html) | ❌ |
| [LoRa32 V1.0 SX1278]() | [Product link](https://pt.aliexpress.com/item/32842155838.html) | ❌ |
| [LoRa32 V1.3 SX1276]() | [Product link](https://pt.aliexpress.com/item/4000628100802.html) | [LoRa32 V1.3](schematic/T3_V1.3.pdf) |
| [LoRa32 V2.0]() | [Product link](https://pt.aliexpress.com/item/32847443952.html) | [LoRa32 V2.0](schematic/T3_V2.0.pdf) |
| [LoRa32 V2.1_1.6 Version]() | [AliExpress](https://pt.aliexpress.com/item/32872078587.html)/[Amazon](https://www.amazon.com/dp/B09SHRWVNB?ref=myi_title_dp) | [LoRa32 V2.1_1.6](schematic/T3_V1.6.pdf) |
| [T-Motion S76G]() | [Product link](https://www.aliexpress.com/item/4000571051141.html) | [T-Motion](schematic/T-Motion.pdf) |
## Example description
@ -91,3 +91,24 @@ To quickly start using TTN (The Things Network), please refer to [LilyGo_LoRa_Se
- [GPS Air530]()
<h3 align = "left">Announcements :</h3>
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);
}
```

View file

@ -61,6 +61,7 @@ examples
```
<h3 align = "left">常见问题 :</h3>
1. GPS没有数据输出[参考GPS恢复出厂](firmware/GPS_%20reset)
@ -88,3 +89,25 @@ examples
- [SX1276](https://www.semtech.com/products/wireless-rf/lora-transceivers/sx1276)
- [GSP NEO-6/NEO-8](https://www.u-blox.com/en/product/neo-6-series)
- [GPS Air530]()
<h3 align = "left">注意事项 :</h3>
1. 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);
}
```