Navigation

    M5Stack Community

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

    Posts made by tom8787

    • RE: want to power off m5stickC from code

      In case anyone else is looking for the real PowerOff (and NOT deep sleep or any other sleep method), the command to use is
      M5.Axp.PowerOff();
      (mind the capitals)

      After this command you have to power your M5Stick manually by pressing the power button, but it works as a charm.

      posted in Arduino
      T
      tom8787
    • Cannot install platform m5stack:ESP32 in Arduino

      Hi,

      When following the guide to install a M5StickCPlus from the Board Manager, I get the error "Error: 2 UNKNOWN: installing tool m5stack:esptool_py@3.0.0: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index"

      Any solutions?

      posted in Arduino
      T
      tom8787
    • RE: RTC acting weird

      Small update: I just used M5burner to reinstall the Factory Test, same result, so I'm getting in touch with the supplier, hopefully I can get a new one ...

      posted in Core 2
      T
      tom8787
    • RE: RTC acting weird

      @felmue said in RTC acting weird:

      RTC issue

      Hi Felix,

      Thanks a lot! I'll open up mine and see whether indeed there's something wrong with the soldering (or maybe just a flat battery).

      Kind regards,

      Tom.

      posted in Core 2
      T
      tom8787
    • RE: RTC acting weird

      UPDATE: there must be something wrong with my device, because even the rtc_wakeup example included in the M5Core examples gives me exactly the same. In the example, the time is set manually to 10:30:45, but immediately it shows on my device as 32:00:00 and the hours start counting as if they were seconds.

      Anyone else experienced this?

      posted in Core 2
      T
      tom8787
    • RTC acting weird

      Hi all,

      There is something really weird with my RTC.
      I try to get the NTP time over WiFi, and then set the RTC with that time. Connecting the WiFi and getting the NTP time works flawless, the time shows correct, but then something goes wrong, and I can't figure out what. I tried it with the standard M5.Rtc structs, and now with the BM8563 library, but the result is the same: the time looks something like 13:00:00, and the hours (the 13 in this case) tick like seconds. The minutes and the seconds stay 00. The hours tick every second +1, sometimes until 19, sometimes until 35, ... and then restart from 00.

      This is my code:

      #include <I2C_BM8563.h>

      #include <M5Core2.h>
      #include <WiFi.h>
      #include <NTPClient.h>

      WiFiUDP ntpUDP;
      NTPClient timeClient(ntpUDP);

      #define BM8563_I2C_SDA 21
      #define BM8563_I2C_SCL 22

      I2C_BM8563 rtc(I2C_BM8563_DEFAULT_ADDRESS, Wire1);

      const char *ssid = "mySSID";
      const char *password = "myPassword";

      //RTC_TimeTypeDef RTCtime;

      int hour;
      int minute;
      int second;

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

      WiFi.begin(ssid, password);
      Wire1.begin(BM8563_I2C_SDA, BM8563_I2C_SCL);
      rtc.begin();

      M5.Lcd.setTextSize(1);
      M5.Lcd.print("Connecting");

      while ( WiFi.status() != WL_CONNECTED ) {
      delay (500);
      M5.Lcd.print(".");
      }

      timeClient.begin();
      delay (1000);
      timeClient.update();

      hour = timeClient.getHours();
      minute = timeClient.getMinutes();
      second = timeClient.getSeconds();

      M5.Lcd.print("Got time ");
      M5.Lcd.print(hour);
      M5.Lcd.print(":");
      M5.Lcd.print(minute);
      M5.Lcd.print(":");
      M5.Lcd.println(second);

      I2C_BM8563_TimeTypeDef timeStruct;
      timeStruct.hours = hour;
      timeStruct.minutes = minute;
      timeStruct.seconds = second;
      rtc.setTime(&timeStruct);
      }

      void loop() {
      I2C_BM8563_TimeTypeDef timeStruct;

      M5.Lcd.setTextSize(2);
      M5.Lcd.setCursor(40,40);

      rtc.getTime(&timeStruct);

      M5.Lcd.printf("Time: %02d:%02d:%02d\n",timeStruct.hours, timeStruct.minutes, timeStruct.seconds);
      delay(1000);
      }

      Any help is greatly appreciated ...

      posted in Core 2
      T
      tom8787
    • RE: CORE2 as Web radio, without extra hardware ?

      Thanks a million, works as a charm on my Core2!

      posted in Core 2
      T
      tom8787