This shows you the differences between two versions of the page.
iothings:proiecte:2022:smart_home_system_with_alexa_app [2023/01/20 01:40] catalina.sirbu [Software Description] |
iothings:proiecte:2022:smart_home_system_with_alexa_app [2023/01/20 04:17] (current) catalina.sirbu [Hardware Description] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Smart Home System with Alexa App ====== | ====== Smart Home System with Alexa App ====== | ||
- | Author: Catalina Sirbu \\ | + | Author: Catalina Sirbu ACES 2023\\ |
- | Master: ACES \\ | + | |
[[https://alexa-firebase-945fb.firebaseapp.com/|Web application]] \\ | [[https://alexa-firebase-945fb.firebaseapp.com/|Web application]] \\ | ||
- | Source code on Github: \\ | + | [[https://github.com/dragosmacovei/alexa-esp32-wroom32|Source code on Github]]\\ |
[[https://youtu.be/6lvnHSm-Qok|Demo video]] \\ | [[https://youtu.be/6lvnHSm-Qok|Demo video]] \\ | ||
[[https://www.canva.com/design/DAFYDyiL1wc/etq0lGd37NICMMhhaSqxyg/view?utm_content=DAFYDyiL1wc&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton|Presentation Link]] | [[https://www.canva.com/design/DAFYDyiL1wc/etq0lGd37NICMMhhaSqxyg/view?utm_content=DAFYDyiL1wc&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton|Presentation Link]] | ||
Line 32: | Line 31: | ||
The final diagram of all the components can be seen below and was made with the help of the EasyEDA program. | The final diagram of all the components can be seen below and was made with the help of the EasyEDA program. | ||
+ | |||
+ | {{ :iothings:proiecte:2022:alexa-catalina-sirbu.png?500 |}} | ||
===== Software Description ==== | ===== Software Description ==== | ||
Line 75: | Line 76: | ||
== Alexa App == | == Alexa App == | ||
- | * Implementation of switching the blue lamp between the two states using Alexa App | + | This method allows us to use voice control with the help of an Echo Dot with the included Alexa application in order to change the state of the lights. The user can give the following commands: |
+ | * "Alexa, turn on the red light." / "Alexa, turn off the red light." | ||
+ | * "Alexa, turn on the blue light." / "Alexa, turn off the blue light." | ||
+ | * "Alexa, turn on/off the bedroom lights." - the 2 lightbulbs are configured in the "bedroom" group | ||
+ | * "Alexa, good morning!" - this will turn on the lightbulbs | ||
+ | * "Alexa, good night!" - this will turn off the lightbulbs | ||
+ | |||
+ | Implementation of switching the blue lamp between the two states using Alexa App. | ||
<file cpp Alexa-esp32.ino> | <file cpp Alexa-esp32.ino> | ||
Serial.println(fbdo_write.dataType()); | Serial.println(fbdo_write.dataType()); | ||
Line 108: | Line 116: | ||
Serial.print("Successfully wrote in RTDB to [data path]:"); Serial.print(fbdo_write.dataPath()); Serial.print(", [data type]: "); | Serial.print("Successfully wrote in RTDB to [data path]:"); Serial.print(fbdo_write.dataPath()); Serial.print(", [data type]: "); | ||
</file> | </file> | ||
- | * At each modification, the change is checked. If the status cannot be changed, it displays an error message. | + | At each modification, the change is checked. If the status cannot be changed, it displays an error message. |
<file cpp Alexa-esp32.ino> | <file cpp Alexa-esp32.ino> | ||
Serial.println(fbdo_write.dataType()); | Serial.println(fbdo_write.dataType()); | ||
Line 138: | Line 146: | ||
===== Conclusion ===== | ===== Conclusion ===== | ||
+ | * In the case of this type of application using ESP32 and Firebase, I found many well-documented projects on the Internet and I was able to easily find solutions to problems encountered along the way. | ||
+ | * This application implements 3 simple ways to control 2 lights: with the help of physical buttons, with the help of the Alexa application, and with the help of a Firebase application where you can see the status of the lights in real-time. | ||
+ | * By introducing the application in everyday life, some activities can be made easier and the level of comfort can be increased, improving the quality of life. | ||
===== Resources ===== | ===== Resources ===== | ||