Connected Home :- Essential Notifications for Your Home

by palashraghuwanshi16 in Circuits > Sensors

435 Views, 3 Favorites, 0 Comments

Connected Home :- Essential Notifications for Your Home

20220505_135549[1].jpg

Hi,

I hope you all are doing well when you are in another room in your house and sleeping and some thieves came to your house for robbery and when you wake up next morning then you see your most of the things had been stolen by thieves and you have no idea about that's where you can place PIR motion sensor in different rooms to detect movements and program it to give notifications on your phone or connect directly with the police station. So I made a Connected Home project so that I can detect some of the basic information to protect our home from danger.

Connected Home:- It is a smart Home project connected with different sensors like a PIR motion sensor to detect thieves inside our home and notify on my mobile through signal messenger and a flame sensor so that we could detect fire as early as possible and notify on my mobile and water sensor to monitor the water level of my water tank so whenever my water tank is reaching to full level then it will notify and dht11 sensor to give me readings of temperature and humidity and notify me when temperature above 35 degrees and at last I have connected LDR sensor to give me readings so that it will detect light and notifies me.

Supplies

esp32.jpeg
ldr.jpg
flame.png
dht11.jpeg
pir.jpg
water.jpg

Electronics

  • ESP32 Board
  • DHT11 sensor(temperature and humidity)
  • LDR (photoresistor)
  • Flame Sensor
  • PIR Sensor
  • Water level Sensor
  • Jumper Wires
  • 3.7-volt lithium battery
  • USB Cable


Tools

  • Soldering iron
  • Solder wire
  • Fevicol
  • Steel Ruler
  • CardBoard Cutter
  • PC or Laptop
  • CardBoard
  • Tape

Benefits of Connected Home

  • It saves Electricity as the lights will automatically switch On and Off based on sensor readings.
  • It will protect you and your money from thieves as it will notify you as early as possible whenever the sensor detects motion in front of them.
  • It will protect you from burning your Home as it will notify you whenever the sensor detects fire in front of him.
  • It will give you real-time humidity and temperature information right on your mobile screen.
  • We can control any of the home appliances from the mobile and much more.

DIY CARDBOARD HOME

FDQBY3VL2RLEIIY.jpeg
  • First I have collected all the materials needed to make CardBoard home-like CardBoard, CardBoard Cutter, Steel Ruler, Fevicol, and Tape.
  • Then I followed the youtube video to make DIY CardBoard Home so that I could place different sensors to take the readings from sensors.
  • After successfully making the DIY CardBoard Home then I have started to program the different sensors to take readings and notify on mobile.


Blynk Mobile App to Show Readings From the Sensor

Screenshot_20220505-150834_Blynk[1].jpg
Screenshot_20220505-151009_Blynk[1].jpg
Screenshot_20220505-150905_Blynk[1].jpg
Screenshot_20220505-151021_Blynk[1].jpg
Screenshot_20220505-151042_Blynk[1].jpg
Screenshot_20220505-151151_Blynk[1].jpg
Screenshot_20220505-151125_Blynk[1].jpg
Screenshot_20220505-151208_Blynk[2].jpg
Screenshot_20220505-151228_Blynk[1].jpg
Screenshot_20220505-151239_Blynk[1].jpg
  • Download the Blynk app from the play store and create a new account.
  • Then click on a new project and name it whatever you want and then select ESP32 Dev Board and select wifi and then click on create.
  • After clicking on create they will send you an auth token to your email address which we will use in our code.
  • Then click on plus icon to see the widget box then drag the 3 gauge widgets into your Blynk workspace.
  • Click on 1st Gauge and name your Gauge Widget to Temperature and set your pin to virtual pin V0 and set its value to 0 to 100 and come back.
  • Click on 2nd Gauge and name your Gauge Widget to Humidity and set your pin to virtual pin V1 and set its value to 0 to 100 and come back.
  • Click on 3rd Gauge and name your Gauge Widget to Light and set your pin to virtual pin V2 and set its value to 0 to 1023 and come back.
  • After setting all the three widgets click on the play button to run the project and it will show your device offline, once we connect our ESP32 board with necessary code and circuit diagram then it will show you correct readings from the sensor.

