ESP8266 – WiFi controlled light

In home control systems you often need a simple remote controllable relay. Just to switch on or off some lights or appliances. Here is my solution where I used an ESP8266 to control a relay over TCP socket communication. It is a real simple and easy to build system, but special care has to be taken here, because we are dealing with 220V or 110V, depending on the region you live. In hardware description below I show the two option,

Read more

My Home Control System – Devices, tasks and communication

After talking about the basics of a server-less system, it is time to show the architecture of my system. To see the code used send theĀ  UDP broadcast, read this post. For the code for the TCP communication, read this post. At the moment I have the following devices in the system: Solar panel monitoring – Arduino Yun Front yard security device – ESP8266 CCTV still camera – ESP8266 Back yard security device – ESP8266 Bedroom light switch and dimmer

Read more

Communication between devices that doesn’t require a server (UDP code examples)

UDP broadcast Two things to keep in mind about UDP broadcast: UDP broadcast is not a safe method. There is no check if anyone has received the packet. It is just sent out on the network and that’s it. If a recipient miss it, no warning or error is thrown. UDP broadcast works only in your local network. You cannot send a UDP broadcast to “the world”. ISPs, modems and specially mobile networks do not allow it. UDP broadcast sender

Read more

ESP32 UDP broadcast listener – get information from other sensors

In my home control project I have several ESP8266, Arduino Yun and Arduino Uno WiFi modules placed all around my house. They have different functions like motion detection, alarm system or remote light control. These devices announce their status as UDP broadcasts on my local WiFi network. Why using UDP broadcast instead of a point to point transfer? Because I want to have the status available on any phone, tablet or computer without the need of a central server, I

Read more

ESP32 UDP broadcaster to send information to other devices

As I want to have the basic data from my weather station available on other devices as well, the data is sent periodically as UDP broadcasts on the local WiFi network. As the status data of all my devices are “standardized” the broadcast message has to be in JSON object format like

where “de” is the device name, “wei” stands for weather internal “te” is the temperature “hu” is the humidity “hi” is the heat index “dp” is the

Read more
Free Link Directory