Power & Source of Big Ideas

Using RC522 in NanoPC T2

Moderators: chensy, FATechsupport

Hello everyone, I am using a NanoPC T2 with Android 4.4, and I want to connect the device through SPI with an RFID-RC522 card reader. Previously I used the GPIO ports with serial communication without problems but I can not communicate via SPI.
I connect the SPI Port via pins 7,8,9 and 10.

I open the port without problems
HardwareControler.open ("/ dev / spidev0.0", FileCtlEnum.O_RDWR);

After configuring the port I use a timer to send data but without results.

Best Regards
Have a look at the WiringNP library to see how they handle this.

https://github.com/friendlyarm/WiringNP
I've finally managed to get a reading out of my cards.
When using Arduino Mega 2560, you should wire the pins like mentioned on this page:
http://arduino.cc/en/Main/arduinoBoardMega under "Input and Output":
SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language. The SPI pins are also broken out on the ICSP header, which is physically compatible with the Duemilanove and Diecimila.

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 106 on Tue Jun 04, 2019 5:48 pm

Users browsing this forum: No registered users and 1 guest