Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

RFLink ESP

This is a Radio Frequency to MQTT/Serial/TCP gateway built for ESP32 and ESP8266 boards (see #MCU for more).

It receives and decodes OOK 433MHz signals from your sensors, alarms and pushes them over MQTT/TCP/Serial. For some devices it can also send commands to control them.

This project is forked from RFLink-ESP (for ESP8266), which itself is forked from the original RFlink project "Release 29" for Arduino.

This fork provides additional features:

  • Fully (almost) configurable from a web interface whilst retaining the CLI.
  • No recompilation for most options which are configurable at runtime and saved in Flash.
  • More advanced debugging and troubleshooting helpers.
  • Restructured source code with namespaces and classes (Work in Progress)

1. MCU

We extensively use ESP32 dev kits. This is the default settings in Platformio.ini and RFLink.h files.

You may also use other ESP8266/ESP8255 based boards when there are no pin limitations. NodeMCUv2 is known to work.

2. Receiver / Transmitter / Transceiver

As a starting point, you can use the RXB6 receiver which is a simple and stable 3.3v component - it is easy to find and cheap. Many other receivers are also supported.

Avoid using generic noname receivers!

Receivers

For more advanced behavior and reliability, the following receivers are also supported when used with an ESP32 board:

  • SX1278
  • SX1276
  • RFM69CW
  • RFM69HCW
  • CC1101

These advanced receivers require a few pins to be connected to the host. The recommended pin assignments are:

NameESP32SX1278/6RFM69(H)CWCC1101
3v3VCC3.3VVCC
GNDGNDGNDGND
18SCKSCKSCK
19MISOMISOMISO
23MOSIMOSIMOSI
pins::RX_RESET4¹NRESETRESET
pins::RX_CS5¹NSSNSSCSN
pins::RX_DATA
pins::TX_DATA
26¹DIO2DIO2GDO0

¹ These must be configured in the web portal, values suggested here are proven to work reliably.

3. OLED display

You can use an OLED display. We used a SSD1306 128x64 I2C screen in our tests.

This is highly experimental and therefore not enabled by default.

OLED

4. IDE

We strongly recommend using the PlatformIO IDE but you can alternatively use the Arduino IDE 1.8.10.

5. Framework

We use Arduino Core for ESP8266.

6. Libraries

In addition to the core libraries, the following are also in use:

7. Compile Options and Flags

Many features are not enabled by default or can be disabled for various reasons like firmware size or compatibility.

OTA (disabled by default)

There are 3 types of OTA to update your firmware:

Arduino/ESP's classic push over UDP (disabled by default)

  • RFLINK_OTA_ENABLED we recommend that you enable a password for this method or anyone on your network could push a new firmware to the device.
  • RFLINK_OTA_PASSWORD="my_password_here" or RFLINK_OTA_PASSWORD='"'${sysenv.OTA_SEC}'"' in platformio.ini with an environment variable called OTA_SEC

AutoOTA

The device will download new firmware from a specified URL.

  • RFLINK_AUTOOTA_ENABLED
  • AutoOTA_URL in Credentials.h or in platformio.ini

Config Portal Web Upload

A firmware file can be uploaded via the Config Portal's Firmware page.

Firmware Screen

8. Additional Info

Config Portal

Repository

The Config Portal web ui is located in its own repository.

Default Login Details

rflink32 / 433mhz

Pinout

  • Pin setup has to be done via the Config Portal when it is active.
  • For safety and simplicity all pins are inactive by default.
  • Decoupling capacitors and antenna can be added to improve results.

Simple RX pin wiring:

NameD1 miniRXB6
PIN_RF_TX_VCCD55 VCC
PIN_RF_TX_NAD66 DER
PIN_RF_TX_DATAD77 DAT
PIN_RF_TX_GNDD88 GND

Pinout

Alternative Pinout

  • ESP8266 can't draw more than 12mA on a GPIO pin.
  • Some receivers have current spikes bigger than that (eg RXB12).
  • This leads to a non working receiver or non starting ESP.

Safe alternative wiring:

NameD1 miniRXB6
PIN_RF_TX_VCC3v35 VCC
PIN_RF_TX_NAN/A6 DER
PIN_RF_TX_DATAD77 DAT
PIN_RF_TX_GNDGND8 GND

Thanks

Special thanks to: Axellum, Etimou, Schmurtz, Zoomx

关于 About

RFLink for ESP, with MQTT client
diydomoticzesp32esp8266home-assistanthome-automationmqttrfrflinkrflink-esprfm69sensorssx1276sx1278

语言 Languages

C63.8%
C++36.0%
PowerShell0.1%
Python0.1%
Batchfile0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
8
Total Commits
峰值: 8次/周
Less
More

核心贡献者 Contributors