Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Timer objects

    Scheduled Pinned Locked Moved LoPy
    12 Posts 7 Posters 3.3k Views 7 Watching
    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.
    • M Offline
      MrPy
      last edited by

      Hi Chris,

      How did you get on with your ultrasonic sensor? I'm just starting out.

      Cheers,

      C 1 Reply Last reply Reply Quote 0
      • R Offline
        Ralph
        last edited by

        Hi Chris,

        The forum is a good place to do feature requests. We do post 'weekly updates' that show our short term plans. Actual issues can go to github.

        The RTC was a bit hidden in the docs, but you can find it here.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MrPy
          last edited by

          I don't think the Timer class is supported by the Espressif IDF.... yet..

          1 Reply Last reply Reply Quote 0
          • M Offline
            microman7k @Ralph
            last edited by

            @Ralph Does RTC work on Lopy with latest firmware or not?

            Example:

            rtc = machine.RTC()
            Traceback (most recent call last):
            File "<stdin>", line 1, in <module>
            AttributeError: 'module' object has no attribute 'RTC'

            Thanks,..

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sakis @microman7k
              last edited by

              Hi @microman7k,

              We are still updating our documentation to reflect which features are already implemented and which aren't. Please check: https://docs.pycom.io/pycom_esp32/library/machine.html

              There's no RTC there so that means that it's not implemented yet.

              1 Reply Last reply Reply Quote 0
              • C Offline
                cfaessler @MrPy
                last edited by

                @MrPy thanks for asking. Im still waiting for the ticks_us() function. Currently the precison with ticks_ms() is not enough. I got it working, but only with rough accuracy.

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MrPy @cfaessler
                  last edited by

                  @cfaessler said in Timer objects:

                  @MrPy thanks for asking. Im still waiting for the ticks_us() function. Currently the precison with ticks_ms() is not enough. I got it working, but only with rough accuracy.

                  Same situation as me then, I'm sure there is a hack to get it working but I might wait until the timer class is supported in the next f/w release.

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    cfaessler @MrPy
                    last edited by

                    @MrPy Jep, lets hope for the best :) btw, this: https://github.com/mithru/MicroPython-Examples/blob/master/08.Sensors/HC-SR04/ultrasonic.py is a pretty good starting point.

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      ekpegleg @Xykon
                      last edited by

                      @Xykon said in Timer objects:

                      @cfaessler Timer support should be added soon... hopefully by next Friday as originally announced.

                      Which friday? Im still waiting for the ticks_us() function. Can everyone show a hack to get the hc-sr04 to get working?

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        MrPy @ekpegleg
                        last edited by

                        @ekpegleg said in Timer objects:

                        Which friday? Im still waiting for the ticks_us() function. Can everyone show a hack to get the hc-sr04 to get working?

                        This Friday I believe.

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • First post
                          Last post

                        Pycom on Twitter

                        Pycom