Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. quangan
    Q
    • Continue chat with quangan
    • Start new chat with quangan
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    quangan

    @quangan

    0
    Reputation
    3
    Posts
    1685
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    quangan Follow

    Posts made by quangan

    • Random shutdown while battery is still charged

      I have an M5core that will occasionally shut off when if the battery is still at 3.9V. I'm trying to figure out if it's a software issue or a hardware issue. Once the device is shut off, the power button will not revive the device. The only way to revive the device is to either plug in USB or disconnect / reconnect the battery.

      What's weird is the shutdown seems to happen randomly and MIGHT be tied to my code (i.e. one version of my code seems to exhibit this behavior while others don't)... and also the amount of time the device can function before shutdown seems to be non-deterministic (at least I can't find a pattern right now).

      What could I be doing in the software that can cause the core to randomly turn itself off to the point that the power button isn't even responsive?

      posted in M5stack Grey
      Q
      quangan
    • Enabling IRda on Serial 2

      I'm trying to enable IRda TX and RX in the configuration for my M5core in Arduino. I saw in the documentation that this is possible: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/uart.html#api-reference

      However, I don't know what library functions in Arduino I need to call to enable this.

      Here's my code so far:

      #include <M5Stack.h>

      void setup() {

      M5.begin();

      Serial.begin(115200);

      // Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
      Serial2.begin(115200, SERIAL_8N1, 22, 21,0);
      }

      Any pointers on how to enable IRda tx and rx would be much appreciated! OR please show me where to look for the right configuration keyboard/syntax!

      Thank you!

      posted in Arduino
      Q
      quangan