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>
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'
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.