nrf24L01 just refusing to work

So I have done literally everything that i could buy my nrf24L01 just refuses to work properly, can anyone tell me what is the problem I have also uploaded images here's the code
Transmitter code:

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

#define CE_PIN 8
#define CSN_PIN 9

RF24 radio(CE_PIN, CSN_PIN);
const byte address[6] = "00001";

void setup() {
Serial.begin(9600);
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_LOW);
radio.stopListening(); // Set as transmitter
Serial.println("Transmitter ready.");
}

void loop() {
const char dataToSend[] = "Hello"; // Example string
bool success = radio.write(&dataToSend, sizeof(dataToSend));

if (success) {
Serial.print("Sent: ");
Serial.println(dataToSend);
} else {
Serial.println("Sending failed.");
}
delay(10);
}

Reciver code:

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

#define CE_PIN 8
#define CSN_PIN 9

RF24 radio(CE_PIN, CSN_PIN);
const byte address[6] = "00001";

void setup() {
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(1, address);
radio.setPALevel(RF24_PA_LOW);
radio.startListening();
}

void loop() {
if (radio.available()) {
char text[32] = "";
radio.read(&text, sizeof(text));
Serial.println(text);
}
}


it is a good idea to check if the SPI connection to the NRF24 is working, e..g. start with

void setup() {
  Serial.begin(115200);
  delay(1000);
  Serial.println("\n\n NRF24L01 Receive text");
  radio.begin();
  if (radio.isChipConnected())
    Serial.println("Receiver NF24 connected to SPI");
  else {
    Serial.println("NF24 is NOT connected to SPI");
    while (1)
      ;
  }

improve your code presentation by using code tags, e.g. click < CODE > and paste you code where it says 'type or paste code here'

how have you connected the NRF24 to the Nano?

Power Stability Issues with RF24 Radio Modules

As described in the RF24 Common Issues Guide, radio modules, especially the PA+LNA versions, are highly reliant on a stable power source. The 3.3V output from Arduino is not stable enough for these modules in many applications. While they may work with an inadequate power supply, you may experience lost packets or reduced reception compared to modules powered by a more stable source.

Symptoms of Power Issues:

  • Radio module performance may improve when touched, indicating power stability issues.
  • These issues are often caused by the absence of a capacitor, a common cost-saving omission by some manufacturers.

Temporary Patch :

  • Add Capacitors: Place capacitors close to the VCC and GND pins of the radio module. A 10uF capacitor is usually sufficient, but the exact value can depend on your circuit layout.
  • Use Low ESR Capacitors: Capacitors with low Equivalent Series Resistance (ESR) are recommended, as they provide better power stability and performance.

Adding the appropriate capacitors can greatly improve the reliability of your RF24 module by ensuring a stable power supply, thus minimizing packet loss and enhancing overall performance. A separate power supply for the radios is the best solution.

Will try that code later as I am currently
out of station

I have a separate power supply and a capacitor and i am providing it with sufficient power