Tiny sketch to send/receive messages with the Arduino MKR WAN 1310 using LoRa
Find a file
David J. Allen a05c76cfb2
refactor: reorganized and modularized project structure
Signed-off-by: David J. Allen <davidallendj@gmail.com>
2026-08-23 17:02:39 -06:00
cli.h refactor: moved CLI components into separate classes 2026-08-23 17:00:32 -06:00
constants.h refactor: reorganized and modularized project structure 2026-08-23 17:02:39 -06:00
log.h feat: added independent logger class 2026-08-23 17:01:03 -06:00
message.h refactor: reorganized and modularized project structure 2026-08-23 17:02:39 -06:00
mkr1310-beacon.ino refactor: reorganized and modularized project structure 2026-08-23 17:02:39 -06:00
payload.h refactor: reorganized and modularized project structure 2026-08-23 17:02:39 -06:00
README.md docs: updated README.md with more info 2026-08-13 21:52:35 -06:00
types.h refactor: updated and added more type aliases 2026-08-23 17:02:05 -06:00
user.h refactor: reorganized and modularized project structure 2026-08-23 17:02:39 -06:00
util.h feat: added helper functions in util.h 2026-08-23 16:59:11 -06:00

BEACON for Arduino MKR 1310 WAN

This is a tiny sketch to load software to send/receive messages with the Arduino MKR 1310 WAN board using LoRa frequencies. It is experimental and not meant for production or commericial use. Development is done with Arduino IDE 2.

Getting Started

  1. Clone the repository.
git clone https://github.com/davidallendj/mkr1310-beacon && cd mkr1310-beacon
  1. Install and set up Arduino IDE. On ArchLinux, I install the packages via an AUR helper like yay.
yay -S arduino-cli arduino-language-server arduino-ide-bin
  1. Open the mkr1310-beacon.ino sketch.

  2. Install board software and libraries:

    • Boards
      • Arduino AVR Boards (maybe unnecessary?)
      • Arduino SAMB Boards
    • Libraries
      • MKRWAN
      • MKRWAN_v2
      • ArduinoJson
      • LoRa
      • UUID
      • Arduino_AVRSTL
  3. Select board, compile sketch, and upload (probably on /dev/ttyACM0)

  4. While connected to a PC via USB, open the serial monitor. You should see some output:

Arduino MKR 1310 WAN - Experimental Thin Client
Software written by David J. Allen (davidallendj@gmail.com)
GitHub: https://github.com/davidallendj
© 2026 David J. Allen. All rights reserved

User: 
  ID:   642e9e60-b9ee-4d3b-9903-190c91e250ae
  Name: lora

For help getting started, try '/help' and press enter.