6
$\begingroup$

I was wondering if it is possible to plug a motor shield on top of an Ethernet shield, even though the direction pins on the motor shield would be connected to the same pins as the spi bus. I was thinking that it would work if, in the coding, I disabled both chip selects on the Ethernet shield before I used the motors.

$\endgroup$
1

1 Answer 1

2
$\begingroup$

The whole point of the chipselect pin is so that multiple devices (in this case, shields) can share the same SPI bus.

As long as no two chipselect pins are the same, you ought to be fine. Make sure only one chip select pin is on at any given time.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.