I Can’t get nRF2401 to work

as in the title I Can’t get nRF2401 to work and I am using adapter to connect nrf to arduino
here is the pins that I use
adapter/arduino
ce=9
csn=10
sck=13
mosı=11
mıso=12
vcc=5v
gnd=gnd

here is the test code that ı use

/*
  If your serial output has these values same then Your nrf24l01 module is in working condition :
  
  EN_AA          = 0x3f
  EN_RXADDR      = 0x02
  RF_CH          = 0x4c
  RF_SETUP       = 0x03
  CONFIG         = 0x0f
  
  This code is under public domain
  
  Last updated on 21/08/28 
  https://dhirajkushwaha.com/elekkrypt
 */

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

RF24 radio(9, 10);

byte addresses[][6] = {"1Node", "2Node"};


void setup() {
  radio.begin();
  radio.setPALevel(RF24_PA_LOW);
  
  radio.openWritingPipe(addresses[0]);
  radio.openReadingPipe(1, addresses[1]); 
  radio.startListening();
  
  Serial.begin(9600);
  printf_begin();

  radio.printDetails();
  
}

void loop() {
//  empty

}

and here is the results

STATUS		= 0x00 RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=0 TX_FULL=0
RX_ADDR_P0-1	= 0x0000000000 0x0000000000
RX_ADDR_P2-5	= 0x00 0x00 0x00 0x00
TX_ADDR		= 0x0000000000
RX_PW_P0-6	= 0x00 0x00 0x00 0x00 0x00 0x00
EN_AA		= 0x00
EN_RXADDR	= 0x00
RF_CH		= 0x00
RF_SETUP	= 0x00
CONFIG		= 0x00
DYNPD/FEATURE	= 0x00 0x00
Data Rate	= 1 MBPS
Model		= nRF24L01+
CRC Length	= Disabled
PA Power	= PA_MIN
ARC		= 0

and When I remove the gnd cable from the nrf or arduino pin, the adapter does not turn off. is it normal and I tired to disconnect the Arduino from the USB cable and reconnect it. I also tried to use other pins for ce and cns pins like (7,8) or (8,9) but it still didn't work

Those results are telling you that the wiring between the radio module and the processor is not right.

What Arduino board?

What is the adapter?

Please post clear photos showing your wiring.

No it is not normal. It would seem that you are back powering the radio through one of the inputs. That is not good for the radio or the Arduino.

it is arduino uno
it is YL-105
and I found that when I remove the adapter gnd pin it doesn't turn off because of the adapter sck pins (sck is connected to arduino pin 13) I dont know why but I can use pin 13 as a gnd and I know that there is gnd pin next to the pin 13 but I am not mentioning about that gnd pin becuase ı can use that pin too

here is the connection photos



How about posting a picture where the wires are seen from one end to the other end in a single picture

Use standard-colors for standard-connections
red one single wire connected to Vcc
black one single wire connected to GND

all other wires should have different colors but NOT red or black
You are giving your potential helpers a hard time to figure out which wire is what

You are the one that wants help. So you should provide easy to read / understand information.

take pictures from vertical above so that the IO-pin-labels are easy to see

my bad
[

]
is it better

Yes better. Still improvable to make it easy to read

best regards Stefan

Never do that!!! Arduino phantom power at DuckDuckGo

1=ce=yellow
2=csn=white
3=sck=blue
4=mosi=green
5=miso=orange

so what should i do?

Hi,
These may help.

Tom... :smiley: :+1: :coffee: :australia:

thank you i looked at it but i think i connected cables right

In almost all Arduino projects, Gnd (ground) is a "common" potential with all electronic components. The Source (positive) voltage varies throughout different components. Thus, the rule-of-thumb is to remove the supply (positive) supply feeding all electronics before wiring or rewiring anything: usually easily accomplished by unplugging the main battery or turning off the power supply.

of course i turned off the power supply i am asking for how to solve the problem

Whatever.

I have a drawer full of those 24L01's but I never used the "adapter" so I went looking and found some on Amazon:
Amazon.com: Black Socket Adapter Board for 8PIN NRF24L01 Wireless Module Pack of 5 : Electronics

One of the reviewers was a name I know and he has a YouTube channel; you may wish to referr to the vids:
24L01 + Ralph Bacon - YouTube

In my experience, the software library selected is usually the critical issue with RF modules after you ensure all hardware is connected corrected and that any jumpers of solder-bridges are correct.

My recommendation is to use the RF24 library example sketch unchanged for testing: GitHub - nRF24/RF24: OSI Layer 2 driver for nRF24L01 on Arduino & Raspberry Pi/Linux Devices
Example:
RF24/examples/GettingStarted at master · nRF24/RF24 · GitHub

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