Chat here is you are connecting ESP-xx type modules to existing AVR based Arduino

Moderator: igrr

User avatar
By henkoegema
#91072 Setting up a NRF24 (with 5V adapter) to an ESP8266 Wemos D1 mini.

Wemos -> NRF24
D8 -> CSN
D7 -> MOSI
D6 -> MISO
D5 -> SCK
D0 -> CE
+5v -> VCC - adapter


I am checkng the connection with the program:
Code: Select all
// 18 Mar 2018 - simple program to verify connection between Arduino
//      and nRF24L01+
//  This program does NOT attempt any communication with another nRF24

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

#include <printf.h>

#define CE_PIN   0
#define CSN_PIN  8

const byte thisSlaveAddress[5] = {'R','x','A','A','A'};

RF24 radio(CE_PIN, CSN_PIN);

char dataReceived[10]; // this must match dataToSend in the TX
bool newData = false;


void setup() {
    Serial.begin(9600);
    //printf_begin();

    Serial.println("CheckConnection Starting");
    Serial.println();
    Serial.println("FIRST WITH THE DEFAULT ADDRESSES after power on");
    Serial.println("  Note that RF24 does NOT reset when Arduino resets - only when power is removed");
    Serial.println("  If the numbers are mostly 0x00 or 0xff it means that the Arduino is not");
    Serial.println("     communicating with the nRF24");
    Serial.println();
    radio.begin();
    radio.printDetails();
    Serial.println();
    Serial.println();
    Serial.println("AND NOW WITH ADDRESS AAAxR  0x41 41 41 78 52   ON P1");
    Serial.println(" and 250KBPS data rate");
    Serial.println();
    radio.openReadingPipe(1, thisSlaveAddress);
    radio.setDataRate( RF24_250KBPS );
    radio.printDetails();
    Serial.println();
    Serial.println();
}


void loop() {

}


Test result:
Code: Select all19:02:33.993 ->  ?0⸮⸮⸮h>⸮@f⸮CheckConnection Starting
19:02:34.126 ->
19:02:34.126 ->  FIRST WITH THE DEFAULT ADDRESSES after power on
19:02:34.210 ->   Note that RF24 does NOT reset when Arduino resets - only when power is removed
19:02:34.258 ->   If the numbers are mostly 0x00 or 0xff it means that the Arduino is not
19:02:34.358 ->      communicating with the nRF24
19:02:34.358 ->

This test result is NOT ok.

The NRF24 works fine with the same test (adapted) on an Arduino UNO.
Have tried with different CE-PIN numbers.
So, I don't suspect the hardware.

Could it be a specific library which is causing problems? :?
Has anyone got the NRF24 to work with the Wemos D1 mini? :?: