1

I want to use an MFRC522 module as explained in this video.

But is it possible to get around with Arduino and use a TTL to USB converter to connect RC522 directly to my PC running Ubuntu?

Using the RC222's UART interface, should I rewrite Arduino libraries from scratch for PC or is there a way to easily port the libraries?

closed as off-topic by Juraj, per1234, VE7JRO, sempaiscuba, MatsK Jun 3 '18 at 5:46

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Arduino, within the scope defined in the help center." – Juraj, per1234, VE7JRO, sempaiscuba, MatsK
If this question can be reworded to fit the rules in the help center, please edit the question.

  • are you wanting to keep it in c++? – Chad G Jun 1 '18 at 23:07
  • no. the language is not important at all. Is it feasible in you opinion? @ChadG – Saleh Jun 1 '18 at 23:53
1

Arduino libraries rely on the Arduino API to operate (usually). Things like the Serial object are expected to be defined.

Linux doesn't have any of that stuff, so you would have to implement it all yourself.

There is the "Wiring Pi" project for (obviously) the Raspberry Pi that implements the majority of the Arudino API, but whether that could be made to run on Linux on a PC is anyone's guess.

It may be simpler to just examine the existing library (and datasheet) and implement it yourself in your chosen language.

Not the answer you're looking for? Browse other questions tagged or ask your own question.