using nRF24L01 and Wiznet ethernet shield on the same Arduino

I've been trying to get the nRF24L01 and the Wiznet Ethernet shield working on the same Arduino for a while now, but have not had much success. Specifically, I have a gateway Arduino w/ ethernet shield and nrf24L01. I'm trying to update Xively with a remote sensor node communicating with the gateway via nRF24L01.

I know you can't use both modules at the same time, and you need to set the select pin on the nRF24L01 such that it's different from the select pin of the Wiznet. But there must be something going on with the Xively module. I read somewhere I need to issue a stop command to the ethernet shield...not sure how to go about it.

It seems like such a common thing to want to do. Ethernet gateway with nRF24L01's acting as network to remote Arduino nodes, updating to Xively. But I haven't found any examples of other people doing it.

Any advice would be appreciated.

They should work ok together if the devices have different slave select pins. It is a matter of getting them to share the SPI bus.

Do you have each device working separately?

edit: I don't know about Xively. Many of these type sites are going to strictly SSL connections, and the ethernet shield library does not support SSL connections.

arusr: I've been trying to get the nRF24L01 and the Wiznet Ethernet shield working on the same Arduino for a while now, but have not had much success. Specifically, I have a gateway Arduino w/ ethernet shield and nrf24L01. I'm trying to update Xively with a remote sensor node communicating with the gateway via nRF24L01.

I know you can't use both modules at the same time, and you need to set the select pin on the nRF24L01 such that it's different from the select pin of the Wiznet. But there must be something going on with the Xively module. I read somewhere I need to issue a stop command to the ethernet shield...not sure how to go about it.

It seems like such a common thing to want to do. Ethernet gateway with nRF24L01's acting as network to remote Arduino nodes, updating to Xively. But I haven't found any examples of other people doing it.

Any advice would be appreciated.

i have both working fine on a arduino duemilanove pins are: CE -> arduino 8 CSN -> arduino 9 SCK -> arduino 13 MOSI -> arduino 11 MISO -> arduino 12

then on your setup you define RF24 radio(8,9); and voila, you can use ethernet and nrf together. I'd suggest you try the GettingStarted example from rF24 library and see if the printed details look good then you can start to play with ethernet library too

SurferTim: They should work ok together if the devices have different slave select pins. It is a matter of getting them to share the SPI bus.

Do you have each device working separately?

edit: I don't know about Xively. Many of these type sites are going to strictly SSL connections, and the ethernet shield library does not support SSL connections.

Yes, separately they work. I can push data up to Xively via the ethernet shield. I can receive data from nRF24L01. But there's something going on when I have both devices connected at the same time.

Carlcox89: i have both working fine on a arduino duemilanove pins are: ... and voila, you can use ethernet and nrf together. I'd suggest you try the GettingStarted example from rF24 library and see if the printed details look good then you can start to play with ethernet library too

Did you have to issue any special stop commands on the ethernet shield? Are you using Ethernet.h for the ethernet? Which library are you using for the nRF24L01? There's a couple of those floating around.

I'm also not sure if maybe it's the xively library that's giving me grief. I have ethernet and nRF24L01 working separately, just not together on the same device.

I have exactly the same problem, perfect data reception with the Ethernet shield removed OR with just the Ethernet cable unplugged from the shield. BUT sometimes everything does work perfectly with nrf24l01 data perfectly received and then uploaded to ThingSpeak with both Ethernet shield and nRF working together.

The problem is intermittent. But I can only assume that it is related to some conflict on the SPI bus..

Post your code.