Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. X-Dron
    3. Best
    X
    • Continue chat with X-Dron
    • Start new chat with X-Dron
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by X-Dron

    • RE: How to save data without SD card?

      use "Preferences" class
      #include <Preferences.h>

      Preferences preferences;

      void setup() {
      Serial.begin(115200);
      Serial.println();

      // Open Preferences with my-app namespace. Each application module, library, etc
      // has to use a namespace name to prevent key name collisions. We will open storage in
      // RW-mode (second parameter has to be false).
      // Note: Namespace name is limited to 15 chars.
      preferences.begin("my-app", false);

      // Remove all preferences under the opened namespace
      //preferences.clear();

      // Or remove the counter key only
      //preferences.remove("counter");

      // Get the counter value, if the key does not exist, return a default value of 0
      // Note: Key name is limited to 15 chars.
      unsigned int counter = preferences.getUInt("counter", 0);

      // Increase counter by 1
      counter++;

      // Print the counter to Serial Monitor
      Serial.printf("Current counter value: %u\n", counter);

      // Store the counter to the Preferences
      preferences.putUInt("counter", counter);

      // Close the Preferences
      preferences.end();

      // Wait 10 seconds
      Serial.println("Restarting in 10 seconds...");
      delay(10000);

      // Restart ESP
      ESP.restart();
      }

      void loop() {}

      posted in PRODUCTS
      X
      X-Dron
    • RE: Sim800l

      If you can Russian the best manual for SIM800L here
      http://codius.ru/articles/GSM_модуль_SIM800L_часть_1
      Many sketches for Arduino that can be easily conversion to M5 Stask.
      Just replace
      #include <SoftwareSerial.h>
      SoftwareSerial SIM800 (8, 9); // 8 - RX Arduino (TX SIM800L), 9 - TX Arduino (RX SIM800L)
      to

      HardwareSerial SIM800 (2); // pin 16 = RX, pin 17 = TX
      for example
      https://yadi.sk/d/SxWs6t0x3UBco6

      posted in PRODUCTS
      X
      X-Dron
    • RE: Sim800l

      @jpilarski 在 Sim800l 中说:

      Is the mic on GPIO5

      No. mic and headphone are connected direct to SIM800L module.
      GPIO5 is reset.
      alt text
      Interconnection
      M5 Stask <> SIM800L
      Vbat - Vcc (3.7-4.3V)
      GPIO16(RX) - TXD
      GPIO17(TX) - RXD (must be not direct 3.3V > 2.5V)
      GPIO5 - RST
      GND - GND

      RING is not used.
      DTR is not used.

      MIC+, MIC- to microphone.
      SPK+, SPK- to headphone.

      Example for Arduino
      0_1523298952882_MIC_001.png
      0_1523298865995_09-04-2018 21-32-20.png

      posted in PRODUCTS
      X
      X-Dron