Posted comments (35)

Posted by Intern Usmc at August 15, 2017 01:31:48 CEST
Hello,

Thank you for the tutorial.

I am using a hope RFM95 Cytron shield (https://www.cytron.com.my/p-shield-lora-rfm) for my project. The LoRa module is tuned for 915 MHz. May know which line should be changed if I want the code to work at 915 MHz frequency?

So far I have made the following changes to the confg.h file
-uncommentated #define CFG_us915 1
-other changes similar to step 14 (in your guideline)

When I compile and upload the ttn-abp sketch, I got the following error.

C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:596:9: warning: incompatible implicit declaration of built-in function 'printf'

printf("%lu: %s, freq=%lu, SF=%d, BW=%d, CR=4/%d, IH=%d\n",

^
*from bottom of Arduino IDE

Starting
FAILURE
C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master\src\lmic\lmic.c:1508
*from serial monitor

Hope you can give me some tips to troubleshoot the problem.

Thank you,
Posted by Intern Usmc at August 16, 2017 08:45:35 CEST
[SOLVED]

I believe the solution is to uncomment the line in no 15 in config.h #define CFG_us915 and #define LMIC_DEBUG_LEVEL 2. But, I left the following lines commented as they cause some problem when I uncomment it.
//#define LMIC_FAILURE_TO Serial
//#define DISABLE_PING
//#define DISABLE_BEACONS

I am unsure why but maybe someone can please give some hint to this behaviour.

Regards,
Posted by Daniel at November 29, 2017 18:38:04 CET
Hi,

thanks for sharing this amazing tutorial!

I have a question. The Arduino UNO logical ports work with 5 volts. Isn't it going to burn the RFM95 module?

Thanks!
Posted by Edelweiss at January 3, 2018 16:35:37 CET
Hi,

Thank you for your tutorial.
I followed the 3 first steps and now, I have to build an antenna :
coil antenna or wire antenna !
Apparently, you get the best result with a coil antenna.
Now, I have questions :
- can we take any coil to have an antenna ?
- for the wire antenna, the wire with a diameter of 0.254mm, can we use a jumper wire with the appropriate dimension ?

Thank you for your support

edelweiss
(Belgium)
Posted by Manuel at February 19, 2018 09:48:58 CET
Thanks for the useful information!!! Very helpful!! :-)
Posted by Joe Bloggs at March 3, 2018 22:29:25 CET
Is the RFM95 compatible with the 5V logic levels of the Arduino Uno?
Posted by Yong at March 9, 2018 09:06:42 CET
Dear sir,

For the connected UNO to the SX1276, could you tell me which pin on the UNO is for the following pins on the SX1276 please?

RFM95_CS
RFM95_RST
RFM95_INT

Thank you very much.
Posted by Martin Ellis at April 2, 2018 16:30:49 CEST
Hi,

Just interested in your final antenna tests.
I would think the wire antenna will be better than any coil antenna.

In your final tests A, B & C you put the coil better than the wire but what you failed to do is to have the wire antenna in the same orientation as the coil. You have always used the wire antenna in a vertical position.
Maybe if you were to test the wire antenna with different orientations, this would be better in ALL tests compared to the coil.
So, if you have the coil, horizontal, pointing away from the board, then do the same with the wire antenna to compare.
If you have the time to carry out yet another 'revisited' video, it would be interesting to see the results.
I have yet to build my own Lo-Ra node or gateway, but parts are on their way.
Thanks for the videos.
Martin
Posted by Saikumar at June 7, 2018 10:10:35 CEST
Hi,

i have already worked with Arduino uno+Sx1276 with IBM LMIC framework. Now i need to try the same with STM32F103C8T6+SX1276 -iBM LMIC Framework. Does anyone worked with STM & Sx1276 combination? If yes kindly help me to work on the node connectivity
Posted by Billuduino at June 15, 2018 02:51:22 CEST
Hi there Mobilefish,

Thank you for this great effort, this tutorial is really amazing. i still have a challenge to get it to work though. After making all changes and uploading the sketch, the serial monitor keeps giving me the following :


Stats\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:689
Starting
FAILURE
C:\Users\myname\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:689


would you please help me with this .
Posted by Herb Blair at July 2, 2018 14:59:55 CEST
I'm trying to decode the temperature sent by my node.

here is the code that I use:

function Decoder (bytes){
var temperatureInt = bytes [2]
var tempertureDecimal = bytes [3];
var temperature = temperatureInt + "." + temperatureDecimal;
}

I get the following error:

Internal error: Decoder threw error: ReferenceError("'temperatureDecimal' is not defined")

Any help would be much appreciated. Thanks in advance.
Posted by Gerrit Van Harreveld at July 9, 2018 21:09:41 CEST
I bought some rfm95w lora modules from aliexpress.
I want to use these on an arduino uno or nano, which have 5V logic signals, while the lora module is for 3,3V. I saw in your video that you connect the lora nodule directly to the uno digital pins. Is this not harmfull for the lora module?
Posted by Matt at July 18, 2018 09:50:44 CEST
Thank you for a good tutorial , here there some errors:
Starting
FAILURE
C:\Users\Matt\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:689

Help please
Posted by Leif at November 1, 2018 22:03:54 CET
Just commenting because I would also like to know the answer to Gerrit's question
Posted by Claudiu at February 14, 2019 19:23:17 CET
Hi!
What EUI should I use when I register the device or where I can find it. It is ok if i use the auto generate obtion ?
Thank you!
Posted by Ivan at April 9, 2019 23:48:53 CEST
Hi,

The issue is that SPI port is at logic level 3.3 V and with the UNO its at 5V. I tested it with a 3.3v Nano/Pro Clone and it worked fine. So I would suggest if you are trying to get it to work either use a logic level shifter or use that board. Will save you hours of fun. But its good learning anyway. Good post Mobile Fish. Thanks.
Posted by Martin at May 22, 2019 23:41:24 CEST
Thank you for this detailed and extremely helpful tutorial!
Posted by Uli at June 22, 2019 19:31:50 CEST
Hi,
same Problem as Posted by Matt at July 18, 2018 09:50:44 CEST
The monitor dosn´t work this way. The whole thing dosn´t work.
Is there anybody who can send "hello World"?
Posted by Amrt at July 4, 2019 10:03:31 CEST
[SOLVED]
I have some issues,

Starting
FAILURE
C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master\src\lmic\lmic.c:689
from serial monitor

and all i do is just change the pins like this:
.nss = 10,
.rxtx = LMIC_UNUSED_PIN,
.rst = LMIC_UNUSED_PIN,
.dio = {5, 6, LMIC_UNUSED_PIN}

and, remove all library that consist of lmic.h
good luck!
Posted by Amrt at July 17, 2019 08:08:05 CEST
[SOLVED]
Sorry for my bad typo
I have some issues,

Starting
FAILURE
C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master\src\lmic\lmic.c:689
from serial monitor

and all i do is just change the pins like this:
.nss = 10,
.rxtx = LMIC_UNUSED_PIN,
.rst = LMIC_UNUSED_PIN,
.dio = {5, 6, LMIC_UNUSED_PIN}

and, remove all library that consist of lmic.h (except arduino-lmic-master library) because the board will be confused what lmic.h will be executed
good luck!
Posted by Manish Kakkar at August 10, 2019 11:04:58 CEST
Hi,
I was getting:
FAILURE
C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master\src\lmic\lmic.c:689

I connected sck mosi and miso to the digital pins 13, 11 and 12. According to the drawing you should connect sck, mosi and miso to the ICCP. Once i connected sck, mosi and miso to ICCP. It worked.
Posted by Robert Hancock at August 18, 2019 02:36:09 CEST
Thanks for the written tutorial.
I followed it to the letter but I am getting compile errors. I have posted my sketch and the errors and config.h at:

https://gist.github.com/newkton1/3bb2da81958366fe02d1db6aa88cd80c

Can you see what is wrong please
Posted by Anshul at February 15, 2020 07:18:48 CET
Hi,
I was getting:
FAILURE
C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master\src\lmic\lmic.c:689
Posted by Gomgom Silalahi at March 2, 2020 03:34:50 CET
Hi, it is a great project and I am very interested in that project. I have a project that is almost similar to the project you are doing, in the project that I am doing, I will track several ships using GPS + LoRa RFM 95 + aduino uno totaling 6 units with 3 pieces of transmitters (LoRa RFM 95 + GPS Ublox neo 6m + Ardunio uno), which I will put on the ship then 2 intermediate nodes (LoRa RFM 95 + Arduino) then 1 receiver / gateway (LoRa RFM 95 + Arduino Uno + Raspberry PI 3 B +).

What I want to ask is what you think of my project? Can Arduino Uno be used as a microcontroller for the LoRa Multi-hop system? Then do you have sample code for Multi-hop (mesh network) systems with LoRa? Or do you have any advice from where I should start learning about this mesh network? because this is new to me.

thank you before
regards
Gomgom
Posted by Stefano at March 26, 2020 12:14:25 CET
hello,
i have a problem.
the code work fine but the node send data to TTN every 8 minutes, but i have set const unsigned TX_INTERVAL = 60;

if i reduce the TX_interval it does not change.

can you help me ?

thanks you

regards
Posted by Berkant at November 27, 2020 00:47:38 CET
Hey i am at step 22 but when i want to upload it. I get an not enough memory error. Someone with the same problem?
Posted by Erik at January 9, 2021 07:16:01 CET
There are a few variants of this RFM95/96/69... module around.
The one shown here is a good non-counterfeit item. Beware however of Ali-Express purchases: make very sure that the exact layout of the chip and the crystal is fully identical to the one shown here.

I had ordered (Ali Express) several tens of a slightly different version (especially recognisable on the variant positioning of the crystal), all of them defective!!

When examining the traces of the chip on the module I discovered that, amngst others, the SPI lines for example are wrongly connected to the solderpads.
Posted by Giovanni at January 16, 2021 16:09:12 CET
That is, I followed your tutorial, but I would like to know if you have any information on how to use the E19 module of Ebyte, certainly more performing and from the same LoRa family, since it uses 2 pins for RXEN and TXEN. Thanks.
Posted by Prajnyajit Mohanty at January 30, 2021 13:08:33 CET
I am just try to establish the communication but its not happening. Can i get your mail id ?
Posted by Prajnyajit Mohanty at January 30, 2021 13:11:06 CET
I am using windows OS, so I am unable to modify the source file. It is writing the source files can not be modified. What to do?
Posted by Prajnyajit Mohanty at January 30, 2021 13:11:54 CET
The source file cant be modified. What to do ? I am using windows OS.
Posted by Paulo Torres at February 12, 2021 11:26:22 CET
I can send data to TTN but I do not receive any dat in arduino when I use the payload in Downlink.

Please,help me.

Paulo Torres
Posted by Arthur Kerkmeester at April 18, 2021 11:59:21 CEST
Have build it, but when I try to compile it for the Arduino Uno I get this error:
The sketch uses 24016 bytes (74%) program storage space. Maximum is 32256 bytes.data section exceeds available space in board

Global variabels uses 2145 bytes (104%) from the dynamic memory. Left over -97 bytes for local variabels. Maximum is 2048 bytes.

Tested with 2 different Uno's (orginal and clone).
Posted by Arthur Kerkmeester at April 18, 2021 12:00:13 CEST
Have build it, but when I try to compile it for the Arduino Uno I get this error:
The sketch uses 24016 bytes (74%) program storage space. Maximum is 32256 bytes.data section exceeds available space in board

Global variabels uses 2145 bytes (104%) from the dynamic memory. Left over -97 bytes for local variabels. Maximum is 2048 bytes.

Tested with 2 different Uno's (orginal and clone).
Posted by Arthur Kerkmeester at May 16, 2021 15:54:34 CEST
Because the Arduino Uno didn't work, I tried a new test using an Arduino Wemos Uno D1.
The pinmappings are a bit different: so I have changed that in the code:
// NSS (Uno D1): GPIO15 / Uno = 10
// SCK (Uno D1): GPIO14 / Uno = 13
// MOSI (Uno D1): GPIO13 / Uno = 11
// MISO (Uno D1): GPIO12 / Uno = 12
// RESET = 5
// DIO-0 = 2
// DIO-1 = 3
const lmic_pinmap lmic_pins = {
.nss = 15,
.rxtx = LMIC_UNUSED_PIN,
.rst = 5,
.dio = {2, 3, LMIC_UNUSED_PIN},
};
Tried to connect with TTN, but I see this in the debug-window:
FAILURE oslmic.c:53
I have checked all the wire-connections, LoRa-setup, etc.. Looks ok but it doesn't work... Any help would be nice!