Arduino nano help

Hello, I saw a simple RC plane on YouTube for my project assignment at school. It was using nrf24 as communications. I prepared the remote control (transmitter) and receiver by slightly changing the design (changing the digital pins). Not only does the servo controller not work, but the nrf24s do not work even in a simple communication test. I don't know much about electronics, my main field is software. I would be happy if you help.

Transmitter ;

gnd - gnd
vcc - 3v
CNS - D7
CE - D8
SCK - D13
MOSI - D11
MISO - D12

Receiver;

gnd - gnd
vcc - 3v
CE - D9
CNS - D10
MOSI - D11
MISO - D12
SCK - D13

Transmitter; 

#include <SPI.h> 
#include <RF24.h> // v1.4.2

RF24 radio(8, 7); 

void setup() {
  Serial.begin(9600); 
  if (!radio.begin()) { 
    Serial.println("nRF24L01+ is offline."); 
    while (1) {}
  }
  radio.openWritingPipe(1234); 
}

void loop() {
  char veri[] = "ok.";
  radio.write(&veri, sizeof(veri)); //
}

Receiver;

#include <SPI.h>
#include <RF24.h> // v1.4.2

RF24 radio(9, 10); 

void setup() {
  Serial.begin(9600);
  if (!radio.begin()) 
    Serial.println("nRF24L01+ is offline.");
    while (1) {}
  }
  radio.openReadingPipe(0, 1234); 
  radio.startListening(); 
}

void loop() {
  if (radio.available()) { 
    char veri[12];
    radio.read(&veri, sizeof(veri));
    Serial.println(veri)) ;
  }
}

Also receiver;

Step 1. Put the code back the way it was.

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