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

    Pyscan

    Scheduled Pinned Locked Moved Expansion Board
    5 Posts 2 Posters 174 Views 2 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
      mark sewell
      last edited by

      Dear All,

      I have a question in regards to the pyscan board, is it possible to use this board in combination with the esp-idf and a lopy4? does this board has its own firmware like pytrack etc? we have successfully done this in terms with the lopy4 and esp-idf compiling certain ble functionality that is not available in micropython, we do not seem to get the pyscan board going this way using a ported version of the arduino mfrc630 lib , we only need the rfid/nfc functionality of this board, is there any source code in C++ available for pyscan? If anybody can give any pointers that would help?

      Kind Regards

      Mark

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        Hi Mark,

        Im not aware of any RFID/NFC functionality built into the firmware. Everything should be in this library: https://github.com/pycom/pycom-libraries/blob/master/shields/lib/MFRC630.py

        As far as I know, this is the MFRC630 library I think you're refering to: https://github.com/adafruit/Adafruit_MFRC630/blob/master/Adafruit_MFRC630.cpp. You should be able to make it work with the correct pin definitions, the I2C bus on sda='P22', scl='P21'. You might have to do some translating in the pin numbers to GPIO numbers

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          mark sewell @Gijs
          last edited by

          @Gijs Hi Gijs,

          Thank you for you swift reply, much appreciated, you are right I am talking about https://github.com/adafruit/Adafruit_MFRC630 ,can you be more specific in terms of this pin number translation? do you have an example please?

          Kind Regards

          Mark

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gijs
            last edited by

            No problem

            The P-numbers are defined somewhere in our firmware, but are based on the GPIO numbers of the ESP32 chip. If you're using the ESP-IDF, you might still need to translate the numbers. You mention you're using a lopy4, for which the P-to-GPIO values are defined here: https://github.com/pycom/pycom-micropython-sigfox/blob/a37510c092bcec00671c924accb97dcdfa2f4b5d/esp32/boards/LOPY4/pins.csv

            So P22 and P21 will translate to GPIO26 and GPIO25 respectively.

            Best,
            Gijs

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mark sewell @Gijs
              last edited by

              @Gijs Hi Gijs, thank you for that we have some response now, still sorting some timing issues but it looks like you have pushed us in the right direction, again many thanks :-)

              Kind Regards

              Mark

              1 Reply Last reply Reply Quote 1

              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