Hi
I’ve been following this guide trying to set up a wireless connection between two nano every’s. The guide uses a mega and a nano every, but I’ve tried with an uno and a nano every and with two nano every’s. It shouldn’t be a difference as long as the SPI pins are set up correctly.
I’ve also tried following close to 10 other guides looking for any differences trying to find the problem. All guides use the same RF24 library.
I’ve hooked the SPI wires up according to this nano every pinout. and used the same pins 7 and 8 for CE and SCN.
I’m also using the power modules for the nRF24L01 modules to guarantee a stable voltage supply.
I cannot get a response with any of the sketches I’ve tried, I’ve tried staying away from buttons and LED’s to avoid more points of failure when trying to isolate the problem.
I’ve tried 4 different nano every’s so I’m fairly confident that the problem is not a broken board. I’ve tried both with and without the power modules, and I even tried switching the MISO/MOSI pins that one of the guides mentioned could be mislabeled on the power modules.
As of now my setup looks like this pic (imgur) Im using the sketches from the guide mentioned in the beginning
Transmitter code:
/*
* Arduino Wireless Communication Tutorial
* Example 1 - Transmitter Code
*
* by Dejan Nedelkovski, www.HowToMechatronics.com
*
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8); // CE, CSN
const byte address[6] = "00001";
void setup() {
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MIN);
radio.stopListening();
}
void loop() {
const char text[] = "Hello World";
radio.write(&text, sizeof(text));
delay(1000);
}
Receiver code:
/*
* Arduino Wireless Communication Tutorial
* Example 1 - Receiver Code
*
* by Dejan Nedelkovski, www.HowToMechatronics.com
*
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8); // CE, CSN
const byte address[6] = "00001";
void setup() {
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(0, address);
radio.setPALevel(RF24_PA_MIN);
radio.startListening();
}
void loop() {
if (radio.available()) {
char text[32] = "";
radio.read(&text, sizeof(text));
Serial.println(text);
}
}
All the wires are hooked up according to the circuit diagram in the guide also. Note that the CLK wire is in the wrong place in the picture wiring diagram
When I open the serial monitor there’s nothing at all showing up. It works on other sketches and I’ve checked that the baud rate is right also.
Any ideas what could be the problem?