Navigation

    M5Stack Community

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

    ScheduleDisplay

    @ScheduleDisplay

    Software Solutions for Door Displays

    0
    Reputation
    4
    Posts
    655
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Website scheduledisplay.com/ Location Stuttgart, Germany

    ScheduleDisplay Follow

    Posts made by ScheduleDisplay

    • How to get M5stack-paper actual correct voltage during charging?

      Hello,
      I am using this function M5.getBatteryVoltage() / 1000.0; to get the battery information of M5stack-paper and display the remaining battery status on the display. It is giving me the correct value of voltages if the M5Paper is running on a battery.
      However, If I connect the M5Paper to the charging cable then this function gives 4.35 vol irrespective of the actual battery status. This displays the incorrect 100% battery status on the display.

      Is there a way Or any other function to get the actual correct voltages during the charging? So I can display the battery status correctly

      Thanks

      posted in PRODUCTS
      ScheduleDisplay
    • RE: How long M5stack-paper can sleep for?

      Hello Felix,
      Thank you very much for your reply.

      I updated the code according to your suggestion.

      1. I know the actual time so I set the actual date and time of RTC.
        rtc_date_t RTCDate;
        rtc_time_t RTCtime;
      
        RTCDate.year = year();
        RTCDate.mon  = month();
        RTCDate.day  = day();
        M5.RTC.setDate(&RTCDate);
      
        RTCtime.hour = hour();
        RTCtime.min  = minute();
        RTCtime.sec  = second();
        M5.RTC.setTime(&RTCtime);
      
        Serial.print("\n Actual RTC date and time  =>" + String(RTCDate.day) + "-" + String(RTCDate.mon) + "-" + String(RTCDate.year) + " " + String(RTCtime.hour) + ":" + String(RTCtime.min) + ":" + String(RTCtime.sec) );
      
      
      1. I also know the sleep duration in secs. for example 30 minutes (1800 secs). So I added these secs into the current time to get the wakeup time in the future.
      int nextRereshTimeInSecs = now() + 1800;
      setTime(nextRereshTimeInSecs);
      
      1. Then I set the alarm using setAlarmIRQ(const rtc_date_t &date, const rtc_time_t &time) and shut down the M5stack-paper.
          rtc_date_t wakeupDate;
          rtc_time_t wakeupTime;
      
          int currentYear = year();
          int8_t int8_year = currentYear % 100;
          int8_t int8_month = month();
          int8_t int8_day = day(); 
          
          // Populate rtc_date_t structure
          wakeupDate.year = int8_year ;
          wakeupDate.mon = int8_month ;
          wakeupDate.day = int8_day;
      
          int8_t int8_hour = hour();
          int8_t int8_minute = minute();
          int8_t int8_second = second(); 
          // Populate rtc_time_t structure
          wakeupTime.hour = int8_hour;
          wakeupTime.min = int8_minute;
          wakeupTime.sec = int8_second;
      
          Serial.print("\n Future RTC date and time  =>" + String(wakeupDate.day) + "-" + String(wakeupDate.mon) + "-" + String(wakeupDate.year) + " " + String(wakeupTime.hour) + ":" + String(wakeupTime.min) + ":" + String(wakeupTime.sec) );
      
          delay(300);
          M5.RTC.clearIRQ();
          M5.RTC.setAlarmIRQ(wakeupDate, wakeupTime);
      
          delay(10);
          M5.shutdown();
      

      Currently, I am testing it with the sleep duration of 30 minutes and it looks like working. I will test it for more than 4 hours tonight.

      The question is that, do I have to use
      M5.shutdown( wakeupDate, wakeupTime)

      OR

      is it OK what I am currently using
      M5.RTC.setAlarmIRQ(wakeupDate, wakeupTime);
      M5.shutdown();

      posted in PRODUCTS
      ScheduleDisplay
    • How long M5stack-paper can sleep for?

      I have programmed M5stack-Paper in a way that it connects to the WiFi, read data from Firebase and sleep for provided seconds using "M5.shutdown(Secs)". read documentation here

      It is working fine if the sleep duration is less than 4 hours.
      If the sleep duration is more than 4 hours then the M5 paper is waking up properly according to the given sleep duration but waking up randomly after 2 - 3 hours .
      I also tried "M5.shutdown( const rtc_date_t &RTC_DateStruct, const rtc_time_t &RTC_TimeStruct)" but it didn't work as well.

      1. Is there any limitation regarding the sleep duration for M5stack-paper?
      2. Is there any other shutdown function which can be used to wake it up for longer durations?
      posted in PRODUCTS
      ScheduleDisplay
    • M5 Burner is not allowing to publish User custom firmware for M5 Paper.

      Hello,
      I have written the code in Arduino and created the binary file.
      I have logged in to the M5 burner and tried to upload the user's custom firmware into the M5 burner, but I cannot find the M5 paper in the list of device types (please see the screenshot in the attachment). I want to burn many M5 paper devices so uploading the code one by one from Arduino is very time-consuming.
      Can anyone guide me that what I am doing wrong?
      Is there any other way to burn/upload Arduino code on M5 paper quickly without uploading the code one by one on M5 paper devices from Arduino?

      0_1661248204805_Capture.PNG

      posted in SOFTWARE
      ScheduleDisplay