NRF24L01 on bare atMega328P

Hi!

I was about to finalize my project, but then thunder strikes...
I'm hoping to finish today, since I need it soon. I have all day available just to fix this.

So, I have 4x NRF24L01, 3 of them are transmitters, one is receiver.

Program has been tested (test situation; one atMega328P(as transmitter) on a breadboard and one UNO(as receiver) which worked great, I simply do have one breadboard, so that's why.
Obviously I made the test program in a test environment until I was happy.

Then, I created 3 finalized transmitter boxes; which basically is an PIR, battery holder(2xAA 3v), atMega328P and a NRF..
Tested this with the UNO receiver, worked as well, no problems at all.

So then trouble started.
Now I was at the point where the receiver should come of the UNO to be a bare atMega328P

  • Burned bootloader for 8Mhz internal clock (transmitters do the same) according to tutorial, and succesful. I do this quite a lot, so I know that's good.
  • Uploaded the sketch for the receiver (8Mhz internal clock board)
  • Then: it did not work!
    I do see my 'boot-LED' blinking. But there seems to be no radio communication. And also in the serial monitor I can see my boot messages.

The fun thing is, I took an extra UNO from my storage, connected all the wiring back again (if you have the UNO and atMega328 on a breadboard next to each other, it's really easy to make a quick and correct wiring copy). Powered it up and uploaded the sketch and it worked.

So the transmitters work without crystal and capacitors, I did do a test with the atMega328P with crystal and capacitors, same results.

I checked all the wiring

Wiring:

SCK === PIN 13 (atMega 19)
MISO === PIN 12 (atMega 18)
MOSI === PIN 11 (atMega 17)
CE === PIN 10 (atMega 16)
CSN === PIN 9 (atMega 15)

PSU === 3V chip and NRF on the same supply

I did not post my code, since I think it's not relevant to my problem, if you would like to see the code I'll be happy to share it here.

Remove everything unnecessary from your code, test of it still does not work and post it. It is likely the fault is on the code (or a poor connection in your breadboard).

Smajdalf:
Remove everything unnecessary from your code, test of it still does not work and post it. It is likely the fault is on the code (or a poor connection in your breadboard).

So I've set up 2x atMega328P on the breadboard and also with both their own NRF...
Then uploaded the SimpleNRF.. tutorial from Robinn2 (which always worked for me).

But I'm seeing the same problem, can it be that it has to do with the 8Mhz internal clock?

Code?
Circuit?