Sensor Station nRF24L01

Hello. I want to do sensor station. i am using these codes. These ones already working. But i need to 5 slave 1 master nrf24l01. How can i change the codes. in my home; all room have a temperature sensor. all sensor send data to mother nrf24l01 . (sorry my english)

code in some places Turkish
tx

#include <SPI.h>
#include <nRF24L01p.h>
#include <String.h>

nRF24L01p verici(7,8);

float sicaklik;
static char veri[10];

void setup() {
  Serial.begin(9600);
  SPI.begin();
  SPI.setBitOrder(MSBFIRST);
  /* SPI başlatıldı */
  verici.channel(90);
  verici.TXaddress("Hasbi");
  verici.init();
 
}
void loop() {
  sicaklik = analogRead(A0); 
  /* A0daki gerilim ölçüldü */

  Serial.print("SICAKLIK = ");
  Serial.print(sicaklik);
  Serial.println(" C");
  /* Sıcaklık bilgileri ekrana yazdırıldı */
  
  dtostrf(sicaklik,5, 2, veri);

  
  verici.txPL(veri);
  boolean gonderimDurumu = verici.send(FAST);


  if(gonderimDurumu==true){
        Serial.println("mesaji gonderildi");
  }else{
        Serial.println("mesaji gonderilemedi");
  }
  
  delay(1000); 
}

RX

#include <SPI.h>
#include <nRF24L01p.h>
#include <String.h>

nRF24L01p verici(7,8);
/* CSN - > 7, CE -> 8 olarak belirlendi */

float sicaklik;
static char veri[10];

void setup() {
  Serial.begin(9600);
  SPI.begin();
  SPI.setBitOrder(MSBFIRST);
  /* SPI başlatıldı */
  verici.channel(90);
  verici.TXaddress("Hasbi");
  verici.init();
  /* Verici ayarları yapıldı */
}
void loop() {
  sicaklik = analogRead(A0); 
  /* A0daki gerilim ölçüldü */
  sicaklik = sicaklik * 0.48828125;
  /* Ölçülen gerilim sıcaklığa çevrildi */
  Serial.print("SICAKLIK = ");
  Serial.print(sicaklik);
  Serial.println(" C");
  /* Sıcaklık bilgileri ekrana yazdırıldı */
  
  dtostrf(sicaklik,5, 2, veri);
  /* float değerindeki sıcaklık stringe çevrildi */
  
  verici.txPL(veri);
  boolean gonderimDurumu = verici.send(FAST);
  /* Sıcaklık bilgisi nRF24L01'e aktarıldı */
  /* Eğer gönderim başarısız olursa gonderimDurumu'nun değeri false olacaktır */
  if(gonderimDurumu==true){
        Serial.println("mesaji gonderildi");
  }else{
        Serial.println("mesaji gonderilemedi");
  }
  
  delay(1000); 
}

I don't know what nRF24 library you are using. I suggest you use the TMRh20 version of the RF24 library.

If you want a "master" to send separate messages to several "slaves" then you need to give each slave a different address and then the master can send to each one in turn.

If it is sufficient for all the slaves to receive the same message then give them all the same address and disable the auto-acknowledgment feature.

I got my nRF24s working with this Tutorial

The pair of programs in this link may be useful.

...R

thank you for your reply. i was tried something but i could not. i need to example codes

pheadrus46:
thank you for your reply. i was tried something but i could not. i need to example codes

Did you work through the tutorial I linked to?

I gave you a link to a pair of programs in Reply #1. I have since updated them here.

...R