How to use motor shield L293D with RFID reader RC522 on Arduino Mega

Hello,

I am using the Arduino Mega with a motor shield. I need to add the RC522. However, pins D9 and D8 are already taken by the motor shield thus I cannot connect the RFID reader.

Is there any solution where I can use both the motor shield and RFID reader?

One solution is to change the headers. The L293 motor shield has male headers only. You can remove the male headers. Then you have to replace them with two- way headers like these: Amazon.com
These are called shield stacking headers. These will let you connect your sensors to the Arduino.

Why do you need to use pins 9 and 10 for the RFID reader ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.