Giter Club home page Giter Club logo

wisnode-lora-downlink's Introduction

RAK WisNode-LoRa downlink example

Downlink example using an Arduino Leonardo and RAK WisNode-LoRa shield.

This example uses RAK811 library (in the libs folder) (https://github.com/RAKWireless/RAK811-AT-Command/tree/master/Arduino/RAK811)

Hardware

Arduino Leonardo. The Leonardo uses two different hadware serial ports for the USB and the RX/TX lines in the header, this allows to have debug information via USB while driving the WisNode.

Arduino Leonardo

RAK WisNode-LoRa

RAK WisNode-LoRa

Relay module

5V relay module w/opto

Buy it from Aliexpress.

Usage

  1. Connect the jumpers in the WisNode-LoRa shield like this:

WisNode-LoRa jumpers

  1. Connect D13 in the header to a RELAY module. The sketch assumes the relay uses inverse logic because that's the one I have.

  2. Copy the credentials.sample.h to credentials.h and edit it with proper values for your connection.

  3. Flash the Leonardo. You can do it using PlatformIO just by pio run -t upload or use Arduino IDE. If you choose the later you will have to add the RAK811 library first.

  4. The sketch sends the status of the relay every minute and checks the response to see if it has to change the state of the relay.

  5. The node-red folder contains a flow you can use as a start-up point for your logic. It has the basic receive-send nodes plus 2 injectors to enqueue the status you wish to send to the node. Note that the status will be sent after a reception.

License

Copyright (C) 2018 by Xose Pérez (@xoseperez)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

wisnode-lora-downlink's People

Contributors

xoseperez avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.