Relay control via the Internet. A simple method for remote control of electrical appliances via the Internet. Management of equipment via the Internet

Hello, dear readers and guests of the Electrical Notes website.

In my past publications, I introduced you to touch and touch, both manually and from the remote control.

And today, with respect to you, I would like to switch on the relay (remix) of the Sonoff Basic version with the possibility of connecting directly with a mobile phone via Wi-Fi or the Internet.

The Sonoff Basic relay is a small device (88x38x23 mm), which can be easily placed behind a wall space, in a living room, or in a chandelier or lamp.

At the time of publication of the statistics, it is possible to set a little less than 300 rubles. As you understand, these are very nice pennies, after all, for such an ordinary device. I added this to every visible AliExpress trading platform (this will be sent to the statistics).

The kit included two dry covers with fastening screws, but, unfortunately, there were no instructions for the axle.

The Sonoff relay has the following technical characteristics, some of which are displayed directly on its housing:

  • maximum strum of cerated navantazhenya 10 (A)
  • life voltage from 90 (V) to 250 (V)
  • dartless link standard 802.11 b/g/n
  • security protocol WPA-PSK/WPA2-PSK
  • operating temperature 0°С to 40°С
  • masa about 50 g

Possibilities of the Sonoff Basic relay:

  • keruvannya navantazhennyam via Wi-Fi
  • management of equipment via the Internet
  • Bathing of appointments according to a given timer, both direct and reverse
  • Caravan for many mobile phones

The axis of such capabilities is the Sonoff relay. This can be safely installed in the systems of a smart home and other miscellaneous needs and requirements.

First, I will tell you how to connect Sonoff, and then we will check all the stated control methods in practice.

So let's go.

Installation and connection of Sonoff relay

For the operation of the Sonoff relay, it requires a voltage of 220 (V), which means it can be installed without any problems in your own place, for example, in the bowl of a chandelier or directly under the tension rod, and also directly in a separate box, if there is enough there Yes.

To mount the relay to the surface, it has two fastening openings.

The connection diagram for the Sonoff relay is very simple.

On the terminals (L) and (N) on the side (Input) the phase and neutral voltage of 220 (V) are connected. Naturally, we don’t forget about the connection.

To restore respect for those who lived, who are connected, they must have a cross section of no more than 1.5 sq. mm. But I still tried to connect and lived with a crossbar of 2.5 sq. mm. As a result, the hard (single-drag) wire can still be connected without problems, but the flexible (high-drag) wire has great difficulty in being inserted into the terminal, so it had to be somewhat flattened and deformed.

For the butt, I used a cable made of PVA brand, which has a cross section of 2.5 sq. mm. At the other end of the cable there is a plug, which I will connect to any outlet with a voltage of 220 (V).

At the terminals (L) and (N) on the side (Output) the main phase and zero voltage are connected.

To make it easier to connect the voltage to the relay output, I connected a socket.

Before speaking, the terminals of the cover not only have a drying function, but also play the role of clamping wires and cables.

The axle is so beautiful and neat. The Sonoff relay is connected.

As an inspiration, I connected a LED lamp in one of my articles.

The axis is a simple example of connection diagrams for Sonoff relays for a group of lamps.

Before speaking, it is not obligatory to install just a lamp or a group of lamps. You can easily connect any other voltage to the output terminals so that it does not exceed the nominal power supply of 10 (A). And if you still need to connect the components that have a value greater than 10 (A), then you can connect it to the contactor, and after the additional relay you can connect the coil of that contactor.

In connection with this, it can be added that when using a contactor, it is possible to carry out either single-phase, or triphasic, or variable flow, or permanent.

Tse vigladatime approximately axis like this.

Thus, the scope of installation of the Sonoff relay is very wide and varied. It can be used with either one light bulb, a powerful single-phase electric heater, a three-phase electric motor, etc. Everything will be stored according to your needs and requirements.

And now let’s look at all the possibilities of using the Sonoff relay in the report.

I won’t open the relay and marvel at this device, since there is already enough information on the Internet to look at other electronic resources. And judging from vodguki, vikonannya at the relay all day long. Before speaking, who cares to know, the relay is based on a popular Chinese microcontroller ESP8266.

