Home Assistant to RFLink Gateway using a NodeMCU (ESP8266 Wifi module)
Home Assistant to Arduino RFLink gateway using the RFLink component.
Serial data is sent via the esp-link V2.2.3 Wi-Fi serial bridge running on a NodeMCU (ESP8266 Wifi module) with ESP8266 TXD0 (pin D10) and RXD0 (pin D9) connected to Arduino MEGA 2560 RX (Pin 2) and TX (Pin 3) respectively.
Wiring of transmitter and receiver is as per Arduino Wiring on RFLink Gatway.
- NodeMCU Amica (ESP8266)
- Arduino MEGA 2560
- BSS138 bidirectional logic level converter (For serial pins)
- Resistor based logic level converter (For CC2500) E.G.
- CC2500 2.4GHZ Transceiver
- 433Mhz ASK Transmitter
- Breadboard
- Breadboard jumper wires
- Example remote control sockets
Due to different logic levels, a voltage level shifter is required between the 3.3V NodeMCU and 5V Arduino MEGA 2560 pins. The BSS138 bidirectional logic level converter has been tested for serial pins
WiFi mode: STA esp-link pin assignment:
- Reset: GPIO5 (Connected to Arduino reset pin)
- Conn LED: GPIO2/TX1 (LED on ESP module)
- Serial LED: GPIO4 (With external LED connected)
- UART pins: Normal
- RX pull-up: enabled
My setup, photo:
Rev 1
Rev 2