Atmega328P with nRF24L01

Hello Everyone,
I hope everyone is doing great.
I am connecting nRF24L01 with ATmega328P. Connections are correct. The code is working correctly on Arduino UNO and Arduino Nano. But my devices are not connecting with each other when i am doing the same on ATmega328P.

It would be great if someone can guide. All the basic codes are working fine. Is there anything that i need to add in my circuit?

|Atmega328P(Physical Pin No)|nRF|
|Pin 7| |VCC|
|Pin 8| |GND|
|Pin 17| |MOSI|
|Pin 18| |MISO|
|Pin 19| |SCK|
|Pin 9| |CE|
|Pin 8| |CSN|

Any guidance will be appriciated

Thank you in advance.

Edit 1:
CE is on physical pin 15
CSN is on physical pin 14

Pin 8 seems to be mentioned twice.
Anyway, show a schematic and your code. If you talk about physical pins also say which Atmega328p package you are using.

2 Likes

Yes ,my bad i mentioned digital pins which we use in arduino. I connected CE on pin 15 and CSN on pin 14. Will share codes and schematic in some time.
Thank you for making me notice.

-PU ? -AU ? U-TH ?

ATmega328P U

Hello
Thank you everyone for the guidance and tips.
The issue was solved on the same day. Actually I forgot to add decoupling capacitor and now the system is working correctly.
I added one decoupling capacitor(10uF) between VCC and GND and now two devices are connecting with each other.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.