-
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
Arduino nano (clone) and this library #412
Comments
Thank you for your answer, really. https://www.amazon.it/gp/product/B01149ELU0/ref=oh_aui_detailpage_o07_s00?ie=UTF8&psc=1 I tried the follow code #define CE_PIN 9 RF24 radio (CE_PIN, CSN_PIN); void setup (void) { radio.begin (); Serial.println (result); void loop () { } on the Arduino Nano (clone) + NRF and the result was 0 (false). I then tried the same NRF module on the Arduino Uno and the result was 1, and the module communicates perfectly with another mounted on another Arduino UNO (so I think I can eliminate the hypothesis that the module is faulty). I then tried the code of the second link and I suffer from the exact same problem as that user. I think the Arduino Nano enters an infinite loop (which makes it look like a freeze state) and I then followed the TMRh20 instructions and took the comment on the #define FAILURE_HANDLING line in the RF24_config.h file. Now from the serial monitor I read: RF24 / examples / GettingStarted Can you explain to me what all this means please? |
I think you have some hardware issues between Arduino Nano and nRF24L01 chip. Arduino is connected to nRF24L01 by SPI interface; something is wrong and I can guess (by static source code analysis and your logs), that - when communication with the device by SPI - it gets zeros from the nRF24L01 chip. For example: the library want to get the status register from the chip and it reads always 0x00 value. That's why it is in the infinite loop in the
Got response 0 is always zero, probably because of this hardware issues and it always reads zeros from SPI interface. Some suggestions:
|
Thank you again for the help you are giving me. I tried to connect the module to a step-down(5v-3,3v) but .... I had no luck, ischipconnected is always false. I also tried to change the pins of the CE / CSN but it does not work, and I checked the wiring that turns out to be correct. What else can I try? |
Another Arduino, another nRF24L01+, checking your wiring again, decoupling the 3.3V power bus etc. |
I have 6 modules (all working tested), but none of these gives true result when connected to the Arduino Nano + SensorShield. I just tried a module (which on the Arduino Nano gave false) on a Mega Arduino and gives True result. It is not possible that every time I attach a module to the Arduino Nano I'm wrong about the wiring;) |
Is it possible that something on the SPI module goes wrong on the Arduino Nano? |
Did you decouple the 3.3V bus? |
OK! I got it. Thank you 2 for the time you have dedicated to me. |
@giotta1982, so what was wrong? Wiring? Power supply? Something else? :) |
hehe ... ok. |
So it was wiring. I see. These kind of issues can happen :) But hopefully you have found it. Good luck with your project. |
I'm trying to make a nano arduino work with this library, but no luck.
When I open the serial monitor, the dwarf freezes and no signs of life. I'm sure the NRF module works, because I've tested it with another arduino (UNO).
If I try to change the library with that of ManiacBug, the arduino nano does not freeze anymore, but I can not get anything from the other NRF module.
If I use the radio.printDetails () command, I see all incorrect values, and if I try to change them, nothing happens.
I do not have any capacitors between Vcc and GND, I checked the connections and they are ok.
Does anyone know how to solve this problem?
Thank you
The text was updated successfully, but these errors were encountered: