====Dragino Lora Shield====
{{:interfaces:draginoarduino.jpg?100|Dragino LoRa Shield for Arduino}}
\\
{{boards:l152-rfm95w.jpg?100|STM32 NUCLEO}}
\\
{{:interfaces:draginoarduinolora.jpg?100|Dragino LoRa Shield for Arduino LoRa module}}
\\
{{:interfaces:lora_sheild.sch.png?100|Schematic V1.0}}
\\
{{:interfaces:lora_shield_pin_mapping.png?100|Pinout}}
This `shield' contains an [[:interfaces:semtech|SX1276]] LoRa radio and a voltage level converter to allow it to be
used on both 3V3 and 5V host boards.
===Bare-metal===
My [[projects:laura|Laura long range radio]] project can utilise this board with an Arduino UNO or Arduino MEGA2560.
===Arduino===
==Libraries==
Install the following library.
/*
[[https://github.com/mcci-catena/Catena-mcciadk|MCCI ADK]]
[[https://github.com/mcci-catena/arduino-lorawan|Arduino LoRaWAN]]
*/
[[https://github.com/mcci-catena/arduino-lmic|Arduino LMIC]]
==Upload==
This [[https://www.mobilefish.com/developer/lorawan/lorawan_quickguide_build_lora_node_dragino_shield_arduino_uno.html|guide]] explains how to load and edit the `sketch' for the Arduino UNO.
Edit Arduino/libraries/MCCI_LoRaWAN_LMIC_library/project_config/lmic_project_config.h
#define LMIC_LORAWAN_SPEC_VERSION LMIC_LORAWAN_SPEC_VERSION_1_0_3
#define CFG_eu868 1
#define CFG_sx1276_radio 1
#define DISABLE_PING
#define DISABLE_BEACONS
#define LMIC_ENABLE_DeviceTimeReq 0
#ifdef Serial
#define LMIC_PRINTF_TO Serial
#define LMIC_DEBUG_LEVEL 0
#endif
Setting the debug level to 2 only works on larger memory devices such as the ATmega2560
and must be 0 for ATmega328P.
When testing with ChirpStack a MEGA2560 clone did not reliably register JoinAccept from
the server but it did so eventually. This issue is not present on an Arduino UNO clone nor an ARM based Seeeduino Zero. Apparently port I/O on the MEGA2560 is significantly slower using the Arduino API than the UNO.
NB Enabling debug output will fail to compile on an ARM based board with SerialUSB.
===PlatformIO===
Not much is known about this platform since it uses VSCODE.
Find out all about it [[https://github.com/lnlp/LMIC-node|here]].
===Resources===
[[https://web.archive.org/web/20240726051218/https://www.dragino.com/products/lora/item/102-lora-shield.html|LoRa shield product page]]
[[https://web.archive.org/web/20200219204541/http://wiki.dragino.com:80/index.php?title=Lora_Shield|LoRa shield documentation]]
[[https://www.youtube.com/watch?v=duwUwXt-hs8|Dragino LoRa node]]
[[https://github.com/dragino/Lora/tree/master/Lora%20Shield|Data files]]