Giter Site home page Giter Site logo

rung5445 / end-devices Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 281 KB

This project utilizes LoRa communication technology to transmit environmental data, including temperature, humidity, and battery voltage, to a LoRa gateway.

License: MIT License

C++ 100.00%
arduino environmental-monitoring lora sensor-nodes wireless-communications

end-devices's Introduction

LoRa Sensor Node

This Arduino project utilizes LoRa communication to create a sensor node that measures temperature, humidity, and battery voltage. It sends the collected data to a LoRa gateway at predefined intervals.

Components Used

  • Arduino board (ESP32)
  • LoRa module
  • AHTX0 Temperature and Humidity Sensor
  • Voltage divider circuit for battery monitoring

Dependencies

  • ArduinoJson library
  • LoRa library
  • Adafruit AHTX0 library

Setup

  1. Connect the AHTX0 sensor and the LoRa module to the Arduino board as per the wiring instructions.
  2. Install the required libraries: ArduinoJson, LoRa, and Adafruit AHTX0.
  3. Upload the provided code to your Arduino board.
  4. Power up the Arduino board.

Functionality

  • Measures temperature and humidity using the AHTX0 sensor.
  • Monitors battery voltage to track battery level.
  • Sends sensor data to a LoRa gateway at regular intervals.
  • Receives configuration parameters (SyncWord, TxPower, etc.) via LoRa to update settings dynamically.
  • Utilizes deep sleep mode to conserve power between transmissions.

Configuration

  • The code can be configured with different LoRa settings such as SyncWord, TxPower, and frequency.
  • Modify the enddeviceslist array to include the names of your end devices.
  • Adjust the defaultSyncWord, defaultTxPower, defaultfreq, defaultinterval, defaultSpreadingFactor, and defaultSignalBandwidth variables to set default LoRa parameters.
  • Define the user and timeout constants according to your requirements.

Usage

  • Ensure proper wiring and power supply for the Arduino board.
  • Monitor serial output for debugging messages.
  • Adjust LoRa settings and sensor readings as necessary.
  • Customize the code for additional functionality or sensor integration.

Authors

License

This project is licensed under the MIT License.

end-devices's People

Contributors

rung5445 avatar

Stargazers

 avatar

Watchers

 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.