nRF24 comunication and noise filter

I posted this [SOLVED]nRF24 comunication not working - Programming Questions - Arduino Forum a couple of days ago, and I kinda solved the problem for a while. Than I changed a bit the wires, the code, and everything blowed up. I mean, now nothing is working. Manwhile I've done some researches and bought a couple of capacitors. Right now I'm trying to use two capacitors of 10uF (One for each module) between VCC to the Module, and ground. But nothing is working anymore. Than I tried to build a LC filter with a 330uH inductor and a 22uF capacitor, but still not working.

I'm powering up my two modules with two external 3.3v regulators, and GRD is connected from the Arduino to the nRF24 power supply. Wirings and stuff should be good, I'm seriously going crazy.

First, can someone who has experience with this kind of modules give me some advices for the problems, second, between a 10 uF capacitor and the LC filter, which one is the better?

The filter will act to remove higher frequency noise (if wired for low pass) and the cap will act to keep the 5V rail steady during changes in the load on the 5V rail. Can't say which is better since they do different things.

Have you seen Robin2's nrf24 tutorial. There may be information of use there.

Please post a wiring diagram and your defunct code :slight_smile:

Is it possible that I'm just cursed or something? I tell you what just happened:

Before starting to draw the wiring and stuff, I tried one last time after coming back from the university and It worked, than I tried to change the message sent from the transmitter to double check if it was a false-positive and nothing happened, I changed the code as it was a second before and it didnt work again. I unplugged all the batteries, tried to discharge the capacitors and stuff, but I'ts not working again, can someone explain me what's happening?

This is the receiver code (Atmega328p):

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

RF24 radio(7, 8);

const byte rxAddr[6] = "00001";

void setup()
{
   Serial.begin(9600);
  radio.begin();
  radio.setPALevel(RF24_PA_MIN);
  radio.openReadingPipe(0, rxAddr);  
  radio.startListening();
  
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
}

void loop()
{
  if (radio.available())
  {
    char text[32] = "";
    radio.read(&text, sizeof(text));
    String confirm = "nrftest";
    String yay = String(text);
    Serial.print("Confirm var = ");
    Serial.print(confirm);
    
    Serial.print(" Text rec var = ");
    Serial.print(text);

    Serial.print(" Yay var = ");
    Serial.println(yay);
          
    if(yay == confirm){
        digitalWrite(9, HIGH);
        delay(500);
        digitalWrite(9, LOW);
        delay(500);
    }
    else{
        digitalWrite(10, HIGH);
        delay(500);
        digitalWrite(10, LOW);
        delay(500);
      
    }
  }
}

This is the transmitter code (UNO Board):

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

RF24 radio(7, 8);

const byte rxAddr[6] = "00001";

void setup()
{

  radio.begin();
  radio.setPALevel(RF24_PA_MIN);
  radio.openWritingPipe(rxAddr);
  radio.stopListening();
}

void loop()
{
  const char text[] = "nrftest";
   if (radio.write(&text, sizeof(text)))
  {
    digitalWrite(2, HIGH);
    delay(500);
    digitalWrite(2, LOW);
    delay(500);
  }
  
}

This is the current situation:

Now I will draw a precise scheme of the wiring

We can't see your wiring or your code or what changes that you made so how do we help.

Have you tried the simple transmit and receive code and wiring from Robin2's tutorial? I know that that code and wiring works.

groundFungus:
We can't see your wiring or your code or what changes that you made so how do we help.

Have you tried the simple transmit and receive code and wiring from Robin2's tutorial? I know that that code and wiring works.

Here comes something funny: If i plug the USB of the arduino to the power board, it works properly, if I plug it into the PC it doesn't, even if the module is powered by the 3.3 of the power board.

What's happening?

PS. Ground is connected from the power board to the arduino

Hyla:
This is the current situation:

It's a nice photo but as far as helping with your problem it might as well be a bird's nest.

Just make a simple pencil drawing showing the connections and post a photo of that.

...R

PS ... it would be nice if you were to click Report to Moderator and ask to have this Thread merged with your earlier one so we have all the info in one place