This project is based on machine learning. In order to let us get a better experience in daily life, this project is committed to creating a very promising little assistant for household appliances.
As the name suggests, this can be called a high-end controller for household appliances. This controller can be integrated into existing household appliances, such as air conditioners, water heaters, refrigerators, and lighting devices. Under the general trend of the Internet of Everything, the intelligentization of household appliances is the only way.
Different from the remote control via the mobile phone APP, the purpose of this project is to allow the owner to freely control the temperature of the air conditioner, the opening and closing of the curtains and the brightness of the light through voice in the home, so as to bring the best home experience.
In order to realize this great project, we mainly rely on the following two technologies.
ml5.js: A JS library based on TensorFlow (Open source ML library).
Teachable Machine: A fast, easy way to create machine learning models for your sites, apps, and more – no expertise or coding required.
p5.js: A JS library which makes programming accessible
In addition, we also need to input corresponding instructions for AI through training. For example, after receiving the "open the curtain" command, the electric curtain will be slowly opened under the control of the controller.
For the realization of the project, we can start with the code. Here is the core code (and this is the Source Code):
In order to fully understand SoundClassifier of ml5.js, we should first learn from this video below.
In terms of hardware implementation, we will integrate the developed assistant with the air conditioner remote control, TV remote control, electric curtain remote control, etc. to achieve the control effect. The last thing that needs to be solved is to train enough voice commands with Teachable Machine. As for how to use Teachable Machine, the following video will help us.
In conclusion, this project is very promising and can even change our lifestyle.