We start by defining the input temperature states using “membership functions”:


With this scheme, the input variable’s state no longer jumps abruptly from one state to the next. Instead, as the temperature changes, it loses value in one membership function while gaining value in the next. In other words, its ranking in the category of cold decreases as it becomes more highly ranked in the warmer category.

At any sampled timeframe, the “truth value” of the brake temperature will almost always be in some degree part of two membership functions: i.e.: ‘0.6 nominal and 0.4 warm’, or ‘0.7 nominal and 0.3 cool’, and so on.


In practice, the controller accepts the inputs and maps them into their membership functions and truth values. These mappings are then fed into the rules. If the rule specifies an AND relationship between the mappings of the two input variables, as the examples above do, the minimum of the two is used as the combined truth value; if an OR is specified, the maximum is used. The appropriate output state is selected and assigned a membership value at the truth level of the premise. The truth values are then defuzzified. For an example, assume the temperature is in the “cool” state, and the pressure is in the “low” and “ok” states. The pressure values ensure that only rules 2 and 3 fire:


Fuzzy_control_-_Rule_2_evaluation Fuzzy_control_-_Rule_3_evaluation



Arduino and GPRS shield

Made first prototype used GPRS shield SIM900




First I had to disable SIM pin1

Screenshot 2015-06-25 20.13.10


List of operators

Screenshot 2015-06-25 23.08.48


So I made one call and send one SMS to Varulla.

2015-06-24 20.37.57


2015-06-26 21.12.10


Now we have dial pad prototype.

2015-06-28 20.19.51

IoT – Raspberry Pi2 and hc-sr04

Lately I discovered IoT and Clayster for my self.

One good way to learn new things is to resolve some problem using new technology. So I thought to build system detects is somebody is behind in my display. And I’d like to detect it over XMPP.

So for prototyping Raspberry Pi is suitable piece of hardware. Also I used ultrasonic sensors – hc-sr04

2015-05-27 15.34.52


Connected with RP using schema


Source: http://www.modmypi.com/blog/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi


And I can read readings over XMPP






Screenshot 2015-05-27 15.30.55


And finally the most coolest thing – HomeArena by Clayster

Screenshot 2015-05-28 13.15.54


I started to build my own digital clock using DS1302RTC

I have long time considered how to build digital watch. Now I am ready for this. I did not wanted to do it without real time clock (DS1302). So ordered some from china and now I got them

I put together first prototype and it works nice


So RTC gives me time

2015-02-12 22.53.55


DS1302RTC is connected to Arduino. Later I will design my own board and going to use Atmega328PU. Battary keeps time even external power is down.


2015-02-12 22.54.112015-02-12 23.00.02


At the moment this is my fancy user interface. Later I will use LCD or OLED


2015-02-12 22.54.18


Arduino-Uno and TFT 2.4”

Bought new toy  2.4 Inch TFT LCD Shield Touch Board Display Module For Arduino UNO

It took about an hour to find right libs

Using ILI9325 driver



and to get first picture but here it is

2015-02-04 22.38.08