Pages: [1]   Go Down
Author Topic: Serial Peripheral Interface (SPI) Bus  (Read 536 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 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  ?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 439
Posts: 23748
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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).

Logged

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.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks smiley
Logged

Pages: [1]   Go Up
Jump to: