# Trying to create a node with a Cytron Shield-LoRa-RFM on Arduino Uno

**URL:** <https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217>\
**Category:** Hardware\
**Created:** [March 22, 2018, 9:13pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217 "2018-03-22T21:13:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertthompson](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/robertthompson/32/12653_2.png) [@robertthompson](https://www.thethingsnetwork.org/forum/u/robertthompson)\
**Post date:** [March 22, 2018, 9:13pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/1 "2018-03-22T21:13:13Z")

</div>

Hello:

Note: This is my first attempt with LoRaWAN, the Arduino IDE, the Ardunio Uno and the Dragino LoRa/GPS HAT.

TTN Gateway: eui-b827ebfffffc46a3 – Dragino - Lora/GPS HAT - 915Mhz

The Gateway is connected and seems to work.

I am trying to setup an Arduino Uno with a Cytron 915 Shield-LORA-RFM to send messages to the gateway.

I have tried the rf95\_client sketch from [https://github.com/CytronTechnologies/RFM-LoRa-Shield-Examples](https://github.com/CytronTechnologies/RFM-LoRa-Shield-Examples) but it does not seem be correct to connect to TTN. It does not provide for the input of Device Address, Network Session Key and App Session Key – which, I think, are required.

Can anyone suggest the proper sketch that I require?

Thanks,

Rob.

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [March 22, 2018, 9:48pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/2 "2018-03-22T21:48:19Z")

</div>

> [@robertthompson](#):
>
> but it does not seem be correct to connect to TTN.

off course not… **This is an example tutorial of point-to-point wireless communication between 2 Arduinos using RFM LoRa Shields.**

that’s why I don’t understand your remark ’ **The Gateway is connected and seems to work**

I suggest you start reading a bit about The Things Network and LoRaWAN … **[here](https://www.thethingsnetwork.org/docs/lorawan/)** 😉

---

<div class="post-metadata">

**Author:** ![robertthompson](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/robertthompson/32/12653_2.png) [@robertthompson](https://www.thethingsnetwork.org/forum/u/robertthompson)\
**Post date:** [March 22, 2018, 9:57pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/3 "2018-03-22T21:57:16Z")

</div>

Hi: My raspberry pi 3 / Dragino LoRa/GPS HAT **is** connected on TTN as gateway “eui-b827ebfffffc46a3”, just north of Montreal, Quebec, Canada - that is what i meant by “connected”.

Thank you for your time,

Rob.

---

<div class="post-metadata">

**Author:** ![robertthompson](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/robertthompson/32/12653_2.png) [@robertthompson](https://www.thethingsnetwork.org/forum/u/robertthompson)\
**Post date:** [March 22, 2018, 10:27pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/4 "2018-03-22T22:27:17Z")

</div>

I also tried the sketch that Andreas Spiess used in his “#117 DIY LoRa Node with Arduino and Dragino Shield connected to TTN LoRaWAN” youtube video: [https://github.com/matthijskooijman/arduino-lmic/blob/master/examples/ttn-abp/ttn-abp.ino](https://github.com/matthijskooijman/arduino-lmic/blob/master/examples/ttn-abp/ttn-abp.ino)

I thought that that might work but it did not.

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [March 22, 2018, 10:31pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/5 "2018-03-22T22:31:02Z")

</div>

I see now that your single channel ! gateway is indeed [connected](http://noc.thethingsnetwork.org:8085/api/v2/gateways/eui-b827ebfffffc46a3)

what’s important now is to find out how the connections of that Cytron board are so you can adjust some lmic settings in the arduino sketch.

---

<div class="post-metadata">

**Author:** ![robertthompson](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/robertthompson/32/12653_2.png) [@robertthompson](https://www.thethingsnetwork.org/forum/u/robertthompson)\
**Post date:** [March 23, 2018, 4:54pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/6 "2018-03-23T16:54:48Z")

</div>

Hello:

It seems that my “Arduino Uno with a Cytron 915 Shield-LORA-RFM” is registered as a a device, ie it says registered.

Can someone suggest how to send a message to my gateway?

When I use the Arduino IDE Serial Monitor after, uploading the sketch, to “SEND” - nothing happens on my gateway under Received Messages. My gateway is active.

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [March 23, 2018, 5:07pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/7 "2018-03-23T17:07:48Z")

</div>

[https://www.thethingsnetwork.org/docs/devices/registration.html](https://www.thethingsnetwork.org/docs/devices/registration.html)

- what sketch ? _and only a link_
- did you change the sketch with the credentials you’ve received when registering your device in your application ?

if you want an answer you have to provide exactly what sketch you use in your single channel gateway and what sketch you use in your node.  
did you find the board connections from your shield ?  
both need to be on the same channel and that is configured in both sketches, together with the way the node joins the network… ABP or OTAA

also I suggest to search this forum more… there are many [examples](https://www.thethingsnetwork.org/forum/t/single-channel-gateway-part-3/11546) how to configure

---

<div class="post-metadata">

**Author:** ![robertthompson](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/robertthompson/32/12653_2.png) [@robertthompson](https://www.thethingsnetwork.org/forum/u/robertthompson)\
**Post date:** [March 24, 2018, 3:30pm UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/8 "2018-03-24T15:30:03Z")

</div>

Hi BoRRoZ:

I followed the step-by-step example provided by Cytron linked below but still not working.  
I really do not understand why it does not work.

Thank you, again, for your time. 🙂  
Rob.

What sketch ? [https://tutorial.cytron.io/2017/09/15/lesson-1-build-simple-arduino-lora-node-10-minutes/](https://tutorial.cytron.io/2017/09/15/lesson-1-build-simple-arduino-lora-node-10-minutes/)

Did you change the sketch with the credentials you’ve received when registering your device in your application ? Yes  
My Raspberry Pi 3 settings:  
• Spreading factor: SF7  
• Frequency: 902300000  
• Server1: 13.66.213.36  
• Port: 1700  
• sspin: 6  
• dio: 7  
• RST: 0

Notes:  
1. At [https://www.cytron.io/p-shield-lora-rfm](https://www.cytron.io/p-shield-lora-rfm) the product Description ends with: \* This is LoRa Radio shield, it does not contain LoRaWAN protocol, so the Arduino main board will require more program to store the LoRaWAN stack. I did nothing with my Arduino Uno other than remove it from its’ shipping box and then attaching the Cytron shield.  
2. Sketch error: “ ‘LMIC\_selectSubBand’ was not declared in this scope.” I read here, [https://github.com/forrestfiller/-arduino-feather-32u4-lora/issues/1](https://github.com/forrestfiller/-arduino-feather-32u4-lora/issues/1), to just comment out “LMIC\_selectSubBand()” which is what I have done.  
3. When I run the sketch, the Serial Monitor displays output like this: ⸮⸮⸮⸮⸮⸮e[⸮⸮⸮]⸮⸮⸮⸮⸮#⸮#R⸮j⸮⸮NO⸮⸮

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [May 1, 2019, 5:03am UTC](https://www.thethingsnetwork.org/forum/t/trying-to-create-a-node-with-a-cytron-shield-lora-rfm-on-arduino-uno/13217/10 "2019-05-01T05:03:08Z")

</div>


