-->

LoRaWan Module(RHF76-052)

SKU:M018

Regular price $14.50
Standard Shipping Estimated Delivery Time: 7-20 days
Description

LoRaWAN build with RHF76-052 and optional Antennas. RHF76-052 is designed by Ai-Thinker, it is a LoRaWAN ™ UART modem & compatible device, supports LoRaWAN communication. It's based on the RHF76-052 module and an embeded LoRaWAN stack. You can use M5 core as a host MCU to control this this modem with simple AT command or UART.

Since LoRa defines the lower physical layer, the upper networking layers were lacking. LoRaWAN was developed to define the upper layers of the network. LoRaWAN is a media access control (MAC) layer protocol but acts mainly as a network layer protocol for managing communication between LPWAN gateways and end-node devices as a routing protocol,maintained by the LoRa Alliance.

you can upgrade your work with a LoRa / LoRaWAN radio, so it can communicate over very long distances and extrmely low power consuming.

By default, the UART configuration: "9600, 8, n, 1"(8 bits data, no parity, 1 stop bit)

Notice: The 5 holes which are under the silk screen "LoRaWAN" are designed for upgrading the firmware of LoRaWAN module.

Product Features

  • Build-in PCB Antenna
  • External Antenna Port

LoRaWAN Module Specification

  • Model: RHF76-052
  • Version: C - Single Band 868/915 MHz
  • Radio IC: Semtech SX1276
  • Microcontroller: STM32L052C8T6
  • Package: SMD-33
  • Size: 28 x 23 x 3 mm
  • Weight: 3.2g
  • interface: UART
  • Protocol: AT commands
  • Embedded LoRaWAN protocol stack
  • Frequency: 868/915 MHz
  • TXOP: 20dBm @ 868MHz/915MHz
  • Link budget: 160dB
  • Antenna: external (via PCB pad)
  • Supply voltage range: 1.8 ~ 3.6V
  • Typical supply voltage: 3.3V
  • Current usage in sleep mode: 1.45uA
  • Protocol: LoRaWAN
  • Work temperature: -40 ~+85C
  • Storage temperature: -40 ~ +90C, <90% RH
  • Certification: FCC, CE, IC, TELEC
  • Pinouts (datasheet, p. 6-7):
    • SPI
    • USART
    • I2C
    • USB
    • ADC
    • 10 GPIO

Include

  • 1x M5Stack LoRaWAN Module

Applications

  • Automatic meter reading
  • Home building automation
  • Remote irrigation system
Learn more

PinMap

RHF76-052_UART ESP32 Chip
RXD GPIO17
TXD GPIO16

M5Stack Fire has occupied GPIO16 / 17 to connect with the PSRAM by default, it's conflict with TXD / RXD (GPIO16, GPIO17) in this module. Therefore, when using the LoRaWAN module with the M5Stack Fire, you might have to cut the TXD and RXD from GPS module and wire fly to another set of UART pin, if you gonna use the PSRAM.

Example

Arduino IDE

This is a exmaple of p2p LoRaWAN modules communication. Reference to 3.6 Point to Point communication with LoRa of LoRaWAN User Manual.

Function: Press button B to set 433MHz as LoRaWAN operating frequency, and send "Hello World"; Press button C to set 868MHz as LoRaWAN operating frequency and send "Hello World"; Press button A to clear the screen.

Note: Befor compiling this program, please extract LoRaWan_for_M5Stack.rar to this path C:\Users\<user_name>\Documents\Arduino\libraries.

The below code is incomplete. To get the complete code, please click here.

/*
    device_A.ino
*/
#include <M5Stack.h>
#include <LoRaWan.h>

#define SerialUSB Serial

// declaration
M5.begin();
SerialUSB.begin(9600);
lora.init();
delay(2000); // must delay for lorawan power on

// 433MHz frequency initialization
lora.initP2PMode(433, SF12, BW500, 8, 8, 20);

// 868MHz frequency initialization
lora.initP2PMode(868, SF12, BW500, 8, 8, 20);

// send string
lora.transferPacketP2PMode("hello world");

// receive data
short length = 0;
short rssi = 0;
memset(buffer, 0, 128);
length = lora.receivePacketP2PMode(buffer, 128, &rssi, 1);
/*
    device_B.ino
*/
#include <M5Stack.h>
#include <LoRaWan.h>

#define SerialUSB Serial

// declaration
M5.begin();
SerialUSB.begin(9600);
lora.init();
delay(2000); // must delay for lorawan power on

// 433MHz frequency initialization
lora.initP2PMode(433, SF12, BW500, 8, 8, 20);

// 868MHz frequency initialization
lora.initP2PMode(868, SF12, BW500, 8, 8, 20);

// send string
lora.transferPacketP2PMode("hello world");

// receive data
short length = 0;
short rssi = 0;
memset(buffer, 0, 128);
length = lora.receivePacketP2PMode(buffer, 128, &rssi, 1);

Schematic

 

Customer Reviews

No reviews yet
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
Click to edit the product in Ali Orders.
Note: only show for shop owner