1. Вступ
The Waveshare SX1262 LoRaWAN HAT is an expansion board designed for Raspberry Pi series boards, including Raspberry Pi 4B/3B/Zero/Zero W/Zero 2W, and Pico/Pico W. This HAT enables LoRaWAN communication in the 868/915MHz frequency band. It integrates the SX1262 chip, which offers improved power efficiency and an extended transmission range compared to the SX1278. This module facilitates the creation of LoRaWAN nodes, allowing seamless connection to cloud servers such as The Things Network (TTN) for various Internet of Things (IoT) applications.
2. Вміст упаковки
Перевірте, чи всі перелічені нижче предмети входять до вашої упаковки:
- SX1262 868/915M LoRaWAN HAT x1
- 868/915M Magnetic CB antenna x1
- IPEX to SMA adapter cable (~17cm) x1
- 2x20PIN female pinheader x1
- Набір гвинтів x1

Figure 1: Included components of the Waveshare SX1262 LoRaWAN HAT package.
3. особливості
- Standard Raspberry Pi 40PIN GPIO header, ensuring compatibility with Raspberry Pi series boards.
- Integrates the new generation SX1262 chip, offering higher power efficiency and longer transmission distance compared to the SX1278.
- Suitable for Sub-GHz band operation (868/915MHz for this model).
- Designed for building LoRaWAN networks, allowing quick connection to cloud servers like TTN when combined with a gateway.
- SPI communication interface.

Figure 2: Key features of the SX1262 LoRaWAN HAT.
4. Технічні характеристики
| Параметр | Значення |
|---|---|
| RF чіп | SX1262 |
| Діапазон частот | HF: 850 - 930MHz (868/915M for this model) |
| Модуляція | LoRa / (G)FSK |
| Data Rate (LoRa) | 0.018 - 62.5kbps |
| Data Rate (GFSK) | 0.6 - 300kbps |
| Emit Power | 22 дБм@3.3В |
| Фактор поширення | SF7 - SF12 |
| Робочий випtage | 3.3 В |
| Module Current Consumption (emitting) | 107 мА при 22 дБм |
| Module Current Consumption (receiving) | 5.3mA@125KHz |
| Комунікаційна шина | SPI |
| Робоча температура | 0 - 50°C |
| Інтерфейс | 40-контактний роз’єм GPIO |

Figure 3: Technical specifications of the SX1262 LoRaWAN HAT.
5. Pinout Definition
The SX1262 LoRaWAN HAT connects to the Raspberry Pi via its 40-pin GPIO header. Understanding the pinout is crucial for proper integration and software development. The following table and diagram detail the pin assignments for the LoRa node functionality:
| Назва PIN-коду | функція |
|---|---|
| CS | LoRa CS pin |
| CLK | LoRa CLK pin |
| МОЗІ | LoRa MOSI pin |
| МІСО | LoRa MISO pin |
| ЗАЙНЯТЕ | LoRa BUSY pin |
| DIO1 | LoRa DIO1 pin |
| DIO4 | LoRa transmit enable pin |
| RST | LoRa reset pin |
| 5V | Джерело живлення 5В |
| GND | Земля |

Figure 4: Pinout diagram for the SX1262 LoRaWAN HAT.
6. What's On Board
Цей розділ забезпечує оверview of the main components and indicators on the SX1262 LoRaWAN HAT:
- SX1262 LoRa module
- Power chip (5V to 3.3V LDO)
- LoRa module IPEX 1 connector (for LoRa antenna)
- Status Indicator (PWR: power indicator, RXD/TXD: UART RX/TX indicator)
- Raspberry Pi 40PIN GPIO header (for connecting with Raspberry Pi series boards)
- LoRa module pin header

Figure 5: Labeled components on the SX1262 LoRaWAN HAT. Note: This image may depict a variant with GNSS components not present on this specific model.
7. Налаштування
Follow these steps to set up your Waveshare SX1262 LoRaWAN HAT:
- Attach the HAT to Raspberry Pi: Carefully align the 40-pin female header of the SX1262 LoRaWAN HAT with the GPIO pins on your Raspberry Pi board. Gently press down until the HAT is securely seated. Use the provided screws and standoffs to fix the HAT to the Raspberry Pi for stability.
- Підключіть антену:
- Connect the IPEX to SMA adapter cable to the LoRa module IPEX connector on the HAT.
- Screw the 868/915M magnetic CB antenna onto the SMA connector of the adapter cable. Ensure a firm connection.
- Конфігурація програмного забезпечення:
The SX1262 LoRaWAN HAT requires software configuration on your Raspberry Pi. Refer to the official Waveshare Wiki for detailed, up-to-date instructions and demo code. This typically involves:
- Enabling SPI interface on your Raspberry Pi.
- Installing necessary libraries and dependencies (e.g., Python libraries for LoRa communication).
- Запуск ексample scripts to test communication.
Note: Software setup can be complex. Consult the Waveshare Wiki for specific commands and troubleshooting tips.

