Hello guys, I have a problem with Arduino and nRF24L01 communicating with another pair. I had 2 Arduino Unos and 2 nRF24L01 PA/LNA with the antenna.
The problem is that when I try to transmit a message, for example "Hello World", from the serial monitor on the receiver I get some kind of empty messages. I tried everything to fix it but nothing worked. I tried changing baud rate from 9600 to 115200 on the serial monitor and the code, I put capacitors between power pins(GND and VCC), I bought new nRF24L01 with no antenna to see if the old modules were faulty but I got the same empty messages, I bought adapter modules because I heard that the nRFs worked better with them, now I bought new Arduinos which are Nano but I don't think this is going to fix it either. I tried lots of codes and checked connections between arduino and nRF24 maybe 30 times and the same messages appear. I even tried to see if the receiver is actually communicating with the transmitter by shutting off the transmitter while the receiver was on and still empty messages continued to appear.
I'll share the messages that the receiver gets and the code that I mainly used. All lines on the serial monitor that you see is an empty message and the ? and the rectangles are also.
Please post your sketch, using code tags when you do
Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
Post an annotated schematic of a transmitter and receiver that are not working. Be sure to show all connections, power,ground, power sources and any other external components. Note any leads ofer 10"/25 cm in length.
Move the receiver as far from digital noise makers (computer, monitor, wifi router, etc) as practical, move transmitter at least 3 meters (10 feet) from receiver and try it.