Controlling your equipment via your phone via Wi-Fi

First of all, let me tell you that you can change the relay manually via Wi-Fi. For this purpose, there is a small black button recessed on the body. So, when the relay is pressed for one short hour, the axis is turned on, and when pressed again, it is switched on. Moreover, it is not obligatory for the relay to be connected to a Wi-Fi connection - control can be performed in Offline mode.

In addition, the button carries another functionality, which I will discuss a little below.

To realize the possibility of Internet connection via Wi-Fi and the Internet, you must install the eWeLink mobile add-on on your phone. This program is available for both Android and iOS devices. To make it easier to search for programs, you can quickly access the necessary QR codes on the packaging.

For Android devices, the eWeLink program can be downloaded freely from Google Play and installed on your phone without any problems. The program interface supports Russian language.

For iOS devices, this program is available in the App Store. If you want to install this program on your iPhone or iPad without trying it, anyone who has tried this program on iOS devices should kindly sign up in the comments about the results.

After installing eWeLink programs, you will need to immediately register by entering your country and email address. In this case, the phone must be connected to the Internet.

After this, you will receive a verification code in the mail (valid for 30 days), which you must enter in the “Email code” line. On this page you must enter a password to log in to your account account (at least 8 characters).

You can get to the speech on the mail services Mail.ru and Mail.yandex.ru (Yandex-mail) without any problems. As far as I know, the postal service Gmail.ru (Google-mail) will not receive the list with the verification code again, so save this moment.

Then you need to disconnect the pair of relays and the router by pressing hard (for 5 seconds) with the same button on the device body, after which the green LED on the relay blinks. We tick the first connection mode and click “Next”.

Now you need to select our Wi-Fi from the list and enter the password. Before you enter your password right away, you can check the “Remember password” checkbox. We press “Far”, after which the search for our device and its registration begins (it took me no more than 2-3 minutes over the course of an hour).

After successful reception, the relay automatically transmits data to the Chinese server (Amazon AWS or Coolkit), which makes it possible to access it via the Internet. Until then, I’ll turn it around a little later.

As you see, our relay is now displayed in the list of all devices (as long as it is the only one in the list, but others will appear in the near future).

If the relay is online (in the middle), then the green LED on its body will always light up. As soon as the LED starts blinking, the connection to the router or the Internet has been lost. According to this indicator, it is easy to indicate whether the relay is in the range (Online) or not (Offline).

While I tested this device, I did not notice any problems with the loss of gauge. The device is always in control and stably responds to control commands.

Now you can try to close the relay via your phone. For this we press on “Relay 1”. Immediately a message appeared about those who needed to update the eWeLink program, although the Google Play update would not appear.

Let’s go to the setup of the device (three dots in the right corner) and it’s clear that the program is currently version 1.5.2, and a new version 1.5.5 is available. We click on the “Enter” icon and the program update begins. After the update, the red letter is known, and in the settings we can download the new version 1.5.5.

Remember! The head of the robotic relay is the availability of access to the Internet.

If you do not have access to the Internet, the green LED on the relay body will begin to light up, and in addition, the Offline mode will be displayed on its tab. inaccessible to Keruvanya.

Now, in order to turn on our “Relay 1”, you need to go to the next place and press the round virtual button in the center of the screen. Moreover, you can activate the relay from the main list of all devices by pressing the small button (left-handed). Zagalom, who deserves it.

When the relay is in the switched position, the button displays a white color with a gray background fill. When the relay is in the closed position, the button changes its color to green, and the background next to it becomes blue.

In addition to the banal principles of control, you can set the hour to wake up or turn on the relay using a timer, adjusting the date and time of the day.

Moreover, it was surprising that the relay asks for a given timer to only go offline when it is offline, which means that all the settings of the timer programs are saved directly in the relay’s memory.

Click on the “Add timer” button and go to the page for setting up timers. The skin timer is adjusted, either the relay is turned on or off. There are two options for setting the timer:

  • one-time (once requested for a given date and hour)
  • repeating (periodic requests for a given date and hour, including the designation of specific days of the year)

In addition to the forward timer, there is also a reverse timer. A very necessary functionality for singing purposes. It is adjusted in the same way to a direct timer, only with the possibility of a one-time request.

In addition to forward and reverse timers, the “Adjustment” tab (three dots in the right corner) has a cyclic timer.

This section allows you to configure different types of relay cycles. I won’t report this in detail, because... Everything here is simple and intuitive.

There is a limited number of configured timers, including a cyclic timer, maybe three more than 8. And be respectful, because If you apply one to one hour of different timers, you may not be able to use them!

You can also specify in the settings where the relay will be removed, because the 220 (V) voltage will be switched on. There are three options here. You can select the following checkboxes, so that when the 220 (V) life reappears, the relay can either be switched on, or switched in, or be deprived of the output power.

Before speech, this function is very simple. Axis, guess about the nuance that when the life of 220 (V) is known and reappears, it turns on again, and the output is intermittent at the switched-off output station. And to realize that you are not at home, the voltage “blinked” a little and the controller independently turned on the chandelier. There is no such incident here, because This way everything can be adjusted to suit your needs.

Moreover, all connections of your devices to the eWeLink add-on can be grouped with each other and combined in different scenarios.

How can you install a relay for as many phones as you want?

It’s possible, it’s possible! Naturally, when you buy a phone you need to install eWeLink.

There are two options here. The first option is to access the eWeLink program under the same username and password from different phones and connect the relay.

The truth is, if you log into the program on one phone, and then at the same time log into the program with the same login and password, and then on another phone, then on the first phone there will be a reset and an automatic exit from the program. In this case, the other phone is lost in the program, for additional help you can use devices.

However, I would like to note that when a relay is connected to one phone, its status is displayed almost immediately on all phones prior to the new connection.

Management of equipment via the Internet

You can control the relay via your phone via Wi-Fi, but you can also access it via the Internet from any point in your locality. absolutely from any point in the world where there is access to the Internet.

Also, to use the Internet via the Internet, you must log in to the eWeLink program using your username and password, which you specified during registration. And then it’s all about analogy. This is the program, this is the setup, this is the control button, etc., the difference is that you are not at home in the range of your Wi-Fi network, but hundreds and thousands of kilometers away from the cabin.

A little about the gloom.

However, you won’t be able to connect the relay without the Internet, because... management goes through a local network, and through the Internet network, then. that very Chinese gloom, I thought about Yaku in a big way. And it doesn’t matter whether control is via Wi-Fi or via the Internet, when servicing, you always go through the cloud, and for access to the dark you need access to the Internet.

In connection with this, various clever people have already come up with a way to connect this device with the Chinese gloom, or to earn cervania through a local home network. For those interested, this information can be found on other resources.

Before speaking, if you need a similar device, in addition to the additional function of radio control from the remote control, you can connect the Sonoff relay to the RF version.

If you want to stay in your home where there is no Internet connection, you can use the Sonoff relay version G1 (GSM/GPRS with SIM card support). This generator also has a relay with temperature and moisture sensors Sonoff ТН10/ТН16 and dual-channel (for controlling two independent installations) Sonoff Dual relays.

And in the meantime, the Sonoff publisher has a lot of different devices, and I’ll tell you about the most important and important ones on the pages of my website, so subscribe to the newsletter so you don’t miss any new releases.

You can buy a Sonoff relay here:

  1. Sonoff Basic: https://goo.gl/jXyNm3
  2. Sonoff RF (with radio): https://goo.gl/TRPqN6
  3. Sonoff G1 (GSM/GPRS with SIM card support): https://goo.gl/EkpTdp
  4. Sonoff TN10/TN16 (temperature and moisture sensor): https://goo.gl/MWAL5p
  5. Sonoff Dual (two-channel): https://goo.gl/a7rV56

And following the tradition, here’s a video from the statistics, where you can definitely see the adjustment and control of the Sonoff relay:

A unique solution. Control from the IR remote control or phone via the Internet. Controlling outputs via WEB page. Thermostat mode when digital temperature sensors are connected. Program for Windows, LINUX, ANDROID. Control via computer, phone, tablet

Price 4700 rub.

Parameters for the payment system for generating checks:

MPE rate:

Item:

Destruction method:

Price 4700 rub.

Description

DOWNLOAD FILES

