ESP32

SmartWatch Home Automation and Sensor Monitoring

Smartwatch Home Automation:

SmartWatch Home Automation and Sensor Monitoring- Now you can use a smartwatch to not only control your entire house but also monitor different types of sensors. And the best part is, you can do this from anywhere in the world by using the Ubidots IoT Cloud Platform, which connects the smartwatch to the device you want to control. Before we start this project, I want to share a few things with you because this project is a bit advanced.

SmartWatch Home Automation and sensor monitoring

This is my 8th article in the Smartwatch programming series and throughout this series I used the CrowPanel ESP32C3 1.28 Inch IPS Capacitive Touch Display.

allpcb circuit

If you have already used SquareLine Studio and Ubidots, then you won’t have any trouble understanding this project. But if you don’t know what SquareLine Studio and Ubidots are, then you will need to read my previous articles first.

Because you need to know how to install the ESP32 board in Arduino IDE, which libraries to install for the CrowPanel display, which version of the LVGL library to use with SquareLine Studio, how to fix basic errors, and which libraries to install for Ubidots. I have already explained all of this in my previous articles and videos, so I won’t repeat it again.




Amazon Links:

ESP32 WiFi + Bluetooth Module (Recommended)

Other Tools and Components:

Arduino Nano USB C type (Recommended)

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Smartwatch Home Automation Hardware:

SmartWatch Home Automation control a bulb using esp32 and smart watch

Anyway, this is my setup from the previous home automation project, which focused on controlling a single load using a 5V SPDT type relay. The bulb from that project is still connected to the relay, functioning as one of the primary loads. However, this time, I have added a new component to enhance the system’s functionality; a waterproof ultrasonic sensor, the A02YYUW. This sensor brings additional possibilities for detecting objects or measuring distances, which can be integrated into various automation scenarios.

Along with controlling the bulb via the relay, we will also control the onboard LED, which is connected to GPIO5 on the ESP32. By including the LED as a secondary load, this setup demonstrates how to manage multiple outputs simultaneously, making it an excellent example for those looking to expand their automation projects.



For the Relay connections you can follow this circuit diagram

SmartWatch Home Automation relay driver esp32

And for the A02YYUW Waterproof Ultrasonic sensor wiring; you can follow this circuit diagram.

A02yyuw waterproof ultrasonic sensor using SmartWatch Home Automation

Now, let’s first start with the SquareLine Studio.



SquareLine studio GUI:

How to start a new project, how to use widgets, how to change screens, how to call functions, and how to generate UI files, etc., have already been explained in Part 2 “Counter Project”.

SmartWatch Home Automation gui designing in squareline studio

It’s just a simple GUI, On Screen1 I have added two Labels for displaying the Sensor1 and Sensor2 values.

On Screen2, I have added two switches to controlling the 110/220Vac Bulb and the ESP32 onboard LED.

I have added to events with the names load1control and load2control.

And finally, I added the Change Screen events to switch between the two screens and then go ahead save the project and export the UI files. If in case you face any difficult then you can watch the video tutorial given at the end of this article.



Smartwatch Code:




Target side ESP32 Code:

Modify the above codes.

Now, as you can see, I haven’t added the Ubidots token yet because we will get this token after creating a dashboard in Ubidots IoT platform.

The first code will be uploaded to the smartwatch, which uses the ESP32C3 controller. And the other code is for the ESP32 controller, which is connected to the load and sensor. If you want the complete project folder, including the UI files, libraries, and everything else, you can download it from my Patreon page.

Now, let’s move ahead and start with Ubidots!



Ubidots Dashboard:

ubidots dashboard for SmartWatch Home Automation and bracelets

I made this dashboard for the Long-Distance Couples project, where I used two CrowPanel displays as smart bracelets. I used Ubidots as a bridge to connect the two smart bracelets.

SmartWatch Home Automation and smart bracelets for lover couples

If you also want to amaze your girlfriend, you can make her this awesome smart bracelet.

Anyway, I’ve already explained most of the details in that article.



Simply, create a dashboard like this.

creating SmartWatch Home Automation using iot dashboard and smartwatch

You can watch the video given at the end of this article. Anyway, copy the Token and paste it in the two codes given above. Finally, upload the programs.

SmartWatch Home Automation using esp32c3 and ubidots

Not only we can control the loads and monitor the sensors through this dashboard, but we can also control the loads and monitor the sensors directly from the smartwatch.



Light control:

SmartWatch Home Automation light control using a smartwatch

SmartWatch Home Automation controlling bulb

Smartwatch to control the Onboard LED.

SmartWatch Home Automation controlling and monitoring



Sensor Monitoring:

SmartWatch Home Automation monitoring

SmartWatch Home Automation sensor monitoring using smartwatch

Watch Video Tutorial:

 

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Electronic Clinic
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.