Setting Up Signal Bot to Receive Notifications

Screenshot_20220505-172038_Signal[1].jpg
  • Download the signal messenger app from the play store and create an account.
  • After creating an account save this number +34603212597 on your phone and save it as a signal bot which will give us essential notifications on our mobile.
  • Then message I allow callmebot to send me messages to signal bot and they will send you an API key.Please save this API key as we will use it in our code.

Circuit Connection or Diagram

DHT11 SENSOR (Humidity and temperature)

  • signal pin (s) -> d13 (ESP32)
  • power pin (+) -> 3.3v
  • ground pin (-) -> gnd pin

FLAME SENSOR (fire detector)

  • signal pin (s) -> d12 (ESP32)
  • power pin (+) -> 3.3v
  • ground pin (-) -> gnd pin

LDR SENSOR (reads light intensity)

  • signal pin (s) -> gnd pin
  • power pin (+) -> 3.3v
  • ground pin (-) -> d34 (ESP32) (input pin)

PIR SENSOR (Motion detector)

  • signal pin (s) -> d14 (ESP32) (input pin)
  • power pin (+) -> 3.3v
  • ground pin (-) -> gnd pin

WATER LEVEL SENOR

  • signal pin (s) -> d34 (ESP32) (input pin)
  • power pin (+) -> d27
  • ground pin (-) -> gnd pin



Installing Arduino IDE and Necessary Libraries

  • Download the Arduino IDE from its official website and set up its project environments.
  • Download ESP32 board by goto files then preferences and paste this:- https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json in the additional board input section and click ok.
  • Then go to tools and then goto boards and then esp32 boards and then click on ESP32 dev module to select the board.
  • Then go to sketch and click on include library and search for Blynk library and install it.
  • After installing the Blynk library then install the Wifi library and then install the dht11 library.

Connected Home :- Uploading Code

Screenshot_20220505-082641_Signal[1].jpg
Screenshot_20220505-082720_Signal[1].jpg
Screenshot_20220505-082727_Signal[1].jpg
Screenshot_20220505-082032_Blynk[1].jpg
  • After following all the steps correctly make sure to download my code from the Github pages and open the sketch and connect the esp32 board and port correctly.
  • Now, wait for 1 minute to connect the esp32 board with wifi and activate the PIR MOTION SENSOR as it takes 1 minute to activate it properly.
  • After the board has connected to wifi open the Blynk app and see the readings of Temperature, Humidity, and light intensity on your mobile phone.
  • Once you got the readings on the Blynk app, cover your LDR sensor to increase the readings and you will see the notification on your signal messenger app that Night detected: turn on your lights.
  • Then increase the temperature level by giving some heat to get the notifications on your mobile phone that the Temperature is above 35 degree Celcius:Grow plants to decrease the temperature level.
  • Then burn the matchstick in front of your flame sensor to detect and notify you that Fire Detected on your mobile phone.
  • Then test the water level sensor by placing it on a glass of water and it will notify you Water Level: High.
  • Then test the motion sensor by placing your hand in front of PIR Sensor and it will notify you Motion Detected


Final Step:- Placing Sensors Inside DIY Cardboard Home

20220505_133650[1].jpg
20220505_135441[1].jpg
20220505_135504[1].jpg
20220505_133723[1].jpg
20220505_135411[1].jpg
20220505_135549[1].jpg
  • Now take the tape and place it in your esp32 board to stick it properly.
  • Then place the PIR motion sensor inside a DIY cardboard house and stick it with tape.
  • Then place your LDR and flame sensor near the window and stick it with tape.
  • Then place your dht11 senor near the next window and stick it with tape.
  • At last place your water level sensor beside the dht11 sensor with a small glass of water.
  • After all, these steps simply give power to the ESP32 board with 3.7volt lithium battery to get essential notifications and readings on your mobile and you have successfully made your connected home.