Hello, to talk about my problem, the communication between usb hostsheild and rc 522 is conflicting. They both communicate via SPI, I would appreciate if you can help me how to solve this situation.
Yes they do, but SPI is a bus, that means you can connect multiple devices to it. All you have to do is to have a separate chip enable pin (CE) for each device.
The rest of the SPI pins go to all devices on the SPI bus.
You put that CE pin low before you want to use the device it is connected to, then use the SPI calls to communicate with that device. Finally put this pin high when you have finished the transaction.
When you say CE, are you talking about the SS pin? As far as I know, usb hostsheild ss pin is 10. Where do you suggest I plug RC522 on Arduino Uno.
Yes it is an alternate name.
Any free Arduino pin can be used as a CE (or SS) for your RC522.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.