Pages: [1]   Go Down
Author Topic: Multiple SPI devices?  (Read 396 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm wanting to make a network of devices, one will have ethernet and wireless on it and the rest just wireless

problem I have is that the ethernet (WIZ810MJ) is SPI the wireless (nRF24L01) is also SPI.

so does that mean I cannot have this combination? or are there work arounds?

If there are alternative modules that take care of error correction and support addressing specific devices I'm open to alternatives.

is SPI capable of dealing with multiple devices, and if so, where's the cheapest place to get them from the UK?

- Anthony
« Last Edit: July 04, 2011, 02:12:20 am by trinode » Logged

Sydney Australia
Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One SPI bus is perfectly capable of talking to multiple devices.  You just need separate chip selects for each device.

Amanda
Logged

Netherlands
Offline Offline
God Member
*****
Karma: 7
Posts: 648
A naughty mind is a joy forever.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Besides using the same bus (with the use of one different Select-pin as Commanda suggested), it may
also be possible to create a software driven SPI-bus using the http://arduino.cc/en/Reference/ShiftOut and http://arduino.cc/en/Reference/ShiftIn commands.
It's a lot slower, but if it is still fast enough you could use any set of 4 pins for software SPI.
Logged

Pages: [1]   Go Up
Jump to: