Professional Documents
Culture Documents
HopeRF RFM95 and Arduino A Low Cost LoRaWan Solution - Disk91.com - Technology Blogdisk91.com - Technology Blog
HopeRF RFM95 and Arduino A Low Cost LoRaWan Solution - Disk91.com - Technology Blogdisk91.com - Technology Blog
CO M – TECH
TECH N O L OGY, HAR DWARE, SECUR
T H E S E M T E C H S X 1276 C H I P
/
What is the difference between the different Semtech ch
first version of Semtech’s LoRa chips. The SX126x Semt
in January 2018. This new version, including SX1262, h
reception. It also offers higher transmission power (+15
smaller with 4x4mm.
/
The RFM95w powering is 3.3
is accessible on the HopeRF w
CABLING
ANT – GND
DIO3 – RESE
DIO4 – NSS
DIO0 3 MOSI
DIO1 4 MISO
DIO2 – GND
/
NSS, MOSI, MISO, SCLK are for SPI communi
signal. Arduino is the master.
Reset is resetting the RFM95w module.
This is the Arduino Nano circuit where you can plug the
previous table mapping.
SOFTWARE LIBRARY
/
Now you can see in the example a directory related to th
example to getting started. Save it with a new name.
/
Now, you need to configure the pin mapping:
// Pin mapping
// Rq : dio2 is not used (it is needed only for FSK)
// pin 7 will be affected but nor used.
const lmic_pinmap lmic_pins = {
.nss = 6,
.rxtx = LMIC_UNUSED_PIN,
.rst = 5,
.dio = {3, 4, LMIC_UNUSED_PIN },
};
/
void setup() {
Serial.begin(9600);
Serial.println(F("Starting"));
// LMIC init
os_init();
// Reset the MAC state. Session and pending data
LMIC_reset();
LMIC_setClockError(MAX_CLOCK_ERROR * 2 / 100);
LMIC_setupChannel(0, 868100000, DR_RANGE_MAP(DR_
LMIC_setupChannel(1, 868300000, DR_RANGE_MAP(DR_
LMIC_setupChannel(2, 868500000, DR_RANGE_MAP(DR_
LMIC_setupChannel(3, 867100000, DR_RANGE_MAP(DR_
LMIC_setupChannel(4, 867300000, DR_RANGE_MAP(DR_
LMIC_setupChannel(5, 867500000, DR_RANGE_MAP(DR_
LMIC_setupChannel(6, 867700000, DR_RANGE_MAP(DR_
LMIC_setupChannel(7, 867900000, DR_RANGE_MAP(DR_
LMIC_setupChannel(8, 868800000, DR_RANGE_MAP(DR_
LMIC_setLinkCheckMode(0);
LMIC.dn2Dr = SF9;
LMIC_setDrTxpow(DR_SF7,14);
Now you can compile and transmit the sketch to the Ard
sketch processing on the Arduino console. The board wi
a message every minutes (+/- couple of seconds)
CONCLUSION
SHARE :
Email Print
RELATED
What is LoRa ?
/
27 September 2015 First steps with LoRa Radio
In "IoT" Node (Arduino)
24 March 2019
In "IoT"
RELATED POSTS:
13 RE S P O N S E S TO HOPERF RFM95
COST LORAWAN SOLUTION
/
Tigran says:
28 JANUARY 2019 AT 15:56
Paul says:
28 JANUARY 2019 AT 20:23
Paul says:
5 JULY 2019 AT 21:09
/
Did you solder the DIO/GPOI p
REPLY
[…]
/Applications/Arduino.app/Contents/Java/h
undefined reference to `loop’
collect2: error: ld returned 1 exit status
Using library MCCI_LoRaWAN_LMIC_libra
/Users/roberthancock/Documents/Arduino/
Using library SPI at version 1.0 in folder:
/Applications/Arduino.app/Contents/Java/h
exit status 1
Error compiling for board Arduino Pro or Pr
REPLY
Paul says:
14 AUGUST 2019 AT 11:53
/
Just like it is written in you com
undefined reference to `loo
REPLY
Paul says:
19 AUGUST 2019 AT 11:06
Compile error #2
/Users/roberthancock/Desktop/ttn-otaatest
comparison between signed and unsigned in
for (int i = 0; i < sizeof(nwkKey); ++i) {
~~^~~~~~~~~
Compile error #3
#pragma message: Board not supported — u
#pragma message("Board not supported — u
Paul says:
19 AUGUST 2019 AT 11:16
/
pedro says:
29 SEPTEMBER 2019 AT 22:16
Hello
I have followed the guide you show here. But
sends the first data packet, when sending the
/Applications/Arduino.app/Contents/Java/l
master/src/lmic/radio. c: 429
Do you know what it is and how can I solve it
I am using a nano v.3, but Chinese version.
REPLY
Jules says:
30 OCTOBER 2019 AT 17:07
Hello.
I followed this tutorial but unfortunately I ge
Paul says:
10 NOVEMBER 2019 AT 09:26
This site uses Akismet to reduce spam. Learn how your com
/
/