🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Battery follow up in UI Flow2

    UiFlow 2.0
    4
    8
    3.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      csierra67
      last edited by

      Hi there

      I am starting to experiment with Core S3 . I could not find the Power block available in UI Flow 1 that allows to follow battery remaining capacity, battery voltage and possibly battery current.
      The block should be under hardware but there is nothing like that to add.
      I am missing something or is this block just not yet implemented ?
      Thanks a lot for your comments

      csierra67

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        The S3 series is not compatible with UIFlow 1 due to the way it works.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • C
          csierra67
          last edited by

          Thanks a lot, but as the title indicates is there a battery follow up of Core S3 in UI Flow ?

          C 1 Reply Last reply Reply Quote 0
          • C
            csierra67 @csierra67
            last edited by

            I mean UIFlow 2

            1 Reply Last reply Reply Quote 0
            • C
              csierra67
              last edited by

              After 157 views and No answer, I conclude that nobnody has an answer ;-)... Poor reactivity of this forum ;-(

              Core 2 being able to be programmed with UI Flow 1 and UI Flow 2 and as the battery follow up exists in UI Flow2, I conclude that it is missing for now in UI Flow2 and hopefully M5 stack will provide it.

              1 Reply Last reply Reply Quote 0
              • lbuqueL
                lbuque
                last edited by

                @csierra67 Python's API, blockl does not yet exist.

                import M5
                
                # Battery percentage
                M5.Power.getBatteryLevel()
                
                # set Charge Current
                M5.Power.setChargeCurrent()
                
                C 1 Reply Last reply Reply Quote 0
                • C
                  csierra67 @lbuque
                  last edited by

                  @lbuque

                  Thanks for the explanation. It is a pity, when the MCU runs on battery, there is no monitoring that would allow the user to take action when the battery comes close to the threshold value.

                  1 Reply Last reply Reply Quote 0
                  • stjofrS
                    stjofr
                    last edited by

                    This code will help :

                     print(M5.Power.getBatteryLevel())
                    

                    Stef Code
                    Project Management Director and Editor
                    in Database Software Systems Development
                    https://stjo.fr

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post