Help with Using Multiple NRF24+ Radio + Sensors and One Gateway
-
I have managed to to get one DHT sensor and mini pro working via a NRF24+ radio link and reporting via the MySensors gateway and Domoticz but would like to add a few more sensors also reporting things like air pressure, air quality, lightning detection, wind speed direction etc.
Is there a guide/post on how I should go about adding additional sensors. How do I set up arduino mini pro sketches to send data to the Gateway from multiple sensor/mini pro/NRF units around my property. Do I need to worry about channels etc or will they conflict.TIA
David
-
@moonlight0551 The NODE_ID will have to be unique for a sensor node. Domoticz will generate a unique ID if you do not specify it yourself. The API gives you the details.
-
@AWI Thanks for that. Do I have to specify a different MY_RF24_CHANNEL for each NRF/S ensor unit that is sending data to the Gateway. I have seen this specified sometimes in sketches in the forum.
-
@moonlight0551 no. All MySensors nodes must have the same channel as the gateway. Use the defaule channel unless you know you need to change it.
-
@mfalkvidd OK so what is the default channel. Is it decided by the Gateway, how is it set? And how would I need to know if I need to change it? Is it set in sensor sketch?
-
@moonlight0551 If you don't know you need to change it, you don't need to change it It's as simple as that. Don't worry about it and it will just work. No need to do anything.
If you really do want to dig into the details, start by reading https://www.mysensors.org/about/network and then move on to https://www.mysensors.org/download/sensor_api_20#configuration
-
Thank you. I now have two sensors/radios each reporting separately to the Gateway without any problems. Plenty more to come. As you said, "I didn't need to worry about it"
David