XControl is a software and hardware complex that allows you to control electric clamps, as well as control various sensors via a computer, phone or tablet. The system consists of the main hardware unit and three programs - X-Control, which allows you to monitor simultaneously several hardware units, the XControl-Configer program, which helps install the main settings for the unit, as well as XControl programs for the Android platform.

Initially, the X control system is aimed at industrial stagnation, but it will also successfully stagnate in household minds. The possibilities for installing an X-control system are very wide - from simple heating/control of electrical appliances, temperature sensors and window/door sensors to a large system that requires monitoring the number of objects, especially when they are installed in the In other countries, because keratinization with the skin module is required through a local network or the Internet.

Parameters of the main Xcontrol module:

Voltage life 8-25 st.




Number of sensors that can be connected to DS18B20 – 10 pcs. Protection against static electricity.
Possibility of controlling skin contact output via RC5 coding.

Connections are still possible via the Ethernet connector (RJ45). We will install viewing/viewing via a browser or the XControl program.
The device can be configured via the USB port of the computer using the additional XControl-Configer program. I will also install the flashing via USB.

It is possible to connect to a device using XMLHTTPRequest, which is especially useful for programs that want to connect to a device between their programs and website/server.

Remote control

XMLHTTPRequest

The program has 3 tabs:

Attachment. Here you can see all the additions to the device and their settings, you can add as many as needed.
Yalti. For skin service, you can create a label, which will then appear in a manual graphical form, and can also be easily adjusted. The pictures, posted initially in the program folder, are taken from various web resources and are used only as examples.
Magazine. To record actions.
graphics. For temperature sensors and analog inputs, you can create graphs, which is especially useful if you need to display the scale of temperature changes over a specified period of time.
Magazine. Everyone keeps a record of their actions.
Adjusted. Adjustment of autostart, electronic mail, etc.

The software can be downloaded on the manufacturer's website.

DESCRIPTION OF THE TYPE OF VIROBNIKER:

XControl. Keruvannya via computer, phone, tablet or web browser

Updated 06/24/14. Now on Linux!

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

XControl is a software and hardware complex that allows you to control electrical devices, as well as control various sensors via a computer, phone or tablet. The system consists of a main hardware unit and two programs – XControl Manager, which allows you to monitor simultaneously the hardware units of the XControl-Configer program. XControl Manager is available for Windows, Linux and Android.

Initially, the system is focused on industrial stagnation, otherwise it will stagnate with success in household minds. The possibilities of using this system are quite wide - from simple heating/control of electrical appliances, temperature sensors and window/door sensors to a large system that requires monitoring the surface of objects, where they are installed in the In other countries, debris from the dermal module is removed through a local network . where is the Internet?

Current versions of the file set:

  • XControl Manager (Windows, Linux and Android) - 2.2.2
  • XControl Configurator – 1.1.5
  • Firmware – 1.7.3
  • Documentation – 1.6.3

Update

  • 24.06.14 :
    • XControl Manager is now available on Linux.
    • The XControl Manager program has been corrected, through which in certain situations a memory cycle was generated (as long as the occupied RAM was gradually increased by the program).
  • 26.03.14 : Program settings are now saved in the text view.
  • 16.03.14 :
    • The XControl dispatch program has the ability to automatically turn on contact outputs for hourly tasks, record value changes in a file, and also easily communicate with devices. A lot of bugs have been fixed in the Android version.
    • Other fixes from the firmware.
  • 07.12.13 :
    • The XControl dispatcher program now has the ability to display graphics and send notifications via email. The setup of these programs is now saved not in the registry, but in a file, so you can edit the setup file on another computer. For shortcuts, it is possible to add a key function - blocking the change of level, so that it does not appear during the “mixture” process. It has also been added the ability to launch a command line when it starts.
    • Other fixes from the firmware.
  • 31.10.13 : A bug has been fixed in the firmware, through which in the dispatcher program an unknown exit window appears.
  • 31.10.13 :
    • The ability to connect expansion modules has been added, so you can increase the number of contact outputs to 23.
    • Added the ability to automatically switch outputs to analog voltage inputs (similar to a thermostat).
    • In the XControl program, the file with styles is now open and can be freely edited (for example, change the font size).
    • Even more correct correction.
  • 14.09.13 : Fixed a problem with receiving commands from the remote control, which appeared in the last firmware
  • 08.09.13 : There have been a lot of corrections in programs and firmware:
    • Sensor names are turned on.
    • Added the ability to invert inputs.
    • Extension of XMLHTTPRequest capabilities.
    • It is possible to install a large number of services, since such a number of services is often not needed.
    • The verification of input data has been completed. Now the program does not crash when there are problems with the network.
    • It is now possible to retry devices directly through the configurator.
    • There are still a lot of other corrections.
  • 28.08.13 : Added the ability to automatically connect to a channel after an hour of tasks.

