Skip to content
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

Bizarre behavior with Arduino UNO #99

Open
kdharbert opened this issue Oct 8, 2020 · 1 comment
Open

Bizarre behavior with Arduino UNO #99

kdharbert opened this issue Oct 8, 2020 · 1 comment

Comments

@kdharbert
Copy link

I'm unable to make basic diagnostics work via the radio.printDetails command with an Arduino UNO. When the code reaches this command, nothing is printed, and it makes the code reset and it just fails in a loop. The below code will print 1,2,1,2,1,2... No output I can blame on a bad connection, but the UNO is resetting in a loop.

I checked the connection a million times with no luck. While running diagnostics, I found the code still runs this way even with the NRF24L01 not connected. Again, I don't get how this can cause a reset.

@kdharbert
Copy link
Author

Oh yeah...code:

#include <RF24.h>

RF24 radio(10, 9); // CE, CSN

void setup()
{

pinMode(10, OUTPUT);
pinMode(9, OUTPUT);

Serial.begin(115200);

Serial.println('1');
delay(1000);
radio.begin();
delay(1000);
Serial.println('2');
 delay(1000);
radio.printDetails();
delay(1000);
Serial.println('3');
delay(1000);
Serial.println('4');

}

void loop()
{

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant