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

    Importing Library

    Scheduled Pinned Locked Moved MicroPython
    5 Posts 3 Posters 194 Views 3 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.
    • E Offline
      Edward Dimmack
      last edited by

      Hi,

      I am trying to import this library,

      https://github.com/v923z/micropython-ulab

      On to a Fipy and I am not sure where to start. I tried reading the docs but honestly got lost on how to apply it to a pycom unit. I am after polyfit to do some polynomial regression.

      1 Reply Last reply Reply Quote 0
      • K Offline
        kjm
        last edited by

        Since the library is in C you might have to recompile the pycom firmware with ulab? Robert & Andreas (couple of forum regulars) have mastered the art form.

        Do you really need to do this in real time on the Fipy? I needed a poly to convert battery voltage to state-of-charge, did it online in Windows on PC then used the formula so obtained in the pycom board.

        1 Reply Last reply Reply Quote 0
        • E Offline
          Edward Dimmack
          last edited by Edward Dimmack

          Hi kjm,

          Sorry I completely missed this response!

          The reason I wanted it is because I am making a datalogger that takes a reasonably large amount of recordings and sending them over cellular is no problem. However, when I want to send it over LoRa it is too much so my thinking was that I could record the same amount of recordings then construct a poly from the recordings and then send that instead. I am certainly open to better ideas though?

          I am not sure how to recompile with ulab so might need to do some research on that.

          Thank you for your reply and sorry I was so late to reply.

          1 Reply Last reply Reply Quote 0
          • rcolisteteR Offline
            rcolistete
            last edited by

            Today I've finally success building firmware Pycom MicroPython v1.20.2.rc10 + ulab v0.54.2. Some backporting was needed from MicroPython v1.12 to Pycom MicroPython (based in v1.11).

            I hope tomorrow to publish the firmware files for all xxPy boards combining features enabled/disabled, like PyBytes, single/double precision and ulab.

            I will keep you updated here.

            My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

            rcolisteteR 1 Reply Last reply Reply Quote 1
            • rcolisteteR Offline
              rcolistete @rcolistete
              last edited by rcolistete

              Took more time than planned.

              Voilá, more community Pycom MicroPython firmwares, including :

              • 24 firmwares without ulab, in combinations of 6 xxPy boards, Pybytes or not, single/double precision;
              • 21 firmwares with ulab, in combinations of 6 xxPy boards, Pybytes or not, single/double precision. 3 LoPy/SiPy/WiPy firmwares with ulab and Pybytes combinations are not possible due to the small firmware partition size of these boards. These firmwares with ulab have 'MICROPY_PY_REVERSE_SPECIAL_METHODS' enabled to allow '1 + np.arange(10)', for example.

              Announce with more details in 'Pycom firmwares with single/double precision and ulab module' topic.

              My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

              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