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