maniacbug / RF24

Arduino driver for nRF24L01
http://maniacbug.github.com/RF24
949 stars 770 forks source link

GetingStarted not stable with ethernet shield ? #4

Open bzaharie opened 12 years ago

bzaharie commented 12 years ago

I am running the gettingStarted samples with "+" radios from sparkfun, on Arduino Uno. I use pins 7 and 8 in ordr not to interfere with 10 and 4 which are used for the shield. With only the board everything looks ok. When on one board I stack over the ethernet shield communication has problems:

bzaharie commented 12 years ago

Clearly is related to SD card on the ethernet shield - happens only when SD card is inserted

maniacbug commented 12 years ago

From the symptoms it sound like the Arduino has lost the ability to communicate with the RF module. You could set something up so that you can do a "printDetails()" call when the problems start, and then you can see if the configuration looks right. My first instinct is that it's a power problem. Perhaps the regulator cannot supply enough power to the module with the ENC chip and the RF and the SD card.

bzaharie commented 12 years ago

It's clear messed up - when printing the configuration all parameters seem to be wrong. The point is that works ok in exactly the same hw setup with the Mirf library, so if it is a matter of power then comes from setting in software (I just checked the SETUP register, maybe is related to transmit power, but I get the same value)

etemu commented 11 years ago

You should pull the CSN of your SD card high, and declare it as an output pin of course. It's a frequent error when a SD card is inserted in the network shield, but the SD card is not used: MISO/MOSI lines are not floating at the SD card due to the undefined operating state.