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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0