This project was developed to enable access into your house only to certain cat while other unwanted cats cannot access. This keeps other cats out of your house while your cat can freely pass through. You can easily achieve this by buying flap door with a special antena and a microchip which must be implanted into your cat but I did't want to implement anything into my cat so I decided to buy much cheaper Ferplast Swing 3 flap door which can be upgraded to meets the needs.

The system is based on ESP8266 with a selenoid locker which holds the door closed. The door will open only when sensor detects a cat with a propper transmitter. While NFC operates on very short distance I've decided to use a magnetometer as a sensor. As a transmitter it is used a collar with integrated magnet which is wearing by a certain cat. 

Pet door access controll



There are some hardware peripheral limitations in this project according to small number of ESP8266's GPIOs.
Room temperaure is measured by DHT22 sensor through these sensor are not reliable so watch for propper library. Because of my specific heating system I've added another temperature sensor DS18B20 which measure expansion container water temperature but it doesn't controll anything. Oil burner and heating pump are driven by BTA12 triacs with a snubber cicuit added. There is also feedback signal from oil burner t

o indicate whether burner is operating

ESP8266 and OLED are located at the furnance side in my case to avoid additional electrical instalation. Also I2C data will not run on long wires in case you would like to dislocate OLED from the main unit..

Operation basics:

When the system is OFF in the APP the circulator pump and the burner are OFF. Otherwise when the system is in the DAY, NIGHT or TIMER operation mode the heater heats the water in the furnance so the heating system is ready to supply the hot water. In TIMER mode the AM and PM timers are used to customize the heat at the desired time period.

oom temperature is readed each minute so If it

falls below temperature you've set in your APP the heater pump will start circulating hot water through heat exchangers.


you can find links to libraries in the code. The only problem I had was to find appropriate library for DHT22 sensor because some libraries gives faulty measuring values especially humidity values. Therefore the code is designed so to prevent calculating faulty measured values from DHT22 sensor.

Thanks to Blynk app from Play Store installed on my smart phone, this app shows data collected from the sensors, heat pump and oil burner state. Also the whole system can be remotely controlled maualy or automatically.
The desired DAY or NIGHT temperatue can be set to handle the system manually. In TIMER mode two timers are used to controll DAY or NIGHT temperature automatically.
In case sensor's reading is faulty it will send an alert. There are also notifications about when temperature fals below 20, 18, and 15 celsius. Lastly a graph draws time based activity of previously mentionet I/Os.


Essential operating data are uploaded to private thingspeak channel to be easily monitored on the IoT ThingSpeak Monitor widget placed on my smart phone. Therefore I don't need to launch Blynk app each time only to check the data. The data are uploaded each 10 minutes.


In my case I put all the hardware I've bouilt into a propper casing located near the Oil burner. I've included an OLED so the important statuses can be read anytime. Only the DHT sensor is located in the living room on the same place where the old thermostat were mounted.
Of course you can put all the electronics in your living room but in my case I have not enough number of the AC wires in my existing installation to handling oil burner and heating pump from here.

Note: this project was developed and tested for a while to ensure a desired operation. Therefore some outdated scenes can be noted on the APP and OLED UI.

Project gallery & downloads:
Project gallery & downloads:

AC-CD 3V3 700mA

ESP8266 07

OLED SSH1106 I2C 1.3" 128x64



MOC3043 x2

BTA12 x2



R 330 x2

R 330 1W x2

R 390 x4

R 680

R 1k

R 10k x2

C 10n/1kV x2

C 1uF

Any comments please leave on YouTube.

Components Required: