0% found this document useful (0 votes)
67 views1 page

How To Use The Dragino LoRa Shield With Arduino MKR 1010

To use a Dragino LoRa shield with an Arduino MKR 1010, you must: 1. Set jumper settings on the shield for proper pin connections. 2. Wire the shield to the Arduino, matching pins between the devices. 3. Install the MCCI LoRaWAN LMIC library and configure the lmic_project_config.h file for the shield settings. 4. Load a test sketch, add device keys from The Things Network, and upload to test connectivity.

Uploaded by

Hindro Wahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views1 page

How To Use The Dragino LoRa Shield With Arduino MKR 1010

To use a Dragino LoRa shield with an Arduino MKR 1010, you must: 1. Set jumper settings on the shield for proper pin connections. 2. Wire the shield to the Arduino, matching pins between the devices. 3. Install the MCCI LoRaWAN LMIC library and configure the lmic_project_config.h file for the shield settings. 4. Load a test sketch, add device keys from The Things Network, and upload to test connectivity.

Uploaded by

Hindro Wahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

How to use the Dragino LoRa shield with Arduino MKR 1010

1. Change jumper settings:


a. SV2, SV3 and SV4 must be set to the left! With this setting, the MOSI/MISO/SCK Pins
will be available at the header pins.
2. Wire the shield as follows:

Dragino PIN Arduino PIN Description


13 9 SCK
12 10 MISO
11 8 MOSI
10 7 SS
8 5 DIO5
7 2 DIO2
6 1 DIO1
2 0 DIO0
3V3 3V3 3,3 Volt
GND GND Ground

3. Start Arduino and search fort he „MCCI LoRaWAN LMIC library“ – Install it
4. Open your Explorer and navigate to your Arduino library folder (C:\Users\..\Documents\
Arduino for example). Open the „libraries“ folder and then open
„MCCI_LoRaWAN_LMIC_library“.
a. Within this folder you find a folder called „project_config“. Edit the file
„lmic_project_config.h“ inside it:

In this file you set the config your shield’s hardware. It is mandatory that you make
those changes here:

„A number of features can be enabled or disabled at compile time. This is done by


adding the desired settings to the file
project_config/lmic_project_config.h.“
=> https://github.com/mcci-catena/arduino-lmic#configuration

Here you set some settings – Example for using Dragino 868MHz shield in Europe:

#define CFG_eu868
#define CFG_sx1276_radio 1
#define DISABLE_PING
#define DISABLE_BEACONS
#define LMIC_DEBUG_LEVEL 2

(remove the other lines first)


5. Load this test sketch:
https://gist.github.com/Commifreak/a9b0195115e225b827159605d3a31450
6. Please set your APPEUI, DEVEUI and your APPKEY !
a. … by creating an app and device at TTN: https://console.thethingsnetwork.org/
7. Upload it to your MKR 1010 and it should run.

You might also like