My Home Control System

I was always fascinated by automated homes. For me it is interesting to collect information about power consumption remote control appliances have security devices around the house When we bought our new (very old) house in 2014, I started looking into systems like Openmotics, openHAB, home-assistant or Open Source Automation (this list can be extended endless). What I learned during my investigation is that it is all about IoT and everything is in the Cloud. That is great when you have a

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 (TCP code examples)

TCP packet communication Instead of implementing a “full” web server, I decided to go to a simpler TCP server – client connection. This eliminates overhead in the protocol but as well limits the usage. It is not possible to just use a browser (Chrome, Firefox, …) to send commands to a device. But I was not planing to use browsers anyway. TCP client (control device) example for ESP8266 To be able to send a packet over TCP it is only

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

Communication between devices that doesn’t require a server

Why would you you want to have your Arduino’s, ESP8266 and ESP32 devices to be able to communicate to each other without using a central server? Simple, a central server can fail, or, if the server is not on the local network, the connection to the server can be interrupted (no internet connection). So for my home control system I defined in the requirements that  devices should be able to communicate with each other without the need of a server.

Read more
Free Link Directory