hello there, I can not use arduino nano with NRF24 although it works very well with arduino mega and dosent work with nano
If you are trying to use the 3.3V pin of the Nano to power the nRF24, it won't work. It can't supply anywhere near enough current. You'll have to use a separate 3.3V regulator circuit.
A 2 or 3 cell AA battery pack should provide the necessary current for the radio module.
Have you got the pins connected to suit the nano ?
have a read of how-to-get-the-best-out-of-this-forum
upload your code (using code tags </>)
give details of wiring and power supplies
this is some code I used on a nano to receive data using the Radiohead library
// Nano > NRF24L01 receiver test
// UNO/Nano connections
// arduino SCK pin 11 goes to NRF24L10_pin SCK
// arduino MISO pin 12 goes to NRF24L10_pin MI
// arduino MOSI pin 13 goes to NRF24L10_pin MO
// NRF24L10 CE to arduino pin 9
// NRF24L10 CSN to arduino pin10
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
//create an RF24 object
RF24 radio(9, 10); // CE, CSN
//address through which two modules communicate.
const byte address[6] = "00001";
const uint64_t pipes = 0xF0F0F0F0E1LL;
int16_t data[13];
void setup() {
Serial.begin(115200);
delay(3000);
Serial.println("\n\nNano > NRF24L01 Receive");
radio.begin();
if (radio.isChipConnected())
Serial.println("Receiver NF24 connected to SPI");
else {
Serial.println("NF24 is NOT connected to SPI");
while (1)
;
}
//set the address
radio.openReadingPipe(0, pipes);
radio.setChannel(100);
//Set module as receiver
radio.startListening();
Serial.println(sizeof(int));
Serial.println(sizeof(data));
}
void loop() {
if (radio.available()) {
radio.read(&data, sizeof(data));
for (int i = 0; i < 13; ++i) {
Serial.print(data[i]);
Serial.print(",");
}
Serial.println("Done");
}
}
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.