Pyscan
-
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
-
@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
-
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
-
@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
-
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