0
Kwan Xian

Some problem about OPi PC2 spi connect MFRC522.

Recommended Posts

HI, guys!

 

I tried to enable spi connect RC522 on OPi_PC(H3). It works!

my topic:

 

but now, I make the same way to enable spi with RC522 on OPi_PC2(H5).

I can found spi on "/dev/spidev0.0"

But when I run "Read.py" script as root.

It can't detect & read the cards.

 

 

How can i use it on OPi_PC2?

 

 

1818150214.jpg

Share this post


Link to post
Share on other sites

SOLVED:

 

Because PC2 GPIO pins is different.

change SPI0 to SPI1

edit /boot/armbianEvn.txt

"param_spidev_spi_bus=0" --> "param_spidev_spi_bus=1"

save!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0