How to build your first TTN node: Arduino + RN2483

Thanks Vannut,

Yeah, Iā€™ve built the single channel gateway setup using a raspberry pi already and it seems to work ok.

I was just hoping maybe someone had tried something as simple as this before.

By learn the basics, i mean learn the basics for how to use the RN2483 chip, to do this by just using the RN2483 chips to send and receive, and have the Arduino code light an LED, when it detects a signal being received and transmitted etc.

For the RN2483 the basics are LoRaWAN, not LoRa :wink:
You should be able to get two chips talking using radio commands, however examples on how to do this will be scarce. For LoRaWAN there are plenty examples and libraries.

Why is that hard to find? Iā€™ve been looking for examples of just using the radio commands but have yet to find anything that I can use to make this work.

*Edit: Iā€™ve just realised that this probably isnā€™t the right thread to post this on, so apologies for that!

Iā€™m just trying to find a good tutorial on RN2483 point to point communication using an Arduino.

Because people buy these modules for LoRaWAN. If you want lora there are cheaper modules to be had. And LoRaWan takes just 5 lines of code with these, so why bother with less advanced comms requiring more code?

I have code for this. Will send it to you @Aiden101.

a cloned TTN uno :innocent:


works with https://github.com/TheThingsNetwork/workshops
I used this leonardo board
and this level converter

1 Like

Wow !
Can I have your email to ask something about this ?
Best regard !

I used this tutorial to build my first ever lora node with a arduino nano and send some data over TTN, very cool! :slight_smile:

It works like a charm, but thereā€™s one thing I was wondering though: the RN2483 works at 3.3v, I believe the rx/tx lines of the arduino nano work at 5v. Would this configuration not slowly cook the RN2483 ? should I add some level shifter, or should I swicth to a 3.3v arduino pro?

You should use a lever shifter for that (is good practice) of indeed switch to a Arduino Pro 3.3V

How to use the level shifters, check out the info on this link : https://www.tindie.com/products/DrAzzy/rn2483-breakout-bare-board/

1 Like

I recently bought a RN2483 and it gives a weird reply on the sys get hweui command.
In the reply, just before the readable HW-EUI (16 characters that represent the EUI in hex-format) there are 9 other characters that are not readable ascii-characters (resulting in garbage-characters just before the HW-EUI). The hex values of the garbage-characters are: C4 FE 04 60 1C 03 78 8D FF.
Manual check in a serial-terminal with an usb-to-serial module confirms that these leading garbage-characters are really produced by the RN2483-chip and not by any software bug.

This breaks the hweui-check and OTAA-procedure in the RN2483-Arduino-Library. I had to add the following line in rn2xx3.cpp directly after the line addr.trim() (in two places) to make the library work for OTAA:

if(addr.length() > 16) addr=String(addr.substring(addr.length()-16));

This line removes any garbage-characters that are replied before the real HW-EUI.

With this modification it is perfectly running the OTAA software :slight_smile:
Does anyone has the same problem? Is this a v1.01 bug/feature or do I have a faulty chip?
(My RN2483-chip replies as version: version1.0.1 Dec 15 2015 09:38:09)

1 Like

I like your setup, where did you get that VeroBoard? :slight_smile:

http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2047675.m570.l1313.TR0.TRC0.H0.TRS5&_nkw=Prototype+PCB+for+Arduino+UNO+R3+Shield&_sacat=0

I ordered 2 of theseā€¦ should work with the TTN firmware to ā€¦ Iā€™ll try :wink:

  • they arrivedā€¦ but they donā€™t work with my arduino ide 1.8.1
1 Like

Hi everyone,
Can I send and receive data p2p using LoRa Shield RN2483 and Arduino uno? I just would like to approve the concept of node to node communication, Could you give me some tips and instructions about.

This has been discussed on this forum previously, use the search (or google) to find the information.

1 Like

Thank you Kersing for your reply.
Actually I have already search in the forum and google as well but I did not find anything related to the topic. I might not have a good experince for searching. Could you send a link to me please.

Iā€™ve had this question before, so I decided to put an example on github:

4 Likes

Great, thankā€™s

Hello, i have made a node, using an Arduino and a RN2483_PICtail board, following this guide.
But i can only send a static message, and i would like to send data form ex. a compass module connected to my arduino.
How do i do that?
Iā€™m using the code from [quote=ā€œjpmeijers, post:1, topic:1574ā€]
Next on to the software side.Download the zip file containing the code from my github repository: https://github.com/jpmeijers/RN2483-Arduino-Library
[/quote]

thanks :slight_smile:

Look at the example included with that library. specifically SodaqOne-TTN-Mapper-ascii and SodaqOne-TTN-Mapper-binary. These two read coordinates from a GPS and transmit them via the RN2483. With your compass it should be similar.

1 Like

i will try that, thank you @jpmeijers