Giter Club home page Giter Club logo

atom_dtu_lorawan's Introduction

M5Stack Library

Arduino Lint Clang Format

English | 中文 | 日本語

The M5Stack library provides access to the built-in hardware of the M5Stack Core (including Basic and Gray) controllers.

Recommendation

This library is not recommended for new projects, nor for projects using M5Stack products other than Basic and Gray. See M5Unified and M5GFX for libraries that are more up-to-date and with support for many newer M5Stack products.

Usage

This library's functionality is available through the M5Stack class, referenced as M5, including:

  • LCD display via M5.Lcd, a customized version of the TFT_eSPI LCD library, adapted for Basic and Gray. The display resolution is 320x240 supporting 262K colors. Several fonts, graphics primitives, QR code rendering, and PNG/BMP/JPEG support are included.
  • Power control, including device shutoff and battery level detection via M5.Power and the IP5306 power management chip
  • Hardware buttons via M5.BtnA, M5.BtnB, M5.BtnC
  • Speaker, via M5.Speaker, supporting tones, volume control, and basic wave audio playback using ESP32's DAC function
  • Accelerometer, via M5.Imu, M5.Mpu6886, or M5.Sh200Q (accelerometer type depends on version of Basic/Gray)

To use the M5Stack library, #include "M5Stack.h" must appear at the top of your sketch.

The most productive way to become acquainted with the class is through the numerous included examples. Additional documentation within this library:

Additional optional include files:

  • M5Faces.h for access to M5Stack Faces accessories (EOL)
  • LoRaWan.h

basicgray

Comparison of M5Stack controllers

M-BUS

More Information

UIFlow Quick Start: Click Here

MicroPython API: Click Here

Arduino IDE Development: Click Here

Gray PinMap: Click Here

Basic PinMap: v1.0 (EOL) v2.6 (EOL) v2.7**

USER CASES

atom_dtu_lorawan's People

Contributors

gitshaoxiang avatar tinyu-zhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

atom_dtu_lorawan's Issues

Sample Code Compilation error

probably a noob question, but when I copied the code LoRaWAN_OTAA.ino in my Arduino IDE, I get this error on compile

'UNIT_LoRaWAN' does not name a type; did you mean 'ATOM_DTU_LoRaWAN'?

I have the libraries ATOM_DTU_LoRaWAN and M5Atom installed (I am using a M5 Atom Lite with the LoRAWAN868 unit.

Any idea what I am doing wrong?

Thanks

LoRaWan DTU update Firmware

Hello,

We encounter problems with the LoRaWan Atom DTU - 868Mhz.
Actually, the radio never send packets to the channel.
We proceed with a spectral analyser, and for normal mode LoRaWan we never see packet sending.
With the debug command AT+CTX; the radio send correctly the packet (seen on the analyser)
So, what's wrong ??

Is it possible to update the MCU firmware, so we can develop owns AT+COMMANDS ??
Because actually we are enable to update also AT+CFREQLIST parameters (not implemented yet)
This is for the 868Mhz (EU868 Region). Also the DTU is stick on 868.1, 868.3, 868.5 channels.

The problem also appeared from one sending DTU and one for receiving.

Thanks in advance.

Setup texts for Master and Slave should be in opposite file

Ref:
https://github.com/m5stack/ATOM_DTU_LoRaWAN/tree/master/examples/Modbus/ModBus-RTU/Master
https://github.com/m5stack/ATOM_DTU_LoRaWAN/blob/master/examples/Modbus/ModBus-RTU/Slave/Slave.ino#L31

In the Master.ino:
void setup() {
M5.begin(true, false, true);
if (!ModbusRTUClient.begin(9600, SERIAL_8N1)) {
Serial.println("Failed to start Modbus RTU Client!"); <<<=== This should be: "... RTU Server"
while (1)
;
}
}

in the Slave.ino:

void setup() {
M5.begin();
// start the Modbus RTU server, with (slave) id 42
if (!ModbusRTUServer.begin(42, 9600)) {
Serial.println("Failed to start Modbus RTU Server!"); <<<=== This should be: "... RTU Client"
while (1)
;
}

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.