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

    Arduino support on LoPy

    Scheduled Pinned Locked Moved LoPy
    13 Posts 7 Posters 5.3k Views 9 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.
    • C Offline
      cgrotz
      last edited by

      Yep, would be great to know about the roadmap for the Arduino compatibility.

      1 Reply Last reply Reply Quote 0
      • B Offline
        barsznica @jsp
        last edited by

        @jsp
        LMIC library here: https://github.com/jpmeijers/arduino-lmic

        1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @jsp
          last edited by robert-hh

          @jsp The question is: what do you expect from "We'll make LoPy compatible with the Arduino IDE"? That could be two things:
          a) Use the Arduino IDE (like Pymakr now) to code and test your Python scripts
          b) Use the Arduino environment including C/C++ for coding.
          I understand the intention was a), since the pycom.io set of products focuses on micropython as THE language to use.
          Assuming option a), there is not benefit in using the Arduino IDE. For this actual purpose, it is in now way better than pymakr + Atom, or the set of basic tools you can use.

          B D 3 Replies Last reply Reply Quote 0
          • B Offline
            barsznica @robert-hh
            last edited by

            @robert-hh said in Arduino support on LoPy:

            Pymakr

            I was under the impression that PyMakr is retired.
            I vote for b), "Use the Arduino environment including C/C++ for coding."
            I am interested in continuing to learn (micro)python, but don't see how Arduino IDE and Python work.

            robert-hhR J 2 Replies Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @barsznica
              last edited by robert-hh

              @barsznica PyMakr new as Plugin for Atom etc.
              If you want to use C/C++, then better start at espressif itself as the primary source. http://espressif.com/en/products/software
              and their github lib:
              https://github.com/espressif
              There you also find an Arduino branch.

              1 Reply Last reply Reply Quote 0
              • J Offline
                jmarcelino @barsznica
                last edited by

                I'm pretty sure you can run the ESP32 Arduino core on any Pycom board

                https://github.com/espressif/arduino-esp32

                For LoRa the arduino-lmic you linked to needs changing because of different DIOx pins used but it shouldn't be a massive job. So looking at it perhaps Arduino can be supported with only a small effort.

                I do agree with Robert that Pycom as the name suggest should focus on Python -and there is a lot to be done there. But if Arduino support is simple to add as a community project it doesn't change focus that much. Above all, even above supporting Python, Pycom is about making development as easy as py ;-)

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  barsznica @jmarcelino
                  last edited by

                  @jmarcelino
                  That's fair enough of you're in the EU or US, but I don't want to go stuffing around with the multiple settings for other regions (ie AU915).
                  PyCom have done it (properly, I assume), so I will look into it again...

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    jmarcelino @barsznica
                    last edited by jmarcelino

                    @barsznica said in Arduino support on LoPy:

                    Even in Python you need to set the frequencies for AU915 operation, because while the standard specifies 72 channels, real world gateways only support 8.

                    That said Pycom is looking to make this process easier, with some defaults for known networks rather than the full manual process it is now.

                    The LMIC code isn't all that different.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      duffo64 @robert-hh
                      last edited by duffo64

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        duffo64 @robert-hh
                        last edited by duffo64

                        @robert-hh said in Arduino support on LoPy:

                        a) Use the Arduino IDE (like Pymakr now) to code and test your Python scripts
                        b) Use the Arduino environment including C/C++ for coding.

                        Hi,

                        If they meant a), why a stretch goal trying to raise more money ? To give the 'added value' for using one of the ugliest IDE in the world for coding in Python ? Don't get me wrong, I like Arduino philosophy, but the IDE is way too limited (it's right for not intimidating beginners, tho').

                        Should (must ?) be b), but whatever you see it, such a stretch goal was 'strange', to say the least, because Espressif is working on Arduino compatibility, not Pycom (happy to be wrong).

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          jmarcelino @duffo64
                          last edited by

                          @duffo64
                          From what I understand (Pycom may see it differently) the Kickstarter goal was to use the Espressif Arduino layer and Pycom would provide Arduino C libraries to the communication side of their boards: LoRa, Sigfox and soon LTE Cat M1/M2

                          I'd think this is very much still the plan. Can't see why they would give up on providing a layer to an incredible popular platform like the Arduino. That said Python is likely the priority and their focus for the past months.

                          1 Reply Last reply Reply Quote 0
                          • VolodymyrV Offline
                            Volodymyr
                            last edited by

                            I was able to run Arduino on FiPy without issues. Should work on the LoPy too: https://forum.pycom.io/topic/3134/using-pycom-boards-with-arduino-ide/1

                            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