Grove simple RF link kit in esp-home

Hi

Is there a way to include the simple Grove RF Link kit in ESP-Home? I was looking at ESP-Home configurations and the different sensor, but the RF Link is not in there.
Is it possible? If so is there a tutorial somewhere? Or has anyone else done this before and how?

Thanks in advance!

1 Like

Hi there,
And welcome here…

Thats a very good question, im :thinking:
Wondering same?

Ill look into it and post what I find.:wink:

GL :smiley: PJ :v:

1 Like

You have to Install and use the RCSwitch Library.

1 Like

So I am trying to take this step by step, I’m first trying to get it to work in the regular arduino IDE instead of ESPHome. If it doesn’t work in ESPHome, I might just add an ESP to send signals to the C3 that’s controlling the RF.

I’m trying to follow this guide: Grove - 433MHz Simple RF Link Kit | Seeed Studio Wiki
but I can’t even get that to work. I’ve downloaded the virtualwire library, but it fails to compile. It throws this error:

\Arduino\libraries\VirtualWire\VirtualWire.cpp:17:10: fatal error: util/crc16.h: No such file or directory
17 | #include <util/crc16.h>
| ^~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

Anyone else having issues with this library? Not sure how to edit libraries in order to get this to work.

Thanks in advance!

The VirtualWire library is primarily designed for AVR-based boards (e.g., Arduino Uno, Mega). On ESP32/ESP32-C3, you should consider using a compatible alternative like the RadioHead library.

Ok, I have some spare Uno’s I can use try this on. But the code still does not compile when changing te board. There is something wrong in the library I guess?

I can’t even get a simple Radiohead sketch to compile correctly. It throws an error on the RH_ASK.
It says it does not recognize the type RH_ASK.

Found this sketch in this tutorial: RF 433MHz Transmitter/Receiver Module With Arduino | Random Nerd Tutorials
The original sketch says to include RH_ASK.h, which does not work either. It throws a lot more errors talking about atomic block start and atomic block end.

#include <SPI.h>
#include <RadioHead.h>


RH_ASK driver;

void setup()
{
    Serial.begin(9600);	  // Debugging only
    if (!driver.init())
         Serial.println("init failed");
}

void loop()
{
    const char *msg = "Hello World!";
    driver.send((uint8_t *)msg, strlen(msg));
    driver.waitPacketSent();
    delay(1000);
}

Hi there,
So FWIW, Compiles AOK on an UNO, BTW. :+1:
You have a specific RF module in mind?

Why not something like this

HTH
GL :slight_smile: PJ :v:

Hi there,

Those are the ones NOT working…
GL :slight_smile: PJ :v:

chrome-https://www.airspayce.com/mikem/arduino/VirtualWire.pdf

It works off the virtual wire communication protocol… which is not Arduino UART and probably not what the complainer is using… very typical error route

I am using the first link kit posted by cgwaltney.
Those will not work? Then why is that being sold? Or do you mean it won’t work with ESPHome?

I did get to compile the code indeed with a UNO or MEGA. So I might try to get a UNO to control the RF kit and an ESP to interface with the UNO.

So what route should I go with that RF kit? The virtualwire route or the radiohead library?

can you get the kit to work with the XIAO? if you can get it to work with the XIAO i would think it would just be a relay question after that!

Not yet unfortunately, both the virtualwire or the radiohead library don’t compile for the esp32. I will probably try to get it to work on a Uno and use the esp to interface with it. If off course I can get it to work on the uno.