Beginning
Our project consists of a prototype of a house which makes use of home automation, this will be done from the use of sensors which we will program using the "Arduino" software and the Esp32 wifi and Arduino Mega 2560T microcontrollers, these sensors will respond and act giving full functionality thanks to an application for cell phones that we have created, this application interacts through the internet with the Esp32 card and this in turn with the Arduino card.
Objectives
General objective:
- Develop a smart home prototype to provide security and comfort to a user, this controlled by an application that was created by the team members with functionality via Wi-fi.
Specific objectives:
1- Implement what has been learned in practice for the use of sensors in a house.
2- Develop a Wi-fi application that allows us to control the operation of certain parts of a house.
3- Facilitate and generate energy savings from a viable and safe control.
Team members
Elián Agustín Santamaría Rubio 20210306 (Coordinator)
Anderson Steven Ramírez Martínez 20210486 (Sub coordinator)
Steven Vladimir Ramos Mejía 20200269 (Secretary)
Preparation
Problem Statement
As a group we have focused on the problem of insecurity in our country, for this reason we designed a security system which can be controlled from a mobile phone via the internet. As a group we are looking for an option to be able to have the security control of our home at our fingertips, in addition to this having a comfortable and safe way to carry out certain actions in our home.
Therefore, our approach to the problem in this case is: How can we control the electrical and electronic systems of our home in an innovative, comfortable and simple way?
Execution
Project development
For the development of our project, we first made a list of materials to make an approximate initial budget, since at the beginning we had proposed certain materials, but as we progressed in the construction of the prototype of our house, we discovered the need to implement others or change them. Since not all of them fulfilled the function we expected, the most noticeable change that we can mention is the fact of going from a Bluetooth card to a WI-FI card.
Within the physical development of the house the following phases were carried out:
Phase 1: Circuit planning and operation.
Within this phase we began to test and experiment with the circuits we planned to make (Circuits that we implemented as we decided to improve or change based on suggestions from teachers or in case circuits on our own).
In the first parameters of the project we made the following diagrams and test circuit assemblies:
-Outer Gate: For the operation of the motor we used the L298N motor controller, part of the motor winding and the rotor were hidden in the lower base of the house
-Motion alarm: For this alarm we use two components: An IR sensor and a buzzer. We will find them in the main lobby, right in the room where the stairs that lead to the second floor and the main door are located.
-LDR and parking lights: We can vary the intensity of light that the LDR registers thanks to an external light source outside the house which allows us to simulate and intersperse between day and night
-Interior lights: These lights will be distributed throughout the house, they are distributed as follows: -Room 1: independent light
-Room 2 independent light
-Living room, kitchen, main lobby and upper room: light together
Phase 2 "Assembly and implementation of circuits"
In this phase we take care of the introduction of the circuits to a fixed base which later will become our prototype of the house, in this phase we focus on carrying out the assembly of the house and doing the pilot tests to verify the operation of the circuits so that if we noticed a failure in the design of the house or a failure in a circuit we would have the option of modifying the house or the circuit in general.
Circuit diagrams
Exterior Door
For motor operation we used the L298N motor controller, since part of the motor winding and the rotor were hidden in the lower base of the house.
Motion alarm
For this alarm we use two components: An IR sensor and a buzzer. We will find them in the main lobby, right in the room where the stairs that lead to the second floor and the main door are located.
LDR and parking lights
We can vary the intensity of light that the LDR registers thanks to an external light source outside the house, which allows us to simulate and intersperse between day and night
Interior lights
These lights will be distributed throughout the house, they are distributed as follows:
-Room 1: independent light.
-Room 2: independent light.
-Living room, kitchen, main lobby and upper room: light together.
Note: We have to clarify and emphasize that the LEDs represent the 110v bulbs and the source below represents the alternating current.
Phase 3: Implementation of suggestions and completion of the project.
The suggestions and observations that were made to us in the first defense of our project were mainly two:
1- The use of the bluetooth card: we thought as the first idea of communication between our app and the Arduino card: the range of this card which was the HC05 was a problem since they were only 10m of area and the quality of communication of these 10m would be affected by structures that `` are most likely in the middle of a real house, be it furniture, walls, etc. We realized that this was perhaps the greatest limit of our project and we decided to abide by this observation and we switched to the card with which we have now carried out the project, which is the Esp32 Wi-fi, with this card our Arduino can be connected to a Wi-Fi network, and therefore the internet, with this improvement now no matter how much distance we have between our Esp32 or Arduino card we can control our systems via the internet, also thanks to the fact that to adapt this change we left behind our first application developed for connection via bluetooth and we changed to another program to develop an application that works via the internet called "Blynk", also with this application we acquired another benefit which was the security of our application, with the aforementioned bluetooth card we had no security or guarantee that a Unknown will connect to said module and start playing with our house lights, instead the Blynk application n It gives you an authorization token via email by which our device can be connected with the assurance that only we have control.
2- The use of 5v LEDs in all the lighting circuits of the house: this was the first idea, but our instructors told us that if we wanted to simulate this project as much as possible to reality we could use 110v led spotlights, and we did it but This in turn brought a change that we had to make: if we wanted to control those 110v bulbs through the orders that we sent to the Esp32 from the application, we could not do that alone, since the Esp32 only sends 3.3v through its digital pins, so we had to buy and apply to these 110v bulbs and to the Esp32 the so-called "Relay Modules", which are circuits designed so that low-voltage controllers such as the Arduino or the Esp32 can control elements that require a higher voltage to function. as in this case the lights and the gate motor with their respective 6v controller.
Investigation conclusion
As a Group we came to the conclusion that this project can be carried out and implemented in a real house, and it is possible to give it the appropriate functionality, our system does not intend to replace the traditional physical buttons, but rather it is about merging to achieve greater comfort when we we move around our house. This "comfort" comes in some automation processes that save us daily actions such as:
-Automatic activation of the parking lights when it is dark.
-Automated door with security system in case something or someone crosses when it is in motion.
-The option of having total control from our cell phone over the lighting of the house.
For these points already mentioned we seek the introduction of technology in new aspects of our daily life.