Main hardware module

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

Main module parameters:

  • Voltage life 8-25 st.
  • The supply voltage ranges from 0.3A to 4A depending on the characteristics of the sensors that are connected or the final device (for example, a relay).
  • The number of contact outputs is 23. 7 of them are on the head unit and another 16 can be added using expansion modules. Maximum cutaneous flow 500mA. It is possible to automatically connect to the channel after an hour of installation.
  • The number of contact inputs is 4. They protect against static.
  • The number of analog inputs is 2. They are protected from static. Between values ​​– from 0 to 2.56V. It is also possible to perform 4 mathematical operations on the skin entrance, so there is no demarcation between them.
  • Number of sensors that can be connected DS18B20- 10 pieces. Protection against static electricity.
  • The ability to operate the output in the thermostat compartment (with hysteresis, which is adjustable), connected to one of the temperature sensors, and thus automatically control the output according to the value of the analog input.
  • Connections are still possible through the socket Ethernet(RJ45). Viewing/keruvannya will be installed via a browser or program XControl.
  • The device can be configured via the USB port of the computer, using additional programs XControl-Configer. I will also install the flashing via USB.
  • It is possible to set a password to restrict access to the device.
  • The ability of keruvati to arrange for help XMLHTTPRequest, which is especially useful for programmers who want to maintain the functionality of their software or website/server.

Remote control for caravan

With the help of the remote control, you can change the skin exit level, but also those who are in the thermostat mode. How the remote control can be vikoristovvat be-yak with the code RC5.

Expanding contact outputs

The device has 7 contact outputs. If this is not enough for your purposes, you can connect 1 or 2 expansion modules. The skin module has 8 low-current outputs and 7 pressure outputs.

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

Connect to the device behind the stepping circuit:

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

XMLHTTPRequest

If you know how to program and want to write a powerful program to work with the device, then the XMLHTTPRequest function is handy for you.

To request XMLHTTPRequest, you need to open the message for the following address: addresses/password/cgi/parameters. The parameters can be as follows: “t” – set the temperature, i – set the input, o – set/set the output. Report from the documentation.

XControl program (for Windows)

This program is part of the hardware and software complex. It allows you to test a number of devices at once, apply them and recreate their appearance in a handmade and beautiful graphic look.

The program has 3 tabs:

  1. Extensions. Here you can see all the additions to the device and their settings, you can add as many as needed.
  2. Shortcuts. For skin service, you can create a label, which will then appear in a manual graphical form, and can also be easily adjusted. Pictures posted initially in the program folder, taken from various web resources and vikorized only as an example.
  3. Magazine. To record actions.
  4. Graphs. For temperature sensors and analog inputs, you can create graphs, which is especially useful if you need to display the scale of temperature changes over a specified period of time.
  5. Magazine. Everyone keeps a record of their actions.
  6. Setting up. Adjustment of autostart, electronic mail, etc.

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

XControl program (for Android)

At the moment, the program operates in beta mode, but is still available for most backers. The most stable work was noted on Andoid version 4.1, on 4.0 there were minor problems with windows, tests were not carried out on older firmware.

In fact, the program differs little from the Windows version, the main features being the optimization of the program for a small screen.

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

Send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

In the Android program, similar to the Windows program, only the tray is turned off, autorun and log transfer to Excel. All functions are simply slightly modified, mostly using shortcuts.

DOWNLOAD FILES = send a query to [email protected]= on which site the right to post information is exchanged. All the secrets are in the mail.

