Interface RC522 RFID with BBB using SPI

64 views
Skip to first unread message

mistryda...@gmail.com

unread,
Jul 27, 2020, 11:47:11 AM7/27/20
to BeagleBoard
Hi, Can any one provide a C code for Interfacing a RC522 RFID reader to the Beaglebone black wireless using a SPI bus.

Dennis Lee Bieber

unread,
Jul 27, 2020, 1:34:14 PM7/27/20
to Beagleboard
On Sat, 25 Jul 2020 17:30:21 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user
mistrydarshan1995-Re...@public.gmane.org wrote:

>Hi, Can any one provide a C code for Interfacing a RC522 RFID reader to the Beaglebone black wireless using a SPI bus.

Well, you could perhaps start with the Arduino library
https://github.com/miguelbalboa/rfid which is C++.

You'd have to replace the Arduino SPI calls
(https://www.arduino.cc/en/reference/SPI) with BBB SPI library calls
(https://www.element14.com/community/community/designcenter/single-board-computers/next-genbeaglebone/blog/2019/08/15/beaglebone-black-bbb-io-gpio-spi-and-i2c-library-for-c-2019-edition).


--
Dennis L Bieber

Reply all
Reply to author
Forward
0 new messages