NRF24L01 Communication lente

Bonjour tous le monde,

Voila mon probleme comme dit dans le titre j'ai :

  • un arduino nano avec un NRF24l01 et un servo moteur
  • un arduino Uno R3 avec un NRF24l01 et un joystick

et il y a un délai d'environ 3 seconde le temps que le servo réagisse.

Comment puis-je avoir une communication quasi instantanément ?

Cordialement

Vous avez un bug ligne 32 et le fil rouge ne semble pas bien branché

Comment ça un bug ligne 32 et comment ça le fil rouge ?

ah ... A moins que ce ne soit la ligne 33... je ne vois pas très bien le code ni le montage...

J'ai deux petits tutos dans le forum, vous les avez regardés?

http://forum.arduino.cc/index.php?topic=480663.0

http://forum.arduino.cc/index.php?topic=520611.0

Merci j'avais bien un problème d'alimentation au niveau du "fil rouge".
Il y avais une tension qui descendais et qui n’atteignait pas les 3.3V.

J'ai également des module NRF24L01 + PA + LNA mais ils ont plus de mal à communiquer il coupe la communication au bout d'un moment.
Que puis-je faire ?

bon - on va être un peu plus explicite: postez votre *$!#% de code et de montage sinon on ne peut pas vous aider et faites les tutos pour voir si ça fonctionne pour vous

Le code est le suivant :

/*
---- Emeteur ----
Mert Arduino Tutorial & Projects (YouTube)
Please Subscribe for Support
*/

#include <SPI.h> //the communication interface with the modem
#include "RF24.h" //the library which helps us to control the radio modem

int msg[1];

RF24 radio(8,10); //5 and 10 are a digital pin numbers to which signals CE and CSN are connected.

const uint64_t pipe = 0x70; //the address of the modem, that will receive data from Arduino.

void setup(void){
radio.begin(); //it activates the modem.
radio.openWritingPipe(pipe); //sets the address of the receiver to which the program will send data.
}

void loop(void){
msg[0] = map (analogRead(A4), 0, 1023, 0, 180);
radio.write(msg, 1);
delay(5);
}

Pour le Récepteur :

---- Recepteur ----
Mert Arduino Tutorial & Projects (YouTube)
Please Subscribe for Support
*/

#include <Servo.h> //the library which helps us to control the servo motor
#include <SPI.h> //the communication interface with the modem
#include "RF24.h" //the library which helps us to control the radio modem

Servo myServo; //define the servo name

RF24 radio(8,10); /This object represents a modem connected to the Arduino.
Arguments 5 and 10 are a digital pin numbers to which signals
CE and CSN are connected.
/

const uint64_t pipe = 0x70; //the address of the modem,that will receive data from the Arduino.

int msg[1];

void setup(){
myServo.attach(5); //3 is a digital pin to which servo signal connected.
radio.begin(); //it activates the modem.
radio.openReadingPipe(1, pipe); //determines the address of our modem which receive data.
radio.startListening(); //enable receiving data via modem
}

void loop(){
if(radio.available()){ //checks whether any data have arrived at the address of the modem
bool done = false; //returns a “true” value if we received some data, or “false” if no data.
while (!done) {
done = radio.read(msg, 1);
myServo.write(msg[0]);
}
}
}

J-M-L:
postez votre *$!#% de code et de montage

:smiley: :smiley:

@ Manwillis, A part ça ce serait pas mal de faire un tour dans les messages épinglés, lire le réglement du forum.... et mettre le code entre les balises.