I want to make a RF connection using:
-transmitter: Arduino Mini Pro & NRF24L01
-receiver: ESP8266 & NRF24L01
With nRF24L01.h RF24.h libraries made by TMRh20
This is the transmitter 's code:
/*
* Arduino Wireless Communication Tutorial
* Example 1 - Transmitter Code
*
* by Dejan Nedelkovski, [url=http://www.HowToMechatronics.com]www.HowToMechatronics.com[/url]
*
* Library: TMRh20/RF24, [url]https://github.com/tmrh20/RF24/[/url]
*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(9, 10); // CE, CSN
const byte address[6] = "00001";
void setup() {
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MIN);
radio.stopListening();
}
void loop() {
const char text[] = "Hello";
radio.write(&text, sizeof(text));
delay(1000);
}
And thisis how Arduino mini pro and NRF24L01 are connected:
NRF24L01 Arduino mini pro
VCC VCC
GND GND
CSN 10
CE 9
SCK 13
MOSI 11
MISO 12
NRF24L01 has a 47uF electrolytic capacitor between VCC & GND.
Have I done it ok on the transmitter side? (later on I 'll post the receiver 's details, after we clear out the transmitter is ok)
Any help is welcome.