Closed budnikasr closed 3 years ago
Hi, sorry, I didn't read your complete description. I just wanted to say that by just reading its title Pulling my hair out!
, your problem could be anything. How about changing it to something like Library working fine with Arduino, not at all on RPi-Linux
?
Thanks Mate, Just wanted to let people know how frustrated I was.
Robert
Your problem is still a hardware problem because you're using the PA/LNA modules. Have a look at the COMMON_ISSUES.md concerning the PA/LNA modules. The advice about electromagnetic shielding may be essential in your case.
How are you regulating the 9v power source down to 3v? I'm mostly concerned about the amperage and capacitors used here.
I'm sorry you got so frustrated, but I'm not interested in the unofficial tutorials/videos you followed because I get frustrated when people don't take the time to read our library's docs (betting you didn't either -- at first).
Hi Brendan,
I have spent a week trying to get this to work following 4 or 5 video tutorials, plus reading all the different threads everywhere about errors etc. and literally pulling my hair out.
When I moved from the Arduino to the pi, initially, no I didn't, but as I said before I've spent a week reading through all the threads on errors including https://nrf24.github.io/RF24/md_COMMON_ISSUES.html. I did read the entire document and did try the suggestion by wrapping the board with electrical tape and then with foil. I received the same identical results.
Regarding the power supply, since I did read the common issues, I had already been running these boards with these type of power supplies - https://www.amazon.ca/Power-Supply-Module-Solderless-Breadboard/dp/B00BXWV2F6 My arduino setup is 2 ESP32 boards on breadboards, so these power supplies are attached to the breadboard.
This is why I am stumped. Would you have a recommendation on a better board and not the clones?
Thanks,
Robert
What type of wires are you using for the SPI connection? What distro is running on the RPi?
Thank you for the store links. Are you connecting the GND of the power supply with the GND of the RPi?
I've read that attaching a capacitor is critical, but if that is the case why does it work with Arduino
Capacitors help reduce the electric noise in the power supply; nRF24 modules are sensetive to this noise (especially nRF24 clones/counterfeits that are missing capacitors needed on the module - to make manufacturing cheaper). Capacitance values are largely dependent on the voltage regulating implementation (which is why suggestions vary from different advice) start with small capacitance value (like you did), then try larger values.
Hi Avamander,
What type of wires are you using for the SPI connection? What distro is running on the RPi?
I'm using the same breakout wires I use on Arduino and yes, I have changed them out. The distro I am running is: Raspberry Pi OS with desktop Release date: January 11th 2021 Kernel version: 5.4
Would you have a recommendation on a better board and not the clones?
I usually recommend these adapters (designed for the PA/LNA modules specifically). However, Its likely using the same linear 3v regulator (AMS1117) that your breadboard power supply module is using.
Hi Brendan,
Thank you for the store links. Are you connecting the GND of the power supply with the GND of the RPi? I'm connecting the GND to the power supply.
And, you've been a big help, Thank you.
Robert
Hi Again,
I have tried both with the power regulator and without. The Arduinos both have the regulators attached.
General rule of electronics: Connect all isolated GND lines together. This is more important when using BJTs (like a linear voltage regulator).
EDIT just don't mix AC GND with DC GND (not a problem in this scenario).
General rule of electronics: Connect all isolated GND lines together. This is more important when using BJTs (like a linear voltage regulator).
EDIT just don't mix AC GND with DC GND (not a problem in this scenario).
Will Do! thanks for the tip!
@budnikasr did you solve this? can we close this?
Hi Everyone.
I have spent a week trying to get this to work following 4 or 5 video tutorials, plus reading all the different threads everywhere about errors etc. and literally pulling my hair out. I figured after a week trying I would ask for help. It's just so frustrating. I apologize in advance this is a long thread.
I have 4 NRF24l01 units and they work perfectly on Arduino, so I know they are not defective. My units are the PA and LNA versions if that makes a difference. I've read that attaching a capacitor is critical, but if that is the case why does it work with Arduino, which by the way, I was able to achieve nearly 750m line of sight tx/rx. So I did try it on one of the units that I know work. Attached a 10uf capacitor. Tested on arduino, it worked. Tested on rasberry pi, did not work.
Here are the pins I have configured, but first want to point out something strange on the VCC. Attaching to VCC 3.3v on the actual raspberry pi 4 doesn't seem to work. No understanding why so I attached the VCC and GND to an external pwr board and ran it off a 9v battery.
VCC - external power 3.3v GND - external power CE - Pin 11 (GPIO17) -(tried GPIO22 as well) CSN - Pin 24 (GPIO8) SCK - Pin 23 (GPIO11) MISO - Pin 21 (GPIO 9) MOSI - Pin 19 (GPIO 10)
As I mentioned I followed many different tutorials, two in particular from this site:
http://thezanshow.com/electronics-tutorials/raspberry-pi/tutorial-32-33 http://thezanshow.com/electronics-tutorials/raspberry-pi/tutorial-34-35
I could not get pi to pi communication or Arduino to pi communication. It would continuously time out. Here is the output from the receiveArduino.py file when it was run.
So not receiving or transmitting, I am stumped at this point. I then went to this page https://nrf24.github.io/RF24/pages.html and read through everything and instead of trying the Linux General/Raspberry Pi, I looked in Linux Installation and found another setup and followed it. I got so excited when the first time I actually saw the transmission occur, but with errors.
So I am at a loss. I think I have literally tried everything.
Any help would be much appreciated.
Robert