I'm using a NRFL01+ with the voltage regulator adapter. Well I'm using two of each actually, with two Nano Every's. I ran some test code, got "Hello world" transmitted, everything worked fine. Wrote some new code and eventually during the troubleshooting process I noticed, one of them doesn't seem to want to work. It just keeps telling me "radio hardware is not responding". I'm using the "getting started" example to test it.
I have everything setup with bread boards. I swapped the radio adapters, swapped the radios, and even swapped the arduino's between bread boards. The problem followed the arduino. So it seems it's not a connection or code error and must be a hardware error. Is there a way to test the SPI interface(MOSI and MISO pins) to make sure they still function?
A hardware loopback of MOSI to MISO?
Hook up a scope or logic analyser and measure.
If you don't have those, but you have some leds and resistors, hook them up tp the SPI pins and use digitlWrite to test the pins.
void setup() {
pinMode(SS, OUTPUT);
pinMode(SCK, OUTPUT);
pinMode(MOSI, OUTPUT);
pinMode(MISO, INPUT_PULLUP);
Serial.begin(115200);
}
void loop() {
digitalWrite(SCK, HIGH);
delay(500);
digitalWrite(SCK, LOW);
delay(500);
// change the pinMode to INPUT_PULLUP
//Serial.println(digitalRead(MOSI));
}
The example will simply blink the SCK pin. The other pin names are provided in the pinMode statements so you can change the digitalWrites.
Next you can change the pinMode statements to use INPUT_PULLUP and use a button or wire to check the input functionality; button wired between pin and GND.
I don't have a Nano Every to test but code does compile for it.
The above would provide basic tests to check if you have blown up pins.
Test one pin at a time for starters, later you can check combinations if you want to.
Note: take your Nano Every out of the setup.
Thank you. I found a few things. The input pullup doesn't work on sck and miso. When set as on output, MISO doesn't work. So I appear to indeed have a problem with the board. ![]()
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.