In this short look we will take a look at the types of relays sold via the Internet from the company KERNELCHIP. For more than 10 years, this company has been professionally engaged in the development and programming of non-standard devices for obtaining computers, as well as the development of automation systems and computer systems, remote computer systems, and monitoring via Ethernet and GSM/GPRS. Today, since the Internet is everywhere, such solutions are as relevant as ever. There is information about ceramic relays of the Laurent series.

This module has a special purpose: collection and transmission, via an additional Ethernet (LAN) interface, display of digital temperature sensors. The building module has a maximum of 20 sensors of the Dallas DS18B20 type. The sensors are connected to the 1-Wire bus.

Thus, Laurent-T is an Ethernet temperature controller, designed to work with 1 to 20 sensors, which requires a web interface with a manual table of sensor names (which can be specified by the user), with the possibility of a hardware bus reset 1-Wire for further assistance a new relay, and the command interface (API) is, of course, disabled.

Often, businesses have a need for group collection of data from digital temperature sensors - for centralized collection of readings. It is entirely possible to work via an Ethernet network. It’s time to walk around and collect information from dozens of digital thermal sensors connected via a 1-Wire bus. This axis is supported by the Laurent-T module.

Collected data from sensors will be transmitted to the operator via Ethernet via an integrated web interface, XML/JSON or command line (TCP port). The skin sensor can be easily assigned a name based on the sensor ID number. The readings from the sensors are stolen from short-hour transients (effective for a long line) through additional smoothing and filtration. In case of problems on the bus, an additional relay is automatically sent. Thus, a large number of temperature sensors can be monitored and controlled in remote mode.

The web-stop is inquiring in the bead of the browser, Varto Lish to enter the IP address of the module, Yaki for the vaults of the MAH Obranch 192.168.1.99, I croofed the Zruchny INNTERPHIS for the reserve, showing the temperature of the temperature at the real hour. The table of sensor names is saved in the non-permanent memory of the module.

Laurent-112 alarm module based on 12 relays for controlling various devices via Ethernet using an additional web interface or an open command interface. There are 12 relays on the board, rated for switching voltage from 0 to 220 volts at a current of up to 7 amperes. The skin relay can be keruvati okremo. The CAT system allows you to implement a reaction on the following stages: behind a timer or, for example, in the presence of a remote monitoring device behind the PING command. The command interface (API) is open here.

A web site has been created for the module to be opened in any browser; all you need to do is enter the IP address of the module, which contains the value 192.168.0.101. The interface is manually visualized, the relay status is visible (the button is on - green or the button is disabled - gray). Integration of the web interface may result in password theft, which can be changed. The delivery package for the device only includes the module itself, which means the life will be bathed in water.

This module with expanded functionality is equipped with a wide range of hardware peripherals for connecting relays for monitoring and adjusting the parameters of various devices along the way. Autonomous processing of functions (pulse detectors, timer, PING, ADC, temperature sensor) is allowed. Modules can interact with each other using additional special commands (div. instructions), sent without the participation of a server (M2M function).

The board is equipped with 4 relays for a maximum flow of up to 7A. Includes 4 pulse treaters, 6 discrete inputs, 12 discrete outputs, PWM output, RS-232, a pair of 10-bit ADCs, an input for a digital temperature sensor KTS-18B20, a CAT system - a hardened reaction to the threshold, a closed circuit command interface (API) . Thus, this module has not been reduced and expanded the model of the front-line viruses with further savings in the number of devices and commands.

The Laurent-2 module is suitable for connecting analogue and digital devices, electronic mechanisms and sensors via Ethernet. There are a variety of ways to control the module: via the web interface, via direct http requests, text commands via a TCP port, via additional data sent to the COM port, autonomously via the CAT system, via an M2M route.

Built into the web site module, control requests from any browser whose address is assigned to 192.168.0.101. There is a manual visualization interface for managing various module resources and monitoring its parameters online.

With the help of the CAT system, the module’s response to different inputs is adjusted: the temperature threshold, the pulse detector, the timer, or the response of the remote device to the PING command. The CAT system allows you to program a module and use it autonomously without the need to be connected to a connection.

