LoRa Radio Wireless SX1276 862-930MHz 915MHz UART Serial Module Transmitter Receiver

by suriono in Circuits > Wireless

169 Views, 3 Favorites, 0 Comments

LoRa Radio Wireless SX1276 862-930MHz 915MHz UART Serial Module Transmitter Receiver

616V0J9hWiL._AC_SX679_.jpg
Lora.png

This tutorial utilizes the LoRa (Long Range) protocol, operating on a frequency range of 862-930 MHz, leveraging the SX1276 RFIC from Semtech. With a specified range of 3 kilometers, this technology is inexpensive and practical for my outdoor robotic projects that demand reliable, long-range serial communication (UART) but at lower bandwidth.

Supplies

616V0J9hWiL._AC_SX679_.jpg
51oCXBH31BL._AC_SX679_.jpg
  1. 2 x LoRa Radio Wireless Modules (SX1276): $23 each on Amazon
  2. 2 x FTDI 3.3V (2nd picture), $7 for two on Amazon:
  3. Set it to 3.3V, used for LoRa configuration and testing purposes.
  4. They can also be used for any other future UART device configurations.

Wiring to Configure the Lora

20240911_220043.jpg
Lora pins.png
ftdi pins.png
openport.png
lora-setting.png

For each pair of Lora (left) and FTDI (right):

  1. GND -> GND
  2. VCC -> VCC
  3. TXD -> RX
  4. RXD -> TX
  5. M0 -> VCC
  6. M1 -> VCC

Steps to configure the Lora:

  1. Connect the FTDI to a computer USB port.
  2. Download the software: https://www.ebyte.com/datadown/943.html and search for "E32". When this tutorial was written, the latest version was version V4.7
  3. Select the serial port number and click "OpenPort", see the 4th picture. You can find the correct port number from your Device Manager.
  4. Click the "GetParam" button and the Lora existing settings will be displayed.
  5. Modify the settings:
  6. UartRate: this the serial baudrate to interface with an external device (e.g. Arduino)
  7. For this tutorial, we'll use a fixed transmission setup with: Address: 0 Channel: 6 This configuration establishes a point-to-point communication link.
  8. In the future if you want to set up a separate pair, set the pair to different address and chanel to prevent interference.
  9. Click the "SetParam" button to save the settings.
  10. Repeat step 1-5 above to the 2nd pair of Lora and FTDI.

The link to the Lora user manual, including how to set it up in a broadcast mode.

Test the Wireless Communication

arduinoport.png
serialmonitor.png
walkitoki.png
  1. Connect the Lora M0 and M1 to GND. Do this to both Lora modules.
  2. Connect the FTDI to a computer USB.
  3. Open any serial terminal app, in my case I use the Arduino IDE
  4. Select the port, in my case COM23, see the 1st picture.
  5. Go to Tools->Serial Monitor, see the 2nd picture. Set the baudrate to the Lora UartRate from the previous section (when Lora was configured).

Repeat the step 1-5 above to the 2nd pair.

  1. The third picture illustrates two separate Serial Monitor windows, displaying data from two pairs of devices: one connected to COM23 and the other to COM10 in my case.
  2. Test wireless communication between the two LoRa devices by typing a message in the Serial Monitor's input field and clicking 'Send'. This enables bidirectional communication, allowing you to exchange messages back and forth

Wiring to External Devices

Lora.png

Both LoRa devices are now configured and ready to establish wireless serial communication

  1. The FTDI are no longer needed.
  2. Connection from Lora (left) to an external device serial (UART):
  3. TXD -> RX
  4. RXD -> TX
  5. VCC -> 3.3V
  6. GND -> GND
  7. Repeat step 1-2 to the 2nd external device:
  8. Wireless connectivity is established between the two devices.