I've looked around a lot now and can barely find any information on how to clone RFID tags with the Raspberry Pi, I've seen plenty of content on how to do it using an Arduino but I would really rather not have to buy and learn to use an Arduino when I already have a perfectly fine Pi to use. I've set up my Pi with the RC522 reader and have confirmed that it does in fact read and write data, I am just struggling to find any scripts on GitHub or otherwise that will clone an RFID tag. Have I overlooked something? Will I have to try and write the script myself?

  • tutorial here seems fairly comprehensive. and here as well – Shreyas Murali Jun 2 '18 at 3:15
  • These are the tutorials and repositories that I used yet I still have no idea how to clone the tags? My RC522 is already set up and working, that's not the issue I'm having, I just want to know how to clone the tags using the Pi. – JayBuckel Jun 2 '18 at 9:01
  • Will I have to try and write the script myself? have you tried? You'll get a lot more satisfaction from writing the code yourself, rather than git clone someone-elses-work.git :p – Jaromanda X Jun 2 '18 at 23:55
  • Your right, but I can't actually code python and the project is more of a hobby, not enough to warrant learning it, maybe one day, but for now GitHub is my only hope for scripts that do what I need, and if what I need ain't there I'm screwed! – JayBuckel Jun 4 '18 at 2:11
  • 1
    @JayBuckel: Try to look at this from another perspective. You've asked for someone to do "pick and shovel" work for you: performing a proper Google search, and reading enough of the results to get started at least. And in your Jun 4 comment, you say "not enough to warrant learning", and "[otherwise] I'm screwed]". From another perspective, I hope you can see how someone might get the idea that you come here with a sense of entitlement. I'm sure that's not the case, but perception is a powerful thing, no? – Seamus Jun 5 '18 at 15:08

So in the end I just learned to code Python (somewhat) and learned how the read and write scripts worked, I then tinkered with the read script and kind of merged the two scripts together. The new script reads the input of the first card and then waits for an input of a blank second card to write the captured UID to.

  • 2
    It would be courteous to the next person searching for a solution, if you could provide the code to your solution, as this answer is not helpful. – not2qubit Oct 14 '18 at 11:49
  • The following shell script might be a good starting point. You can also checkout this repo which is of tremedous help. Cheerio – Samuel Prevost May 9 '20 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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