nRF24L01 power/crashing issues.

I am attempting to get a simple connection between two Arduino pro mini boards using nRf24l01 modules, where one board is a transmitter that sends an int sized message(4 bytes?) that is the current value read from a potentiometer on pin A0, the Arduino acting as the sender is powered by a traditional 9v battery(real voltage is 8.2V). The receiver Arduino is powered by a USB to serial thingy, like FTDI or something, and is connected to my windows PC. Both Arduinos show red LEDs when power is given and the voltage across the VCC and GND terminals is 3.3V( I am using an AMS1117 with a 100uf cap and a .1uf cap to change arduino 5V to 3.3V). When i start the two Arduino with their associated code the serial monitor has out put like this:

0     //reciever powered on
0
0
0
0
0
0
0        //transmitter powered on
123
224
0
0
0      //new serial output ceases

If i power on the receiver first it will spit out 0 to the console repeatedly, as soon as i switch on the transmitter a few random numbers appear to be received(repeated multiple times, numbers are random) and then the Arduino stops printing to the serial monitor.

Transmitter Connections:
A0 - pot pin

GND - pot gnd

VCC - pot vcc

D12 - MISO

D11 - MOSI

D13 - SCK

D9 - CE

D10 - CSN

RAW - 9V battery VCC

GND - 9V battery GND

Reciever Connections:
A0 - pot pin

GND - pot gnd

VCC - pot vcc

D12 - MISO

D11 - MOSI

D13 - SCK

D9 - CE

D10 - CSN

TX - RX of USB FTDI
RX - TX of USB FTDI (Receiver is connected to windows pc USB with an FTDI adapter)

Transmitter Code:

/*
Created by Yvan / https://Brainy-Bits.com

This code is in the public domain...
You can: copy it, use it, modify it, share it or just plain ignore it!
Thx!

*/
#include "nRF24L01.h" 
#include "RF24.h"
#include "SPI.h"
int SentMessage[1] = {000};
RF24 radio(9,10);
const uint64_t pipe = 0xE6E6E6E6E6E6; 

void setup(void)
{
  radio.begin();
  radio.openWritingPipe(pipe);
}

void loop(void)
{
  SentMessage[0] = map(analogRead(0),0,1023,0,100);
  radio.write(SentMessage, 1);
  delay(100);
}

Receiver Code:

/* 
Created by Yvan / https://Brainy-Bits.com

This code is in the public domain...
You can: copy it, use it, modify it, share it or just plain ignore it!
Thx!

*/
#include "nRF24L01.h" 
#include "RF24.h"
#include "SPI.h"


int ReceivedMessage[1] = {000}; 
RF24 radio(9,10);

const uint64_t pipe = 0xE6E6E6E6E6E6; 


void setup(void)
{
  Serial.begin(9600);
  radio.begin();
  radio.openReadingPipe(1,pipe); 
  radio.startListening(); 
}

void loop(void)
{
  while (radio.available())
  {
    radio.read(ReceivedMessage, 1); // Read information from the NRF24L01
    Serial.println(ReceivedMessage[0]);
    delay(10);
  }
}

Feels likely my 5V to 3.3V setup is the issue(AMS1117 and caps), what should i do to prevent what seems like a crash or loss off power on one of the Arduinos or nRF modules?

Have a look at this Simple nRF24L01+ Tutorial.

Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.

The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work

What current is the AMS1117 chip capable of?

If you suspect the power supply try running the nRF24s from a pair of AA alkaline cells (3v) with the battery GND connected to the Arduino GND.

Are you using the high-power nRF24s with the external antenna?

...R

I looked into the AMS1117 chip, and it is used on atleast older GPU cards to step down voltage and the listed max current is 1A.

My wiring connections for SPI were the same as the connections in the "Simple nRF24L01+ 2.4GHz transceiver demo" you linked so i uploaded the right code to both and i get a similar situation with turning on the receiver, getting some strange values, and then it returns to just not giving output(very similar to what happened with other code).

I will try with some different power stuff, but it may be that i bought cheap Chinese clones that arent up to spec.

This is what output looks like when tx and rx both powered via USB 2.0 on pc

Image from Reply #3 so we don't have to download it. See this Simple Image Guide

...R

Please don't post images of text - just copy and paste the text.

If the message is repeating very quickly (it should only be once per second) it probably means that the Arduino is not communicating properly with its own nRF24. Have you tried the connection-test program in my tutorial?

...R

CheckConnection Starting

FIRST WITH THE DEFAULT ADDRESSES after power on
  Note that RF24 does NOT reset when Arduino resets - only when power is removed
  If the numbers are mostly 0x00 or 0xff it means that the Arduino is not
     communicating with the nRF24

STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1	 = 0x4141417852 0xc2c2c2c2c2
RX_ADDR_P2-5	 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR		 = 0x4141417852
RX_PW_P0-6	 = 0x20 0x00 0x00 0x00 0x00 0x00
EN_AA		 = 0x3f
EN_RXADDR	 = 0x03
RF_CH		 = 0x4c
RF_SETUP	 = 0x07
CONFIG		 = 0x0e
DYNPD/FEATURE	 = 0x00 0x00
Data Rate	 = 1MBPS
Model		 = nRF24L01+
CRC Length	 = 16 bits
PA Power	 = PA_MAX


AND NOW WITH ADDRESS AAAxR  0x41 41 41 78 52   ON P1
 and 250KBPS data rate

STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1	 = 0x4141417852 0x4141417852
RX_ADDR_P2-5	 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR		 = 0x4141417852
RX_PW_P0-6	 = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA		 = 0x3f
EN_RXADDR	 = 0x03
RF_CH		 = 0x4c
RF_SETUP	 = 0x27
CONFIG		 = 0x0e
DYNPD/FEATURE	 = 0x00 0x00
Data Rate	 = 250KBPS
Model		 = nRF24L01+
CRC Length	 = 16 bits
PA Power	 = PA_MAX

This is the output i get when i run it on one node, the other node gives all 0x00 so i will redo solder connections. Does the above about still give reason to worry about bad wiring?

Thanks for the image tips i am new to this forum.

The output in Reply #6 suggests that the Arduino is talking to its nRF24. But remember that that test does not check the wireless part of the nRF24.

What connections need to be soldered (or re-soldered)?

...R