Hi, I recently bought a slightly modified version of the nRF24L01 module, but it has 10 pins instead of the conventional 8 pins. I tried to wire it similarly with slight adjustments, but the data received turned out to be gibberish. It was just random strings of letters and symbols, as opposed to "Hello, World!", which it was supposed to receive.
The text near the module is:
VCC VCC
CE CSN
SCK MO
MI IRQ
GND GND
I copied off a tutorial , but the result is not what I had expected. Is the error because of the wiring or because of an error in the code.
Please post a link to where you got the rf24 module?
Post a schematic of how the rf24 is connected. Written descriptions are always more ambiguous than a drawing. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.
How is the rf24 module powered?
Please post your test code. Read the forum guidelines to see how to properly post code and some good information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
If you read and, closely, follow Robin2's simple rf24 tutorial you should be able to get them working. That tutorial sure helped me. The code in the examples has been proven to work many many times. If it does not work for you, there is likely a hardware or power supply problem.
Run the CheckConnection.ino (look in reply #30 in the tutorial) to verify the physical wiring between the radio module and its processor (Arduino).
The 2 extra pins are just extra VCC and GND pins according to your labeling, so they are just duplicates and you should connect the two VCC's and two GND's together. That will get you back to the normal 8 pins and you can continue your troubleshooting.
Unfortunately, that was not the solution because they are all set to 9600. I will try a different baud rate to see if there is an improvement, but I doubt it.
Did you try the CheckConnection.ino (look in reply #30 in the tutorial that I linked) to verify the physical wiring connections between the radio module and its connected Arduino board?
Sorry for the late reply, when I tried the CheckConnection.ino, the Serial Monitor was blank, so I probably wired it wrong. Do I need both the transmitter and the receiver running at the same time for the check, or does only one need to run?
It should have printed, at the very least, "CheckConnection Starting". Is the serial monitor baud rate set to 9600?
No, the check connection sketch has nothing to do with checking the wireless connection between transmitter and receiver. It is to check the physical wiring between the radio module and the Arduino to which it is connected.
Please post wiring diagrams showing how the modules should be wired.
Post clear photos showing how the modules are actually wired.
I am trying to make communication between a Mega and a Leonardo. I have checked the connection on the Mega and it seems fine. However, when I checked the Leonardo, the Serial Monitor was blank. Are the SPI pins on a Leonardo different to that of an Uno?
For the Leonardo, it was completely blank, it did not even display "CheckConnection Starting". I am certain the baud rate is 9600 for everything.
I have no experience with Leonardo. A little time with Google and I find that the SPI pins are not broken out like on an Uno or Mega. Access to those pins are via the ICSP connector, only. See this forum thread on that subject.