With the addition of the Laurent-2 module and CAT system, you can quickly set up a system for automatically monitoring the server as soon as possible and immediately restart it if it has become stuck. The server and Laurent-2 will be in the same subdivision. Laurent-2 periodically forces the PING command to the server for your IP, and if there is no connection, it will automatically reset the life through the relay.

Laurent-2 modules can be easily connected to a drone-free Wi-Fi network via a Wi-Fi router. This combination of the Laurent-2 module and Wi-Fi router allows the module to control/monitor almost any device equipped with a Wi-Fi interface at a significant location.

Laurent-2G module - a modified version of the Laurent-2 module, simply adding a GSM modem that allows you to connect to a new antenna. Laurent-2G, like the previous model, is designed for the connection of digital and analogue devices, sensors and control mechanisms via the Ethernet (LAN) interface, but there is also the possibility of connection through the GSM interface - using additional SMS commands or DTMF tone commands.

Andriy Povny


I will continue to learn about the simplest and most accessible methods of using electrical appliances via the Internet with a variety of good services. First of all, such devices are relevant for domestic households, so that they can turn on the heating remotely and prevent the booth from freezing. Drot-free Wi-Fi relays in DIY format from the ITEAD company will add their own price. The device, which is ready to work, actually demonstrates the complicity of its components, which is why it is victorious. What's hot, what's the simplest relay that costs less than 5 dollars?

Previously, I was talking about compact relays that allow remote control of devices. Today I will show new devices. Firstly, it is equipped with two independent Sonoff Dual relays, and in another way, a Sonoff TH relay, which can be installed on board with an external temperature/volost sensor. Such a relay allows you to remove the ability to remotely monitor temperature and humidity, and automate the process of maintaining these parameters within a given range.

Hey, let's figure it out!


2. First of all, the relays got a new housing. The size of the stink has become approximately twice as large, below the relays of the first generation. It became more visible that there was a manual button for programming and manual control.

3. Screw terminals are replaced with spring ones. A much more correct solution that allows you to reliably connect the voltage without the risk of damaging the disconnection contacts. Sonoff TH is available in two modifications, with a relay rated for 10 or 16 amperes. In another type, the voltage can be switched through a relay up to 3600 W. A modification with a 10 amp relay costs $7.5. For a 16 amp relay - 8.6 dollars (this includes a 10A Sonoff Dual relay).

4. The relay can be operated independently, or external sensors can be connected. When selected, the temperature probe DS18B20 (pictured in the center) costs 3.5 dollars, or the temperature/hair sensor AM2301 costs 4.3 dollars.

5. Left-handed single relay with connector for external sensors. On the right is a suspended relay, without a connector for external sensors.

6. Alarm device based on the well-known ESP8266 chip. All low-current parts are located on the lower part of the board. There are also sockets available that allow you to connect a USB-TTL adapter. Those who do not trust the public crappy service can now upload modified firmware to the device and configure it to suit their needs. There are examples on the Internet that can help you make money.

7. Let’s take the simplest diagram to demonstrate the device to the robot. As we prefer, we have a small LED spotlight. It is connected to 220 volts via a Sonoff TH10 relay. To enable remote pairing of the relay, you need to pair the relay with your home Wi-Fi network, which operates in the 2.4 GHz range.

8. Setup is done through the proprietary EWeLink add-on on a smartphone, available for both iOS and Android.

9. After the first steaming procedure, you will be able to activate the steamer both manually (from the button on the relay body) and remotely (via a program on your smartphone). You can also set timers to turn on and automate the heating by specifying operating temperature and humidity ranges.

10. One of the options for installing the relay of the first version is to install a sconce next to the bed near the bedroom. The only drawback lies in the fact that from an aesthetic point of view, the relay was divided into the body of a standard floor lamp, because In this case, it’s as if pressing a small button on the body to turn on the light is not done through a program, it’s not at all manual. The presence of the timer allows you to program the switching on/off of the light, for example, for the period of your release, in order to create an imitation of what you want to be in the apartment.

11. Options for vikoristanya relay – impersonal. It is necessary for Zokrema to automate the lifting using an additional Sonoff Dual sub-relay (one relay for the lowering cable, the other for the overhead one). I’m so excited, I’ll write about it in full detail. I also use a relay for remote dimming of the light when I get to the gatehouse in the dark hour.

