I made arduino-stack which consists of arduino r3, robotdf motor shild and robotdf lcd shield. But motor shield and lcd use same pins 4 and 5, so we have a conflict of pins. Can i use other pins?
-
1Nope. Welcome to shields.– Ignacio Vazquez-AbramsCommented Nov 5, 2014 at 8:40
-
@IgnacioVazquez-Abrams it would be possible if you modify the shield right? cutting through a wire, solder it to another pin?– T JCommented Nov 5, 2014 at 8:42
-
1Technically you can rewire the shield. But this is a physical change, and different combinations of shields will require different rewiring. In the end you may be better off just using breakout boards instead.– Ignacio Vazquez-AbramsCommented Nov 5, 2014 at 8:45
-
@IgnacioVazquez-Abrams this variant is ok for me, thanks– user2500581Commented Nov 5, 2014 at 18:23
Add a comment
|
1 Answer
Stack one shield on top of the Arduino itself and connect the other shield using wires. This way you can pick your own pin assignment for the 'external' shield.
Be careful when using a specific library though, sometimes the used pins are hard-coded in the library itself. Modifying the .h and .cpp files for the library is possible, so you could (hard code) assign your own used pins.