I'm not sure exactly what problems you are having, but maybe my answer there can help you, or perhaps the poster can lend you some insight based on what he's tried so far.
my problem is i just cannot get the thing to go i have tried breaking it down into sending single bits at a time and still i cannot get it to talk between two of them (i have them both hooked up to one arduino)
if anyone out there has used the thing could they please post their code?
Are you using their slave select lines to make sure you're only talking to one at a time? And how did you send single bits at a time? SPI transfers sixteen bits per transaction (eight on MOSI, eight on MISO).
configuration:
ok so i set CS (chip select) high then send a single bit then write the CLK high then low then send next bit... once iv sent all the bits i set CS low
unfortunatly it doesnt work
im kicking myself for buying the nrf 2401a over the newer nRF24L01 but i would pefer to get what i have going instead of wasting over $50 on them
You might pick up some answers there (hopefully :-?).
Also if I understood your code correctly, you are using different values for rxce/txce and rxcs/txcs variables. Now, if you consider those to be pins, you need to assign rxce/txce to one value and rxcs/txcs to another value. You only should have two pins of atmega committed to control CS and CE pins on nRF24L01.
The receive side wont work because you simply have:-
for(int h = 0; h<10; h++){
recievedata = digitalRead(rxdata);
}[/quote]
This is just reading the pin as fast as you can having no regard for the timing. What I expect you will see here is a long string of ones followed by all zeros, or more likely just one logic level.
Don't you need to synchronise data coming in with something? I would guess the clock that you are using to drive the shift register but you say you have only one Arduino. This code won't send and receive at the same time it will either do one or the other. You need to receive at exactly the same time as you send, you need two arduino's.
Or am I missing something?