Zastosuvan dosit richly. You can, for example, create a self-propelled heat accumulator from a tank of water, programming it to heat up at night, at a cheap rate. You can create a potato shed on the balcony with heating or remote control in the garage. It is possible to automate the increase of the fan in the bathroom when the specified moisture level threshold is exceeded. Everything is left to your imagination. To program and remotely control the relay, it is necessary to have no access to the Internet. Since the stinks are programmed to run on a timer, the stinks can operate autonomously. Order the relay more quickly on the official website of the company, delivery to Russia costs 6 dollars.

You can view all the materials about making a farmhouse with your own hands in chronological order.

A situation that often arises is when an Ethernet cable is installed in the premises or on the other side and it becomes necessary to transmit a simple command from one room to another. For example, from the janitor’s room he pressed the button to unlock the door in the backyard. It became possible to make money without using computers and servers, without writing additional programs. It is enough to connect the Laurent command and control modules to the network, supplying life and making small adjustments. After this, the modules can collide with each other without any confusion.

This article looks at the M2M (Module-to-Module) technology in the application of the connection between Laurent-2 and KBX-3D.

M2M technology allows modules to merge text data with each other, for example, using Ke commands to control without the participation of an external server. offline. For example, in automatic mode, when the song is faulty, you can send a command to another module that is located in the same zone. In this case, external servers and programs are not required - everything can be done using the additional CAT+M2M connection from the module itself.

For example, let's take a look at this:

The local network has two modules connected: Laurent-2 and KBX-3D. It is necessary that when the 1st input line of the Laurent-2 module is short-circuited, the relay of the KBX-3D module is re-clacked. What is important is the identity of the external server. All the culprits quit the modules themselves without outside help.

In any case, let’s first look at the procedure for connecting several modules to one boundary. The subtlety lies in the fact that all standard modules have the same IP and MAC addresses. For normal operation of metering devices, these parameters may be different for devices near the metering. Therefore, for our example, let’s change the merging details of the Laurent-2 module, and set up the KBX-3D without changes.

We go to the Laurent-2 Web interface (addresses for registration: 192.168.0.101). We go to the setup section and change the IP and MAC addresses. Install IP 192.168.0.102 and MAC 0.4.163.0.0.12.

In order to change the settings, you must remove the module, for example, through a life reset. As a result, the module will be available under a new address and will not conflict with MAC addresses with the KBX-3D module, which we have removed without changes.

We can create CAT on the Laurent-2 module. If the voltage level changes on the input line IN_1 (for example, the line will be shorted to +5V from a button or any contact sensor) - then in response to this action, Ke-control commands will be sent to the IP address KBX-3D module.

In a series of commands, two are specified - a command to enter a password for access to the KBX-3D module ($KE,PSW,SET) and, above all, a relay control command ($KE,REL). For example, the skin command usually contains the symbol ';' – when submitting wines, they will be replaced with symbols for rotating the carriage and moving to a new row (CR+LF).

The command with the password is transmitted if the security system is turned on for the modules, which blocks the logging of commands for managing resources of the Dota module until the access password is entered.

If the security system is turned on on the KBX-3D module, then there will be no need for a strong first command with a password.

On the Laurent-2 module, it is recommended to enable the software contact anti-dust suppressor. If nothing can be done, then with the use of a mechanical key or a button connected to the input line, when pressed, the replacement of one stage is created in just a few dozen times through the “brasket” required no mechanical connection. Apparently, you will try to send the list of commands to the computer dozens of times, which will not always be pleasant.

Now everything is ready. It is enough to apply a signal from the button (high roar) to the input line IN_1, the CAT system specifies, the KBX-3D module will be given a set of commands and first the relay of the KBX-3D module will be turned on.

To easily connect the button to the input line, it is recommended to connect the GND and ISO_GND lines. On the right is that the input lines of the modules are opto-isolated. For buttons, there is no special need and you can apply a signal from the board to the input line (for example, from the +5 V terminal). For whom the land of the entrance line and the lifeline of the payment may be illegal. What is reached by the connection between GND and ISO_GND.

The butt is simple, but it opens up wide possibilities for ceruvian ownership.