Hi, i try nrf24l01 on Pro mini but, it´s still no working.
I try on Uno and it works.
I want pro mini as receiver.
Please help me :~
I have pro mini 5V and i use http://www.aliexpress.com/snapshot/6037884842.html
But i use only 3.3v and gnd for nrf24l01 ![]()
Pin 13 - SCK
Pin 12 - MISO
Pin 11 - MOSI
Pin 8 - CE
Pin 7 - CSN
I try this code:
#include <SPI.h>
#include <Mirf.h>
#include <nRF24L01.h>
#include <MirfHardwareSpiDriver.h>
int rate;
void setup(){
Serial.begin(9600);
Mirf.spi = &MirfHardwareSpi;
Mirf.init();
Mirf.setRADDR((byte *)"serv1");
Mirf.payload = sizeof(rate);
Mirf.config();
}
void loop(){
while(!Mirf.dataReady()){
}
Mirf.getData((byte *) &rate);
Serial.println(rate);
delay(100);
}