@jesse said:
I found the solution on this page: http://mathertel.blogspot.com/2013/04/using-spi-bus-with-ethernet-sd-card-and.html
The key is setting the Chip Select (CS) line to be different for each module.
For the CC3000...
"#define ADAFRUIT_CC3000_CS 7"
Pin 7 is being used exclusively to select the Wifi module.
https://learn.adafruit.com/adafruit-cc3000-wifi/cc3000-breakout
For the NRF24L01+...
"RF24 radio(9,10);"
Pin 9 is being used for Chip Enable (CE) and Pin 10 is Chip Select (CS).
http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
http://maniacbug.github.io/RF24/classRF24.html
The other SPI pins: CLK, MISO, MOSI, are shared by the two modules and get wired in parallel.
Hi do you still have a Gateway code when using CC3000 and arduino Mega or UNO(if it fits)?
I'll admit a newbie at this. but I"m about beyond frustrated. I've been trying to get my "Vera Edge" Serial gateway up and running. I had it working, using a nano ATmega328 w/FTDI chipset. So that was great! All your posts were very helpful! So I decided to move forward and start building my sensors. The first sensor I built was a motion sensor also using a nano ATmega328. So I got it up and running, communicating with the gateway, and than the Vera controller dropped it and I kept get the same error message, Device not ready, "LUA Startup Failure.
If you all have any another ideas on what could be causing this I could sure use your help!
Thanks