Figure 6: SX1262 LoRaWAN HAT mounted on a Raspberry Pi.
8. Інструкція з експлуатації
Once the hardware is assembled and software is configured, you can begin operating the SX1262 LoRaWAN HAT as a LoRaWAN node:
- Увімкнення: Ensure your Raspberry Pi is powered on. The PWR indicator LED on the HAT should illuminate.
- Initialize LoRa Module: Use your configured software to initialize the SX1262 module. This typically involves setting the frequency, spreading factor, bandwidth, and coding rate.
- Join LoRaWAN Network: For LoRaWAN operation, the node needs to join a network. This can be done via Over-The-Air Activation (OTAA) or Activation By Personalization (ABP). Your software will handle the necessary keys and procedures.
- Send and Receive Data: Once joined, the node can transmit uplink messages to a LoRaWAN gateway and receive downlink messages. Monitor the RXD/TXD indicator LEDs for activity.
- Обробка даних: Data transmitted by the node will be forwarded by the gateway to a Network Server (e.g., TTN), where it can be processed and integrated with other applications.
For specific programming examples and detailed API usage, refer to the Waveshare Wiki and any relevant LoRaWAN documentation or libraries you are using.
9. Заявка Exampлес
The SX1262 LoRaWAN HAT is suitable for a wide range of applications requiring long-range, low-power wireless communication. Common use cases include:
- Промисловий контроль і моніторинг
- Smart Home Automation (e.g., water meters, alarms, lighting)
- Environmental Monitoring (e.g., temperature, humidity sensors)
- Agricultural IoT (e.g., soil moisture, livestock tracking)
- Data Acquisition Systems

Figure 7: LoRaWAN application exampлес.
10. Вирішення проблем
У цьому розділі розглядаються поширені проблеми, з якими ви можете зіткнутися:
- Software Installation Errors:
If you encounter errors during library installation (e.g.,
setup.py installissues), ensure you are following the latest instructions on the Waveshare Wiki. Verify all dependencies are met and consider using modern package management tools likepipзbuildif recommended. - Unreliable Message Transmission (e.g., garbled messages, dropped packets):
This can be caused by frequency drift, especially with longer messages or higher transmit power, leading to overheating. Try the following:
- Reduce the transmit power (Tx power) in your software configuration.
- Ensure the antenna is securely connected and positioned optimally.
- Verify the operating environment is within the specified temperature range (0-50°C).
- For Meshtastic users, be aware that some users have reported limitations with message length and reliability on this specific HAT due to oscillator stability. Consider shorter messages or alternative modem presets if issues persist.
- No GPS/GNSS Functionality:
This specific model, the SX1262 868/915M LoRaWAN HAT, does not include a GNSS (GPS) chip. If you require location services, ensure you have purchased the correct variant (e.g., "SX1262 LoRaWAN/GNSS HAT") or integrate an external GNSS module.
- No Power Indicator (PWR LED off):
Check the connection of the HAT to the Raspberry Pi GPIO header. Ensure the Raspberry Pi is powered correctly. Inspect for any physical damage to the HAT or Raspberry Pi.
11. Технічне обслуговування
To ensure the longevity and optimal performance of your SX1262 LoRaWAN HAT, follow these maintenance guidelines:
- Прибирання: Keep the board free from dust and debris. Use a soft, dry brush or compressed air for cleaning. Avoid using liquids or solvents.
- Зберігання: When not in use, store the HAT in an anti-static bag in a cool, dry environment, away from direct sunlight and extreme temperatures.
- Обробка: Always handle the board by its edges to avoid touching components, especially the antenna connectors. Static electricity can damage electronic components.
- Догляд за антеною: Ensure the antenna connection remains secure. Avoid bending or stressing the antenna cable excessively.
12. Гарантія та підтримка
For warranty information, technical support, and further documentation, please refer to the official Waveshare resources:
- Офіційний Waveshare Webсайт: Visit the Waveshare website for product pages, datasheets, and software downloads.
- Вікіпедія Waveshare: The Waveshare Wiki provides comprehensive tutorials, demo codes, and detailed technical information for their products. It is the primary resource for software setup and development.
- Підтримка клієнтів: For specific issues not covered in the documentation, contact Waveshare customer support through their official channels.
Будь ласка, збережіть чек про покупку для будь-яких гарантійних претензій.
13. Габаритні розміри
The physical dimensions of the SX1262 LoRaWAN HAT are provided below for integration planning:

Figure 8: Outline dimensions of the SX1262 LoRaWAN HAT (Unit: mm).