-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NRF24 Comunication samples doesn't works #211
Comments
Seems like bad wiring. Triple check it. Plus the sketch you are using is extremely old. Use the ones built into the Try 1000uF capacitor soldered (!) directly to the VCC and GND pins of the Make sure the distance of the Arduinos is at least 1m but not much more. Make sure you have correctly defined the CS and CSN pins (see PingPair Make sure you have correctly changed the radio number. Make sure your wires are not too long 15cm max, the shorter the better plus |
ok, I have checked wiring several times, I use example what is coming with library. (Getting Started) example in TMRh20 library Stil no luck with comunication. I have changed NRF boards to with new one, no result. |
How does your module look like?
|
Check if your 3.3V supply is 3.3V supply. Also attach 500uF electrolytic
capacitor to your module's GND and VCC pins.
|
I have measure, board have exactly 3.3052V Sent response 0 It is result if run just one board, and if run second board who transmit, it is nothing to change. |
As a one last thing you can try removing your Arduino IDE and all RF24
libraries you can find (Use the file search just in case). Then redownload
latest Arduino IDE (1.6.*) and use the Library Manager to download the
latest library.
Also post printdetails() output here (there are examples where it's done if
you do not know how).
|
HI, HAVING SAME PROBLEM... This is my 3rd day trying to send "hello world" using this tutorial https://www.youtube.com/watch?v=7rcVeFFHcFM&t=353s I've tripled check all connections ,,, added 1000uf cap... stable 3.3 v using osciloscope ... reinstalled IDE and RF24 lib... nothing ... doesn't work i'm just going crazy... such simple should be but ...... |
Stable 3.3V but do you actually have communication? Does printDetails() print the right details? Are you actually using the latest stable IDE and library on a clean install? There are quite a few variables here and you mess one up and you won't get it working. |
DOWNLOADED 1.8.5 IDE and installed after using ctrl panel to uninstall old one, deleted all old libraries files etc arduino UNO connections : SCK =13 MEGA 2560 Im using 3.3 v source from https://www.eetimes.com/document.asp?doc_id=1298322 ADDED 1000uf cap aswell soldered connections between nrf24 and arduinos... I have 4 days now trying to send hello world ... i 'm going super crazy |
I dont remember exactly, but try to CHANGE radio Number at the begining of the sketch. Uno could be 0, and MEGA could be 1. Check that way |
BOTH NRF24 can't be faulty because i have a RC remote controll modified by somebody to drive the DRONE via rf24 module and both of them work ... |
done the thing with radio 1 and 0 ... no luck... |
USING getting started.. SERIAL monitor for UNO responds to T and R key but mega doesn't .... on mega it is stuck on RF24/examples/GettingStarted |
i think is just a bad library ... lots of people having issues... |
@Allecsxx If it were a bad library it wouldn't work for anyone, "on mega it is stuck on RF24/examples/GettingStarted" sounds like your connection is messed up. You also haven't mentioned what's the output of printDetails() what is rather crucial to debugging what's wrong with your setup. Also please don't spam the issue tracker, you could have fit all your tests/issue into one comment. |
are not messed up .. just 7 cables to follow... i'm not an idiot... to prove i've asked my wife to check them just in case i'm too mad to see the problem. she said is correct... |
Just give us here the printDetails() output please. It'll tell if your're right or not in an instant. |
ok... how do i do that ? |
i'm just too mad nothing is clear anymore i can't concentrate |
include prinf and printdetails () on void loop? |
Put it into setup()'s last line. |
'printDetails' was not declared in this scope EDIT: ok ok radio.printdetails(); Sent 87974644, Got response 4294967167, Round-trip delay 10984 microseconds |
???? |
yes ... i have soldered wires between NRFmodule pins to arduino pins... (on the back of arduino) there is no short ... |
believe me i arrieved to a stage that i wanted to avoid any dummy problem like lose connections and so on |
ok i'm getting out to buy other 2 boards 1 arduino uno new pin cables and so on i will get a breadboard psu just to make everything different i will be back in 2 hours will you be able to help me? i will provide team viewer and live images showing what i'm doing |
The modules will never work without CE and CSN connection. It's quite likely you've forgotten to update the pin definitions in the sketch following that YT tutorial (it isn't using the default pins) instead of the default pins in the documentation. |
Also a good point will be some info to help people identify cheap clone nrfs... |
The counterfeits tag has plenty of issues about it and they contain information about the various problems one might encounter and how to recognize them. It's borderline impossible to detect actually bad clones visually unless you have those chip-under-epoxy-blob ones. |
Well ... If my SMonitor was at least printing details probably i was wasting less time. I don't understand why on Win8 Read Only print.f file will not be read by #include... I tried with older Arduino IDE... 1.6 and it wasn't working either. After reinstalled again last 1.8.5 still no luck... I don't know how it came in my head to untick Read Only but was a big big step forward. |
I guess mine was also cheap-shitty clone too. Wasted 6 hours to figure out what was the problem. |
where did you added radio.setAutoAck(false); ? Thanks :) |
within void setup() {} right after radio.begin();
|
Can you please post all your code
And radio print output
…On Wed, Jun 27, 2018, 17:18 LazyRen ***@***.***> wrote:
within void setup() {} right after radio.begin();
void setup() { Serial.begin(9600); while(!Serial); SPI.begin(); // put
your setup code here, to run once: radio.begin(); radio.setAutoAck(false);
radio.setChannel(115); radio.openReadingPipe(1, address); pinMode(output,
OUTPUT); // radio.setRetries(3,5); // delay, count
radio.setPALevel(RF24_PA_MIN); radio.setDataRate(RF24_250KBPS);
radio.startListening(); Serial.println("setup done"); }
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#211 (comment)>, or mute
the thread
<https:/notifications/unsubscribe-auth/AC_OkZYKRRvA3mREG3wumzPjut4LPmuZks5uAzGngaJpZM4HXWqB>
.
|
Sorry I do not have arduino anymore. Can't help you with print output.
|
Hi, There are a couple of months since i ve moved to e32 ttl but u still remember a but, Autoack false sorted out the problem for a day or two. The whole problem was 3.3v. I had a shit 12v psu powering up arduino and from there a 3.3 power module to nrf. The whole issue was the shit noisy 12v psu which was so bad , more than what arduino 5v and thereafter 3.3v power module could handle with their capacitors filters Tried with capacitors on NRF module etc, didn't worked at all. So i replaced the 12v psu with a better one and cleared all problems. It worked with autoack true after. |
Also i tried to understand the print details, i remember Avamander gave me a link, or i google it , looked into for an hour and after that i could easily spot what was going wrong. I did had same thing... transmitter sending and printing good details but receiver not doing anything. All was about shit 3.3v. On mega there are some guys saying that pin 53 or 51 or 52(don t remember) needs to be output or something like that... but i can say that is not the problem. After having proper 3.3v i tested with initial code getting started and all worked perfect. |
My advice will be to change whatever Psu you have , a desk regulated psu will make your modules work |
I have this psu which sorted out the problem. Any psu like this will make your nrf modules work properly |
If it works with a desk psu on the prototyping stage and not working with your finished project psus than you have to look further and filter the noise. |
I also tried that! but i just used an old power adapter connected to a 3.3 volts regulator directly to the module. So i used 2 adapters for my two nrf modules and it worked so good, so consistent! BUT A FEW DAYS AFTER (maybe a week) i dont know why until now its not working!!!! OMG!!!! And now i don't know what the problem is. I'm so desperate haha. 'coz my head is so aching as hell. Also before i tried that power supply solution, (I'll just gonna share this) my project wont connect at first after 3 tries and then it will work so i thought its just the nature of the nrf to not connect at first and then after some time it won't work so i tried the power supply solution. HAHA So right now, i'm thinking of what was the problem. HELP HAHAHA THANK YOUUUU |
Both my arduino (uno and Mega) are just powered by the usb cable from the computer/laptop |
The power adapter is definately. I had a power adapter aswell HAHA. Get a proper psu and it will work unstoppable. :)) |
Usb from laptop will not supply enough current for arduino + nrf. Trust me , i tried with that aswell months ago and it didn't wanna work. I ve been agains all advices because i was looking into datasheets and believe the values of current draw of nrf and current supply of usb. Don t believe , lisen what i m saying... i spent days and days because of that. Get a proper psu and you will save time(days ) of fault finding. |
Grrrrrrrrr. HAHAHAH so what i need to do is to supply both my arduino and nrf (the power supply is connected to the arduino and also connected to my 3.3 regulator for my nrf)? With that proper psu.. |
F.ck me.. i still remember the days lost (8 in the morning till 23 pm) for a couple of days trying to figure out what was the problem. I ve lost weight aswell in that time as i was so nervous that i didn't wanna have any food at all. :)) i was looking to the small nrf module and swearing it on all possible ways. I ve done very complicated projects in the past and i couldn't believe i m gonna get defeated by a small module ;:))) |
Power up arduinos with desk psu, connect vcc gnd from each arduino to 3.3 v nrf modules. |
The good thing with desk psu is that you will see the draw current by your whole project and you will be able to create a psu after that will suit your project. |
okay then, I'll try that and i'll keep you updated in this thread. Thank you very much!!!! |
Hi All, @dunelo ?
I just came across this thread, had similar problems so perhaps I can help
I am running x5 nrf24l01 nodes both low power and PA versions, Although I
am using RF24 + RF24Network, the Netwoek lib also uses RF24 from here
https:/nRF24
My Master is mega2560 with hand wired nrf24 socket; nano rf24 shield (with
nrf24 socket), ITead board with 1/4 rly both with nrf24 socket, generic Uno
with hand wired nrf24 socket etc
All board have ~10uF caps across nrf01 module +/- pins (on module itself or
socket)
If anyone is battling with this can I suggest to go back to be ginning and
investigate by eliminating the cause
- go back to example eg pingpair_ack
- only modify line to match your hw config RF24 radio(7,8);
- Add these lines to lower power/speed (lowering speed is optional as it
actually does not guarantee more reliability over the air, low power
definitelly)
- radio.begin();
- radio.setRetries(15, 15); //vary (X, 15)
- * radio.setDataRate (RF24_250KBPS);*
- * radio.setPALevel(0); //I use config/variable here in my case but I
am pretty sure value of 0 is low power, check docs and use enum for this;
low power will consume little current*
- *...*
- Add 10-50uF capacitor across +/- pins on nrf01 module; as close to
module as possible (earlier in the post i saw someone added 1000u capacitor
on cs/spi pins-I dont think this is good idea). Cap may be not required so
can add it later if things dont work...
- Add Serial.Printl("setup start/end"); and the beginning and end of
Setup; of course Print must be after serial port is
instantiated Serial.begin(115200); This to see if program stops anywhere on
start up
- Make sure printDetails is in place
- ...
- radio.startListening(); // Start listening
- radio.printDetails(); // Dump the configuration of
the rf unit for debugging (place just at the end of setup will do)
- ...
- Separate both modules physically as far as possible - important
otherwise receiver is saturated
- Upload same code to both boards
- Run and inspect Print Details to see if Pipe Address are set, channel,
Power and Speed (I noticed one of the ealier post Mega I think had all
zeros in pipe IDs, Max Power etc indicating that module was not handshaking
with controller
- Use Serial to change Role
- sit back
- I think Power Supply shown on these pics should be ok for these small
modules with low power set
In my case I had mixture of not so compatible clones, one in fact far
faulty, 10uF cap, low power and 0.5-1m distance between modules did the
trick; cover model with book to reduce EM
If still not working Please post your code and dump from pritnDetails for
both radios
BTW here is Nano shield with RF24 socket
https://www.ebay.com.au/itm/New-Nano-IO-Shield-Wireless-Sensor-Xbee-NRF24L01-for-Arduino-328p-7V-12V/151748100079?hash=item2354e43fef:g:99sAAOSwUnFZp5AQ
single power in for both Nano and RF24, I did add ~10-50uF cap under the
rf24 socket
Make sure you plug module the correct orientation
Hope this helps
Peter
…On Wed, Jun 27, 2018 at 7:36 PM, dunelo ***@***.***> wrote:
okay then, I'll try that and i'll keep you updated in this thread. Thank
you very much!!!!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#211 (comment)>, or mute
the thread
<https:/notifications/unsubscribe-auth/AC_OkfMbYsHYB7N2J4bbOZMJvoUAmqRvks5uA1IygaJpZM4HXWqB>
.
--
Peter Sek
[email protected]
0418 686 325
|
Alternatively esp8266, esp32, LoRa / Dragino Gateway if distance is
important LoRa ~20km, or LoPy
With Esp + Mosquit operating system or LoPy + PyCom/Micro Python you can
connect for example to AWS/Cloud
P;
…On Wed, Jun 27, 2018 at 10:30 PM, Peter Sek ***@***.***> wrote:
Hi All, @dunelo ?
I just came across this thread, had similar problems so perhaps I can help
I am running x5 nrf24l01 nodes both low power and PA versions, Although I
am using RF24 + RF24Network, the Netwoek lib also uses RF24 from here
https:/nRF24
My Master is mega2560 with hand wired nrf24 socket; nano rf24 shield (with
nrf24 socket), ITead board with 1/4 rly both with nrf24 socket, generic Uno
with hand wired nrf24 socket etc
All board have ~10uF caps across nrf01 module +/- pins (on module itself
or socket)
If anyone is battling with this can I suggest to go back to be ginning and
investigate by eliminating the cause
- go back to example eg pingpair_ack
- only modify line to match your hw config RF24 radio(7,8);
- Add these lines to lower power/speed (lowering speed is optional as
it actually does not guarantee more reliability over the air, low power
definitelly)
- radio.begin();
- radio.setRetries(15, 15); //vary (X, 15)
- * radio.setDataRate (RF24_250KBPS);*
- * radio.setPALevel(0); //I use config/variable here in my case but
I am pretty sure value of 0 is low power, check docs and use enum for this;
low power will consume little current*
- *...*
- Add 10-50uF capacitor across +/- pins on nrf01 module; as close to
module as possible (earlier in the post i saw someone added 1000u capacitor
on cs/spi pins-I dont think this is good idea). Cap may be not required so
can add it later if things dont work...
- Add Serial.Printl("setup start/end"); and the beginning and end of
Setup; of course Print must be after serial port is
instantiated Serial.begin(115200); This to see if program stops
anywhere on start up
- Make sure printDetails is in place
- ...
- radio.startListening(); // Start listening
- radio.printDetails(); // Dump the configuration
of the rf unit for debugging (place just at the end of setup will do)
- ...
- Separate both modules physically as far as possible - important
otherwise receiver is saturated
- Upload same code to both boards
- Run and inspect Print Details to see if Pipe Address are set,
channel, Power and Speed (I noticed one of the ealier post Mega I think had
all zeros in pipe IDs, Max Power etc indicating that module was not
handshaking with controller
- Use Serial to change Role
- sit back
- I think Power Supply shown on these pics should be ok for these
small modules with low power set
In my case I had mixture of not so compatible clones, one in fact far
faulty, 10uF cap, low power and 0.5-1m distance between modules did the
trick; cover model with book to reduce EM
If still not working Please post your code and dump from pritnDetails for
both radios
BTW here is Nano shield with RF24 socket
https://www.ebay.com.au/itm/New-Nano-IO-Shield-Wireless-
Sensor-Xbee-NRF24L01-for-Arduino-328p-7V-12V/151748100079?hash=
item2354e43fef:g:99sAAOSwUnFZp5AQ
single power in for both Nano and RF24, I did add ~10-50uF cap under the
rf24 socket
Make sure you plug module the correct orientation
Hope this helps
Peter
On Wed, Jun 27, 2018 at 7:36 PM, dunelo ***@***.***> wrote:
> okay then, I'll try that and i'll keep you updated in this thread. Thank
> you very much!!!!
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#211 (comment)>, or mute
> the thread
> <https:/notifications/unsubscribe-auth/AC_OkfMbYsHYB7N2J4bbOZMJvoUAmqRvks5uA1IygaJpZM4HXWqB>
> .
>
--
Peter Sek
***@***.***
0418 686 325
--
Peter Sek
[email protected]
0418 686 325
|
Hello guys i have been having this same problem for days now and for transmitting part Failed, response timed out. this is my printDetails() output RF24/examples/GettingStarted/ ROLE: Pong back *** PRESS 'T' to begin transmitting to the other node STATUS = 0x00 RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=0 TX_FULL=0 Got response 0, round-trip delay: 197645340 microseconds Now sending 173 as payload This means that the wiring is correct, ill be glad if anyone can help me with this. |
The |
Alright will do so now |
Hey could you please share, what was the problem exactly and what was the solution that worked for you? & what library did you use? I am trying to make it work for days, no help... Please kindly help me!!!! |
A random issue is not the place for asking help with some different problem. |
I have plugged NRF24l01 exactly as writen. Power to 3.3V on power have 100uF and 100nF capacitor. But I have unreasonable incoming digits
Sent response 4294967167
Sent response 4294967167
Sent response 4294954815
Sent response 4286578559
Sent response 1811939328
Sent response 4294471680
Sent response 4294966543
Sent response 4294967167
Sent response 2133917696
Sent response 0
Sent response 671105792
Sent response 0
Sent response 0
Sent response 4294967166
Sent response 4294967167
and can't make it work, how to solve this?
And there is Joystick example from:
http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-ExampleSketches#js1
Packet Received - Sent response 0uS X= 0 Y= 0 Switch OFF
Packet Received - Sent response 2020360192uS X= 16504 Y= 24624 Switch ON
Packet Received - Sent response 4194303871uS X= -1 Y= -1 Switch ON
Packet Received - Sent response 1749043720uS X= 16384 Y= 26688 Switch ON
Packet Received - Sent response 4294967167uS X= -1 Y= -1 Switch ON
Packet Received - Sent response 4294932753uS X= 29695 Y= -1 Switch ON
Packet Received - Sent response 0uS X= 0 Y= 0 Switch OFF
Packet Received - Sent response 2097152uS X= 0 Y= 0 Switch OFF
Packet Received - Sent response 4294967119uS X= -3 Y= -1 Switch ON
Packet Received - Sent response 4294967167uS X= -2 Y= -1 Switch ON
Packet Received - Sent response 0uS X= 24800 Y= 112 Switch ON
Packet Received - Sent response 2115584uS X= 16416 Y= 24896 Switch ON
Packet Received - Sent response 0uS X= 0 Y= 0 Switch OFF
Packet Received - Sent response 2137014336uS X= 32638 Y= 26876 Switch ON
What can be wrong?
The text was updated successfully, but these errors were encountered: