EL0608 WIRELESS TRANSCEPTOR INALÁMBRICO NRF24L01 2,4 GHz

N.º de producto: EL0608

En existencias
El envío se realiza en 24h

Precio anterior 3,00 €
1,25
Se ahorra 58 %
IVA incluido
 


EL0608 WIRELESS TRANSCEPTOR INALÁMBRICO NRF24L01 2,4 GHz
 

  • Medidas: 33x14 mm.
  • Velocidad hasta 2 Mbps
  • Modulación GFSK
  • Cristal 16 MHz
  • 125 canales
  • Alcance 100 m. en interior

Ejemplo de código del emisor:

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(9, 10);

const byte rxAddr[6] = "00001";

void setup()
{
  radio.begin();
  radio.setRetries(15, 15);
  radio.openWritingPipe(rxAddr);
  
  radio.stopListening();
}

void loop()
{
  const char text[] = "Electrrio";
  radio.write(&text, sizeof(text));
  
  delay(1000);
}

Ejemplo de código del receptor:

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(9,10);

const byte rxAddr[6] = "00001";

void setup()
{
  while (!Serial);
  Serial.begin(9600);
  
  radio.begin();
  radio.openReadingPipe(0, rxAddr);
  
  radio.startListening();
}

void loop()
{
  if (radio.available())
  {
    char text[32] = {0};
    radio.read(&text, sizeof(text));
    
    Serial.println(text);
  }
}

Los clientes que han comprado este producto también han comprado

*
Todos los precios incluyen IVA



Examine también estas categorías: Comunicaciones, Módulos y Sensores Arduino, Todos los Productos