Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have worked on SPI devices connected with an Arduino one at a time. How do I work with two different SPI devices at the same time?

share|improve this question

Assuming you just want to connect two SPI slave devices to the SPI bus and use them in a mutually exclusive way under software control, with the Arduino as the master, then you just need to make sure you use a different pin for the slave select (SS) on each SPI device.

When you want to talk to one slave, you hold its SS low and drive the other high. Do the opposite to talk to the other slave.

There are some devils in the detail using multiple slaves, and these are explained in more depth here, but in general, it's quite common and OK to use more than one SPI device as a slave.

This blog post will give you more information and is a good place to start reading.

share|improve this answer
    
By design you have to connect MOSI/MISO/SCK in parallel for multiple slave except for the SS. You could use shift register circuit/IC to use a daisy chain connection on slave for SS line. – wajatimur Feb 4 '15 at 17:51

Yes you can connect multiple SPI to arduino .I am giving you link below then you will get idea: http://www.learningaboutelectronics.com/Articles/Multiple-SPI-devices-to-an-arduino-microcontroller.php

share|improve this answer
    
Rather than posting links as answer, try to first develop the answer here and then post the link for more complete or further information. – jfpoilpret yesterday
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Feel free to add a more complete answer that directly answers the question. It would be helpful, for example, to explain how to connect more than one SPI device to the Arduino. – Nick Gammon 10 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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