Go Down

Topic: Serial Peripheral Interface (SPI) Bus (Read 690 times) previous topic - next topic

MostafaHamdy

can i communicate two device using the Serial Peripheral Interface (SPI) Bus in one arduino board ?
because i need to connect two device ( SD card shield with screen led matrix ) in one program and both of them need SPI pins , i don't know if one board include to two SPI pins or not and if not, How i connect two arduino board together work on the same program  ?

CrossRoads

Yes.
Both devices are wired to SCK, MOSI, MISO in parallel.
Each device gets its own SlaveSelect pin.
Use D10 for the SD, and a different pin for the other one (D9 perhaps).

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.


Go Up