Anyone out there had any luck networking these RF24s? I can get a couple to communicate, but I need to create a network to accommodate the number of sensors and to bridge the distance. So far I havent had any luck getting the examples I've found to work.
Anyone out there had any luck networking these RF24s? I can get a couple to communicate, but I need to create a network to accommodate the number of sensors and to bridge the distance. So far I havent had any luck getting the examples I've found to work.
Please post enough relevant information for someone to help you... for example:
1) Post the smallest amout of code you have that can reproduce and exhibit your problem
2) Highlight the specific piece of code that is failing you or that you do not understand
3) Link to any specific examples that you're trying to implement
etc...
Cheers.
I started with the RadioHead library and examples which worked great with two radios. There is a mesh library that is supposed to let you network more, but I couldn't find any examples for the RF24 and switching from RF22 to RF24 library didn't seem to work at all.
Ive had my best luck with this example https://howtomechatronics.com/tutorials/arduino/how-to-build-an-arduino-wireless-network-with-multiple-nrf24l01-modules/.
I used the first two sketches, modified to just send and print "Hello World" to eliminate wiring issues. It worked fine. When I tried to add in an intermediate step I got nothing.
I'm building a sensor array for a field study. It will eventually have about 12 separate sensor locations that need to send data to my home (about 600 yards away). I need to network the radios to consolidate the data and to bridge the distance.
I used this code for the passthrough node
#include <RF24.h>
#include <RF24Network.h>
#include <SPI.h>
RF24 radio(10, 9); // nRF24L01 (CE,CSN)
RF24Network network(radio); // Include the radio in the network
const uint16_t this_node = 01; // Address of our node in Octal format ( 04,031, etc)
void setup() {
SPI.begin();
radio.begin();
network.begin(90, this_node); //(channel, node address)
}
void loop() {
network.update();
}
}
and changed the end node address to
const unit16_t node11 = 11