Skip to content

Domotica system using Arduino + sONOFF + LWRF mood switches + Linux Server

Notifications You must be signed in to change notification settings

mpalitto/Domotica

Repository files navigation

Domotica System Overview

System Architecture

This system architecture represents a multi-level communication setup designed to control lights wirelessly using remote controllers, RF signals, ESP8266 modules, Wi-Fi, and a central Linux server.

  1. image LWRF Mood Controller sends RF signals.
  2. image ESP8266 + RF-RX receives these RF signals.
  3. ESP8266 connects to the Linux Server via WiFi.
  4. image The Linux Server communicates with the Arduino + RF-TX.
  5. image Arduino + RF-TX transmits ON/OFF commands to the sONOFF-RF Switches.
  6. image sONOFF-RF switches ON or OFF the image lights

Architecture Home side details Diagram

 Remote Controller 1          Remote Controller 2  ........  Remote Controller N
           |                            |                              |
       [RF Signal]                 [RF Signal]                   [RF Signal]
           |                            |                              |
           v                            v                              v
    --------------------------[ Lightwave codes ]--------------------------
           |                            |                              |
           v                            v                              v
    ESP8266+RF-Rx(1)             ESP8266+RF-Rx(2)   ..........  ESP8266+RF-Rx(M)
           |                            |                              |
      [WiFi Signal]                [WiFi Signal]                 [WiFi Signal]
           |                            |                              |
           v                            v                              v
     ---------------------------[ Buttons codes ]--------------------------
                                        |
                                        v
                       [ Linux-Server + Arduino + RF-Tx ]
                                        |
                                        v
     ---------------------------[ RF sONOFF codes ]--------------------------
           |                            |                              |
           v                            v                              v
       sONOFF-RF(1)                 sONOFF-RF(2)     ..........    sONOFF-RF(L)
           |                            |                              |
           v                            v                              v
        LIGHT(1)                     LIGHT(2)       ..........      LIGHT(L)
  1. Remote Controllers (1 to N):
    These remote controllers send RF (radio frequency) signals, each corresponding to a different control action.

  2. RF Signal Transmission:
    The RF signals from the remote controllers are transmitted to the receivers spread-out in the home.

  3. Lightwave Codes Layer:
    Each remote button corresponds to a Lightwave code.

  4. ESP8266 + RF-Rx (Receivers 1 to M):
    The ESP8266 modules are connected to RF receivers (RF-Rx). Each ESP8266+RF-Rx module receives RF signals from the remote controllers and converts these signals into codes identifying remote key pressed and forwarded to the central linux home server through Wi-Fi packets.

  5. Wi-Fi Signal Transmission:
    The Wi-Fi signals, now carrying the command data, are sent across the network.

  6. Central Linux Server + Arduino + RF-Tx:
    The central server, running Linux and connected to an Arduino with an RF transmitter (RF-Tx), receives the button codes and determines the appropriate response. It sends the corresponding RF sONOFF codes which identifies the appropriate devices (sONOFF).

  7. RF sONOFF Codes Transmission:
    These RF sONOFF codes are sent out to the sONOFF RF modules.

  8. sONOFF RF Modules (1 to L):
    Each sONOFF RF module receives the RF sONOFF code and translates it the switch action for the connected lights.

  9. Lights (1 to L):
    The sONOFF modules are connected to lights.

In summary, this system architecture facilitates the wireless control of multiple lights, where remote controllers send RF signals that are processed by ESP8266 receivers and a central server to ultimately trigger actions in sONOFF RF modules that control the lights.

Components Used:

  • N x sONOFF-RF: Switches controlled by WiFi and RF signals
  • M x LWRF Mood Controller: Stylish remote controls that use RF signals
  • L x ESP8266 + RF-RX: Receives codes from the remote controls
  • 1 x Arduino + RF-TX: Sends ON/OFF commands to the sONOFF switches
  • 1 x Linux Server: Manages the system

Smartphone APP Control

Each SONOFF-RF device connects to the internet via WiFi and establishes a link with the SONOFF Cloud Server. The smartphone app connects to the SONOFF Cloud Server, allowing the user to control the lights remotely from anywhere in the world... as long the SONOFF-RF Switch is connected to the INTERNET... and ITEAD Studio (manufacturer) provides the Cloud Server!

Architecture Overview Diagram

   [LWRF Mood Controller]                          [Smartphone App (eWelink)]
             |                                            |
             | RF codes (Lightwave proprietary)           |  Cloud communication
             v                                            v
    [ESP8266 + RF-RX]                                [SONOFF Cloud Server (eu-disp.coolkit.cc)]
             |                                            ^
             | WiFi                                       |
             v                                            |
       [Linux Server]                                     |
             |                                            |  Cloud communication
             | USB (serial)                               |
             v                                            |
   [Arduino + RF-TX]                                      |
             |                                            |
             | RF codes (standard)                        v
             |                                         .-~~~-.
             v                                      .-~~      ~~-.
 [SONOFF-RF Switch] <--WiFi--> [Home Router] <---> (   Internet   )
                                                    `-. ~~~~~~~ .-'

About

Domotica system using Arduino + sONOFF + LWRF mood switches + Linux Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published