I have these boards and connect them like this:
And I put this code on Nodemcu esp8266 Lolin as transmitter:
#include <RH_ASK.h>
#include <SPI.h>
// Arduino Transmitter
// GND--------------------------GND
// D12--------------------------Data
// 5V---------------------------VCC
RH_ASK driver(2000, 11, 3);
void setup() {
Serial.begin(9600);
if (!driver.init()) Serial.println("init failed");
}
void loop() {
const char *msg = "hello";
driver.send((uint8_t *)msg, strlen(msg));
driver.waitPacketSent();
delay(200);
}
And I put this code on Arduino Uno as a receiver:
#include <RH_ASK.h>
#include <SPI.h>
// Arduino Receiver
// GND--------------------------GND
// D11--------------------------Data
// 5V---------------------------VCC
RH_ASK driver(2000, 11, 12);
void setup() {
Serial.begin(9600);
if (!driver.init()) Serial.println("init failed");
}
void loop() {
uint8_t buf[RH_ASK_MAX_MESSAGE_LEN];
uint8_t buflen = sizeof(buf);
if (driver.recv(buf, &buflen)) {
driver.printBuffer("Received:", buf, buflen);
}
}
But I don't get anything on Serial Monitor from Arduino UNO and don't receive anything
I test all pins on modules, and they have the correct voltage. also LED on Nodemcu esp8266 Lolin blink each a few seconds

