# lora(arduino) 硬體: 1. arduino nano(atmega168) 2. ra-02 目的: 使用arduino測試ra-02模組的收送資料的功能 接線圖: ![](https://i.imgur.com/xZTt4N8.png) 3V3-3.3V Gnd-Gnd NSS-D10 DIO0-D2 SCK-D13 MISO-D12 MOSI-D11 RST-D9 軟體操作: 1. 從函式庫裡面下在由Sandeep Mistry所撰寫的函式庫。 2. 從下載的範例程式裡面使用LoRaReceiver和LoRaSender兩個範例程式,並將Lora模組的操作頻率改為433MHz,程式修改如下: ```bash= LoRa.begin(433E6) ``` 3. 之後如果將收送端同時上電運作,之後接收端顯示字樣表示成功。 參考資料: 1. [Interfacing SX1278 (Ra-02) LoRa Module with Arduino](https://circuitdigest.com/microcontroller-projects/arduino-lora-sx1278-interfacing-tutorial) 2. [SX1276/77/78/79 datasheet](https://cdn-shop.adafruit.com/product-files/3179/sx1276_77_78_79.pdf) 3. [sandeepmistry github](https://github.com/sandeepmistry/arduino-LoRa) ###### tags: `arduino` `lora`